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
704 all_lang_configurefrags
720 ld_version_script_option
725 ORIGINAL_NM_FOR_TARGET
727 ORIGINAL_LD_GOLD_FOR_TARGET
728 ORIGINAL_LD_BFD_FOR_TARGET
729 ORIGINAL_LD_FOR_TARGET
730 ORIGINAL_PLUGIN_LD_FOR_TARGET
732 ORIGINAL_AS_FOR_TARGET
750 NO_PIE_FLAG_FOR_BUILD
751 NO_PIE_CFLAGS_FOR_BUILD
761 BUILD_SYSTEM_HEADER_DIR
781 NATIVE_SYSTEM_HEADER_DIR
816 omp_device_property_deps
817 omp_device_properties
819 real_target_noncanonical
820 enable_as_accelerator
822 DOCUMENTATION_ROOT_URL
837 valgrind_path_defines
867 CROSS_SYSTEM_HEADER_DIR
868 TARGET_SYSTEM_ROOT_DEFINE
870 SYSROOT_CFLAGS_FOR_TARGET
916 program_transform_name
927 ac_subst_files
='option_includes
930 enable_option_checking
933 with_native_system_header_dir
938 enable_generated_files_in_srcdir
945 enable_build_format_warnings
949 enable_gather_detailed_mem_stats
950 enable_valgrind_annotations
954 with_stack_clash_protection_guard_size
969 with_documentation_root_url
977 enable_sjlj_exceptions
978 with_gcc_major_version_only
980 enable_mingw_wildcard
981 enable_large_address_aware
982 enable_leading_mingw64_underscores
985 enable_win32_registry
993 enable_gnu_indirect_function
994 enable_initfini_array
996 enable_newlib_nano_formatted_io
997 enable_standard_branch_protection
998 enable_fix_cortex_a53_835769
999 enable_fix_cortex_a53_843419
1001 enable_gnu_unique_object
1002 enable_linker_build_id
1005 with_long_double_128
1006 with_long_double_format
1009 enable_maintainer_mode
1011 enable_version_specific_runtime_libs
1014 enable_libquadmath_support
1015 with_linker_hash_style
1016 with_diagnostics_color
1019 ac_precious_vars
='build_alias
1038 # Initialize some variables set by options.
1040 ac_init_version
=false
1041 ac_unrecognized_opts
=
1042 ac_unrecognized_sep
=
1043 # The variables have the same names as the options, with
1044 # dashes changed to underlines.
1045 cache_file
=/dev
/null
1052 program_transform_name
=s
,x
,x
,
1060 # Installation directory options.
1061 # These are left unexpanded so users can "make install exec_prefix=/foo"
1062 # and all the variables that are supposed to be based on exec_prefix
1063 # by default will actually change.
1064 # Use braces instead of parens because sh, perl, etc. also accept them.
1065 # (The list follows the same order as the GNU Coding Standards.)
1066 bindir
='${exec_prefix}/bin'
1067 sbindir
='${exec_prefix}/sbin'
1068 libexecdir
='${exec_prefix}/libexec'
1069 datarootdir
='${prefix}/share'
1070 datadir
='${datarootdir}'
1071 sysconfdir
='${prefix}/etc'
1072 sharedstatedir
='${prefix}/com'
1073 localstatedir
='${prefix}/var'
1074 includedir
='${prefix}/include'
1075 oldincludedir
='/usr/include'
1076 docdir
='${datarootdir}/doc/${PACKAGE}'
1077 infodir
='${datarootdir}/info'
1082 libdir
='${exec_prefix}/lib'
1083 localedir
='${datarootdir}/locale'
1084 mandir
='${datarootdir}/man'
1090 # If the previous option needs an argument, assign it.
1091 if test -n "$ac_prev"; then
1092 eval $ac_prev=\
$ac_option
1098 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1103 # Accept the important Cygnus configure options, so we can diagnose typos.
1105 case $ac_dashdash$ac_option in
1109 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1111 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1112 bindir
=$ac_optarg ;;
1114 -build |
--build |
--buil |
--bui |
--bu)
1115 ac_prev
=build_alias
;;
1116 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1117 build_alias
=$ac_optarg ;;
1119 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1120 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1121 ac_prev
=cache_file
;;
1122 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1123 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1124 cache_file
=$ac_optarg ;;
1126 --config-cache |
-C)
1127 cache_file
=config.cache
;;
1129 -datadir |
--datadir |
--datadi |
--datad)
1131 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1132 datadir
=$ac_optarg ;;
1134 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1135 |
--dataroo |
--dataro |
--datar)
1136 ac_prev
=datarootdir
;;
1137 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1138 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1139 datarootdir
=$ac_optarg ;;
1141 -disable-* |
--disable-*)
1142 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1145 as_fn_error $?
"invalid feature name: $ac_useropt"
1146 ac_useropt_orig
=$ac_useropt
1147 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "enable_
$ac_useropt"
1152 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1153 ac_unrecognized_sep
=', ';;
1155 eval enable_
$ac_useropt=no
;;
1157 -docdir |
--docdir |
--docdi |
--doc |
--do)
1159 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1160 docdir
=$ac_optarg ;;
1162 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1164 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1165 dvidir
=$ac_optarg ;;
1167 -enable-* |
--enable-*)
1168 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1171 as_fn_error $?
"invalid feature name: $ac_useropt"
1172 ac_useropt_orig
=$ac_useropt
1173 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1176 "enable_
$ac_useropt"
1178 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1179 ac_unrecognized_sep
=', ';;
1181 eval enable_
$ac_useropt=\
$ac_optarg ;;
1183 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1184 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1185 |
--exec |
--exe |
--ex)
1186 ac_prev
=exec_prefix
;;
1187 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1188 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1189 |
--exec=* |
--exe=* |
--ex=*)
1190 exec_prefix
=$ac_optarg ;;
1192 -gas |
--gas |
--ga |
--g)
1193 # Obsolete; use --with-gas.
1196 -help |
--help |
--hel |
--he |
-h)
1197 ac_init_help
=long
;;
1198 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1199 ac_init_help
=recursive
;;
1200 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1201 ac_init_help
=short
;;
1203 -host |
--host |
--hos |
--ho)
1204 ac_prev
=host_alias
;;
1205 -host=* |
--host=* |
--hos=* |
--ho=*)
1206 host_alias
=$ac_optarg ;;
1208 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1210 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1212 htmldir
=$ac_optarg ;;
1214 -includedir |
--includedir |
--includedi |
--included |
--include \
1215 |
--includ |
--inclu |
--incl |
--inc)
1216 ac_prev
=includedir
;;
1217 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1218 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1219 includedir
=$ac_optarg ;;
1221 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1223 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1224 infodir
=$ac_optarg ;;
1226 -libdir |
--libdir |
--libdi |
--libd)
1228 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1229 libdir
=$ac_optarg ;;
1231 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1232 |
--libexe |
--libex |
--libe)
1233 ac_prev
=libexecdir
;;
1234 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1235 |
--libexe=* |
--libex=* |
--libe=*)
1236 libexecdir
=$ac_optarg ;;
1238 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1239 ac_prev
=localedir
;;
1240 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1241 localedir
=$ac_optarg ;;
1243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1244 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1245 ac_prev
=localstatedir
;;
1246 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1247 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1248 localstatedir
=$ac_optarg ;;
1250 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1252 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1253 mandir
=$ac_optarg ;;
1255 -nfp |
--nfp |
--nf)
1256 # Obsolete; use --without-fp.
1259 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1260 |
--no-cr |
--no-c |
-n)
1263 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1264 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1267 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1268 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1269 |
--oldin |
--oldi |
--old |
--ol |
--o)
1270 ac_prev
=oldincludedir
;;
1271 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1272 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1273 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1274 oldincludedir
=$ac_optarg ;;
1276 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1278 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1279 prefix
=$ac_optarg ;;
1281 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1282 |
--program-pre |
--program-pr |
--program-p)
1283 ac_prev
=program_prefix
;;
1284 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1285 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1286 program_prefix
=$ac_optarg ;;
1288 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1289 |
--program-suf |
--program-su |
--program-s)
1290 ac_prev
=program_suffix
;;
1291 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1292 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1293 program_suffix
=$ac_optarg ;;
1295 -program-transform-name |
--program-transform-name \
1296 |
--program-transform-nam |
--program-transform-na \
1297 |
--program-transform-n |
--program-transform- \
1298 |
--program-transform |
--program-transfor \
1299 |
--program-transfo |
--program-transf \
1300 |
--program-trans |
--program-tran \
1301 |
--progr-tra |
--program-tr |
--program-t)
1302 ac_prev
=program_transform_name
;;
1303 -program-transform-name=* |
--program-transform-name=* \
1304 |
--program-transform-nam=* |
--program-transform-na=* \
1305 |
--program-transform-n=* |
--program-transform-=* \
1306 |
--program-transform=* |
--program-transfor=* \
1307 |
--program-transfo=* |
--program-transf=* \
1308 |
--program-trans=* |
--program-tran=* \
1309 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1310 program_transform_name
=$ac_optarg ;;
1312 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1314 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1315 pdfdir
=$ac_optarg ;;
1317 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1319 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1322 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1323 |
-silent |
--silent |
--silen |
--sile |
--sil)
1326 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1328 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1330 sbindir
=$ac_optarg ;;
1332 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1333 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1334 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1336 ac_prev
=sharedstatedir
;;
1337 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1338 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1339 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1341 sharedstatedir
=$ac_optarg ;;
1343 -site |
--site |
--sit)
1345 -site=* |
--site=* |
--sit=*)
1348 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1350 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1351 srcdir
=$ac_optarg ;;
1353 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1354 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1355 ac_prev
=sysconfdir
;;
1356 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1357 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1358 sysconfdir
=$ac_optarg ;;
1360 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1361 ac_prev
=target_alias
;;
1362 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1363 target_alias
=$ac_optarg ;;
1365 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1368 -version |
--version |
--versio |
--versi |
--vers |
-V)
1369 ac_init_version
=: ;;
1372 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1375 as_fn_error $?
"invalid package name: $ac_useropt"
1376 ac_useropt_orig
=$ac_useropt
1377 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1382 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1383 ac_unrecognized_sep
=', ';;
1385 eval with_
$ac_useropt=\
$ac_optarg ;;
1387 -without-* |
--without-*)
1388 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1391 as_fn_error $?
"invalid package name: $ac_useropt"
1392 ac_useropt_orig
=$ac_useropt
1393 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1394 case $ac_user_opts in
1398 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1399 ac_unrecognized_sep
=', ';;
1401 eval with_
$ac_useropt=no
;;
1404 # Obsolete; use --with-x.
1407 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1408 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1409 ac_prev
=x_includes
;;
1410 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1411 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1412 x_includes
=$ac_optarg ;;
1414 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1415 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1416 ac_prev
=x_libraries
;;
1417 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1418 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1419 x_libraries
=$ac_optarg ;;
1421 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1422 Try \`$0 --help' for more information"
1426 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1427 # Reject names that are not valid shell variable names.
1428 case $ac_envvar in #(
1429 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1430 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1432 eval $ac_envvar=\
$ac_optarg
1433 export $ac_envvar ;;
1436 # FIXME: should be removed in autoconf 3.0.
1437 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1438 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1439 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1440 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1446 if test -n "$ac_prev"; then
1447 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1448 as_fn_error $?
"missing argument to $ac_option"
1451 if test -n "$ac_unrecognized_opts"; then
1452 case $enable_option_checking in
1454 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1455 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1459 # Check all directory arguments for consistency.
1460 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1461 datadir sysconfdir sharedstatedir localstatedir includedir \
1462 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1463 libdir localedir mandir
1465 eval ac_val
=\$
$ac_var
1466 # Remove trailing slashes.
1469 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1470 eval $ac_var=\
$ac_val;;
1472 # Be sure to have absolute directory names.
1474 [\\/$
]* | ?
:[\\/]* ) continue;;
1475 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1477 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1480 # There might be people who depend on the old broken behavior: `$host'
1481 # used to hold the argument of --host etc.
1482 # FIXME: To remove some day.
1485 target
=$target_alias
1487 # FIXME: To remove some day.
1488 if test "x$host_alias" != x
; then
1489 if test "x$build_alias" = x
; then
1490 cross_compiling
=maybe
1491 elif test "x$build_alias" != "x$host_alias"; then
1497 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1499 test "$silent" = yes && exec 6>/dev
/null
1502 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1503 ac_ls_di
=`ls -di .` &&
1504 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1505 as_fn_error $?
"working directory cannot be determined"
1506 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1507 as_fn_error $?
"pwd does not report name of working directory"
1510 # Find the source files, if location was not specified.
1511 if test -z "$srcdir"; then
1512 ac_srcdir_defaulted
=yes
1513 # Try the directory containing this script, then the parent directory.
1514 ac_confdir
=`$as_dirname -- "$as_myself" ||
1515 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1516 X"$as_myself" : 'X\(//\)[^/]' \| \
1517 X"$as_myself" : 'X\(//\)$' \| \
1518 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1519 $as_echo X"$as_myself" |
1520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538 if test ! -r "$srcdir/$ac_unique_file"; then
1542 ac_srcdir_defaulted
=no
1544 if test ! -r "$srcdir/$ac_unique_file"; then
1545 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1546 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1548 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1550 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1552 # When building in place, set srcdir=.
1553 if test "$ac_abs_confdir" = "$ac_pwd"; then
1556 # Remove unnecessary trailing slashes from srcdir.
1557 # Double slashes in file names in object file debugging info
1558 # mess up M-x gdb in Emacs.
1560 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1562 for ac_var
in $ac_precious_vars; do
1563 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1564 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1565 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1566 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1570 # Report the --help message.
1572 if test "$ac_init_help" = "long"; then
1573 # Omit some internal or obsolete options to make the list less imposing.
1574 # This message is too long to be a string in the A/UX 3.1 sh.
1576 \`configure' configures this package to adapt to many kinds of systems.
1578 Usage: $0 [OPTION]... [VAR=VALUE]...
1580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1581 VAR=VALUE. See below for descriptions of some of the useful variables.
1583 Defaults for the options are specified in brackets.
1586 -h, --help display this help and exit
1587 --help=short display options specific to this package
1588 --help=recursive display the short help of all the included packages
1589 -V, --version display version information and exit
1590 -q, --quiet, --silent do not print \`checking ...' messages
1591 --cache-file=FILE cache test results in FILE [disabled]
1592 -C, --config-cache alias for \`--cache-file=config.cache'
1593 -n, --no-create do not create output files
1594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1596 Installation directories:
1597 --prefix=PREFIX install architecture-independent files in PREFIX
1598 [$ac_default_prefix]
1599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1602 By default, \`make install' will install all the files in
1603 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1604 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1605 for instance \`--prefix=\$HOME'.
1607 For better control, use the options below.
1609 Fine tuning of the installation directories:
1610 --bindir=DIR user executables [EPREFIX/bin]
1611 --sbindir=DIR system admin executables [EPREFIX/sbin]
1612 --libexecdir=DIR program executables [EPREFIX/libexec]
1613 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1614 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1615 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1616 --libdir=DIR object code libraries [EPREFIX/lib]
1617 --includedir=DIR C header files [PREFIX/include]
1618 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1619 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1620 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1621 --infodir=DIR info documentation [DATAROOTDIR/info]
1622 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1623 --mandir=DIR man documentation [DATAROOTDIR/man]
1624 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1625 --htmldir=DIR html documentation [DOCDIR]
1626 --dvidir=DIR dvi documentation [DOCDIR]
1627 --pdfdir=DIR pdf documentation [DOCDIR]
1628 --psdir=DIR ps documentation [DOCDIR]
1634 --program-prefix=PREFIX prepend PREFIX to installed program names
1635 --program-suffix=SUFFIX append SUFFIX to installed program names
1636 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1639 --build=BUILD configure
for building on BUILD
[guessed
]
1640 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1641 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1645 if test -n "$ac_init_help"; then
1650 --disable-option-checking ignore unrecognized
--enable/--with options
1651 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1652 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1653 --enable-generated-files-in-srcdir
1654 put copies of generated files
in source dir intended
1655 for creating
source tarballs
for users without
1656 texinfo bison or flex
1657 --disable-largefile omit support
for large files
1658 --disable-build-format-warnings
1659 don
't use -Wformat while building GCC
1660 --enable-werror-always enable -Werror despite compiler version
1661 --enable-checking[=LIST]
1662 enable expensive run-time checks. With LIST, enable
1663 only specific categories of checks. Categories are:
1664 yes,no,all,none,release. Flags are:
1665 assert,df,extra,fold,gc,gcac,gimple,misc,
1666 rtlflag,rtl,runtime,tree,valgrind,types
1667 --enable-coverage[=LEVEL]
1668 enable compiler's code coverage collection. Use to
1669 measure compiler performance and
locate unused parts
1670 of the compiler. With LEVEL
, specify optimization.
1671 Values are opt
, noopt
, default is noopt
1672 --enable-gather-detailed-mem-stats
1673 enable detailed memory allocation stats gathering
1674 --enable-valgrind-annotations
1675 enable valgrind runtime interaction
1676 --enable-multilib enable library support
for multiple ABIs
1677 --enable-multiarch enable support
for multiarch paths
1678 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1679 --enable-decimal-float={no
,yes,bid
,dpd
}
1680 enable decimal float extension to C. Selecting
'bid'
1681 or
'dpd' choses
which decimal floating point format
1683 --enable-fixed-point enable fixed-point arithmetic extension to C
1684 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1686 --enable-tls enable or disable generation of tls code overriding
1687 the assembler check
for tls support
1688 --enable-vtable-verify enable vtable verification feature
1689 --disable-analyzer disable
-fanalyzer static analyzer
1690 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1691 GNU Objective-C runtime
1692 --disable-shared don't provide a shared libgcc
1693 --disable-gcov don
't provide libgcov and related host tools
1694 --enable-languages=LIST specify which front-ends to build
1695 --disable-rpath do not hardcode runtime library paths
1696 --enable-sjlj-exceptions
1697 arrange to use setjmp/longjmp exception handling
1698 --enable-secureplt enable -msecure-plt by default for PowerPC
1699 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1700 Default to platform configuration
1701 --enable-large-address-aware
1702 Link mingw executables with --large-address-aware
1703 --enable-leading-mingw64-underscores
1704 enable leading underscores on 64 bit mingw targets
1705 --enable-cld enable -mcld by default for 32bit x86
1706 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1707 --disable-win32-registry
1708 disable lookup of installation paths in the Registry
1710 --enable-win32-registry enable registry lookup (default)
1711 --enable-win32-registry=KEY
1712 use KEY instead of GCC version as the last portion
1714 --enable-shared[=PKGS] build shared libraries [default=yes]
1715 --enable-static[=PKGS] build static libraries [default=yes]
1716 --enable-fast-install[=PKGS]
1717 optimize for fast installation [default=yes]
1718 --disable-libtool-lock avoid locking (might break parallel builds)
1719 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1720 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1721 --enable-gnu-indirect-function
1722 enable the use of the @gnu_indirect_function to
1724 --enable-initfini-array use .init_array/.fini_array sections
1725 --enable-comdat enable COMDAT group support
1726 --enable-newlib-nano-formatted-io
1727 Use nano version formatted IO
1729 --enable-standard-branch-protection
1730 enable Branch Target Identification Mechanism and
1731 Return Address Signing by default for AArch64
1732 --disable-standard-branch-protection
1733 disable Branch Target Identification Mechanism and
1734 Return Address Signing by default for AArch64
1737 --enable-fix-cortex-a53-835769
1738 enable workaround for AArch64 Cortex-A53 erratum
1740 --disable-fix-cortex-a53-835769
1741 disable workaround for AArch64 Cortex-A53 erratum
1745 --enable-fix-cortex-a53-843419
1746 enable workaround for AArch64 Cortex-A53 erratum
1748 --disable-fix-cortex-a53-843419
1749 disable workaround for AArch64 Cortex-A53 erratum
1752 --enable-gnu-unique-object
1753 enable the use of the @gnu_unique_object ELF
1754 extension on glibc systems
1755 --enable-linker-build-id
1756 compiler will always pass --build-id to linker
1757 --enable-libssp enable linking against libssp
1758 --enable-default-ssp enable Stack Smashing Protection as default
1759 --enable-maintainer-mode
1760 enable make rules and dependencies not useful (and
1761 sometimes confusing) to the casual installer
1762 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1763 thrashing on the build machine
1764 --enable-version-specific-runtime-libs
1765 specify that runtime libraries should be installed
1766 in a compiler-specific directory
1767 --enable-plugin enable plugin support
1768 --enable-host-shared build host code as shared libraries
1769 --disable-libquadmath-support
1770 disable libquadmath support for Fortran
1771 --enable-default-pie enable Position Independent Executable as default
1774 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1775 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1776 --with-build-libsubdir=DIR Directory where to find libraries for build system
1777 --with-local-prefix=DIR specifies directory to put local include
1778 --with-native-system-header-dir=dir
1779 use dir as the directory to look for standard
1780 system header files in. Defaults to /usr/include.
1781 --with-build-sysroot=sysroot
1782 use sysroot as the system root during the build
1783 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1784 --with-gxx-include-dir=DIR
1785 specifies directory to put g++ header files
1786 --with-cpp-install-dir=DIR
1787 install the user visible C preprocessor in DIR
1788 (relative to PREFIX) as well as PREFIX/bin
1789 --with-gnu-ld arrange to work with GNU ld
1790 --with-ld arrange to use the specified ld (full pathname)
1791 --with-demangler-in-ld try to use demangler in GNU ld
1792 --with-gnu-as arrange to work with GNU as
1793 --with-as arrange to use the specified as (full pathname)
1794 --with-stabs arrange to use stabs instead of host debug format
1795 --with-stack-clash-protection-guard-size=size
1796 Set the default stack clash protection guard size
1797 for specific targets as a power of two in bytes.
1798 --with-dwarf2 force the default debug format to be DWARF 2
1799 --with-specs=SPECS add SPECS to driver command-line processing
1800 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1801 --with-bugurl=URL Direct users to URL to report a bug
1802 --with-documentation-root-url=URL
1803 Root for documentation URLs
1804 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1805 --with-zstd=PATH specify prefix directory for installed zstd library.
1806 Equivalent to --with-zstd-include=PATH/include plus
1807 --with-zstd-lib=PATH/lib
1808 --with-zstd-include=PATH
1809 specify directory for installed zstd include files
1810 --with-zstd-lib=PATH specify directory for the installed zstd library
1811 --with-gnu-ld assume the C compiler uses GNU ld default=no
1812 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1813 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1814 --with-gcc-major-version-only
1815 use only GCC major number
in filesystem paths
1816 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1818 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1819 --with-plugin-ld=[ARG
] specify the plugin linker
1820 --with-glibc-version=M.N
1821 assume GCC used with glibc version M.N or later
1822 --with-long-double-128 use
128-bit long double by default
1823 --with-long-double-format={ieee
,ibm
}
1824 Specify whether PowerPC long double uses IEEE or IBM format
1826 --with-gc={page
,zone
} this option is not supported anymore. It used to
1827 choose the garbage collection mechanism to use with
1829 --with-system-zlib use installed libz
1830 --with-linker-hash-style={sysv
,gnu
,both
}
1831 specify the linker
hash style
1832 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1833 specify the default of
-fdiagnostics-color option
1834 auto-if-env stands
for -fdiagnostics-color=auto
if
1835 GCC_COLOR environment variable is present and
1836 -fdiagnostics-color=never otherwise
1838 Some influential environment variables
:
1839 CC C compiler
command
1840 CFLAGS C compiler flags
1841 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1842 nonstandard directory
<lib dir
>
1843 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1844 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1845 you have headers
in a nonstandard directory
<include dir
>
1846 CXX C
++ compiler
command
1847 CXXFLAGS C
++ compiler flags
1848 CXXCPP C
++ preprocessor
1850 GMPLIBS How to link GMP
1851 GMPINC How to
find GMP include files
1852 ISLLIBS How to link isl
1853 ISLINC How to
find isl include files
1855 Use these variables to override the choices made by
`configure' or to help
1856 it to find libraries and programs with nonstandard names/locations.
1858 Report bugs to the package provider.
1863 if test "$ac_init_help" = "recursive"; then
1864 # If there are subdirs, report their specific --help.
1865 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1866 test -d "$ac_dir" ||
1867 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1872 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1874 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1875 # A ".." for each directory in $ac_dir_suffix.
1876 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1877 case $ac_top_builddir_sub in
1878 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1879 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1882 ac_abs_top_builddir=$ac_pwd
1883 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1884 # for backward compatibility:
1885 ac_top_builddir=$ac_top_build_prefix
1888 .) # We are building in place.
1890 ac_top_srcdir=$ac_top_builddir_sub
1891 ac_abs_top_srcdir=$ac_pwd ;;
1892 [\\/]* | ?:[\\/]* ) # Absolute name.
1893 ac_srcdir=$srcdir$ac_dir_suffix;
1894 ac_top_srcdir=$srcdir
1895 ac_abs_top_srcdir=$srcdir ;;
1897 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1898 ac_top_srcdir=$ac_top_build_prefix$srcdir
1899 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1901 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1903 cd "$ac_dir" || { ac_status=$?; continue; }
1904 # Check for guested configure.
1905 if test -f "$ac_srcdir/configure.gnu"; then
1907 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1908 elif test -f "$ac_srcdir/configure"; then
1910 $SHELL "$ac_srcdir/configure" --help=recursive
1912 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1914 cd "$ac_pwd" || { ac_status=$?; break; }
1918 test -n "$ac_init_help" && exit $ac_status
1919 if $ac_init_version; then
1922 generated by GNU Autoconf 2.69
1924 Copyright (C) 2012 Free Software Foundation, Inc.
1925 This configure script is free software; the Free Software Foundation
1926 gives unlimited permission to copy, distribute and modify it.
1931 ## ------------------------ ##
1932 ## Autoconf initialization. ##
1933 ## ------------------------ ##
1935 # ac_fn_c_try_compile LINENO
1936 # --------------------------
1937 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_c_try_compile ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 rm -f conftest.$ac_objext
1942 if { { ac_try="$ac_compile"
1944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1945 *) ac_try_echo
=$ac_try;;
1947 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_compile") 2>conftest.err
1951 if test -s conftest.err
; then
1952 grep -v '^ *+' conftest.err
>conftest.er1
1953 cat conftest.er1
>&5
1954 mv -f conftest.er1 conftest.err
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && {
1958 test -z "$ac_c_werror_flag" ||
1959 test ! -s conftest.err
1960 } && test -s conftest.
$ac_objext; then :
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.
$ac_ext >&5
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status
$ac_retval
1971 } # ac_fn_c_try_compile
1973 # ac_fn_cxx_try_compile LINENO
1974 # ----------------------------
1975 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1976 ac_fn_cxx_try_compile
()
1978 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1979 rm -f conftest.
$ac_objext
1980 if { { ac_try
="$ac_compile"
1982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_compile") 2>conftest.err
1989 if test -s conftest.err; then
1990 grep -v '^ *+' conftest.err >conftest.er1
1991 cat conftest.er1 >&5
1992 mv -f conftest.er1 conftest.err
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } && {
1996 test -z "$ac_cxx_werror_flag" ||
1997 test ! -s conftest.err
1998 } && test -s conftest.$ac_objext; then :
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2009 } # ac_fn_cxx_try_compile
2011 # ac_fn_cxx_try_cpp LINENO
2012 # ------------------------
2013 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_cxx_try_cpp ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 if { { ac_try="$ac_cpp conftest.$ac_ext"
2019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2020 *) ac_try_echo
=$ac_try;;
2022 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2026 if test -s conftest.err
; then
2027 grep -v '^ *+' conftest.err
>conftest.er1
2028 cat conftest.er1
>&5
2029 mv -f conftest.er1 conftest.err
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } > conftest.i
&& {
2033 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2034 test ! -s conftest.err
2038 $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.
$ac_ext >&5
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 as_fn_set_status
$ac_retval
2046 } # ac_fn_cxx_try_cpp
2048 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2049 # ---------------------------------------------------------
2050 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2051 # the include files in INCLUDES and setting the cache variable VAR
2053 ac_fn_cxx_check_header_mongrel
()
2055 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2056 if eval \
${$3+:} false
; then :
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \
${$3+:} false
; then :
2060 $as_echo_n "(cached) " >&6
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2066 # Is the header compilable?
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2068 $as_echo_n "checking $2 usability... " >&6; }
2069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2074 if ac_fn_cxx_try_compile
"$LINENO"; then :
2075 ac_header_compiler
=yes
2077 ac_header_compiler
=no
2079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2081 $as_echo "$ac_header_compiler" >&6; }
2083 # Is the header present?
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2085 $as_echo_n "checking $2 presence... " >&6; }
2086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2090 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2091 ac_header_preproc
=yes
2093 ac_header_preproc
=no
2095 rm -f conftest.err conftest.i conftest.
$ac_ext
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2097 $as_echo "$ac_header_preproc" >&6; }
2099 # So? What about this header?
2100 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2103 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2105 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2109 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2111 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2113 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2115 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2117 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121 $as_echo_n "checking for $2... " >&6; }
2122 if eval \
${$3+:} false
; then :
2123 $as_echo_n "(cached) " >&6
2125 eval "$3=\$ac_header_compiler"
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_cxx_check_header_mongrel
2135 # ac_fn_cxx_try_run LINENO
2136 # ------------------------
2137 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2138 # that executables *can* be run.
2139 ac_fn_cxx_try_run
()
2141 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2142 if { { ac_try
="$ac_link"
2144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_link") 2>&5
2151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2153 { { case "(($ac_try" in
2154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2155 *) ac_try_echo
=$ac_try;;
2157 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159 (eval "$ac_try") 2>&5
2161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162 test $ac_status = 0; }; }; then :
2165 $as_echo "$as_me: program exited with status $ac_status" >&5
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.
$ac_ext >&5
2169 ac_retval
=$ac_status
2171 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 as_fn_set_status
$ac_retval
2175 } # ac_fn_cxx_try_run
2177 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2178 # ---------------------------------------------------------
2179 # Tests whether HEADER exists and can be compiled using the include files in
2180 # INCLUDES, setting the cache variable VAR accordingly.
2181 ac_fn_cxx_check_header_compile
()
2183 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if eval \
${$3+:} false
; then :
2187 $as_echo_n "(cached) " >&6
2189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2194 if ac_fn_cxx_try_compile
"$LINENO"; then :
2199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 $as_echo "$ac_res" >&6; }
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 } # ac_fn_cxx_check_header_compile
2208 # ac_fn_c_try_cpp LINENO
2209 # ----------------------
2210 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2213 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2214 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 $as_echo "$ac_try_echo"; } >&5
2221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2223 if test -s conftest.err; then
2224 grep -v '^ *+' conftest.err >conftest.er1
2225 cat conftest.er1 >&5
2226 mv -f conftest.er1 conftest.err
2228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2229 test $ac_status = 0; } > conftest.i && {
2230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2231 test ! -s conftest.err
2235 $as_echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2240 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241 as_fn_set_status $ac_retval
2245 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2246 # ----------------------------------------------
2247 # Tries to find the compile-time value of EXPR in a program that includes
2248 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2250 ac_fn_cxx_compute_int ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if test "$cross_compiling" = yes; then
2254 # Depending upon the size, compute the lo and hi bounds.
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2261 static int test_array [1 - 2 * !(($2) >= 0)];
2263 return test_array [0];
2269 if ac_fn_cxx_try_compile "$LINENO"; then :
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2278 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2280 return test_array [0];
2286 if ac_fn_cxx_try_compile "$LINENO"; then :
2287 ac_hi=$ac_mid; break
2289 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2290 if test $ac_lo -le $ac_mid; then
2294 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2305 static int test_array [1 - 2 * !(($2) < 0)];
2307 return test_array [0];
2313 if ac_fn_cxx_try_compile "$LINENO"; then :
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2322 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2324 return test_array [0];
2330 if ac_fn_cxx_try_compile "$LINENO"; then :
2331 ac_lo=$ac_mid; break
2333 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2334 if test $ac_mid -le $ac_hi; then
2338 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 # Binary search between lo and hi bounds.
2349 while test "x$ac_lo" != "x$ac_hi"; do
2350 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2357 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2359 return test_array [0];
2365 if ac_fn_cxx_try_compile "$LINENO"; then :
2368 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2380 static long int longval () { return $2; }
2381 static unsigned long int ulongval () { return $2; }
2388 FILE *f = fopen ("conftest.val", "w");
2393 long int i = longval ();
2396 fprintf (f, "%ld", i);
2400 unsigned long int i = ulongval ();
2403 fprintf (f, "%lu", i);
2405 /* Do not output a trailing newline, as this causes \r\n confusion
2406 on some platforms. */
2407 return ferror (f) || fclose (f) != 0;
2413 if ac_fn_cxx_try_run "$LINENO"; then :
2414 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2419 conftest.$ac_objext conftest.beam conftest.$ac_ext
2423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2424 as_fn_set_status $ac_retval
2426 } # ac_fn_cxx_compute_int
2428 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2429 # ---------------------------------------------
2430 # Tests whether TYPE exists after having included INCLUDES, setting cache
2431 # variable VAR accordingly.
2432 ac_fn_cxx_check_type ()
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2436 $as_echo_n "checking for $2... " >&6; }
2437 if eval \${$3+:} false; then :
2438 $as_echo_n "(cached) " >&6
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2453 if ac_fn_cxx_try_compile "$LINENO"; then :
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2466 if ac_fn_cxx_try_compile "$LINENO"; then :
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477 $as_echo "$ac_res" >&6; }
2478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2480 } # ac_fn_cxx_check_type
2482 # ac_fn_c_find_intX_t LINENO BITS VAR
2483 # -----------------------------------
2484 # Finds a signed integer type with width BITS, setting cache variable VAR
2486 ac_fn_c_find_intX_t ()
2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2490 $as_echo_n "checking for int$2_t... " >&6; }
2491 if eval \${$3+:} false; then :
2492 $as_echo_n "(cached) " >&6
2495 # Order is important - never check a type that is potentially smaller
2496 # than half of the expected target width.
2497 for ac_type in int$2_t 'int' 'long int' \
2498 'long long int' 'short int' 'signed char'; do
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2501 $ac_includes_default
2502 enum { N = $2 / 2 - 1 };
2506 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2508 return test_array [0];
2514 if ac_fn_cxx_try_compile "$LINENO"; then :
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h. */
2517 $ac_includes_default
2518 enum { N = $2 / 2 - 1 };
2522 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2523 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2525 return test_array [0];
2531 if ac_fn_cxx_try_compile "$LINENO"; then :
2538 eval "$3=\$ac_type" ;;
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544 if eval test \"x\$"$3"\" = x"no"; then :
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2553 $as_echo "$ac_res" >&6; }
2554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556 } # ac_fn_c_find_intX_t
2558 # ac_fn_cxx_try_link LINENO
2559 # -------------------------
2560 # Try to link conftest.$ac_ext, and return whether this succeeded.
2561 ac_fn_cxx_try_link ()
2563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2564 rm -f conftest.$ac_objext conftest$ac_exeext
2565 if { { ac_try="$ac_link"
2567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2568 *) ac_try_echo
=$ac_try;;
2570 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2571 $as_echo "$ac_try_echo"; } >&5
2572 (eval "$ac_link") 2>conftest.err
2574 if test -s conftest.err
; then
2575 grep -v '^ *+' conftest.err
>conftest.er1
2576 cat conftest.er1
>&5
2577 mv -f conftest.er1 conftest.err
2579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2580 test $ac_status = 0; } && {
2581 test -z "$ac_cxx_werror_flag" ||
2582 test ! -s conftest.err
2583 } && test -s conftest
$ac_exeext && {
2584 test "$cross_compiling" = yes ||
2585 test -x conftest
$ac_exeext
2589 $as_echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.
$ac_ext >&5
2594 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2595 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2596 # interfere with the next link command; also delete a directory that is
2597 # left behind by Apple's compiler. We do this before executing the actions.
2598 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2600 as_fn_set_status
$ac_retval
2602 } # ac_fn_cxx_try_link
2604 # ac_fn_c_find_uintX_t LINENO BITS VAR
2605 # ------------------------------------
2606 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2608 ac_fn_c_find_uintX_t
()
2610 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2612 $as_echo_n "checking for uint$2_t... " >&6; }
2613 if eval \
${$3+:} false
; then :
2614 $as_echo_n "(cached) " >&6
2617 # Order is important - never check a type that is potentially smaller
2618 # than half of the expected target width.
2619 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2620 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h. */
2623 $ac_includes_default
2627 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2629 return test_array [0];
2635 if ac_fn_cxx_try_compile
"$LINENO"; then :
2640 eval "$3=\$ac_type" ;;
2643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2644 if eval test \"x\$
"$3"\" = x
"no"; then :
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2653 $as_echo "$ac_res" >&6; }
2654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2656 } # ac_fn_c_find_uintX_t
2658 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2659 # ------------------------------------------------
2660 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2661 ac_fn_cxx_check_header_preproc
()
2663 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2665 $as_echo_n "checking for $2... " >&6; }
2666 if eval \
${$3+:} false
; then :
2667 $as_echo_n "(cached) " >&6
2669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2673 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2678 rm -f conftest.err conftest.i conftest.
$ac_ext
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2682 $as_echo "$ac_res" >&6; }
2683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2685 } # ac_fn_cxx_check_header_preproc
2687 # ac_fn_cxx_check_func LINENO FUNC VAR
2688 # ------------------------------------
2689 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2690 ac_fn_cxx_check_func
()
2692 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2694 $as_echo_n "checking for $2... " >&6; }
2695 if eval \
${$3+:} false
; then :
2696 $as_echo_n "(cached) " >&6
2698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2700 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2702 #define $2 innocuous_$2
2704 /* System header to define __stub macros and hopefully few prototypes,
2705 which can conflict with char $2 (); below.
2706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2707 <limits.h> exists even on freestanding compilers. */
2710 # include <limits.h>
2712 # include <assert.h>
2717 /* Override any GCC internal prototype to avoid an error.
2718 Use char because int might match the return type of a GCC
2719 builtin and then its argument prototype would still apply. */
2724 /* The GNU C library defines this for functions which it implements
2725 to always fail with ENOSYS. Some functions are actually named
2726 something starting with __ and the normal name is an alias. */
2727 #if defined __stub_$2 || defined __stub___$2
2739 if ac_fn_cxx_try_link
"$LINENO"; then :
2744 rm -f core conftest.err conftest.
$ac_objext \
2745 conftest
$ac_exeext conftest.
$ac_ext
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2749 $as_echo "$ac_res" >&6; }
2750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2752 } # ac_fn_cxx_check_func
2754 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2755 # -----------------------------------------------
2756 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2758 ac_fn_cxx_check_decl
()
2760 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2761 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2762 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2764 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2765 if eval \
${$3+:} false
; then :
2766 $as_echo_n "(cached) " >&6
2768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2769 /* end confdefs.h. */
2774 #ifndef $as_decl_name
2776 (void) $as_decl_use;
2778 (void) $as_decl_name;
2786 if ac_fn_cxx_try_compile
"$LINENO"; then :
2791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2795 $as_echo "$ac_res" >&6; }
2796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2798 } # ac_fn_cxx_check_decl
2800 # ac_fn_c_try_link LINENO
2801 # -----------------------
2802 # Try to link conftest.$ac_ext, and return whether this succeeded.
2805 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2806 rm -f conftest.
$ac_objext conftest
$ac_exeext
2807 if { { ac_try
="$ac_link"
2809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2813 $as_echo "$ac_try_echo"; } >&5
2814 (eval "$ac_link") 2>conftest.err
2816 if test -s conftest.err; then
2817 grep -v '^ *+' conftest.err >conftest.er1
2818 cat conftest.er1 >&5
2819 mv -f conftest.er1 conftest.err
2821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2822 test $ac_status = 0; } && {
2823 test -z "$ac_c_werror_flag" ||
2824 test ! -s conftest.err
2825 } && test -s conftest$ac_exeext && {
2826 test "$cross_compiling" = yes ||
2827 test -x conftest$ac_exeext
2831 $as_echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2838 # interfere with the next link command; also delete a directory that is
2839 # left behind by Apple's compiler. We do this before executing the actions.
2840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2842 as_fn_set_status $ac_retval
2844 } # ac_fn_c_try_link
2846 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2847 # ----------------------------------------------
2848 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2849 ac_fn_c_check_header_preproc ()
2851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2853 $as_echo_n "checking for $2... " >&6; }
2854 if eval \${$3+:} false; then :
2855 $as_echo_n "(cached) " >&6
2857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858 /* end confdefs.h. */
2861 if ac_fn_c_try_cpp "$LINENO"; then :
2866 rm -f conftest.err conftest.i conftest.$ac_ext
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2870 $as_echo "$ac_res" >&6; }
2871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2873 } # ac_fn_c_check_header_preproc
2875 # ac_fn_c_check_func LINENO FUNC VAR
2876 # ----------------------------------
2877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2878 ac_fn_c_check_func ()
2880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2882 $as_echo_n "checking for $2... " >&6; }
2883 if eval \${$3+:} false; then :
2884 $as_echo_n "(cached) " >&6
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2890 #define $2 innocuous_$2
2892 /* System header to define __stub macros and hopefully few prototypes,
2893 which can conflict with char $2 (); below.
2894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895 <limits.h> exists even on freestanding compilers. */
2898 # include <limits.h>
2900 # include <assert.h>
2905 /* Override any GCC internal prototype to avoid an error.
2906 Use char because int might match the return type of a GCC
2907 builtin and then its argument prototype would still apply. */
2912 /* The GNU C library defines this for functions which it implements
2913 to always fail with ENOSYS. Some functions are actually named
2914 something starting with __ and the normal name is an alias. */
2915 #if defined __stub_$2 || defined __stub___$2
2927 if ac_fn_c_try_link "$LINENO"; then :
2932 rm -f core conftest.err conftest.$ac_objext \
2933 conftest$ac_exeext conftest.$ac_ext
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2937 $as_echo "$ac_res" >&6; }
2938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2940 } # ac_fn_c_check_func
2941 cat >config.log <<_ACEOF
2942 This file contains any messages produced by compilers while
2943 running configure, to aid debugging if configure makes a mistake.
2945 It was created by $as_me, which was
2946 generated by GNU Autoconf 2.69. Invocation command line was
2958 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2959 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2960 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2961 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2962 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2964 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2965 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2967 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2968 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2969 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2970 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2971 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2972 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2973 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 $as_echo "PATH: $as_dir"
2998 # Keep a trace of the command line.
2999 # Strip out --no-create and --no-recursion so they do not pile up.
3000 # Strip out --silent because we don't want to record it for future runs.
3001 # Also quote any args containing shell meta-characters.
3002 # Make two passes to allow for proper duplicate-argument suppression.
3006 ac_must_keep_next=false
3012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3014 | -silent | --silent | --silen | --sile | --sil)
3017 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3020 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3022 as_fn_append ac_configure_args1 " '$ac_arg'"
3023 if test $ac_must_keep_next = true; then
3024 ac_must_keep_next=false # Got value, back to normal.
3027 *=* | --config-cache | -C | -disable-* | --disable-* \
3028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3030 | -with-* | --with-* | -without-* | --without-* | --x)
3031 case "$ac_configure_args0 " in
3032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3035 -* ) ac_must_keep_next=true ;;
3038 as_fn_append ac_configure_args " '$ac_arg'"
3043 { ac_configure_args0=; unset ac_configure_args0;}
3044 { ac_configure_args1=; unset ac_configure_args1;}
3046 # When interrupted or exit'd, cleanup temporary files, and complete
3047 # config.log. We remove comments because anyway the quotes in there
3048 # would cause problems or look ugly.
3049 # WARNING: Use '\'' to represent an apostrophe within the trap.
3050 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3051 trap 'exit_status=$?
3052 # Save into config.log some information that might help in debugging.
3056 $as_echo "## ---------------- ##
3057 ## Cache variables. ##
3058 ## ---------------- ##"
3060 # The following way of writing the cache mishandles newlines in values,
3062 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3063 eval ac_val=\$$ac_var
3067 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3071 _ | IFS | as_nl) ;; #(
3072 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3073 *) { eval $ac_var=; unset $ac_var;} ;;
3078 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3079 *${as_nl}ac_space=\ *)
3081 "s/'\''/'\''\\\\'\'''\''/g;
3082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3092 $as_echo "## ----------------- ##
3093 ## Output variables. ##
3094 ## ----------------- ##"
3096 for ac_var in $ac_subst_vars
3098 eval ac_val=\$$ac_var
3100 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3102 $as_echo "$ac_var='\''$ac_val'\''"
3106 if test -n "$ac_subst_files"; then
3107 $as_echo "## ------------------- ##
3108 ## File substitutions. ##
3109 ## ------------------- ##"
3111 for ac_var in $ac_subst_files
3113 eval ac_val=\$$ac_var
3115 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3117 $as_echo "$ac_var='\''$ac_val'\''"
3122 if test -s confdefs.h; then
3123 $as_echo "## ----------- ##
3130 test "$ac_signal" != 0 &&
3131 $as_echo "$as_me: caught signal $ac_signal"
3132 $as_echo "$as_me: exit $exit_status"
3134 rm -f core *.core core.conftest.* &&
3135 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3138 for ac_signal in 1 2 13 15; do
3139 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3144 rm -f -r conftest* confdefs.h
3146 $as_echo "/* confdefs.h */" > confdefs.h
3148 # Predefined preprocessor variables.
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE_NAME "$PACKAGE_NAME"
3154 cat >>confdefs.h <<_ACEOF
3155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE_STRING "$PACKAGE_STRING"
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_URL "$PACKAGE_URL"
3175 # Let the site file select an alternate cache file if it wants to.
3176 # Prefer an explicitly selected file to automatically selected ones.
3179 if test -n "$CONFIG_SITE"; then
3180 # We do not want a PATH search for config.site.
3181 case $CONFIG_SITE in #((
3182 -*) ac_site_file1=./$CONFIG_SITE;;
3183 */*) ac_site_file1=$CONFIG_SITE;;
3184 *) ac_site_file1=./$CONFIG_SITE;;
3186 elif test "x$prefix" != xNONE; then
3187 ac_site_file1=$prefix/share/config.site
3188 ac_site_file2=$prefix/etc/config.site
3190 ac_site_file1=$ac_default_prefix/share/config.site
3191 ac_site_file2=$ac_default_prefix/etc/config.site
3193 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3195 test "x$ac_site_file" = xNONE && continue
3196 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3198 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3199 sed 's/^/| /' "$ac_site_file" >&5
3201 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $? "failed to load site
script $ac_site_file
3204 See \
`config.log' for more details" "$LINENO" 5; }
3208 if test -r "$cache_file"; then
3209 # Some versions of bash will fail to source /dev/null (special files
3210 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3211 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3213 $as_echo "$as_me: loading cache $cache_file" >&6;}
3215 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3216 *) . "./$cache_file";;
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3221 $as_echo "$as_me: creating cache $cache_file" >&6;}
3225 # Check that the precious variables saved in the cache have kept the same
3227 ac_cache_corrupted=false
3228 for ac_var in $ac_precious_vars; do
3229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3230 eval ac_new_set=\$ac_env_${ac_var}_set
3231 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3232 eval ac_new_val=\$ac_env_${ac_var}_value
3233 case $ac_old_set,$ac_new_set in
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3236 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3237 ac_cache_corrupted=: ;;
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3240 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3241 ac_cache_corrupted=: ;;
3244 if test "x$ac_old_val" != "x$ac_new_val"; then
3245 # differences in whitespace do not lead to failure.
3246 ac_old_val_w=`echo x
$ac_old_val`
3247 ac_new_val_w=`echo x
$ac_new_val`
3248 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3250 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3251 ac_cache_corrupted=:
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3254 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3255 eval $ac_var=\$ac_old_val
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3258 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3260 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3263 # Pass precious variables to config.status.
3264 if test "$ac_new_set" = set; then
3266 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3267 *) ac_arg=$ac_var=$ac_new_val ;;
3269 case " $ac_configure_args " in
3270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3271 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3275 if $ac_cache_corrupted; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3279 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3280 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3282 ## -------------------- ##
3283 ## Main body of script. ##
3284 ## -------------------- ##
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3300 gcc_version=`cat $srcdir/BASE-VER
`
3302 # Determine the host, build, and target systems
3304 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3305 if test -f "$ac_dir/install-sh"; then
3307 ac_install_sh="$ac_aux_dir/install-sh -c"
3309 elif test -f "$ac_dir/install.sh"; then
3311 ac_install_sh="$ac_aux_dir/install.sh -c"
3313 elif test -f "$ac_dir/shtool"; then
3315 ac_install_sh="$ac_aux_dir/shtool install -c"
3319 if test -z "$ac_aux_dir"; then
3320 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3323 # These three variables are undocumented and unsupported,
3324 # and are intended to be withdrawn in a future Autoconf release.
3325 # They can cause serious problems if a builder's source tree is in a directory
3326 # whose full name contains unusual characters.
3327 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3328 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3329 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3332 # Make sure we can run config.sub.
3333 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3334 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3337 $as_echo_n "checking build system type... " >&6; }
3338 if ${ac_cv_build+:} false; then :
3339 $as_echo_n "(cached) " >&6
3341 ac_build_alias=$build_alias
3342 test "x$ac_build_alias" = x &&
3343 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3344 test "x$ac_build_alias" = x &&
3345 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3346 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3347 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3351 $as_echo "$ac_cv_build" >&6; }
3352 case $ac_cv_build in
3354 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3357 ac_save_IFS=$IFS; IFS='-'
3363 # Remember, the first character of IFS is used to create $*,
3364 # except with old shells:
3367 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3371 $as_echo_n "checking host system type... " >&6; }
3372 if ${ac_cv_host+:} false; then :
3373 $as_echo_n "(cached) " >&6
3375 if test "x$host_alias" = x; then
3376 ac_cv_host=$ac_cv_build
3378 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3379 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3384 $as_echo "$ac_cv_host" >&6; }
3387 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3390 ac_save_IFS=$IFS; IFS='-'
3396 # Remember, the first character of IFS is used to create $*,
3397 # except with old shells:
3400 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3404 $as_echo_n "checking target system type... " >&6; }
3405 if ${ac_cv_target+:} false; then :
3406 $as_echo_n "(cached) " >&6
3408 if test "x$target_alias" = x; then
3409 ac_cv_target=$ac_cv_host
3411 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3417 $as_echo "$ac_cv_target" >&6; }
3418 case $ac_cv_target in
3420 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3422 target=$ac_cv_target
3423 ac_save_IFS=$IFS; IFS='-'
3429 # Remember, the first character of IFS is used to create $*,
3430 # except with old shells:
3433 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3436 # The aliases save the names the user supplied, while $host etc.
3437 # will get canonicalized.
3438 test -n "$target_alias" &&
3439 test "$program_prefix$program_suffix$program_transform_name" = \
3441 program_prefix=${target_alias}-
3443 # Determine the noncanonical host name, for Ada.
3444 case ${build_alias} in
3445 "") build_noncanonical=${build} ;;
3446 *) build_noncanonical=${build_alias} ;;
3449 case ${host_alias} in
3450 "") host_noncanonical=${build_noncanonical} ;;
3451 *) host_noncanonical=${host_alias} ;;
3457 # Determine the noncanonical target name, for directory use.
3458 case ${target_alias} in
3459 "") target_noncanonical=${host_noncanonical} ;;
3460 *) target_noncanonical=${target_alias} ;;
3466 # Used for constructing correct paths for offload compilers.
3467 real_target_noncanonical=${target_noncanonical}
3470 # Determine the target- and build-specific subdirectories
3472 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3473 # have matching libraries, they should use host libraries: Makefile.tpl
3474 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3475 # However, they still use the build modules, because the corresponding
3476 # host modules (e.g. bison) are only built for the host when bootstrap
3478 # - build_subdir is where we find build modules, and never changes.
3479 # - build_libsubdir is where we find build libraries, and can be overridden.
3481 # Prefix 'build-' so this never conflicts with target_subdir.
3482 build_subdir="build-${build_noncanonical}"
3484 # Check whether --with-build-libsubdir was given.
3485 if test "${with_build_libsubdir+set}" = set; then :
3486 withval=$with_build_libsubdir; build_libsubdir="$withval"
3488 build_libsubdir="$build_subdir"
3491 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3492 if ( test $srcdir = . && test -d gcc ) \
3493 || test -d $srcdir/../host-${host_noncanonical}; then
3494 host_subdir="host-${host_noncanonical}"
3499 target_subdir=${target_noncanonical}
3502 # Set program_transform_name
3503 test "$program_prefix" != NONE &&
3504 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3505 # Use a double $ so make ignores it.
3506 test "$program_suffix" != NONE &&
3507 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3508 # Double any \ or $.
3509 # By default was `s
,x
,x
', remove it if useless.
3510 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3511 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3514 # Check for bogus environment variables.
3515 # Test if LIBRARY_PATH contains the notation for the current directory
3516 # since this would lead to problems installing/building glibc.
3517 # LIBRARY_PATH contains the current directory if one of the following
3519 # - one of the terminals (":" and ";") is the first or last sign
3520 # - two terminals occur directly after each other
3521 # - the path contains an element with a dot in it
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3523 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3524 case ${LIBRARY_PATH} in
3525 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3526 library_path_setting="contains current directory"
3529 library_path_setting="ok"
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3533 $as_echo "$library_path_setting" >&6; }
3534 if test "$library_path_setting" != "ok"; then
3536 *** LIBRARY_PATH shouldn't contain the current directory when
3537 *** building gcc. Please change the environment variable
3538 *** and run configure again.
" "$LINENO" 5
3541 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3542 # since this would lead to problems installing/building glibc.
3543 # GCC_EXEC_PREFIX contains the current directory if one of the following
3545 # - one of the terminals (":" and ";") is the first or last sign
3546 # - two terminals occur directly after each other
3547 # - the path contains an element with a dot in it
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3549 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3550 case ${GCC_EXEC_PREFIX} in
3551 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3552 gcc_exec_prefix_setting="contains current directory
"
3555 gcc_exec_prefix_setting="ok
"
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3559 $as_echo "$gcc_exec_prefix_setting" >&6; }
3560 if test "$gcc_exec_prefix_setting" != "ok
"; then
3562 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3563 *** building gcc. Please change the environment variable
3564 *** and run configure again." "$LINENO" 5
3571 # Specify the local prefix
3574 # Check whether --with-local-prefix was given.
3575 if test "${with_local_prefix+set}" = set; then :
3576 withval=$with_local_prefix; case "${withval}" in
3577 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3579 *) local_prefix=$with_local_prefix ;;
3584 # Default local prefix if it is empty
3585 if test x$local_prefix = x; then
3586 local_prefix=/usr/local
3590 # Check whether --with-native-system-header-dir was given.
3591 if test "${with_native_system_header_dir+set}" = set; then :
3592 withval=$with_native_system_header_dir;
3593 case ${with_native_system_header_dir} in
3594 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3595 /* | [A-Za-z]:[\\/]*) ;;
3596 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3598 configured_native_system_header_dir="${withval}"
3601 configured_native_system_header_dir=
3606 # Check whether --with-build-sysroot was given.
3607 if test "${with_build_sysroot+set}" = set; then :
3608 withval=$with_build_sysroot; if test x"$withval" != x ; then
3609 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3612 SYSROOT_CFLAGS_FOR_TARGET=
3617 if test "x$prefix" = xNONE; then
3618 test_prefix=/usr/local
3622 if test "x$exec_prefix" = xNONE; then
3623 test_exec_prefix=$test_prefix
3625 test_exec_prefix=$exec_prefix
3629 # Check whether --with-sysroot was given.
3630 if test "${with_sysroot+set}" = set; then :
3631 withval=$with_sysroot;
3632 case ${with_sysroot} in
3634 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3636 case ${with_sysroot} in
3637 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3638 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3641 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3642 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3644 case ${TARGET_SYSTEM_ROOT} in
3645 "${test_prefix}"|"${test_prefix}/"*|\
3646 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3647 '${prefix}'|'${prefix}/'*|\
3648 '${exec_prefix}'|'${exec_prefix}/'*)
3649 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3650 TARGET_SYSTEM_ROOT_DEFINE="$t"
3657 TARGET_SYSTEM_ROOT_DEFINE=
3658 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3666 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3667 # passed in by the toplevel make and thus we'd get different behavior
3668 # depending on where we built the sources.
3669 gcc_gxx_include_dir
=
3670 # Specify the g++ header file directory
3672 # Check whether --with-gxx-include-dir was given.
3673 if test "${with_gxx_include_dir+set}" = set; then :
3674 withval
=$with_gxx_include_dir; case "${withval}" in
3675 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3677 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3682 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3683 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3684 # relative to the sysroot.
3685 gcc_gxx_include_dir_add_sysroot
=0
3687 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3688 if test x
${gcc_gxx_include_dir} = x
; then
3689 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3690 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3692 libstdcxx_incdir
='include/c++/$(version)'
3693 if test x
$host != x
$target; then
3694 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3696 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3698 elif test "${with_sysroot+set}" = set; then
3699 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3700 if test "${gcc_gxx_without_sysroot}"; then
3701 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3702 gcc_gxx_include_dir_add_sysroot
=1
3707 # Check whether --with-cpp_install_dir was given.
3708 if test "${with_cpp_install_dir+set}" = set; then :
3709 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3710 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3711 elif test x
$withval != xno
; then
3712 cpp_install_dir
=$withval
3717 # We would like to our source tree to be readonly. However when releases or
3718 # pre-releases are generated, the flex/bison generated files as well as the
3719 # various formats of manuals need to be included along with the rest of the
3720 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3724 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3725 # Check whether --enable-generated-files-in-srcdir was given.
3726 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3727 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3729 generated_files_in_srcdir
=no
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3734 $as_echo "$generated_files_in_srcdir" >&6; }
3736 if test "$generated_files_in_srcdir" = "yes"; then
3743 # -------------------
3744 # Find default linker
3745 # -------------------
3749 # Check whether --with-gnu-ld was given.
3750 if test "${with_gnu_ld+set}" = set; then :
3751 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3758 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3762 # With pre-defined ld
3764 # Check whether --with-ld was given.
3765 if test "${with_ld+set}" = set; then :
3766 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3769 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3770 if test ! -x "$DEFAULT_LINKER"; then
3771 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3772 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3774 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3778 cat >>confdefs.h
<<_ACEOF
3779 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3785 $as_echo_n "checking whether a default linker was specified... " >&6; }
3786 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3787 if test x
"$gnu_ld_flag" = x
"no"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3789 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3792 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 $as_echo "no" >&6; }
3799 # With demangler in GNU ld
3801 # Check whether --with-demangler-in-ld was given.
3802 if test "${with_demangler_in_ld+set}" = set; then :
3803 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3809 # ----------------------
3810 # Find default assembler
3811 # ----------------------
3815 # Check whether --with-gnu-as was given.
3816 if test "${with_gnu_as+set}" = set; then :
3817 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3824 # Check whether --with-as was given.
3825 if test "${with_as+set}" = set; then :
3826 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3829 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3830 if test ! -x "$DEFAULT_ASSEMBLER"; then
3831 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3832 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3836 cat >>confdefs.h
<<_ACEOF
3837 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3843 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3844 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3845 if test x
"$gas_flag" = x
"no"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3847 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3850 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3861 # If a non-executable a.out is present (e.g. created by GNU as above even if
3862 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3863 # file, even when creating an executable, so an execution test fails.
3864 # Remove possible default executable files to avoid this.
3866 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3867 # Autoconf includes it.
3868 rm -f a.out a.exe b.out
3870 # Find the native compiler
3872 ac_cpp
='$CPP $CPPFLAGS'
3873 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3876 if test -n "$ac_tool_prefix"; then
3877 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3878 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3880 $as_echo_n "checking for $ac_word... " >&6; }
3881 if ${ac_cv_prog_CC+:} false
; then :
3882 $as_echo_n "(cached) " >&6
3884 if test -n "$CC"; then
3885 ac_cv_prog_CC
="$CC" # Let the user override the test.
3887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3891 test -z "$as_dir" && as_dir
=.
3892 for ac_exec_ext
in '' $ac_executable_extensions; do
3893 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3894 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 if test -n "$CC"; then
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3907 $as_echo "$CC" >&6; }
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910 $as_echo "no" >&6; }
3915 if test -z "$ac_cv_prog_CC"; then
3917 # Extract the first word of "gcc", so it can be a program name with args.
3918 set dummy gcc
; ac_word
=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3922 $as_echo_n "(cached) " >&6
3924 if test -n "$ac_ct_CC"; then
3925 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3931 test -z "$as_dir" && as_dir
=.
3932 for ac_exec_ext
in '' $ac_executable_extensions; do
3933 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3934 ac_cv_prog_ac_ct_CC
="gcc"
3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3945 if test -n "$ac_ct_CC"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3947 $as_echo "$ac_ct_CC" >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3953 if test "x$ac_ct_CC" = x
; then
3956 case $cross_compiling:$ac_tool_warned in
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3960 ac_tool_warned
=yes ;;
3968 if test -z "$CC"; then
3969 if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3971 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 $as_echo_n "checking for $ac_word... " >&6; }
3974 if ${ac_cv_prog_CC+:} false
; then :
3975 $as_echo_n "(cached) " >&6
3977 if test -n "$CC"; then
3978 ac_cv_prog_CC
="$CC" # Let the user override the test.
3980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3984 test -z "$as_dir" && as_dir
=.
3985 for ac_exec_ext
in '' $ac_executable_extensions; do
3986 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 if test -n "$CC"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4000 $as_echo "$CC" >&6; }
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 $as_echo "no" >&6; }
4009 if test -z "$CC"; then
4010 # Extract the first word of "cc", so it can be a program name with args.
4011 set dummy cc
; ac_word
=$2
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013 $as_echo_n "checking for $ac_word... " >&6; }
4014 if ${ac_cv_prog_CC+:} false
; then :
4015 $as_echo_n "(cached) " >&6
4017 if test -n "$CC"; then
4018 ac_cv_prog_CC
="$CC" # Let the user override the test.
4021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir
=.
4026 for ac_exec_ext
in '' $ac_executable_extensions; do
4027 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4028 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4029 ac_prog_rejected
=yes
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 if test $ac_prog_rejected = yes; then
4041 # We found a bogon in the path, so make sure we never use it.
4042 set dummy
$ac_cv_prog_CC
4044 if test $# != 0; then
4045 # We chose a different compiler from the bogus one.
4046 # However, it has the same basename, so the bogon will be chosen
4047 # first if we set CC to just the basename; use the full file name.
4049 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4055 if test -n "$CC"; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4057 $as_echo "$CC" >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4065 if test -z "$CC"; then
4066 if test -n "$ac_tool_prefix"; then
4067 for ac_prog
in cl.exe
4069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4070 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072 $as_echo_n "checking for $ac_word... " >&6; }
4073 if ${ac_cv_prog_CC+:} false
; then :
4074 $as_echo_n "(cached) " >&6
4076 if test -n "$CC"; then
4077 ac_cv_prog_CC
="$CC" # Let the user override the test.
4079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4083 test -z "$as_dir" && as_dir
=.
4084 for ac_exec_ext
in '' $ac_executable_extensions; do
4085 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 if test -n "$CC"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 $as_echo "$CC" >&6; }
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4106 test -n "$CC" && break
4109 if test -z "$CC"; then
4111 for ac_prog
in cl.exe
4113 # Extract the first word of "$ac_prog", so it can be a program name with args.
4114 set dummy
$ac_prog; ac_word
=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4118 $as_echo_n "(cached) " >&6
4120 if test -n "$ac_ct_CC"; then
4121 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4127 test -z "$as_dir" && as_dir
=.
4128 for ac_exec_ext
in '' $ac_executable_extensions; do
4129 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_ac_ct_CC
="$ac_prog"
4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4141 if test -n "$ac_ct_CC"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4143 $as_echo "$ac_ct_CC" >&6; }
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4150 test -n "$ac_ct_CC" && break
4153 if test "x$ac_ct_CC" = x
; then
4156 case $cross_compiling:$ac_tool_warned in
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4160 ac_tool_warned
=yes ;;
4169 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171 as_fn_error $?
"no acceptable C compiler found in \$PATH
4172 See \`config.log' for more details" "$LINENO" 5; }
4174 # Provide some information about the compiler.
4175 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4178 for ac_option
in --version -v -V -qversion; do
4179 { { ac_try
="$ac_compiler $ac_option >&5"
4181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4185 $as_echo "$ac_try_echo"; } >&5
4186 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4188 if test -s conftest.err; then
4190 ... rest of stderr output deleted ...
4191 10q' conftest.err >conftest.er1
4192 cat conftest.er1 >&5
4194 rm -f conftest.er1 conftest.err
4195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4196 test $ac_status = 0; }
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4210 ac_clean_files_save=$ac_clean_files
4211 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4212 # Try to create an executable without -o first, disregard a.out.
4213 # It will help us diagnose broken compilers, and finding out an intuition
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4216 $as_echo_n "checking whether the C compiler works... " >&6; }
4217 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4219 # The possible output files:
4220 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4223 for ac_file in $ac_files
4226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4227 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4232 if { { ac_try="$ac_link_default"
4234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4235 *) ac_try_echo
=$ac_try;;
4237 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238 $as_echo "$ac_try_echo"; } >&5
4239 (eval "$ac_link_default") 2>&5
4241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }; then :
4243 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4244 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4245 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4246 # so that the user can short-circuit this test for compilers unknown to
4248 for ac_file
in $ac_files ''
4250 test -f "$ac_file" ||
continue
4252 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4255 # We found the default executable, but exeext='' is most
4259 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4261 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4263 # We set ac_cv_exeext here because the later test for it is not
4264 # safe: cross compilers may not add the suffix if given an `-o'
4265 # argument, so we may need to know it at that point already.
4266 # Even if this section looks crufty: it has the advantage of
4273 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4278 if test -z "$ac_file"; then :
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4281 $as_echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.
$ac_ext >&5
4284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4286 as_fn_error
77 "C compiler cannot create executables
4287 See \`config.log' for more details" "$LINENO" 5; }
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4290 $as_echo "yes" >&6; }
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4293 $as_echo_n "checking for C compiler default output file name... " >&6; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4295 $as_echo "$ac_file" >&6; }
4296 ac_exeext
=$ac_cv_exeext
4298 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4299 ac_clean_files
=$ac_clean_files_save
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4301 $as_echo_n "checking for suffix of executables... " >&6; }
4302 if { { ac_try
="$ac_link"
4304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_link") 2>&5
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }; then :
4313 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4314 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4315 # work properly (i.e., refer to `conftest.exe'), while it won't with
4317 for ac_file
in conftest.exe conftest conftest.
*; do
4318 test -f "$ac_file" ||
continue
4320 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4321 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4329 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4330 See \`config.log' for more details" "$LINENO" 5; }
4332 rm -f conftest conftest
$ac_cv_exeext
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4334 $as_echo "$ac_cv_exeext" >&6; }
4336 rm -f conftest.
$ac_ext
4337 EXEEXT
=$ac_cv_exeext
4339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4345 FILE *f = fopen ("conftest.out", "w");
4346 return ferror (f) || fclose (f) != 0;
4352 ac_clean_files
="$ac_clean_files conftest.out"
4353 # Check that the compiler produces executables we can run. If not, either
4354 # the compiler is broken, or we cross compile.
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4356 $as_echo_n "checking whether we are cross compiling... " >&6; }
4357 if test "$cross_compiling" != yes; then
4358 { { ac_try
="$ac_link"
4360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4364 $as_echo "$ac_try_echo"; } >&5
4365 (eval "$ac_link") 2>&5
4367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368 test $ac_status = 0; }
4369 if { ac_try='./conftest$ac_cv_exeext'
4370 { { case "(($ac_try" in
4371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4372 *) ac_try_echo
=$ac_try;;
4374 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 $as_echo "$ac_try_echo"; } >&5
4376 (eval "$ac_try") 2>&5
4378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379 test $ac_status = 0; }; }; then
4382 if test "$cross_compiling" = maybe
; then
4385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4387 as_fn_error $?
"cannot run C compiled programs.
4388 If you meant to cross compile, use \`--host'.
4389 See \`config.log' for more details" "$LINENO" 5; }
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4394 $as_echo "$cross_compiling" >&6; }
4396 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4397 ac_clean_files
=$ac_clean_files_save
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4399 $as_echo_n "checking for suffix of object files... " >&6; }
4400 if ${ac_cv_objext+:} false
; then :
4401 $as_echo_n "(cached) " >&6
4403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4414 rm -f conftest.o conftest.obj
4415 if { { ac_try
="$ac_compile"
4417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421 $as_echo "$ac_try_echo"; } >&5
4422 (eval "$ac_compile") 2>&5
4424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425 test $ac_status = 0; }; then :
4426 for ac_file in conftest.o conftest.obj conftest.*; do
4427 test -f "$ac_file" || continue;
4429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4430 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4435 $as_echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4440 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4441 See \
`config.log' for more details" "$LINENO" 5; }
4443 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4446 $as_echo "$ac_cv_objext" >&6; }
4447 OBJEXT=$ac_cv_objext
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4450 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4451 if ${ac_cv_c_compiler_gnu+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4468 if ac_fn_c_try_compile "$LINENO"; then :
4473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4478 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4479 if test $ac_compiler_gnu = yes; then
4484 ac_test_CFLAGS=${CFLAGS+set}
4485 ac_save_CFLAGS=$CFLAGS
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4487 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4488 if ${ac_cv_prog_cc_g+:} false; then :
4489 $as_echo_n "(cached) " >&6
4491 ac_save_c_werror_flag=$ac_c_werror_flag
4492 ac_c_werror_flag=yes
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4506 if ac_fn_c_try_compile "$LINENO"; then :
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4521 if ac_fn_c_try_compile "$LINENO"; then :
4524 ac_c_werror_flag=$ac_save_c_werror_flag
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4537 if ac_fn_c_try_compile "$LINENO"; then :
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 ac_c_werror_flag=$ac_save_c_werror_flag
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4548 $as_echo "$ac_cv_prog_cc_g" >&6; }
4549 if test "$ac_test_CFLAGS" = set; then
4550 CFLAGS=$ac_save_CFLAGS
4551 elif test $ac_cv_prog_cc_g = yes; then
4552 if test "$GCC" = yes; then
4558 if test "$GCC" = yes; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4565 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4566 if ${ac_cv_prog_cc_c89+:} false; then :
4567 $as_echo_n "(cached) " >&6
4569 ac_cv_prog_cc_c89=no
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4577 struct buf { int x; };
4578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4579 static char *e (p, i)
4585 static char *f (char * (*g) (char **, int), char **p, ...)
4590 s = g (p, va_arg (v,int));
4595 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4596 function prototypes and stuff, but not '\xHH' hex character constants.
4597 These don't provoke an error unfortunately, instead are silently treated
4598 as 'x'. The following induces an error, until -std is added to get
4599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4600 array size at least. It's necessary to write '\x00'==0 to get something
4601 that's true only with -std. */
4602 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4604 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4605 inside strings and character constants. */
4607 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4609 int test (int i, double x);
4610 struct s1 {int (*f) (int a);};
4611 struct s2 {int (*f) (double a);};
4612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4618 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4623 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4624 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4626 CC="$ac_save_CC $ac_arg"
4627 if ac_fn_c_try_compile "$LINENO"; then :
4628 ac_cv_prog_cc_c89=$ac_arg
4630 rm -f core conftest.err conftest.$ac_objext
4631 test "x$ac_cv_prog_cc_c89" != "xno" && break
4633 rm -f conftest.$ac_ext
4638 case "x$ac_cv_prog_cc_c89" in
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4641 $as_echo "none needed" >&6; } ;;
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4644 $as_echo "unsupported" >&6; } ;;
4646 CC="$CC $ac_cv_prog_cc_c89"
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4648 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4650 if test "x$ac_cv_prog_cc_c89" != xno; then :
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4661 ac_cpp='$CXXCPP $CPPFLAGS'
4662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4665 if test -z "$CXX"; then
4666 if test -n "$CCC"; then
4669 if test -n "$ac_tool_prefix"; then
4670 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if ${ac_cv_prog_CXX+:} false; then :
4677 $as_echo_n "(cached) " >&6
4679 if test -n "$CXX"; then
4680 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 if test -n "$CXX"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4702 $as_echo "$CXX" >&6; }
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4709 test -n "$CXX" && break
4712 if test -z "$CXX"; then
4714 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy $ac_prog; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4721 $as_echo_n "(cached) " >&6
4723 if test -n "$ac_ct_CXX"; then
4724 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_ac_ct_CXX="$ac_prog"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4744 if test -n "$ac_ct_CXX"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4746 $as_echo "$ac_ct_CXX" >&6; }
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4753 test -n "$ac_ct_CXX" && break
4756 if test "x$ac_ct_CXX" = x; then
4759 case $cross_compiling:$ac_tool_warned in
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763 ac_tool_warned=yes ;;
4771 # Provide some information about the compiler.
4772 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4775 for ac_option in --version -v -V -qversion; do
4776 { { ac_try="$ac_compiler $ac_option >&5"
4778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4779 *) ac_try_echo
=$ac_try;;
4781 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4782 $as_echo "$ac_try_echo"; } >&5
4783 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4785 if test -s conftest.err
; then
4787 ... rest of stderr output deleted ...
4788 10q' conftest.err
>conftest.er1
4789 cat conftest.er1
>&5
4791 rm -f conftest.er1 conftest.err
4792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4793 test $ac_status = 0; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4797 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4798 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4799 $as_echo_n "(cached) " >&6
4801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4815 if ac_fn_cxx_try_compile
"$LINENO"; then :
4820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4821 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4825 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4826 if test $ac_compiler_gnu = yes; then
4831 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4832 ac_save_CXXFLAGS
=$CXXFLAGS
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4834 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4835 if ${ac_cv_prog_cxx_g+:} false
; then :
4836 $as_echo_n "(cached) " >&6
4838 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4839 ac_cxx_werror_flag
=yes
4842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4853 if ac_fn_cxx_try_compile
"$LINENO"; then :
4854 ac_cv_prog_cxx_g
=yes
4857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4868 if ac_fn_cxx_try_compile
"$LINENO"; then :
4871 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4884 if ac_fn_cxx_try_compile
"$LINENO"; then :
4885 ac_cv_prog_cxx_g
=yes
4887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4892 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4895 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4896 if test "$ac_test_CXXFLAGS" = set; then
4897 CXXFLAGS
=$ac_save_CXXFLAGS
4898 elif test $ac_cv_prog_cxx_g = yes; then
4899 if test "$GXX" = yes; then
4905 if test "$GXX" = yes; then
4912 ac_cpp
='$CPP $CPPFLAGS'
4913 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4920 if test -n "$ac_tool_prefix"; then
4921 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4922 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_prog_GNATBIND+:} false
; then :
4926 $as_echo_n "(cached) " >&6
4928 if test -n "$GNATBIND"; then
4929 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4935 test -z "$as_dir" && as_dir
=.
4936 for ac_exec_ext
in '' $ac_executable_extensions; do
4937 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4938 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 GNATBIND
=$ac_cv_prog_GNATBIND
4949 if test -n "$GNATBIND"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4951 $as_echo "$GNATBIND" >&6; }
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4959 if test -z "$ac_cv_prog_GNATBIND"; then
4960 ac_ct_GNATBIND
=$GNATBIND
4961 # Extract the first word of "gnatbind", so it can be a program name with args.
4962 set dummy gnatbind
; ac_word
=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
4966 $as_echo_n "(cached) " >&6
4968 if test -n "$ac_ct_GNATBIND"; then
4969 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4975 test -z "$as_dir" && as_dir
=.
4976 for ac_exec_ext
in '' $ac_executable_extensions; do
4977 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4989 if test -n "$ac_ct_GNATBIND"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4991 $as_echo "$ac_ct_GNATBIND" >&6; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4997 if test "x$ac_ct_GNATBIND" = x
; then
5000 case $cross_compiling:$ac_tool_warned in
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5004 ac_tool_warned
=yes ;;
5006 GNATBIND
=$ac_ct_GNATBIND
5009 GNATBIND
="$ac_cv_prog_GNATBIND"
5012 if test -n "$ac_tool_prefix"; then
5013 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5014 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5018 $as_echo_n "(cached) " >&6
5020 if test -n "$GNATMAKE"; then
5021 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5027 test -z "$as_dir" && as_dir
=.
5028 for ac_exec_ext
in '' $ac_executable_extensions; do
5029 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 GNATMAKE
=$ac_cv_prog_GNATMAKE
5041 if test -n "$GNATMAKE"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5043 $as_echo "$GNATMAKE" >&6; }
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5051 if test -z "$ac_cv_prog_GNATMAKE"; then
5052 ac_ct_GNATMAKE
=$GNATMAKE
5053 # Extract the first word of "gnatmake", so it can be a program name with args.
5054 set dummy gnatmake
; ac_word
=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5058 $as_echo_n "(cached) " >&6
5060 if test -n "$ac_ct_GNATMAKE"; then
5061 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5067 test -z "$as_dir" && as_dir
=.
5068 for ac_exec_ext
in '' $ac_executable_extensions; do
5069 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5070 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5081 if test -n "$ac_ct_GNATMAKE"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5083 $as_echo "$ac_ct_GNATMAKE" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5089 if test "x$ac_ct_GNATMAKE" = x
; then
5092 case $cross_compiling:$ac_tool_warned in
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096 ac_tool_warned
=yes ;;
5098 GNATMAKE
=$ac_ct_GNATMAKE
5101 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5105 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5106 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5107 $as_echo_n "(cached) " >&6
5109 cat >conftest.adb
<<EOF
5110 procedure conftest is begin null; end conftest;
5112 acx_cv_cc_gcc_supports_ada
=no
5113 # There is a bug in old released versions of GCC which causes the
5114 # driver to exit successfully when the appropriate language module
5115 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5116 # Therefore we must check for the error message as well as an
5117 # unsuccessful exit.
5118 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5119 # given a .adb file, but produce no object file. So we must check
5120 # if an object file was really produced to guard against this.
5121 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5122 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5123 acx_cv_cc_gcc_supports_ada
=yes
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5128 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5130 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5137 # Do configure tests with the C++ compiler, since that's what we build with.
5139 ac_cpp
='$CXXCPP $CPPFLAGS'
5140 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5145 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5146 # optimizations to be activated explicitly by the toplevel.
5148 */prev-gcc
/xgcc
*) ;;
5149 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5150 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5155 # Determine PICFLAG for target gnatlib.
5161 # PIC is the default on some targets or must not be used.
5163 # For darwin, common symbols are not allowed in MH_DYLIB files
5165 # If we are using a compiler supporting mdynamic-no-pic
5166 # and the option has been tested as safe to add, then cancel
5167 # it here, since the code generated is incompatible with shared
5169 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5170 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5174 # PIC is the default.
5177 # PIC is the default for 64-bit PA HP-UX.
5179 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5181 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5183 i
[34567]86-*-interix[3-9]*)
5184 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5185 # Instead, we relocate shared libraries at runtime.
5187 i
[34567]86-*-nto-qnx*)
5188 # QNX uses GNU C++, but need to define -shared option too, otherwise
5190 PICFLAG_FOR_TARGET
='-fPIC -shared'
5192 i
[34567]86-pc-msdosdjgpp*)
5193 # DJGPP does not support shared libraries at all.
5196 # On IA64 HP-UX, PIC is the default but the pic flag
5197 # sets the default TLS model and affects inlining.
5198 PICFLAG_FOR_TARGET
=-fPIC
5201 # PIC is the default.
5203 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5204 # All AIX code is PIC.
5207 # Some targets support both -fPIC and -fpic, but prefer the latter.
5209 i
[34567]86-*-* | x86_64-
*-*)
5210 PICFLAG_FOR_TARGET
=-fpic
5212 # FIXME: Override -fPIC default in libgcc only?
5213 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5214 PICFLAG_FOR_TARGET
=-fpic
5216 # FIXME: Simplify to sh*-*-netbsd*?
5217 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5218 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5219 PICFLAG_FOR_TARGET
=-fpic
5221 # Default to -fPIC unless specified otherwise.
5223 PICFLAG_FOR_TARGET
=-fPIC
5227 # If the user explicitly uses -fpic/-fPIC, keep that.
5228 case "${CFLAGS_FOR_TARGET}" in
5230 PICFLAG_FOR_TARGET
=-fpic
5233 PICFLAG_FOR_TARGET
=-fPIC
5239 # -------------------------
5240 # Check C compiler features
5241 # -------------------------
5245 ac_cpp
='$CXXCPP $CPPFLAGS'
5246 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5250 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5251 if test -z "$CXXCPP"; then
5252 if ${ac_cv_prog_CXXCPP+:} false
; then :
5253 $as_echo_n "(cached) " >&6
5255 # Double quotes because CXXCPP needs to be expanded
5256 for CXXCPP
in "$CXX -E" "/lib/cpp"
5259 for ac_cxx_preproc_warn_flag
in '' yes
5261 # Use a header file that comes with gcc, so configuring glibc
5262 # with a fresh cross-compiler works.
5263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5264 # <limits.h> exists even on freestanding compilers.
5265 # On the NeXT, cc -E runs the code through the compiler's parser,
5266 # not just through cpp. "Syntax error" is here to catch this case.
5267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5270 # include <limits.h>
5272 # include <assert.h>
5276 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5279 # Broken: fails on valid input.
5282 rm -f conftest.err conftest.i conftest.
$ac_ext
5284 # OK, works on sane cases. Now check whether nonexistent headers
5285 # can be detected and how.
5286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 #include <ac_nonexistent.h>
5290 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5291 # Broken: success on invalid input.
5294 # Passes both tests.
5298 rm -f conftest.err conftest.i conftest.
$ac_ext
5301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5302 rm -f conftest.i conftest.err conftest.
$ac_ext
5303 if $ac_preproc_ok; then :
5308 ac_cv_prog_CXXCPP
=$CXXCPP
5311 CXXCPP
=$ac_cv_prog_CXXCPP
5313 ac_cv_prog_CXXCPP
=$CXXCPP
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5316 $as_echo "$CXXCPP" >&6; }
5318 for ac_cxx_preproc_warn_flag
in '' yes
5320 # Use a header file that comes with gcc, so configuring glibc
5321 # with a fresh cross-compiler works.
5322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5323 # <limits.h> exists even on freestanding compilers.
5324 # On the NeXT, cc -E runs the code through the compiler's parser,
5325 # not just through cpp. "Syntax error" is here to catch this case.
5326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5329 # include <limits.h>
5331 # include <assert.h>
5335 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5338 # Broken: fails on valid input.
5341 rm -f conftest.err conftest.i conftest.
$ac_ext
5343 # OK, works on sane cases. Now check whether nonexistent headers
5344 # can be detected and how.
5345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 #include <ac_nonexistent.h>
5349 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5350 # Broken: success on invalid input.
5353 # Passes both tests.
5357 rm -f conftest.err conftest.i conftest.
$ac_ext
5360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5361 rm -f conftest.i conftest.err conftest.
$ac_ext
5362 if $ac_preproc_ok; then :
5365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5367 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5368 See \`config.log' for more details" "$LINENO" 5; }
5372 ac_cpp
='$CXXCPP $CPPFLAGS'
5373 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5379 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5380 if ${ac_cv_path_GREP+:} false
; then :
5381 $as_echo_n "(cached) " >&6
5383 if test -z "$GREP"; then
5384 ac_path_GREP_found
=false
5385 # Loop through the user's path and test for each of PROGNAME-LIST
5386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5387 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5390 test -z "$as_dir" && as_dir
=.
5391 for ac_prog
in grep ggrep
; do
5392 for ac_exec_ext
in '' $ac_executable_extensions; do
5393 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5394 as_fn_executable_p
"$ac_path_GREP" ||
continue
5395 # Check for GNU ac_path_GREP and select it if it is found.
5396 # Check for GNU $ac_path_GREP
5397 case `"$ac_path_GREP" --version 2>&1` in
5399 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5402 $as_echo_n 0123456789 >"conftest.in"
5405 cat "conftest.in" "conftest.in" >"conftest.tmp"
5406 mv "conftest.tmp" "conftest.in"
5407 cp "conftest.in" "conftest.nl"
5408 $as_echo 'GREP' >> "conftest.nl"
5409 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5410 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5411 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5412 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5413 # Best one so far, save it but keep looking for a better one
5414 ac_cv_path_GREP
="$ac_path_GREP"
5415 ac_path_GREP_max
=$ac_count
5417 # 10*(2^10) chars as input seems more than enough
5418 test $ac_count -gt 10 && break
5420 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5423 $ac_path_GREP_found && break 3
5428 if test -z "$ac_cv_path_GREP"; then
5429 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5432 ac_cv_path_GREP
=$GREP
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5437 $as_echo "$ac_cv_path_GREP" >&6; }
5438 GREP
="$ac_cv_path_GREP"
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5442 $as_echo_n "checking for egrep... " >&6; }
5443 if ${ac_cv_path_EGREP+:} false
; then :
5444 $as_echo_n "(cached) " >&6
5446 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5447 then ac_cv_path_EGREP
="$GREP -E"
5449 if test -z "$EGREP"; then
5450 ac_path_EGREP_found
=false
5451 # Loop through the user's path and test for each of PROGNAME-LIST
5452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5453 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5456 test -z "$as_dir" && as_dir
=.
5457 for ac_prog
in egrep; do
5458 for ac_exec_ext
in '' $ac_executable_extensions; do
5459 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5460 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5461 # Check for GNU ac_path_EGREP and select it if it is found.
5462 # Check for GNU $ac_path_EGREP
5463 case `"$ac_path_EGREP" --version 2>&1` in
5465 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5468 $as_echo_n 0123456789 >"conftest.in"
5471 cat "conftest.in" "conftest.in" >"conftest.tmp"
5472 mv "conftest.tmp" "conftest.in"
5473 cp "conftest.in" "conftest.nl"
5474 $as_echo 'EGREP' >> "conftest.nl"
5475 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5476 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5477 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5478 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5479 # Best one so far, save it but keep looking for a better one
5480 ac_cv_path_EGREP
="$ac_path_EGREP"
5481 ac_path_EGREP_max
=$ac_count
5483 # 10*(2^10) chars as input seems more than enough
5484 test $ac_count -gt 10 && break
5486 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5489 $ac_path_EGREP_found && break 3
5494 if test -z "$ac_cv_path_EGREP"; then
5495 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5498 ac_cv_path_EGREP
=$EGREP
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5504 $as_echo "$ac_cv_path_EGREP" >&6; }
5505 EGREP
="$ac_cv_path_EGREP"
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5509 $as_echo_n "checking for ANSI C header files... " >&6; }
5510 if ${ac_cv_header_stdc+:} false
; then :
5511 $as_echo_n "(cached) " >&6
5513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5528 if ac_fn_cxx_try_compile
"$LINENO"; then :
5529 ac_cv_header_stdc
=yes
5531 ac_cv_header_stdc
=no
5533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5535 if test $ac_cv_header_stdc = yes; then
5536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5543 $EGREP "memchr" >/dev
/null
2>&1; then :
5546 ac_cv_header_stdc
=no
5552 if test $ac_cv_header_stdc = yes; then
5553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5560 $EGREP "free" >/dev
/null
2>&1; then :
5563 ac_cv_header_stdc
=no
5569 if test $ac_cv_header_stdc = yes; then
5570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5571 if test "$cross_compiling" = yes; then :
5574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5578 #if ((' ' & 0x0FF) == 0x020)
5579 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5580 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5582 # define ISLOWER(c) \
5583 (('a' <= (c) && (c) <= 'i') \
5584 || ('j' <= (c) && (c) <= 'r') \
5585 || ('s' <= (c) && (c) <= 'z'))
5586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5594 for (i = 0; i < 256; i++)
5595 if (XOR (islower (i), ISLOWER (i))
5596 || toupper (i) != TOUPPER (i))
5601 if ac_fn_cxx_try_run
"$LINENO"; then :
5604 ac_cv_header_stdc
=no
5606 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5607 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5613 $as_echo "$ac_cv_header_stdc" >&6; }
5614 if test $ac_cv_header_stdc = yes; then
5616 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5621 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5622 inttypes.h stdint.h unistd.h
5624 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5625 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5627 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5628 cat >>confdefs.h
<<_ACEOF
5629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5638 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5639 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5646 if test "$MINIX" = yes; then
5648 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5651 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5654 $as_echo "#define _MINIX 1" >>confdefs.h
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5660 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5661 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5662 $as_echo_n "(cached) " >&6
5664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5667 # define __EXTENSIONS__ 1
5668 $ac_includes_default
5677 if ac_fn_cxx_try_compile
"$LINENO"; then :
5678 ac_cv_safe_to_define___extensions__
=yes
5680 ac_cv_safe_to_define___extensions__
=no
5682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5685 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5686 test $ac_cv_safe_to_define___extensions__ = yes &&
5687 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5689 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5691 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5693 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5695 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5699 ac_cpp
='$CPP $CPPFLAGS'
5700 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5704 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5705 # On Suns, sometimes $CPP names a directory.
5706 if test -n "$CPP" && test -d "$CPP"; then
5709 if test -z "$CPP"; then
5710 if ${ac_cv_prog_CPP+:} false
; then :
5711 $as_echo_n "(cached) " >&6
5713 # Double quotes because CPP needs to be expanded
5714 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5717 for ac_c_preproc_warn_flag
in '' yes
5719 # Use a header file that comes with gcc, so configuring glibc
5720 # with a fresh cross-compiler works.
5721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722 # <limits.h> exists even on freestanding compilers.
5723 # On the NeXT, cc -E runs the code through the compiler's parser,
5724 # not just through cpp. "Syntax error" is here to catch this case.
5725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5728 # include <limits.h>
5730 # include <assert.h>
5734 if ac_fn_c_try_cpp
"$LINENO"; then :
5737 # Broken: fails on valid input.
5740 rm -f conftest.err conftest.i conftest.
$ac_ext
5742 # OK, works on sane cases. Now check whether nonexistent headers
5743 # can be detected and how.
5744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 #include <ac_nonexistent.h>
5748 if ac_fn_c_try_cpp
"$LINENO"; then :
5749 # Broken: success on invalid input.
5752 # Passes both tests.
5756 rm -f conftest.err conftest.i conftest.
$ac_ext
5759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5760 rm -f conftest.i conftest.err conftest.
$ac_ext
5761 if $ac_preproc_ok; then :
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5774 $as_echo "$CPP" >&6; }
5776 for ac_c_preproc_warn_flag
in '' yes
5778 # Use a header file that comes with gcc, so configuring glibc
5779 # with a fresh cross-compiler works.
5780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5781 # <limits.h> exists even on freestanding compilers.
5782 # On the NeXT, cc -E runs the code through the compiler's parser,
5783 # not just through cpp. "Syntax error" is here to catch this case.
5784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5787 # include <limits.h>
5789 # include <assert.h>
5793 if ac_fn_c_try_cpp
"$LINENO"; then :
5796 # Broken: fails on valid input.
5799 rm -f conftest.err conftest.i conftest.
$ac_ext
5801 # OK, works on sane cases. Now check whether nonexistent headers
5802 # can be detected and how.
5803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 #include <ac_nonexistent.h>
5807 if ac_fn_c_try_cpp
"$LINENO"; then :
5808 # Broken: success on invalid input.
5811 # Passes both tests.
5815 rm -f conftest.err conftest.i conftest.
$ac_ext
5818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5819 rm -f conftest.i conftest.err conftest.
$ac_ext
5820 if $ac_preproc_ok; then :
5823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5825 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5826 See \`config.log' for more details" "$LINENO" 5; }
5830 ac_cpp
='$CXXCPP $CPPFLAGS'
5831 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5836 $as_echo_n "checking for inline... " >&6; }
5837 if ${ac_cv_c_inline+:} false
; then :
5838 $as_echo_n "(cached) " >&6
5841 for ac_kw
in inline __inline__ __inline
; do
5842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5846 static $ac_kw foo_t static_foo () {return 0; }
5847 $ac_kw foo_t foo () {return 0; }
5851 if ac_fn_cxx_try_compile
"$LINENO"; then :
5852 ac_cv_c_inline
=$ac_kw
5854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5855 test "$ac_cv_c_inline" != no
&& break
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5860 $as_echo "$ac_cv_c_inline" >&6; }
5862 case $ac_cv_c_inline in
5865 case $ac_cv_c_inline in
5867 *) ac_val
=$ac_cv_c_inline;;
5869 cat >>confdefs.h
<<_ACEOF
5871 #define inline $ac_val
5878 # Check whether --enable-largefile was given.
5879 if test "${enable_largefile+set}" = set; then :
5880 enableval
=$enable_largefile;
5883 if test "$enable_largefile" != no
; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5886 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5887 if ${ac_cv_sys_largefile_CC+:} false
; then :
5888 $as_echo_n "(cached) " >&6
5890 ac_cv_sys_largefile_CC
=no
5891 if test "$GCC" != yes; then
5894 # IRIX 6.2 and later do not support large files by default,
5895 # so use the C compiler's -n32 option if that helps.
5896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 #include <sys/types.h>
5899 /* Check that off_t can represent 2**63 - 1 correctly.
5900 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5901 since some C++ compilers masquerading as C compilers
5902 incorrectly reject 9223372036854775807. */
5903 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5904 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5905 && LARGE_OFF_T % 2147483647 == 1)
5915 if ac_fn_cxx_try_compile
"$LINENO"; then :
5918 rm -f core conftest.err conftest.
$ac_objext
5920 if ac_fn_cxx_try_compile
"$LINENO"; then :
5921 ac_cv_sys_largefile_CC
=' -n32'; break
5923 rm -f core conftest.err conftest.
$ac_objext
5927 rm -f conftest.
$ac_ext
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5931 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5932 if test "$ac_cv_sys_largefile_CC" != no
; then
5933 CC
=$CC$ac_cv_sys_largefile_CC
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5937 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5938 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5939 $as_echo_n "(cached) " >&6
5942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 #include <sys/types.h>
5945 /* Check that off_t can represent 2**63 - 1 correctly.
5946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5947 since some C++ compilers masquerading as C compilers
5948 incorrectly reject 9223372036854775807. */
5949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5951 && LARGE_OFF_T % 2147483647 == 1)
5961 if ac_fn_cxx_try_compile
"$LINENO"; then :
5962 ac_cv_sys_file_offset_bits
=no
; break
5964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 #define _FILE_OFFSET_BITS 64
5968 #include <sys/types.h>
5969 /* Check that off_t can represent 2**63 - 1 correctly.
5970 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5971 since some C++ compilers masquerading as C compilers
5972 incorrectly reject 9223372036854775807. */
5973 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5974 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5975 && LARGE_OFF_T % 2147483647 == 1)
5985 if ac_fn_cxx_try_compile
"$LINENO"; then :
5986 ac_cv_sys_file_offset_bits
=64; break
5988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5989 ac_cv_sys_file_offset_bits
=unknown
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5994 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5995 case $ac_cv_sys_file_offset_bits in #(
5998 cat >>confdefs.h
<<_ACEOF
5999 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6004 if test $ac_cv_sys_file_offset_bits = unknown
; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6006 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6007 if ${ac_cv_sys_large_files+:} false
; then :
6008 $as_echo_n "(cached) " >&6
6011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 #include <sys/types.h>
6014 /* Check that off_t can represent 2**63 - 1 correctly.
6015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6016 since some C++ compilers masquerading as C compilers
6017 incorrectly reject 9223372036854775807. */
6018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6020 && LARGE_OFF_T % 2147483647 == 1)
6030 if ac_fn_cxx_try_compile
"$LINENO"; then :
6031 ac_cv_sys_large_files
=no
; break
6033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036 #define _LARGE_FILES 1
6037 #include <sys/types.h>
6038 /* Check that off_t can represent 2**63 - 1 correctly.
6039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6040 since some C++ compilers masquerading as C compilers
6041 incorrectly reject 9223372036854775807. */
6042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6044 && LARGE_OFF_T % 2147483647 == 1)
6054 if ac_fn_cxx_try_compile
"$LINENO"; then :
6055 ac_cv_sys_large_files
=1; break
6057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6058 ac_cv_sys_large_files
=unknown
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6063 $as_echo "$ac_cv_sys_large_files" >&6; }
6064 case $ac_cv_sys_large_files in #(
6067 cat >>confdefs.h
<<_ACEOF
6068 #define _LARGE_FILES $ac_cv_sys_large_files
6079 # sizeof(char) is 1 by definition.
6080 # The cast to long int works around a bug in the HP C Compiler
6081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6083 # This bug is HP SR number 8606223364.
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6085 $as_echo_n "checking size of void *... " >&6; }
6086 if ${ac_cv_sizeof_void_p+:} false
; then :
6087 $as_echo_n "(cached) " >&6
6089 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6092 if test "$ac_cv_type_void_p" = yes; then
6093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6095 as_fn_error
77 "cannot compute sizeof (void *)
6096 See \`config.log' for more details" "$LINENO" 5; }
6098 ac_cv_sizeof_void_p
=0
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6104 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6108 cat >>confdefs.h
<<_ACEOF
6109 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6113 # The cast to long int works around a bug in the HP C Compiler
6114 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6115 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6116 # This bug is HP SR number 8606223364.
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6118 $as_echo_n "checking size of short... " >&6; }
6119 if ${ac_cv_sizeof_short+:} false
; then :
6120 $as_echo_n "(cached) " >&6
6122 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6125 if test "$ac_cv_type_short" = yes; then
6126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6128 as_fn_error
77 "cannot compute sizeof (short)
6129 See \`config.log' for more details" "$LINENO" 5; }
6131 ac_cv_sizeof_short
=0
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6137 $as_echo "$ac_cv_sizeof_short" >&6; }
6141 cat >>confdefs.h
<<_ACEOF
6142 #define SIZEOF_SHORT $ac_cv_sizeof_short
6146 # The cast to long int works around a bug in the HP C Compiler
6147 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6148 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6149 # This bug is HP SR number 8606223364.
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6151 $as_echo_n "checking size of int... " >&6; }
6152 if ${ac_cv_sizeof_int+:} false
; then :
6153 $as_echo_n "(cached) " >&6
6155 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6158 if test "$ac_cv_type_int" = yes; then
6159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6161 as_fn_error
77 "cannot compute sizeof (int)
6162 See \`config.log' for more details" "$LINENO" 5; }
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6170 $as_echo "$ac_cv_sizeof_int" >&6; }
6174 cat >>confdefs.h
<<_ACEOF
6175 #define SIZEOF_INT $ac_cv_sizeof_int
6179 # The cast to long int works around a bug in the HP C Compiler
6180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6182 # This bug is HP SR number 8606223364.
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6184 $as_echo_n "checking size of long... " >&6; }
6185 if ${ac_cv_sizeof_long+:} false
; then :
6186 $as_echo_n "(cached) " >&6
6188 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6191 if test "$ac_cv_type_long" = yes; then
6192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6194 as_fn_error
77 "cannot compute sizeof (long)
6195 See \`config.log' for more details" "$LINENO" 5; }
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6203 $as_echo "$ac_cv_sizeof_long" >&6; }
6207 cat >>confdefs.h
<<_ACEOF
6208 #define SIZEOF_LONG $ac_cv_sizeof_long
6212 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6213 if test "x$ac_cv_type_long_long" = xyes
; then :
6215 cat >>confdefs.h
<<_ACEOF
6216 #define HAVE_LONG_LONG 1
6219 # The cast to long int works around a bug in the HP C Compiler
6220 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6221 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6222 # This bug is HP SR number 8606223364.
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6224 $as_echo_n "checking size of long long... " >&6; }
6225 if ${ac_cv_sizeof_long_long+:} false
; then :
6226 $as_echo_n "(cached) " >&6
6228 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6231 if test "$ac_cv_type_long_long" = yes; then
6232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6234 as_fn_error
77 "cannot compute sizeof (long long)
6235 See \`config.log' for more details" "$LINENO" 5; }
6237 ac_cv_sizeof_long_long
=0
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6243 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6247 cat >>confdefs.h
<<_ACEOF
6248 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6254 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6255 case $ac_cv_c_int8_t in #(
6259 cat >>confdefs.h
<<_ACEOF
6260 #define int8_t $ac_cv_c_int8_t
6265 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6266 case $ac_cv_c_int16_t in #(
6270 cat >>confdefs.h
<<_ACEOF
6271 #define int16_t $ac_cv_c_int16_t
6276 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6277 case $ac_cv_c_int32_t in #(
6281 cat >>confdefs.h
<<_ACEOF
6282 #define int32_t $ac_cv_c_int32_t
6287 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6288 case $ac_cv_c_int64_t in #(
6292 cat >>confdefs.h
<<_ACEOF
6293 #define int64_t $ac_cv_c_int64_t
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6300 $as_echo_n "checking for unsigned long long int... " >&6; }
6301 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6302 $as_echo_n "(cached) " >&6
6304 ac_cv_type_unsigned_long_long_int
=yes
6305 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6309 /* For now, do not test the preprocessor; as of 2007 there are too many
6310 implementations with broken preprocessors. Perhaps this can
6311 be revisited in 2012. In the meantime, code should not expect
6312 #if to work with literals wider than 32 bits. */
6313 /* Test literals. */
6314 long long int ll = 9223372036854775807ll;
6315 long long int nll = -9223372036854775807LL;
6316 unsigned long long int ull = 18446744073709551615ULL;
6317 /* Test constant expressions. */
6318 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6320 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6326 /* Test availability of runtime routines for shift and division. */
6327 long long int llmax = 9223372036854775807ll;
6328 unsigned long long int ullmax = 18446744073709551615ull;
6329 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6330 | (llmax / ll) | (llmax % ll)
6331 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6332 | (ullmax / ull) | (ullmax % ull));
6338 if ac_fn_cxx_try_link
"$LINENO"; then :
6341 ac_cv_type_unsigned_long_long_int
=no
6343 rm -f core conftest.err conftest.
$ac_objext \
6344 conftest
$ac_exeext conftest.
$ac_ext
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6348 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6349 if test $ac_cv_type_unsigned_long_long_int = yes; then
6351 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6358 $as_echo_n "checking for long long int... " >&6; }
6359 if ${ac_cv_type_long_long_int+:} false
; then :
6360 $as_echo_n "(cached) " >&6
6362 ac_cv_type_long_long_int
=yes
6363 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6364 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6365 if test $ac_cv_type_long_long_int = yes; then
6366 if test "$cross_compiling" = yes; then :
6369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6374 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6375 # define LLONG_MAX (HALF - 1 + HALF)
6380 long long int n = 1;
6384 long long int m = n << i;
6387 if (LLONG_MAX / 2 < m)
6395 if ac_fn_cxx_try_run
"$LINENO"; then :
6398 ac_cv_type_long_long_int
=no
6400 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6401 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6408 $as_echo "$ac_cv_type_long_long_int" >&6; }
6409 if test $ac_cv_type_long_long_int = yes; then
6411 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6417 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6418 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6420 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6423 test $ac_cv_type_long_long_int = yes \
6424 && ac_type
='long long int' \
6425 || ac_type
='long int'
6427 cat >>confdefs.h
<<_ACEOF
6428 #define intmax_t $ac_type
6435 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6436 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6438 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6441 for ac_type
in 'int' 'long int' 'long long int'; do
6442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 $ac_includes_default
6448 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6450 return test_array [0];
6456 if ac_fn_cxx_try_compile
"$LINENO"; then :
6458 cat >>confdefs.h
<<_ACEOF
6459 #define intptr_t $ac_type
6464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6465 test -z "$ac_type" && break
6470 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6471 case $ac_cv_c_uint8_t in #(
6475 $as_echo "#define _UINT8_T 1" >>confdefs.h
6478 cat >>confdefs.h
<<_ACEOF
6479 #define uint8_t $ac_cv_c_uint8_t
6484 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6485 case $ac_cv_c_uint16_t in #(
6490 cat >>confdefs.h
<<_ACEOF
6491 #define uint16_t $ac_cv_c_uint16_t
6496 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6497 case $ac_cv_c_uint32_t in #(
6501 $as_echo "#define _UINT32_T 1" >>confdefs.h
6504 cat >>confdefs.h
<<_ACEOF
6505 #define uint32_t $ac_cv_c_uint32_t
6510 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6511 case $ac_cv_c_uint64_t in #(
6515 $as_echo "#define _UINT64_T 1" >>confdefs.h
6518 cat >>confdefs.h
<<_ACEOF
6519 #define uint64_t $ac_cv_c_uint64_t
6526 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6527 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6529 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6532 test $ac_cv_type_unsigned_long_long_int = yes \
6533 && ac_type
='unsigned long long int' \
6534 || ac_type
='unsigned long int'
6536 cat >>confdefs.h
<<_ACEOF
6537 #define uintmax_t $ac_type
6544 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6545 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6547 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6550 for ac_type
in 'unsigned int' 'unsigned long int' \
6551 'unsigned long long int'; do
6552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6554 $ac_includes_default
6558 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6560 return test_array [0];
6566 if ac_fn_cxx_try_compile
"$LINENO"; then :
6568 cat >>confdefs.h
<<_ACEOF
6569 #define uintptr_t $ac_type
6574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6575 test -z "$ac_type" && break
6592 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6593 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6596 # check what underlying integer type int64_t uses
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6598 $as_echo_n "checking for int64_t underlying type... " >&6; }
6599 if ${ac_cv_int64_t_type+:} false
; then :
6600 $as_echo_n "(cached) " >&6
6603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6606 #ifdef HAVE_STDINT_H
6609 template <typename T> struct X { };
6611 struct X<long> { typedef long t; };
6621 if ac_fn_cxx_try_compile
"$LINENO"; then :
6622 ac_cv_int64_t_type
=long
6624 ac_cv_int64_t_type
="long long"
6626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6629 $as_echo "$ac_cv_int64_t_type" >&6; }
6630 if test "$ac_cv_int64_t_type" = "long"; then
6632 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6638 #ifdef HAVE_STDINT_H
6641 template <typename T> struct X { };
6643 struct X<long long> { typedef long long t; };
6653 if ac_fn_cxx_try_compile
"$LINENO"; then :
6656 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6662 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6663 if ${ac_cv_std_swap_in_utility+:} false
; then :
6664 $as_echo_n "(cached) " >&6
6667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6675 int a, b; std::swap(a,b);
6680 if ac_fn_cxx_try_compile
"$LINENO"; then :
6681 ac_cv_std_swap_in_utility
=yes
6683 ac_cv_std_swap_in_utility
=no
6685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6688 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6689 if test $ac_cv_std_swap_in_utility = yes; then
6691 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6695 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6696 # If the host compiler is affected by the bug, and we build with optimization
6697 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6698 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6699 # Since there is no reliable feature check for the presence of this bug,
6700 # we simply use a GCC version number check. (This should never trigger for
6701 # stages 2 or 3 of a native bootstrap.)
6703 if test "$GCC" = yes; then
6704 saved_CXXFLAGS
="$CXXFLAGS"
6706 # The following test compilation will succeed if and only if $CXX accepts
6707 # -fno-strict-aliasing *and* is older than GCC 4.3.
6708 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6710 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6714 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6715 #error compiler not affected by placement new aliasing bug
6719 if ac_fn_cxx_try_compile
"$LINENO"; then :
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6721 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6728 CXXFLAGS
="$saved_CXXFLAGS"
6734 # ---------------------
6735 # Warnings and checking
6736 # ---------------------
6738 # Check $CC warning features (if it's GCC).
6739 # We want to use -pedantic, but we don't want warnings about
6742 # * overlong strings
6743 # * C++11 narrowing conversions in { }
6744 # So, we only use -pedantic if we can disable those warnings.
6746 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6747 # Check whether --enable-build-format-warnings was given.
6748 if test "${enable_build_format_warnings+set}" = set; then :
6749 enableval
=$enable_build_format_warnings;
6751 enable_build_format_warnings
=yes
6754 if test $enable_build_format_warnings = no
; then :
6760 ac_cpp
='$CXXCPP $CPPFLAGS'
6761 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6766 save_CXXFLAGS
="$CXXFLAGS"
6767 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
$wf_opt; do
6768 # Do the check with the no- prefix removed since gcc silently
6769 # accepts any -Wno-* option on purpose
6770 case $real_option in
6771 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6772 *) option
=$real_option ;;
6774 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6777 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6778 if eval \
${$as_acx_Woption+:} false
; then :
6779 $as_echo_n "(cached) " >&6
6782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6793 if ac_fn_cxx_try_compile
"$LINENO"; then :
6794 eval "$as_acx_Woption=yes"
6796 eval "$as_acx_Woption=no"
6798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6801 eval ac_res
=\$
$as_acx_Woption
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6803 $as_echo "$ac_res" >&6; }
6804 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6805 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6808 CXXFLAGS
="$save_CXXFLAGS"
6810 ac_cpp
='$CXXCPP $CPPFLAGS'
6811 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6818 ac_cpp
='$CPP $CPPFLAGS'
6819 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6824 save_CFLAGS
="$CFLAGS"
6825 for real_option
in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
; do
6826 # Do the check with the no- prefix removed since gcc silently
6827 # accepts any -Wno-* option on purpose
6828 case $real_option in
6829 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6830 *) option
=$real_option ;;
6832 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6835 $as_echo_n "checking whether $CC supports $option... " >&6; }
6836 if eval \
${$as_acx_Woption+:} false
; then :
6837 $as_echo_n "(cached) " >&6
6840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6851 if ac_fn_c_try_compile
"$LINENO"; then :
6852 eval "$as_acx_Woption=yes"
6854 eval "$as_acx_Woption=no"
6856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6859 eval ac_res
=\$
$as_acx_Woption
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6861 $as_echo "$ac_res" >&6; }
6862 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6863 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6866 CFLAGS
="$save_CFLAGS"
6868 ac_cpp
='$CXXCPP $CPPFLAGS'
6869 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6875 ac_cpp
='$CXXCPP $CPPFLAGS'
6876 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6877 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6878 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6881 save_CXXFLAGS
="$CXXFLAGS"
6882 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6883 # Do the check with the no- prefix removed since gcc silently
6884 # accepts any -Wno-* option on purpose
6885 case $real_option in
6886 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6887 *) option
=$real_option ;;
6889 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6892 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6893 if eval \
${$as_acx_Woption+:} false
; then :
6894 $as_echo_n "(cached) " >&6
6897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6908 if ac_fn_cxx_try_compile
"$LINENO"; then :
6909 eval "$as_acx_Woption=yes"
6911 eval "$as_acx_Woption=no"
6913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6916 eval ac_res
=\$
$as_acx_Woption
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6918 $as_echo "$ac_res" >&6; }
6919 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6920 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6923 CXXFLAGS
="$save_CXXFLAGS"
6925 ac_cpp
='$CXXCPP $CPPFLAGS'
6926 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6927 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6928 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6932 ac_cpp
='$CPP $CPPFLAGS'
6933 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6938 save_CFLAGS
="$CFLAGS"
6939 for real_option
in -Wold-style-definition -Wc++-compat; do
6940 # Do the check with the no- prefix removed since gcc silently
6941 # accepts any -Wno-* option on purpose
6942 case $real_option in
6943 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6944 *) option
=$real_option ;;
6946 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6949 $as_echo_n "checking whether $CC supports $option... " >&6; }
6950 if eval \
${$as_acx_Woption+:} false
; then :
6951 $as_echo_n "(cached) " >&6
6954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6965 if ac_fn_c_try_compile
"$LINENO"; then :
6966 eval "$as_acx_Woption=yes"
6968 eval "$as_acx_Woption=no"
6970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6973 eval ac_res
=\$
$as_acx_Woption
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6975 $as_echo "$ac_res" >&6; }
6976 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6977 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6980 CFLAGS
="$save_CFLAGS"
6982 ac_cpp
='$CXXCPP $CPPFLAGS'
6983 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6984 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6985 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6989 ac_cpp
='$CXXCPP $CPPFLAGS'
6990 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6994 # Do the check with the no- prefix removed from the warning options
6995 # since gcc silently accepts any -Wno-* option on purpose
6996 if test "$GXX" = yes; then :
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6998 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6999 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7000 $as_echo_n "(cached) " >&6
7002 save_CXXFLAGS
="$CXXFLAGS"
7003 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7015 if ac_fn_cxx_try_compile
"$LINENO"; then :
7016 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7018 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7021 CXXFLAGS
="$save_CXXFLAGS"
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7024 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7025 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7026 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7031 ac_cpp
='$CXXCPP $CPPFLAGS'
7032 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7038 ac_cpp
='$CXXCPP $CPPFLAGS'
7039 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7040 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7041 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7043 # Check whether --enable-werror-always was given.
7044 if test "${enable_werror_always+set}" = set; then :
7045 enableval
=$enable_werror_always;
7047 enable_werror_always
=no
7050 if test $enable_werror_always = yes; then :
7051 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7055 ac_cpp
='$CXXCPP $CPPFLAGS'
7056 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7057 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7058 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7062 # The above macros do nothing if the compiler is not GCC. However, the
7063 # Makefile has more goo to add other flags, so these variables are used
7064 # to enable warnings only for GCC.
7067 if test "x$GCC" = "xyes"; then
7068 warn_cflags
='$(GCC_WARN_CFLAGS)'
7069 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7074 # Disable exceptions and RTTI if building with g++
7076 ac_cpp
='$CPP $CPPFLAGS'
7077 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7082 save_CFLAGS
="$CFLAGS"
7083 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7084 # Do the check with the no- prefix removed since gcc silently
7085 # accepts any -Wno-* option on purpose
7086 case $real_option in
7087 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7088 *) option
=$real_option ;;
7090 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7093 $as_echo_n "checking whether $CC supports $option... " >&6; }
7094 if eval \
${$as_acx_Woption+:} false
; then :
7095 $as_echo_n "(cached) " >&6
7098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7109 if ac_fn_c_try_compile
"$LINENO"; then :
7110 eval "$as_acx_Woption=yes"
7112 eval "$as_acx_Woption=no"
7114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7117 eval ac_res
=\$
$as_acx_Woption
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7119 $as_echo "$ac_res" >&6; }
7120 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7121 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7124 CFLAGS
="$save_CFLAGS"
7126 ac_cpp
='$CXXCPP $CPPFLAGS'
7127 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7133 # Enable expensive internal checks
7135 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7139 # Check whether --enable-checking was given.
7140 if test "${enable_checking+set}" = set; then :
7141 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7144 # Determine the default checks.
7145 if test x
$is_release = x
; then
7146 ac_checking_flags
=yes,extra
7148 ac_checking_flags
=release
7152 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7153 for check
in release
$ac_checking_flags
7156 # these set all the flags to specific states
7157 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7158 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7159 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7160 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7161 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7162 ac_types_checking
=1 ;;
7163 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7164 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7165 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7166 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7167 ac_tree_checking
= ; ac_valgrind_checking
= ;
7168 ac_types_checking
= ;;
7169 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7170 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7171 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7172 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7173 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7174 ac_types_checking
=1 ;;
7175 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7176 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7177 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7178 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7179 ac_tree_checking
= ; ac_valgrind_checking
= ;
7180 ac_types_checking
= ;;
7181 # these enable particular checks
7182 assert
) ac_assert_checking
=1 ;;
7183 df
) ac_df_checking
=1 ;;
7184 extra
) ac_extra_checking
=1 ;;
7185 fold) ac_fold_checking
=1 ;;
7186 gc
) ac_gc_checking
=1 ;;
7187 gcac
) ac_gc_always_collect
=1 ;;
7188 gimple
) ac_gimple_checking
=1 ;;
7189 misc
) ac_checking
=1 ;;
7190 rtl
) ac_rtl_checking
=1 ;;
7191 rtlflag
) ac_rtlflag_checking
=1 ;;
7192 runtime
) ac_runtime_checking
=1 ;;
7193 tree
) ac_tree_checking
=1 ;;
7194 types
) ac_types_checking
=1 ;;
7195 valgrind
) ac_valgrind_checking
=1 ;;
7196 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7202 if test x
$ac_checking != x
; then
7204 $as_echo "#define CHECKING_P 1" >>confdefs.h
7206 nocommon_flag
=-fno-common
7208 $as_echo "#define CHECKING_P 0" >>confdefs.h
7212 if test x
$ac_extra_checking != x
; then
7214 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7217 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7220 if test x
$ac_df_checking != x
; then
7222 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7225 if test x
$ac_assert_checking != x
; then
7227 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7230 if test x
$ac_gimple_checking != x
; then
7232 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7236 if test x
$ac_runtime_checking != x
; then
7238 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7241 if test x
$ac_tree_checking != x
; then
7243 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7247 if test x
$ac_types_checking != x
; then
7249 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7253 if test x
$ac_rtl_checking != x
; then
7255 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7258 if test x
$ac_rtlflag_checking != x
; then
7260 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7263 if test x
$ac_gc_checking != x
; then
7265 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7268 if test x
$ac_gc_always_collect != x
; then
7270 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7273 if test x
$ac_fold_checking != x
; then
7275 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7278 valgrind_path_defines
=
7281 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7282 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7290 # It is certainly possible that there's valgrind but no valgrind.h.
7291 # GCC relies on making annotations so we must have both.
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7293 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7296 #include <valgrind/memcheck.h>
7297 #ifndef VALGRIND_DISCARD
7298 #error VALGRIND_DISCARD not defined
7301 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7302 gcc_cv_header_valgrind_memcheck_h
=yes
7304 gcc_cv_header_valgrind_memcheck_h
=no
7306 rm -f conftest.err conftest.i conftest.
$ac_ext
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7308 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7310 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313 #include <memcheck.h>
7314 #ifndef VALGRIND_DISCARD
7315 #error VALGRIND_DISCARD not defined
7318 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7319 gcc_cv_header_memcheck_h
=yes
7321 gcc_cv_header_memcheck_h
=no
7323 rm -f conftest.err conftest.i conftest.
$ac_ext
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7325 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7326 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7328 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7331 if test $gcc_cv_header_memcheck_h = yes; then
7333 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7337 if test x
$ac_valgrind_checking != x
; then
7339 # Prepare PATH_SEPARATOR.
7340 # The user is always right.
7341 if test "${PATH_SEPARATOR+set}" != set; then
7342 echo "#! /bin/sh" >conf$$.sh
7343 echo "exit 0" >>conf$$.sh
7345 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7353 # Find out how to test for executable files. Don't use a zero-byte file,
7354 # as systems may use methods other than mode bits to determine executability.
7355 cat >conf$$.
file <<_ASEOF
7359 chmod +x conf$$.
file
7360 if test -x conf$$.
file >/dev
/null
2>&1; then
7361 ac_executable_p
="test -x"
7363 ac_executable_p
="test -f"
7367 # Extract the first word of "valgrind", so it can be a program name with args.
7368 set dummy valgrind
; ac_word
=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if ${ac_cv_path_valgrind_path+:} false
; then :
7372 $as_echo_n "(cached) " >&6
7374 case "$valgrind_path" in
7376 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7379 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7380 for ac_dir
in $PATH; do
7382 test -z "$ac_dir" && ac_dir
=.
7383 for ac_exec_ext
in '' $ac_executable_extensions; do
7384 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7385 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7386 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7396 valgrind_path
="$ac_cv_path_valgrind_path"
7397 if test -n "$valgrind_path"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7399 $as_echo "$valgrind_path" >&6; }
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7405 if test "x$valgrind_path" = "x" \
7406 ||
(test $have_valgrind_h = no \
7407 && test $gcc_cv_header_memcheck_h = no \
7408 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7409 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7411 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7412 valgrind_command
="$valgrind_path -q"
7414 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7420 # Enable code coverage collection
7421 # Check whether --enable-coverage was given.
7422 if test "${enable_coverage+set}" = set; then :
7423 enableval
=$enable_coverage; case "${enableval}" in
7425 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7428 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7431 # a.k.a. --disable-coverage
7435 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7444 # Check whether --enable-gather-detailed-mem-stats was given.
7445 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7446 enableval
=$enable_gather_detailed_mem_stats;
7448 enable_gather_detailed_mem_stats
=no
7451 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7453 cat >>confdefs.h
<<_ACEOF
7454 #define GATHER_STATISTICS $gather_stats
7458 # Check whether --enable-valgrind-annotations was given.
7459 if test "${enable_valgrind_annotations+set}" = set; then :
7460 enableval
=$enable_valgrind_annotations;
7462 enable_valgrind_annotations
=no
7465 if test x
$enable_valgrind_annotations != xno \
7466 ||
test x
$ac_valgrind_checking != x
; then
7467 if (test $have_valgrind_h = no \
7468 && test $gcc_cv_header_memcheck_h = no \
7469 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7470 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7473 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7477 # -------------------------------
7478 # Miscenalleous configure options
7479 # -------------------------------
7483 # Check whether --with-stabs was given.
7484 if test "${with_stabs+set}" = set; then :
7485 withval
=$with_stabs; stabs
="$with_stabs"
7491 # Determine whether or not multilibs are enabled.
7492 # Check whether --enable-multilib was given.
7493 if test "${enable_multilib+set}" = set; then :
7494 enableval
=$enable_multilib;
7501 # Determine whether or not multiarch is enabled.
7502 # Check whether --enable-multiarch was given.
7503 if test "${enable_multiarch+set}" = set; then :
7504 enableval
=$enable_multiarch; case "${enableval}" in
7505 yes|no|auto
) enable_multiarch
=$enableval;;
7506 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7509 enable_multiarch
=auto
7512 if test x
${enable_multiarch} = xauto
; then
7513 if test x
${with_native_system_header_dir} != x
; then
7514 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7517 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7518 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7523 $as_echo_n "checking for multiarch configuration... " >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7526 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7528 # needed for setting the multiarch name for soft-float/hard-float ABIs
7532 # default stack clash protection guard size as power of twos in bytes.
7533 # Please keep these in sync with params.def.
7537 # Keep the default value when the option is not used to 0, this allows us to
7538 # distinguish between the cases where the user specifially set a value via
7539 # configure and when the normal default value is used.
7541 # Check whether --with-stack-clash-protection-guard-size was given.
7542 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7543 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7545 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7548 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7549 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7550 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7551 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
7555 cat >>confdefs.h
<<_ACEOF
7556 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7560 # Enable __cxa_atexit for C++.
7561 # Check whether --enable-__cxa_atexit was given.
7562 if test "${enable___cxa_atexit+set}" = set; then :
7563 enableval
=$enable___cxa_atexit;
7567 # Enable C extension for decimal float if target supports it.
7569 # Check whether --enable-decimal-float was given.
7570 if test "${enable_decimal_float+set}" = set; then :
7571 enableval
=$enable_decimal_float;
7572 case $enable_decimal_float in
7573 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7574 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7575 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7581 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7582 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7583 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7584 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7585 enable_decimal_float
=yes
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7589 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7590 enable_decimal_float
=no
7597 # x86's use BID format instead of DPD
7598 case x
$enable_decimal_float in
7601 i?
86*-*-* | x86_64
*-*-*)
7602 enable_decimal_float
=bid
7605 enable_decimal_float
=dpd
7608 default_decimal_float
=$enable_decimal_float
7611 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7612 # dependency on libdecnumber.
7613 default_decimal_float
=dpd
7620 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7622 cat >>confdefs.h
<<_ACEOF
7623 #define ENABLE_DECIMAL_FLOAT $dfp
7627 # Use default_decimal_float for dependency.
7628 enable_decimal_float
=$default_decimal_float
7630 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7632 cat >>confdefs.h
<<_ACEOF
7633 #define ENABLE_DECIMAL_BID_FORMAT $bid
7637 # Enable C extension for fixed-point arithmetic.
7638 # Check whether --enable-fixed-point was given.
7639 if test "${enable_fixed_point+set}" = set; then :
7640 enableval
=$enable_fixed_point;
7645 enable_fixed_point
=yes
7649 enable_fixed_point
=yes
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7653 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7654 enable_fixed_point
=no
7662 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7664 cat >>confdefs.h
<<_ACEOF
7665 #define ENABLE_FIXED_POINT $fixedpoint
7670 # Pass with no value to take the default
7671 # Pass with a value to specify a thread package
7672 # Check whether --enable-threads was given.
7673 if test "${enable_threads+set}" = set; then :
7674 enableval
=$enable_threads;
7680 # Check whether --enable-tls was given.
7681 if test "${enable_tls+set}" = set; then :
7682 enableval
=$enable_tls;
7685 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
7686 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7694 # Check whether --enable-vtable-verify was given.
7695 if test "${enable_vtable_verify+set}" = set; then :
7696 enableval
=$enable_vtable_verify;
7698 enable_vtable_verify
=no
7701 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7703 cat >>confdefs.h
<<_ACEOF
7704 #define ENABLE_VTABLE_VERIFY $vtable_verify
7708 # Check whether --enable-analyzer was given.
7709 if test "${enable_analyzer+set}" = set; then :
7710 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
7720 cat >>confdefs.h
<<_ACEOF
7721 #define ENABLE_ANALYZER $analyzer
7725 # Check whether --enable-objc-gc was given.
7726 if test "${enable_objc_gc+set}" = set; then :
7727 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7738 # Check whether --with-dwarf2 was given.
7739 if test "${with_dwarf2+set}" = set; then :
7740 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7746 # Check whether --enable-shared was given.
7747 if test "${enable_shared+set}" = set; then :
7748 enableval
=$enable_shared;
7749 case $enable_shared in
7753 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7754 for pkg
in $enableval; do
7755 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7769 # Check whether --enable-gcov was given.
7770 if test "${enable_gcov+set}" = set; then :
7771 enableval
=$enable_gcov;
7779 # Check whether --with-specs was given.
7780 if test "${with_specs+set}" = set; then :
7781 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7791 # Check whether --with-pkgversion was given.
7792 if test "${with_pkgversion+set}" = set; then :
7793 withval
=$with_pkgversion; case "$withval" in
7794 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7796 *) PKGVERSION
="($withval) " ;;
7807 # Check whether --with-bugurl was given.
7808 if test "${with_bugurl+set}" = set; then :
7809 withval
=$with_bugurl; case "$withval" in
7810 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7813 *) BUGURL
="$withval"
7817 BUGURL
="https://gcc.gnu.org/bugs/"
7827 REPORT_BUGS_TO
="<$BUGURL>"
7828 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7835 # Allow overriding the default URL for documentation
7837 # Check whether --with-documentation-root-url was given.
7838 if test "${with_documentation_root_url+set}" = set; then :
7839 withval
=$with_documentation_root_url; case "$withval" in
7840 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7841 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7842 *) DOCUMENTATION_ROOT_URL
="$withval"
7846 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/gcc/"
7852 # Sanity check enable_languages in case someone does not run the toplevel
7853 # configure # script.
7854 # Check whether --enable-languages was given.
7855 if test "${enable_languages+set}" = set; then :
7856 enableval
=$enable_languages; case ,${enable_languages}, in
7858 # go safe -- we cannot be much sure without the toplevel
7860 # analysis of which target libs are present and usable
7864 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7869 enable_languages
=c
,${enable_languages}
7877 # If top-level libada has been disabled, then wire in install-gnatlib
7878 # invocation with `make install', so that one can build and install
7879 # the library manually with `make -C gcc all gnatlib gnattools install'.
7880 if test x
"$enable_libada" = xno
; then
7881 gnat_install_lib
=gnat-install-lib
7887 if test x
"$enable_as_accelerator_for" != x
; then
7889 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7891 enable_as_accelerator
=yes
7894 # In this case we expect offload compiler to be built as native, so we
7895 # need to rename the driver to avoid clashes with host's drivers.
7896 program_transform_name
="s&^&${target}-&" ;;
7898 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7899 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7900 accel_dir_suffix
=/accel
/${target_noncanonical}
7901 real_target_noncanonical
=${enable_as_accelerator_for}
7907 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7908 tgt
=`echo $tgt | sed 's/=.*//'`
7910 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7916 omp_device_property
=omp-device-properties-i386
7917 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7920 omp_device_property
=omp-device-properties-gcn
7921 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7924 omp_device_property
=omp-device-properties-nvptx
7925 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7928 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
7929 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
7932 if test x
"$offload_targets" = x
; then
7933 offload_targets
=$tgt
7935 offload_targets
="$offload_targets,$tgt"
7942 cat >>confdefs.h
<<_ACEOF
7943 #define OFFLOAD_TARGETS "$offload_targets"
7946 if test x
"$enable_offloading" != x
; then
7948 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7952 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7956 if test x
"$enable_hsa" = x1
; then
7958 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7963 # Check whether --with-multilib-list was given.
7964 if test "${with_multilib_list+set}" = set; then :
7965 withval
=$with_multilib_list; :
7967 with_multilib_list
=default
7971 # -------------------------
7972 # Checks for other programs
7973 # -------------------------
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7976 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7978 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7979 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
7980 $as_echo_n "(cached) " >&6
7982 cat >conftest.
make <<\_ACEOF
7985 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7987 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7988 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7990 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7992 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7996 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7998 $as_echo "yes" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8003 SET_MAKE
="MAKE=${MAKE-make}"
8007 # Find some useful tools
8008 for ac_prog
in gawk mawk nawk
awk
8010 # Extract the first word of "$ac_prog", so it can be a program name with args.
8011 set dummy
$ac_prog; ac_word
=$2
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 $as_echo_n "checking for $ac_word... " >&6; }
8014 if ${ac_cv_prog_AWK+:} false
; then :
8015 $as_echo_n "(cached) " >&6
8017 if test -n "$AWK"; then
8018 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8024 test -z "$as_dir" && as_dir
=.
8025 for ac_exec_ext
in '' $ac_executable_extensions; do
8026 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8027 ac_cv_prog_AWK
="$ac_prog"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 if test -n "$AWK"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8040 $as_echo "$AWK" >&6; }
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8047 test -n "$AWK" && break
8050 # We need awk to create options.c and options.h.
8051 # Bail out if it's missing.
8053 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8057 $as_echo_n "checking whether ln -s works... " >&6; }
8058 if ${gcc_cv_prog_LN_S+:} false
; then :
8059 $as_echo_n "(cached) " >&6
8061 rm -f conftestdata_t
8062 echo >conftestdata_f
8063 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8065 gcc_cv_prog_LN_S
="ln -s"
8067 if ln conftestdata_f conftestdata_t
2>/dev
/null
8071 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8073 gcc_cv_prog_LN_S
="cp -p"
8079 rm -f conftestdata_f conftestdata_t
8082 LN_S
="$gcc_cv_prog_LN_S"
8083 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8085 $as_echo "yes" >&6; }
8087 if test "$gcc_cv_prog_LN_S" = "ln"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8089 $as_echo "no, using ln" >&6; }
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8092 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8097 $as_echo_n "checking whether ln works... " >&6; }
8098 if ${acx_cv_prog_LN+:} false
; then :
8099 $as_echo_n "(cached) " >&6
8101 rm -f conftestdata_t
8102 echo >conftestdata_f
8103 if ln conftestdata_f conftestdata_t
2>/dev
/null
8109 rm -f conftestdata_f conftestdata_t
8112 if test $acx_cv_prog_LN = no
; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8115 $as_echo "no, using $LN" >&6; }
8117 LN
="$acx_cv_prog_LN"
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8119 $as_echo "yes" >&6; }
8122 if test -n "$ac_tool_prefix"; then
8123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8124 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if ${ac_cv_prog_RANLIB+:} false
; then :
8128 $as_echo_n "(cached) " >&6
8130 if test -n "$RANLIB"; then
8131 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8137 test -z "$as_dir" && as_dir
=.
8138 for ac_exec_ext
in '' $ac_executable_extensions; do
8139 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8140 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 RANLIB
=$ac_cv_prog_RANLIB
8151 if test -n "$RANLIB"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8153 $as_echo "$RANLIB" >&6; }
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8161 if test -z "$ac_cv_prog_RANLIB"; then
8162 ac_ct_RANLIB
=$RANLIB
8163 # Extract the first word of "ranlib", so it can be a program name with args.
8164 set dummy ranlib
; ac_word
=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8168 $as_echo_n "(cached) " >&6
8170 if test -n "$ac_ct_RANLIB"; then
8171 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8177 test -z "$as_dir" && as_dir
=.
8178 for ac_exec_ext
in '' $ac_executable_extensions; do
8179 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8180 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8191 if test -n "$ac_ct_RANLIB"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8193 $as_echo "$ac_ct_RANLIB" >&6; }
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8199 if test "x$ac_ct_RANLIB" = x
; then
8202 case $cross_compiling:$ac_tool_warned in
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8206 ac_tool_warned
=yes ;;
8208 RANLIB
=$ac_ct_RANLIB
8211 RANLIB
="$ac_cv_prog_RANLIB"
8217 # Find a good install program. We prefer a C program (faster),
8218 # so one script is as good as another. But avoid the broken or
8219 # incompatible versions:
8220 # SysV /etc/install, /usr/sbin/install
8221 # SunOS /usr/etc/install
8222 # IRIX /sbin/install
8224 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8225 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8226 # ./install, which can be erroneously created by make from ./install.sh.
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8228 $as_echo_n "checking for a BSD compatible install... " >&6; }
8229 if test -z "$INSTALL"; then
8230 if ${ac_cv_path_install+:} false
; then :
8231 $as_echo_n "(cached) " >&6
8233 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8234 for ac_dir
in $PATH; do
8235 # Account for people who put trailing slashes in PATH elements.
8237 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8239 # OSF1 and SCO ODT 3.0 have their own names for install.
8240 for ac_prog
in ginstall scoinst
install; do
8241 if test -f $ac_dir/$ac_prog; then
8242 if test $ac_prog = install &&
8243 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8244 # AIX install. It has an incompatible calling convention.
8245 # OSF/1 installbsd also uses dspmsg, but is usable.
8248 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8259 if test "${ac_cv_path_install+set}" = set; then
8260 INSTALL
="$ac_cv_path_install"
8262 # As a last resort, use the slow shell script. We don't cache a
8263 # path for INSTALL within a source directory, because that will
8264 # break other packages using the cache if that directory is
8265 # removed, or if the path is relative.
8266 INSTALL
="$ac_install_sh"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8270 $as_echo "$INSTALL" >&6; }
8272 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8273 # It thinks the first close brace ends the variable substitution.
8274 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8276 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8279 # See if cmp has --ignore-initial.
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8281 $as_echo_n "checking for cmp's capabilities... " >&6; }
8282 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8283 $as_echo_n "(cached) " >&6
8287 gcc_cv_prog_cmp_skip
=slowcompare
8288 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8289 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8292 gcc_cv_prog_cmp_skip
=gnucompare
8295 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8296 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8297 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8300 gcc_cv_prog_cmp_skip
=fastcompare
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8308 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8309 make_compare_target
=$gcc_cv_prog_cmp_skip
8313 # See if we have the mktemp command.
8314 # Extract the first word of "mktemp", so it can be a program name with args.
8315 set dummy mktemp
; ac_word
=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8319 $as_echo_n "(cached) " >&6
8321 if test -n "$have_mktemp_command"; then
8322 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8328 test -z "$as_dir" && as_dir
=.
8329 for ac_exec_ext
in '' $ac_executable_extensions; do
8330 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8331 ac_cv_prog_have_mktemp_command
="yes"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8342 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8343 if test -n "$have_mktemp_command"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8345 $as_echo "$have_mktemp_command" >&6; }
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8353 # See if makeinfo has been installed and is modern enough
8354 # that we can use it.
8356 # Extract the first word of "makeinfo", so it can be a program name with args.
8357 set dummy makeinfo
; ac_word
=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8361 $as_echo_n "(cached) " >&6
8363 if test -n "$MAKEINFO"; then
8364 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8370 test -z "$as_dir" && as_dir
=.
8371 for ac_exec_ext
in '' $ac_executable_extensions; do
8372 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8373 ac_cv_prog_MAKEINFO
="makeinfo"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 MAKEINFO
=$ac_cv_prog_MAKEINFO
8384 if test -n "$MAKEINFO"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8386 $as_echo "$MAKEINFO" >&6; }
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8393 if test -n "$MAKEINFO"; then
8394 # Found it, now check the version.
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8396 $as_echo_n "checking for modern makeinfo... " >&6; }
8397 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8398 $as_echo_n "(cached) " >&6
8400 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8401 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8403 case $ac_prog_version in
8404 '') gcc_cv_prog_makeinfo_modern
=no
;;
8405 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8406 *) gcc_cv_prog_makeinfo_modern
=no
;;
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8411 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8413 gcc_cv_prog_makeinfo_modern
=no
8415 if test $gcc_cv_prog_makeinfo_modern = no
; then
8416 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8419 if test $gcc_cv_prog_makeinfo_modern = no
; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8421 *** Makeinfo is missing or too old.
8422 *** Info documentation will not be built." >&5
8423 $as_echo "$as_me: WARNING:
8424 *** Makeinfo is missing or too old.
8425 *** Info documentation will not be built." >&2;}
8432 # Is pod2man recent enough to regenerate manpages?
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8434 $as_echo_n "checking for recent Pod::Man... " >&6; }
8435 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8437 $as_echo "yes" >&6; }
8438 GENERATED_MANPAGES
=generated-manpages
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8446 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8451 # Extract the first word of "$ac_prog", so it can be a program name with args.
8452 set dummy
$ac_prog; ac_word
=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if ${ac_cv_prog_FLEX+:} false
; then :
8456 $as_echo_n "(cached) " >&6
8458 if test -n "$FLEX"; then
8459 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8465 test -z "$as_dir" && as_dir
=.
8466 for ac_exec_ext
in '' $ac_executable_extensions; do
8467 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8468 ac_cv_prog_FLEX
="$ac_prog"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 FLEX
=$ac_cv_prog_FLEX
8479 if test -n "$FLEX"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8481 $as_echo "$FLEX" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8488 test -n "$FLEX" && break
8490 test -n "$FLEX" || FLEX
="$MISSING flex"
8494 for ac_prog
in bison
8496 # Extract the first word of "$ac_prog", so it can be a program name with args.
8497 set dummy
$ac_prog; ac_word
=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if ${ac_cv_prog_BISON+:} false
; then :
8501 $as_echo_n "(cached) " >&6
8503 if test -n "$BISON"; then
8504 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8510 test -z "$as_dir" && as_dir
=.
8511 for ac_exec_ext
in '' $ac_executable_extensions; do
8512 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8513 ac_cv_prog_BISON
="$ac_prog"
8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 BISON
=$ac_cv_prog_BISON
8524 if test -n "$BISON"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8526 $as_echo "$BISON" >&6; }
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8533 test -n "$BISON" && break
8535 test -n "$BISON" || BISON
="$MISSING bison"
8538 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8539 # check for build == host before using them.
8542 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8543 && test -d ..
/binutils
; then
8544 NM
='${objdir}/../binutils/nm-new'
8546 # Extract the first word of "nm", so it can be a program name with args.
8547 set dummy nm
; 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_NM+:} false
; then :
8551 $as_echo_n "(cached) " >&6
8553 if test -n "$NM"; then
8554 ac_cv_prog_NM
="$NM" # 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
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8575 if test -n "$NM"; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8577 $as_echo "$NM" >&6; }
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8587 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8588 && test -d ..
/binutils
; then
8589 AR
='${objdir}/../binutils/ar'
8591 # Extract the first word of "ar", so it can be a program name with args.
8592 set dummy
ar; ac_word
=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if ${ac_cv_prog_AR+:} false
; then :
8596 $as_echo_n "(cached) " >&6
8598 if test -n "$AR"; then
8599 ac_cv_prog_AR
="$AR" # Let the user override the test.
8601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8605 test -z "$as_dir" && as_dir
=.
8606 for ac_exec_ext
in '' $ac_executable_extensions; do
8607 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8616 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8620 if test -n "$AR"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8622 $as_echo "$AR" >&6; }
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8631 # The jit documentation looks better if built with sphinx, but can be
8632 # built with texinfo if sphinx is not available.
8633 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8634 # Extract the first word of "sphinx-build", so it can be a program name with args.
8635 set dummy sphinx-build
; ac_word
=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8639 $as_echo_n "(cached) " >&6
8641 if test -n "$doc_build_sys"; then
8642 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8648 test -z "$as_dir" && as_dir
=.
8649 for ac_exec_ext
in '' $ac_executable_extensions; do
8650 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8651 ac_cv_prog_doc_build_sys
="sphinx"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8662 doc_build_sys
=$ac_cv_prog_doc_build_sys
8663 if test -n "$doc_build_sys"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8665 $as_echo "$doc_build_sys" >&6; }
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8673 # --------------------
8674 # Checks for C headers
8675 # --------------------
8677 # Need to reject headers which give warnings, so that the -Werror bootstrap
8678 # works later. *sigh* This needs to come before all header checks.
8680 ac_c_preproc_warn_flag
=yes
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8683 $as_echo_n "checking for ANSI C header files... " >&6; }
8684 if ${ac_cv_header_stdc+:} false
; then :
8685 $as_echo_n "(cached) " >&6
8687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8702 if ac_fn_cxx_try_compile
"$LINENO"; then :
8703 ac_cv_header_stdc
=yes
8705 ac_cv_header_stdc
=no
8707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8709 if test $ac_cv_header_stdc = yes; then
8710 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8717 $EGREP "memchr" >/dev
/null
2>&1; then :
8720 ac_cv_header_stdc
=no
8726 if test $ac_cv_header_stdc = yes; then
8727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8734 $EGREP "free" >/dev
/null
2>&1; then :
8737 ac_cv_header_stdc
=no
8743 if test $ac_cv_header_stdc = yes; then
8744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8745 if test "$cross_compiling" = yes; then :
8748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8752 #if ((' ' & 0x0FF) == 0x020)
8753 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8754 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8756 # define ISLOWER(c) \
8757 (('a' <= (c) && (c) <= 'i') \
8758 || ('j' <= (c) && (c) <= 'r') \
8759 || ('s' <= (c) && (c) <= 'z'))
8760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8768 for (i = 0; i < 256; i++)
8769 if (XOR (islower (i), ISLOWER (i))
8770 || toupper (i) != TOUPPER (i))
8775 if ac_fn_cxx_try_run
"$LINENO"; then :
8778 ac_cv_header_stdc
=no
8780 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8781 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8787 $as_echo "$ac_cv_header_stdc" >&6; }
8788 if test $ac_cv_header_stdc = yes; then
8790 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8795 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8796 if ${ac_cv_header_time+:} false
; then :
8797 $as_echo_n "(cached) " >&6
8799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8801 #include <sys/types.h>
8802 #include <sys/time.h>
8808 if ((struct tm *) 0)
8814 if ac_fn_cxx_try_compile
"$LINENO"; then :
8815 ac_cv_header_time
=yes
8817 ac_cv_header_time
=no
8819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8822 $as_echo "$ac_cv_header_time" >&6; }
8823 if test $ac_cv_header_time = yes; then
8825 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8830 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8831 if ${gcc_cv_header_string+:} false
; then :
8832 $as_echo_n "(cached) " >&6
8834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8837 #include <strings.h>
8846 if ac_fn_cxx_try_compile
"$LINENO"; then :
8847 gcc_cv_header_string
=yes
8849 gcc_cv_header_string
=no
8851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8854 $as_echo "$gcc_cv_header_string" >&6; }
8855 if test $gcc_cv_header_string = yes; then
8857 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8862 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8863 if ${ac_cv_header_sys_wait_h+:} false
; then :
8864 $as_echo_n "(cached) " >&6
8866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 #include <sys/types.h>
8869 #include <sys/wait.h>
8871 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8874 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8882 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8887 if ac_fn_cxx_try_compile
"$LINENO"; then :
8888 ac_cv_header_sys_wait_h
=yes
8890 ac_cv_header_sys_wait_h
=no
8892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8895 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8896 if test $ac_cv_header_sys_wait_h = yes; then
8898 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8903 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8904 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
8905 $as_echo_n "(cached) " >&6
8907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 #include <sys/types.h>
8910 #include <termios.h>
8916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8917 $EGREP "yes" >/dev
/null
2>&1; then :
8918 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8920 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8926 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8928 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8930 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8931 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
8932 $as_echo_n "(cached) " >&6
8934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8936 #include <sys/types.h>
8937 #include <sys/ioctl.h>
8943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8944 $EGREP "yes" >/dev
/null
2>&1; then :
8945 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8947 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8953 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8955 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8957 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8962 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8963 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8964 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8965 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8967 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8968 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8969 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8970 cat >>confdefs.h
<<_ACEOF
8971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8978 # Check for thread headers.
8979 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8980 if test "x$ac_cv_header_thread_h" = xyes
; then :
8986 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8987 if test "x$ac_cv_header_pthread_h" = xyes
; then :
8994 # These tests can't be done till we know if we have limits.h.
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8996 $as_echo_n "checking for CHAR_BIT... " >&6; }
8997 if ${gcc_cv_decl_char_bit+:} false
; then :
8998 $as_echo_n "(cached) " >&6
9000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9002 #ifdef HAVE_LIMITS_H
9009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9010 $EGREP "found" >/dev
/null
2>&1; then :
9011 gcc_cv_decl_char_bit
=yes
9013 gcc_cv_decl_char_bit
=no
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9020 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9021 if test $gcc_cv_decl_char_bit = no
; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9023 $as_echo_n "checking number of bits in a byte... " >&6; }
9024 if ${gcc_cv_c_nbby+:} false
; then :
9025 $as_echo_n "(cached) " >&6
9029 while test $i -lt 65; do
9030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9037 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9038 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9044 if ac_fn_cxx_try_compile
"$LINENO"; then :
9045 gcc_cv_c_nbby
=$i; break
9047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9050 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9054 $as_echo "$gcc_cv_c_nbby" >&6; }
9055 if test $gcc_cv_c_nbby = failed
; then
9056 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9059 cat >>confdefs.h
<<_ACEOF
9060 #define CHAR_BIT $gcc_cv_c_nbby
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9066 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9067 if ${ac_cv_c_bigendian+:} false
; then :
9068 $as_echo_n "(cached) " >&6
9070 ac_cv_c_bigendian
=unknown
9071 # See if we're dealing with a universal compiler.
9072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9074 #ifndef __APPLE_CC__
9075 not a universal capable compiler
9080 if ac_fn_cxx_try_compile
"$LINENO"; then :
9082 # Check for potential -arch flags. It is not universal unless
9083 # there are at least two -arch flags with different values.
9086 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9087 if test -n "$ac_prev"; then
9089 i?
86 | x86_64 | ppc | ppc64
)
9090 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9093 ac_cv_c_bigendian
=universal
9099 elif test "x$ac_word" = "x-arch"; then
9104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9105 if test $ac_cv_c_bigendian = unknown
; then
9106 # See if sys/param.h defines the BYTE_ORDER macro.
9107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 #include <sys/types.h>
9110 #include <sys/param.h>
9115 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9116 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9125 if ac_fn_cxx_try_compile
"$LINENO"; then :
9126 # It does; now see whether it defined to BIG_ENDIAN or not.
9127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9129 #include <sys/types.h>
9130 #include <sys/param.h>
9135 #if BYTE_ORDER != BIG_ENDIAN
9143 if ac_fn_cxx_try_compile
"$LINENO"; then :
9144 ac_cv_c_bigendian
=yes
9146 ac_cv_c_bigendian
=no
9148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9152 if test $ac_cv_c_bigendian = unknown
; then
9153 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9161 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9169 if ac_fn_cxx_try_compile
"$LINENO"; then :
9170 # It does; now see whether it defined to _BIG_ENDIAN or not.
9171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9186 if ac_fn_cxx_try_compile
"$LINENO"; then :
9187 ac_cv_c_bigendian
=yes
9189 ac_cv_c_bigendian
=no
9191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9195 if test $ac_cv_c_bigendian = unknown
; then
9196 # Compile a test program.
9197 if test "$cross_compiling" = yes; then :
9198 # Try to guess by grepping values from an object file.
9199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201 short int ascii_mm[] =
9202 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9203 short int ascii_ii[] =
9204 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9205 int use_ascii (int i) {
9206 return ascii_mm[i] + ascii_ii[i];
9208 short int ebcdic_ii[] =
9209 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9210 short int ebcdic_mm[] =
9211 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9212 int use_ebcdic (int i) {
9213 return ebcdic_mm[i] + ebcdic_ii[i];
9220 return use_ascii (foo) == use_ebcdic (foo);
9225 if ac_fn_cxx_try_compile
"$LINENO"; then :
9226 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9227 ac_cv_c_bigendian
=yes
9229 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9230 if test "$ac_cv_c_bigendian" = unknown
; then
9231 ac_cv_c_bigendian
=no
9233 # finding both strings is unlikely to happen, but who knows?
9234 ac_cv_c_bigendian
=unknown
9238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9242 $ac_includes_default
9247 /* Are we little or big endian? From Harbison&Steele. */
9251 char c[sizeof (long int)];
9254 return u.c[sizeof (long int) - 1] == 1;
9260 if ac_fn_cxx_try_run
"$LINENO"; then :
9261 ac_cv_c_bigendian
=no
9263 ac_cv_c_bigendian
=yes
9265 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9266 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9272 $as_echo "$ac_cv_c_bigendian" >&6; }
9273 case $ac_cv_c_bigendian in #(
9275 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9281 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9285 as_fn_error $?
"unknown endianness
9286 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9290 # ----------------------
9291 # Checks for C++ headers
9292 # ----------------------
9295 ac_cpp
='$CXXCPP $CPPFLAGS'
9296 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9297 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9298 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9300 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9301 if test -z "$CXXCPP"; then
9302 if ${ac_cv_prog_CXXCPP+:} false
; then :
9303 $as_echo_n "(cached) " >&6
9305 # Double quotes because CXXCPP needs to be expanded
9306 for CXXCPP
in "$CXX -E" "/lib/cpp"
9309 for ac_cxx_preproc_warn_flag
in '' yes
9311 # Use a header file that comes with gcc, so configuring glibc
9312 # with a fresh cross-compiler works.
9313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9314 # <limits.h> exists even on freestanding compilers.
9315 # On the NeXT, cc -E runs the code through the compiler's parser,
9316 # not just through cpp. "Syntax error" is here to catch this case.
9317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9320 # include <limits.h>
9322 # include <assert.h>
9326 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9329 # Broken: fails on valid input.
9332 rm -f conftest.err conftest.i conftest.
$ac_ext
9334 # OK, works on sane cases. Now check whether nonexistent headers
9335 # can be detected and how.
9336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338 #include <ac_nonexistent.h>
9340 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9341 # Broken: success on invalid input.
9344 # Passes both tests.
9348 rm -f conftest.err conftest.i conftest.
$ac_ext
9351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9352 rm -f conftest.i conftest.err conftest.
$ac_ext
9353 if $ac_preproc_ok; then :
9358 ac_cv_prog_CXXCPP
=$CXXCPP
9361 CXXCPP
=$ac_cv_prog_CXXCPP
9363 ac_cv_prog_CXXCPP
=$CXXCPP
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9366 $as_echo "$CXXCPP" >&6; }
9368 for ac_cxx_preproc_warn_flag
in '' yes
9370 # Use a header file that comes with gcc, so configuring glibc
9371 # with a fresh cross-compiler works.
9372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9373 # <limits.h> exists even on freestanding compilers.
9374 # On the NeXT, cc -E runs the code through the compiler's parser,
9375 # not just through cpp. "Syntax error" is here to catch this case.
9376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9379 # include <limits.h>
9381 # include <assert.h>
9385 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9388 # Broken: fails on valid input.
9391 rm -f conftest.err conftest.i conftest.
$ac_ext
9393 # OK, works on sane cases. Now check whether nonexistent headers
9394 # can be detected and how.
9395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9397 #include <ac_nonexistent.h>
9399 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9400 # Broken: success on invalid input.
9403 # Passes both tests.
9407 rm -f conftest.err conftest.i conftest.
$ac_ext
9410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9411 rm -f conftest.i conftest.err conftest.
$ac_ext
9412 if $ac_preproc_ok; then :
9415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9418 See \`config.log' for more details" >&5
9419 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9420 See \`config.log' for more details" >&2;}; }
9424 ac_cpp
='$CXXCPP $CPPFLAGS'
9425 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9426 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9427 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9430 for ac_header
in unordered_map
9432 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9433 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9434 cat >>confdefs.h
<<_ACEOF
9435 #define HAVE_UNORDERED_MAP 1
9441 for ac_header
in tr1/unordered_map
9443 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9444 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9445 cat >>confdefs.h
<<_ACEOF
9446 #define HAVE_TR1_UNORDERED_MAP 1
9452 for ac_header
in ext
/hash_map
9454 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9455 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9456 cat >>confdefs.h
<<_ACEOF
9457 #define HAVE_EXT_HASH_MAP 1
9465 # Dependency checking.
9468 rm -rf .tst
2>/dev
/null
9469 mkdir .tst
2>/dev
/null
9470 if test -d .tst
; then
9475 rmdir .tst
2>/dev
/null
9477 DEPDIR
="${am__leading_dot}deps"
9479 ac_config_commands
="$ac_config_commands depdir"
9482 ac_config_commands
="$ac_config_commands gccdepdir"
9485 depcc
="$CXX" am_compiler_list
=
9487 am_depcomp
=$ac_aux_dir/depcomp
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9489 $as_echo_n "checking dependency style of $depcc... " >&6; }
9490 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9491 $as_echo_n "(cached) " >&6
9493 if test -f "$am_depcomp"; then
9494 # We make a subdir and do the tests there. Otherwise we can end up
9495 # making bogus files that we don't know about and never remove. For
9496 # instance it was reported that on HP-UX the gcc test will end up
9497 # making a dummy file named `D' -- because `-MD' means `put the output
9500 # Copy depcomp to subdir because otherwise we won't find it if we're
9501 # using a relative directory.
9502 cp "$am_depcomp" conftest.dir
9504 # We will build objects and dependencies in a subdirectory because
9505 # it helps to detect inapplicable dependency modes. For instance
9506 # both Tru64's cc and ICC support -MD to output dependencies as a
9507 # side effect of compilation, but ICC will put the dependencies in
9508 # the current directory while Tru64 will put them in the object
9512 am_cv_CXX_dependencies_compiler_type
=none
9513 if test "$am_compiler_list" = ""; then
9514 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9516 for depmode
in $am_compiler_list; do
9517 if test $depmode = none
; then break; fi
9519 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9520 # Setup a source with many dependencies, because some compilers
9521 # like to wrap large dependency lists on column 80 (with \), and
9522 # we should not choose a depcomp mode which is confused by this.
9524 # We need to recreate these files for each test, as the compiler may
9525 # overwrite some of them when testing with obscure command lines.
9526 # This happens at least with the AIX C compiler.
9528 for i
in 1 2 3 4 5 6; do
9529 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9530 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9531 # Solaris 8's {/usr,}/bin/sh.
9532 touch sub
/conftst
$i.h
9534 echo "include sub/conftest.Po" > confmf
9536 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9537 # mode. It turns out that the SunPro C++ compiler does not properly
9538 # handle `-M -o', and we need to detect this.
9539 depcmd
="depmode=$depmode \
9540 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9541 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9542 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9543 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9544 if env
$depcmd > conftest.err
2>&1 &&
9545 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9546 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9547 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9548 # icc doesn't choke on unknown options, it will just issue warnings
9549 # or remarks (even with -Werror). So we grep stderr for any message
9550 # that says an option was ignored or not supported.
9551 # When given -MP, icc 7.0 and 7.1 complain thusly:
9552 # icc: Command line warning: ignoring option '-M'; no argument required
9553 # The diagnosis changed in icc 8.0:
9554 # icc: Command line remark: option '-MP' not supported
9555 if (grep 'ignoring option' conftest.err ||
9556 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9557 am_cv_CXX_dependencies_compiler_type
=$depmode
9558 $as_echo "$as_me:$LINENO: success" >&5
9562 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9563 sed -e 's/^/| /' < conftest.err
>&5
9569 am_cv_CXX_dependencies_compiler_type
=none
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9574 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9575 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9576 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9577 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9587 # These libraries may be used by collect2.
9588 # We may need a special search path to get them linked.
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9590 $as_echo_n "checking for collect2 libraries... " >&6; }
9591 if ${gcc_cv_collect2_libs+:} false
; then :
9592 $as_echo_n "(cached) " >&6
9595 for libs
in '' -lld -lmld \
9596 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9597 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9603 /* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9618 if ac_fn_cxx_try_link
"$LINENO"; then :
9619 gcc_cv_collect2_libs
="$libs"; break
9621 rm -f core conftest.err conftest.
$ac_objext \
9622 conftest
$ac_exeext conftest.
$ac_ext
9625 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9628 $as_echo "$gcc_cv_collect2_libs" >&6; }
9629 case $gcc_cv_collect2_libs in
9631 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9635 # When building Ada code on Alpha, we need exc_resume which is usually in
9636 # -lexc. So test for it.
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9640 $as_echo_n "checking for library containing exc_resume... " >&6; }
9641 if ${ac_cv_search_exc_resume+:} false
; then :
9642 $as_echo_n "(cached) " >&6
9644 ac_func_search_save_LIBS
=$LIBS
9645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9648 /* Override any GCC internal prototype to avoid an error.
9649 Use char because int might match the return type of a GCC
9650 builtin and then its argument prototype would still apply. */
9658 return exc_resume ();
9663 for ac_lib
in '' exc
; do
9664 if test -z "$ac_lib"; then
9665 ac_res
="none required"
9668 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9670 if ac_fn_cxx_try_link
"$LINENO"; then :
9671 ac_cv_search_exc_resume
=$ac_res
9673 rm -f core conftest.err conftest.
$ac_objext \
9675 if ${ac_cv_search_exc_resume+:} false
; then :
9679 if ${ac_cv_search_exc_resume+:} false
; then :
9682 ac_cv_search_exc_resume
=no
9685 LIBS
=$ac_func_search_save_LIBS
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9688 $as_echo "$ac_cv_search_exc_resume" >&6; }
9689 ac_res
=$ac_cv_search_exc_resume
9690 if test "$ac_res" != no
; then :
9691 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9699 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9703 $as_echo_n "checking for library containing kstat_open... " >&6; }
9704 if ${ac_cv_search_kstat_open+:} false
; then :
9705 $as_echo_n "(cached) " >&6
9707 ac_func_search_save_LIBS
=$LIBS
9708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9711 /* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
9721 return kstat_open ();
9726 for ac_lib
in '' kstat
; do
9727 if test -z "$ac_lib"; then
9728 ac_res
="none required"
9731 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9733 if ac_fn_cxx_try_link
"$LINENO"; then :
9734 ac_cv_search_kstat_open
=$ac_res
9736 rm -f core conftest.err conftest.
$ac_objext \
9738 if ${ac_cv_search_kstat_open+:} false
; then :
9742 if ${ac_cv_search_kstat_open+:} false
; then :
9745 ac_cv_search_kstat_open
=no
9748 LIBS
=$ac_func_search_save_LIBS
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9751 $as_echo "$ac_cv_search_kstat_open" >&6; }
9752 ac_res
=$ac_cv_search_kstat_open
9753 if test "$ac_res" != no
; then :
9754 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9758 EXTRA_GCC_LIBS
="$LIBS"
9762 # Some systems put ldexp and frexp in libm instead of libc; assume
9763 # they're both in the same place. jcf-dump needs them.
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9767 $as_echo_n "checking for library containing ldexp... " >&6; }
9768 if ${ac_cv_search_ldexp+:} false
; then :
9769 $as_echo_n "(cached) " >&6
9771 ac_func_search_save_LIBS
=$LIBS
9772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9775 /* Override any GCC internal prototype to avoid an error.
9776 Use char because int might match the return type of a GCC
9777 builtin and then its argument prototype would still apply. */
9790 for ac_lib
in '' m
; do
9791 if test -z "$ac_lib"; then
9792 ac_res
="none required"
9795 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9797 if ac_fn_cxx_try_link
"$LINENO"; then :
9798 ac_cv_search_ldexp
=$ac_res
9800 rm -f core conftest.err conftest.
$ac_objext \
9802 if ${ac_cv_search_ldexp+:} false
; then :
9806 if ${ac_cv_search_ldexp+:} false
; then :
9809 ac_cv_search_ldexp
=no
9812 LIBS
=$ac_func_search_save_LIBS
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9815 $as_echo "$ac_cv_search_ldexp" >&6; }
9816 ac_res
=$ac_cv_search_ldexp
9817 if test "$ac_res" != no
; then :
9818 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9826 # Some systems need dlopen
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9830 $as_echo_n "checking for library containing dlopen... " >&6; }
9831 if ${ac_cv_search_dlopen+:} false
; then :
9832 $as_echo_n "(cached) " >&6
9834 ac_func_search_save_LIBS
=$LIBS
9835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9838 /* Override any GCC internal prototype to avoid an error.
9839 Use char because int might match the return type of a GCC
9840 builtin and then its argument prototype would still apply. */
9853 for ac_lib
in '' dl
; do
9854 if test -z "$ac_lib"; then
9855 ac_res
="none required"
9858 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9860 if ac_fn_cxx_try_link
"$LINENO"; then :
9861 ac_cv_search_dlopen
=$ac_res
9863 rm -f core conftest.err conftest.
$ac_objext \
9865 if ${ac_cv_search_dlopen+:} false
; then :
9869 if ${ac_cv_search_dlopen+:} false
; then :
9872 ac_cv_search_dlopen
=no
9875 LIBS
=$ac_func_search_save_LIBS
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9878 $as_echo "$ac_cv_search_dlopen" >&6; }
9879 ac_res
=$ac_cv_search_dlopen
9880 if test "$ac_res" != no
; then :
9881 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9889 # Use <inttypes.h> only if it exists,
9890 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9893 $as_echo_n "checking for inttypes.h... " >&6; }
9894 if ${gcc_cv_header_inttypes_h+:} false
; then :
9895 $as_echo_n "(cached) " >&6
9897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899 #define __STDC_FORMAT_MACROS
9900 #include <sys/types.h>
9901 #include <inttypes.h>
9913 if ac_fn_cxx_try_compile
"$LINENO"; then :
9914 gcc_cv_header_inttypes_h
=yes
9916 gcc_cv_header_inttypes_h
=no
9918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9922 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9923 if test $gcc_cv_header_inttypes_h = yes; then
9925 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9929 # Look for the ZSTD package.
9937 # Check whether --with-zstd was given.
9938 if test "${with_zstd+set}" = set; then :
9943 # Check whether --with-zstd-include was given.
9944 if test "${with_zstd_include+set}" = set; then :
9945 withval
=$with_zstd_include;
9949 # Check whether --with-zstd-lib was given.
9950 if test "${with_zstd_lib+set}" = set; then :
9951 withval
=$with_zstd_lib;
9954 case "x$with_zstd" in
9960 *) ZSTD_INCLUDE
=$with_zstd/include
9961 ZSTD_LIB
=$with_zstd/lib
9964 if test "x$with_zstd_include" != x
; then
9965 ZSTD_INCLUDE
=$with_zstd_include
9967 if test "x$with_zstd_lib" != x
; then
9968 ZSTD_LIB
=$with_zstd_lib
9970 if test "x$ZSTD_INCLUDE" != x \
9971 && test "x$ZSTD_INCLUDE" != xno
; then
9972 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
9974 if test "x$ZSTD_LIB" != x \
9975 && test "x$ZSTD_LIB" != xno
; then
9976 ZSTD_LDFLAGS
=-L$ZSTD_LIB
9979 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
9980 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9983 $as_echo_n "checking for zstd.h... " >&6; }
9984 if ${gcc_cv_header_zstd_h+:} false
; then :
9985 $as_echo_n "(cached) " >&6
9987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9998 if ac_fn_cxx_try_compile
"$LINENO"; then :
9999 gcc_cv_header_zstd_h
=yes
10001 gcc_cv_header_zstd_h
=no
10003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10007 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10008 if test $gcc_cv_header_zstd_h = yes; then
10010 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10014 # LTO can use zstd compression algorithm
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10018 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10019 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10020 $as_echo_n "(cached) " >&6
10022 ac_func_search_save_LIBS
=$LIBS
10023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10026 /* Override any GCC internal prototype to avoid an error.
10027 Use char because int might match the return type of a GCC
10028 builtin and then its argument prototype would still apply. */
10032 char ZSTD_compress ();
10036 return ZSTD_compress ();
10041 for ac_lib
in '' zstd
; do
10042 if test -z "$ac_lib"; then
10043 ac_res
="none required"
10046 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10048 if ac_fn_cxx_try_link
"$LINENO"; then :
10049 ac_cv_search_ZSTD_compress
=$ac_res
10051 rm -f core conftest.err conftest.
$ac_objext \
10053 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10057 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10060 ac_cv_search_ZSTD_compress
=no
10062 rm conftest.
$ac_ext
10063 LIBS
=$ac_func_search_save_LIBS
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10066 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10067 ac_res
=$ac_cv_search_ZSTD_compress
10068 if test "$ac_res" != no
; then :
10069 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10079 for ac_func
in times clock kill getrlimit setrlimit atoq \
10080 popen sysconf strsignal getrusage nl_langinfo \
10081 gettimeofday mbstowcs wcswidth mmap setlocale \
10082 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise mallinfo
10084 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10085 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10086 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10087 cat >>confdefs.h
<<_ACEOF
10088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10095 if test x
$ac_cv_func_mbstowcs = xyes
; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10097 $as_echo_n "checking whether mbstowcs works... " >&6; }
10098 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10099 $as_echo_n "(cached) " >&6
10101 if test "$cross_compiling" = yes; then :
10102 gcc_cv_func_mbstowcs_works
=yes
10104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h. */
10106 #include <stdlib.h>
10109 mbstowcs(0, "", 0);
10113 if ac_fn_cxx_try_run
"$LINENO"; then :
10114 gcc_cv_func_mbstowcs_works
=yes
10116 gcc_cv_func_mbstowcs_works
=no
10118 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10119 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10124 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10125 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10127 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10132 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10133 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10137 cat >>confdefs.h
<<_ACEOF
10138 #define ssize_t int
10143 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10144 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10148 cat >>confdefs.h
<<_ACEOF
10149 #define caddr_t char *
10156 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10157 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10158 gcc_header_sys_mman_h
=yes
10160 gcc_header_sys_mman_h
=no
10163 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10164 if test "x$ac_cv_func_mmap" = xyes
; then :
10170 if test "$gcc_header_sys_mman_h" != yes \
10171 ||
test "$gcc_func_mmap" != yes; then
10172 gcc_cv_func_mmap_file
=no
10173 gcc_cv_func_mmap_dev_zero
=no
10174 gcc_cv_func_mmap_anon
=no
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10177 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10178 if ${gcc_cv_func_mmap_file+:} false
; then :
10179 $as_echo_n "(cached) " >&6
10181 # Add a system to this blacklist if
10182 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10183 # memory area containing the same data that you'd get if you applied
10184 # read() to the same fd. The only system known to have a problem here
10185 # is VMS, where text files have record structure.
10188 gcc_cv_func_mmap_file
=no
;;
10190 gcc_cv_func_mmap_file
=yes;;
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10194 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10196 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10197 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10198 $as_echo_n "(cached) " >&6
10200 # Add a system to this blacklist if it has mmap() but /dev/zero
10201 # does not exist, or if mmapping /dev/zero does not give anonymous
10202 # zeroed pages with both the following properties:
10203 # 1. If you map N consecutive pages in with one call, and then
10204 # unmap any subset of those pages, the pages that were not
10205 # explicitly unmapped remain accessible.
10206 # 2. If you map two adjacent blocks of memory and then unmap them
10207 # both at once, they must both go away.
10208 # Systems known to be in this category are Windows (all variants),
10211 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10212 gcc_cv_func_mmap_dev_zero
=no
;;
10214 gcc_cv_func_mmap_dev_zero
=yes;;
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10218 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10220 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10222 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10223 if ${gcc_cv_decl_map_anon+:} false
; then :
10224 $as_echo_n "(cached) " >&6
10226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228 #include <sys/types.h>
10229 #include <sys/mman.h>
10230 #include <unistd.h>
10232 #ifndef MAP_ANONYMOUS
10233 #define MAP_ANONYMOUS MAP_ANON
10239 int n = MAP_ANONYMOUS;
10244 if ac_fn_cxx_try_compile
"$LINENO"; then :
10245 gcc_cv_decl_map_anon
=yes
10247 gcc_cv_decl_map_anon
=no
10249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10252 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10254 if test $gcc_cv_decl_map_anon = no
; then
10255 gcc_cv_func_mmap_anon
=no
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10258 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10259 if ${gcc_cv_func_mmap_anon+:} false
; then :
10260 $as_echo_n "(cached) " >&6
10262 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10263 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10264 # doesn't give anonymous zeroed pages with the same properties listed
10265 # above for use of /dev/zero.
10266 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10268 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10269 gcc_cv_func_mmap_anon
=no
;;
10271 gcc_cv_func_mmap_anon
=yes;;
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10275 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10279 if test $gcc_cv_func_mmap_file = yes; then
10281 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10284 if test $gcc_cv_func_mmap_dev_zero = yes; then
10286 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10289 if test $gcc_cv_func_mmap_anon = yes; then
10291 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10298 # Under VMS, vfork works very differently than on Unix. The standard test
10299 # won't work, and it isn't easily adaptable. It makes more sense to
10301 ac_cv_func_vfork_works
=yes
10304 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10305 if test "x$ac_cv_type_pid_t" = xyes
; then :
10309 cat >>confdefs.h
<<_ACEOF
10315 for ac_header
in vfork.h
10317 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10318 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10319 cat >>confdefs.h
<<_ACEOF
10320 #define HAVE_VFORK_H 1
10326 for ac_func
in fork vfork
10328 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10329 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10330 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10331 cat >>confdefs.h
<<_ACEOF
10332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10338 if test "x$ac_cv_func_fork" = xyes
; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10340 $as_echo_n "checking for working fork... " >&6; }
10341 if ${ac_cv_func_fork_works+:} false
; then :
10342 $as_echo_n "(cached) " >&6
10344 if test "$cross_compiling" = yes; then :
10345 ac_cv_func_fork_works
=cross
10347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349 $ac_includes_default
10354 /* By Ruediger Kuhlmann. */
10355 return fork () < 0;
10361 if ac_fn_cxx_try_run
"$LINENO"; then :
10362 ac_cv_func_fork_works
=yes
10364 ac_cv_func_fork_works
=no
10366 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10367 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10372 $as_echo "$ac_cv_func_fork_works" >&6; }
10375 ac_cv_func_fork_works
=$ac_cv_func_fork
10377 if test "x$ac_cv_func_fork_works" = xcross
; then
10379 *-*-amigaos* |
*-*-msdosdjgpp*)
10380 # Override, as these systems have only a dummy fork() stub
10381 ac_cv_func_fork_works
=no
10384 ac_cv_func_fork_works
=yes
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10388 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10390 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10391 if test "x$ac_cv_func_vfork" = xyes
; then
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10393 $as_echo_n "checking for working vfork... " >&6; }
10394 if ${ac_cv_func_vfork_works+:} false
; then :
10395 $as_echo_n "(cached) " >&6
10397 if test "$cross_compiling" = yes; then :
10398 ac_cv_func_vfork_works
=cross
10400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402 /* Thanks to Paul Eggert for this test. */
10403 $ac_includes_default
10404 #include <sys/wait.h>
10405 #ifdef HAVE_VFORK_H
10406 # include <vfork.h>
10408 /* On some sparc systems, changes by the child to local and incoming
10409 argument registers are propagated back to the parent. The compiler
10410 is told about this with #include <vfork.h>, but some compilers
10411 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10412 static variable whose address is put into a register that is
10413 clobbered by the vfork. */
10416 sparc_address_test (int arg)
10418 sparc_address_test (arg) int arg;
10421 static pid_t child;
10439 pid_t parent = getpid ();
10442 sparc_address_test (0);
10447 /* Here is another test for sparc vfork register problems. This
10448 test uses lots of local variables, at least as many local
10449 variables as main has allocated so far including compiler
10450 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10451 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10452 reuse the register of parent for one of the local variables,
10453 since it will think that parent can't possibly be used any more
10454 in this routine. Assigning to the local variable will thus
10455 munge parent in the parent process. */
10457 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10458 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10459 /* Convince the compiler that p..p7 are live; otherwise, it might
10460 use the same hardware register for all 8 local variables. */
10461 if (p != p1 || p != p2 || p != p3 || p != p4
10462 || p != p5 || p != p6 || p != p7)
10465 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10466 from child file descriptors. If the child closes a descriptor
10467 before it execs or exits, this munges the parent's descriptor
10468 as well. Test for this by closing stdout in the child. */
10469 _exit(close(fileno(stdout)) != 0);
10474 while (wait(&status) != child)
10477 /* Was there some problem with vforking? */
10480 /* Did the child fail? (This shouldn't happen.) */
10483 /* Did the vfork/compiler bug occur? */
10484 || parent != getpid()
10486 /* Did the file descriptor bug occur? */
10487 || fstat(fileno(stdout), &st) != 0
10492 if ac_fn_cxx_try_run
"$LINENO"; then :
10493 ac_cv_func_vfork_works
=yes
10495 ac_cv_func_vfork_works
=no
10497 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10498 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10503 $as_echo "$ac_cv_func_vfork_works" >&6; }
10506 if test "x$ac_cv_func_fork_works" = xcross
; then
10507 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10509 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10512 if test "x$ac_cv_func_vfork_works" = xyes
; then
10514 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10518 $as_echo "#define vfork fork" >>confdefs.h
10521 if test "x$ac_cv_func_fork_works" = xyes
; then
10523 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10529 if test "X$prefix" = "XNONE"; then
10530 acl_final_prefix
="$ac_default_prefix"
10532 acl_final_prefix
="$prefix"
10534 if test "X$exec_prefix" = "XNONE"; then
10535 acl_final_exec_prefix
='${prefix}'
10537 acl_final_exec_prefix
="$exec_prefix"
10539 acl_save_prefix
="$prefix"
10540 prefix
="$acl_final_prefix"
10541 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10542 prefix
="$acl_save_prefix"
10545 # Check whether --with-gnu-ld was given.
10546 if test "${with_gnu_ld+set}" = set; then :
10547 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10552 # Prepare PATH_SEPARATOR.
10553 # The user is always right.
10554 if test "${PATH_SEPARATOR+set}" != set; then
10555 echo "#! /bin/sh" >conf$$.sh
10556 echo "exit 0" >>conf$$.sh
10558 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10566 if test "$GCC" = yes; then
10567 # Check if gcc -print-prog-name=ld gives a path.
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10569 $as_echo_n "checking for ld used by GCC... " >&6; }
10572 # gcc leaves a trailing carriage return which upsets mingw
10573 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10575 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10578 # Accept absolute paths.
10579 [\\/]* |
[A-Za-z
]:[\\/]*)
10580 re_direlt
='/[^/][^/]*/\.\./'
10581 # Canonicalize the path of ld
10582 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10583 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10584 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10586 test -z "$LD" && LD
="$ac_prog"
10589 # If it fails, then pretend we aren't using GCC.
10593 # If it is relative, then search for the first ld in PATH.
10594 with_gnu_ld
=unknown
10597 elif test "$with_gnu_ld" = yes; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10599 $as_echo_n "checking for GNU ld... " >&6; }
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10602 $as_echo_n "checking for non-GNU ld... " >&6; }
10604 if ${acl_cv_path_LD+:} false
; then :
10605 $as_echo_n "(cached) " >&6
10607 if test -z "$LD"; then
10608 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10609 for ac_dir
in $PATH; do
10610 test -z "$ac_dir" && ac_dir
=.
10611 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10612 acl_cv_path_LD
="$ac_dir/$ac_prog"
10613 # Check to see if the program is GNU ld. I'd rather use --version,
10614 # but apparently some GNU ld's only accept -v.
10615 # Break only if it was the GNU/non-GNU ld that we prefer.
10616 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10617 test "$with_gnu_ld" != no
&& break
10619 test "$with_gnu_ld" != yes && break
10625 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10629 LD
="$acl_cv_path_LD"
10630 if test -n "$LD"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10632 $as_echo "$LD" >&6; }
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 $as_echo "no" >&6; }
10637 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10639 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10640 if ${acl_cv_prog_gnu_ld+:} false
; then :
10641 $as_echo_n "(cached) " >&6
10643 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10644 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10645 acl_cv_prog_gnu_ld
=yes
10647 acl_cv_prog_gnu_ld
=no
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10651 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10652 with_gnu_ld
=$acl_cv_prog_gnu_ld
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10657 $as_echo_n "checking for shared library run path origin... " >&6; }
10658 if ${acl_cv_rpath+:} false
; then :
10659 $as_echo_n "(cached) " >&6
10662 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10663 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10665 rm -f .
/conftest.sh
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10670 $as_echo "$acl_cv_rpath" >&6; }
10672 libext
="$acl_cv_libext"
10673 shlibext
="$acl_cv_shlibext"
10674 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10675 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10676 hardcode_direct
="$acl_cv_hardcode_direct"
10677 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10678 # Check whether --enable-rpath was given.
10679 if test "${enable_rpath+set}" = set; then :
10680 enableval
=$enable_rpath; :
10694 acl_save_prefix
="$prefix"
10695 prefix
="$acl_final_prefix"
10696 acl_save_exec_prefix
="$exec_prefix"
10697 exec_prefix
="$acl_final_exec_prefix"
10699 eval additional_includedir
=\"$includedir\"
10700 eval additional_libdir
=\"$libdir\"
10702 exec_prefix
="$acl_save_exec_prefix"
10703 prefix
="$acl_save_prefix"
10706 # Check whether --with-libiconv-prefix was given.
10707 if test "${with_libiconv_prefix+set}" = set; then :
10708 withval
=$with_libiconv_prefix;
10709 if test "X$withval" = "Xno"; then
10712 if test "X$withval" = "X"; then
10714 acl_save_prefix
="$prefix"
10715 prefix
="$acl_final_prefix"
10716 acl_save_exec_prefix
="$exec_prefix"
10717 exec_prefix
="$acl_final_exec_prefix"
10719 eval additional_includedir
=\"$includedir\"
10720 eval additional_libdir
=\"$libdir\"
10722 exec_prefix
="$acl_save_exec_prefix"
10723 prefix
="$acl_save_prefix"
10726 additional_includedir
="$withval/include"
10727 additional_libdir
="$withval/lib"
10738 names_already_handled
=
10739 names_next_round
='iconv '
10740 while test -n "$names_next_round"; do
10741 names_this_round
="$names_next_round"
10743 for name
in $names_this_round; do
10745 for n
in $names_already_handled; do
10746 if test "$n" = "$name"; then
10747 already_handled
=yes
10751 if test -z "$already_handled"; then
10752 names_already_handled
="$names_already_handled $name"
10753 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10754 eval value
=\"\
$HAVE_LIB$uppername\"
10755 if test -n "$value"; then
10756 if test "$value" = yes; then
10757 eval value
=\"\
$LIB$uppername\"
10758 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10759 eval value
=\"\
$LTLIB$uppername\"
10760 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10769 if test $use_additional = yes; then
10770 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10771 found_dir
="$additional_libdir"
10772 found_so
="$additional_libdir/lib$name.$shlibext"
10773 if test -f "$additional_libdir/lib$name.la"; then
10774 found_la
="$additional_libdir/lib$name.la"
10777 if test -f "$additional_libdir/lib$name.$libext"; then
10778 found_dir
="$additional_libdir"
10779 found_a
="$additional_libdir/lib$name.$libext"
10780 if test -f "$additional_libdir/lib$name.la"; then
10781 found_la
="$additional_libdir/lib$name.la"
10786 if test "X$found_dir" = "X"; then
10787 for x
in $LDFLAGS $LTLIBICONV; do
10789 acl_save_prefix
="$prefix"
10790 prefix
="$acl_final_prefix"
10791 acl_save_exec_prefix
="$exec_prefix"
10792 exec_prefix
="$acl_final_exec_prefix"
10794 exec_prefix
="$acl_save_exec_prefix"
10795 prefix
="$acl_save_prefix"
10799 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10800 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10802 found_so
="$dir/lib$name.$shlibext"
10803 if test -f "$dir/lib$name.la"; then
10804 found_la
="$dir/lib$name.la"
10807 if test -f "$dir/lib$name.$libext"; then
10809 found_a
="$dir/lib$name.$libext"
10810 if test -f "$dir/lib$name.la"; then
10811 found_la
="$dir/lib$name.la"
10817 if test "X$found_dir" != "X"; then
10822 if test "X$found_dir" != "X"; then
10823 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10824 if test "X$found_so" != "X"; then
10825 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10826 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10829 for x
in $ltrpathdirs; do
10830 if test "X$x" = "X$found_dir"; then
10835 if test -z "$haveit"; then
10836 ltrpathdirs
="$ltrpathdirs $found_dir"
10838 if test "$hardcode_direct" = yes; then
10839 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10841 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10842 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10844 for x
in $rpathdirs; do
10845 if test "X$x" = "X$found_dir"; then
10850 if test -z "$haveit"; then
10851 rpathdirs
="$rpathdirs $found_dir"
10855 for x
in $LDFLAGS $LIBICONV; do
10857 acl_save_prefix
="$prefix"
10858 prefix
="$acl_final_prefix"
10859 acl_save_exec_prefix
="$exec_prefix"
10860 exec_prefix
="$acl_final_exec_prefix"
10862 exec_prefix
="$acl_save_exec_prefix"
10863 prefix
="$acl_save_prefix"
10865 if test "X$x" = "X-L$found_dir"; then
10870 if test -z "$haveit"; then
10871 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10873 if test "$hardcode_minus_L" != no
; then
10874 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10876 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10882 if test "X$found_a" != "X"; then
10883 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10885 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10888 additional_includedir
=
10889 case "$found_dir" in
10891 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10892 additional_includedir
="$basedir/include"
10895 if test "X$additional_includedir" != "X"; then
10896 if test "X$additional_includedir" != "X/usr/include"; then
10898 if test "X$additional_includedir" = "X/usr/local/include"; then
10899 if test -n "$GCC"; then
10901 linux
*) haveit
=yes;;
10905 if test -z "$haveit"; then
10906 for x
in $CPPFLAGS $INCICONV; do
10908 acl_save_prefix
="$prefix"
10909 prefix
="$acl_final_prefix"
10910 acl_save_exec_prefix
="$exec_prefix"
10911 exec_prefix
="$acl_final_exec_prefix"
10913 exec_prefix
="$acl_save_exec_prefix"
10914 prefix
="$acl_save_prefix"
10916 if test "X$x" = "X-I$additional_includedir"; then
10921 if test -z "$haveit"; then
10922 if test -d "$additional_includedir"; then
10923 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10929 if test -n "$found_la"; then
10930 save_libdir
="$libdir"
10931 case "$found_la" in
10932 */* |
*\\*) .
"$found_la" ;;
10933 *) .
"./$found_la" ;;
10935 libdir
="$save_libdir"
10936 for dep
in $dependency_libs; do
10939 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10940 if test "X$additional_libdir" != "X/usr/lib"; then
10942 if test "X$additional_libdir" = "X/usr/local/lib"; then
10943 if test -n "$GCC"; then
10945 linux
*) haveit
=yes;;
10949 if test -z "$haveit"; then
10951 for x
in $LDFLAGS $LIBICONV; do
10953 acl_save_prefix
="$prefix"
10954 prefix
="$acl_final_prefix"
10955 acl_save_exec_prefix
="$exec_prefix"
10956 exec_prefix
="$acl_final_exec_prefix"
10958 exec_prefix
="$acl_save_exec_prefix"
10959 prefix
="$acl_save_prefix"
10961 if test "X$x" = "X-L$additional_libdir"; then
10966 if test -z "$haveit"; then
10967 if test -d "$additional_libdir"; then
10968 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10972 for x
in $LDFLAGS $LTLIBICONV; do
10974 acl_save_prefix
="$prefix"
10975 prefix
="$acl_final_prefix"
10976 acl_save_exec_prefix
="$exec_prefix"
10977 exec_prefix
="$acl_final_exec_prefix"
10979 exec_prefix
="$acl_save_exec_prefix"
10980 prefix
="$acl_save_prefix"
10982 if test "X$x" = "X-L$additional_libdir"; then
10987 if test -z "$haveit"; then
10988 if test -d "$additional_libdir"; then
10989 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10996 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10997 if test "$enable_rpath" != no
; then
10999 for x
in $rpathdirs; do
11000 if test "X$x" = "X$dir"; then
11005 if test -z "$haveit"; then
11006 rpathdirs
="$rpathdirs $dir"
11009 for x
in $ltrpathdirs; do
11010 if test "X$x" = "X$dir"; then
11015 if test -z "$haveit"; then
11016 ltrpathdirs
="$ltrpathdirs $dir"
11021 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11024 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11027 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11028 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11034 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11035 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11041 if test "X$rpathdirs" != "X"; then
11042 if test -n "$hardcode_libdir_separator"; then
11044 for found_dir
in $rpathdirs; do
11045 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11047 acl_save_libdir
="$libdir"
11049 eval flag
=\"$hardcode_libdir_flag_spec\"
11050 libdir
="$acl_save_libdir"
11051 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11053 for found_dir
in $rpathdirs; do
11054 acl_save_libdir
="$libdir"
11055 libdir
="$found_dir"
11056 eval flag
=\"$hardcode_libdir_flag_spec\"
11057 libdir
="$acl_save_libdir"
11058 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11062 if test "X$ltrpathdirs" != "X"; then
11063 for found_dir
in $ltrpathdirs; do
11064 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11075 $as_echo_n "checking for iconv... " >&6; }
11076 if ${am_cv_func_iconv+:} false
; then :
11077 $as_echo_n "(cached) " >&6
11080 am_cv_func_iconv
="no, consider installing GNU libiconv"
11082 am_save_CPPFLAGS
="$CPPFLAGS"
11083 CPPFLAGS
="$CPPFLAGS $INCICONV"
11084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11086 #include <stdlib.h>
11091 iconv_t cd = iconv_open("","");
11092 iconv(cd,NULL,NULL,NULL,NULL);
11098 if ac_fn_cxx_try_link
"$LINENO"; then :
11099 am_cv_func_iconv
=yes
11101 rm -f core conftest.err conftest.
$ac_objext \
11102 conftest
$ac_exeext conftest.
$ac_ext
11103 CPPFLAGS
="$am_save_CPPFLAGS"
11105 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11106 for _libs
in .libs _libs
; do
11107 am_save_CPPFLAGS
="$CPPFLAGS"
11108 am_save_LIBS
="$LIBS"
11109 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11110 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11113 #include <stdlib.h>
11118 iconv_t cd = iconv_open("","");
11119 iconv(cd,NULL,NULL,NULL,NULL);
11125 if ac_fn_cxx_try_link
"$LINENO"; then :
11126 INCICONV
="-I../libiconv/include"
11127 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11128 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11129 am_cv_lib_iconv
=yes
11130 am_cv_func_iconv
=yes
11132 rm -f core conftest.err conftest.
$ac_objext \
11133 conftest
$ac_exeext conftest.
$ac_ext
11134 CPPFLAGS
="$am_save_CPPFLAGS"
11135 LIBS
="$am_save_LIBS"
11136 if test "$am_cv_func_iconv" = "yes"; then
11142 if test "$am_cv_func_iconv" != yes; then
11143 am_save_CPPFLAGS
="$CPPFLAGS"
11144 am_save_LIBS
="$LIBS"
11145 CPPFLAGS
="$CPPFLAGS $INCICONV"
11146 LIBS
="$LIBS $LIBICONV"
11147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11149 #include <stdlib.h>
11154 iconv_t cd = iconv_open("","");
11155 iconv(cd,NULL,NULL,NULL,NULL);
11161 if ac_fn_cxx_try_link
"$LINENO"; then :
11162 am_cv_lib_iconv
=yes
11163 am_cv_func_iconv
=yes
11165 rm -f core conftest.err conftest.
$ac_objext \
11166 conftest
$ac_exeext conftest.
$ac_ext
11167 CPPFLAGS
="$am_save_CPPFLAGS"
11168 LIBS
="$am_save_LIBS"
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11173 $as_echo "$am_cv_func_iconv" >&6; }
11174 if test "$am_cv_func_iconv" = yes; then
11176 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11179 if test "$am_cv_lib_iconv" = yes; then
11181 for element
in $INCICONV; do
11183 for x
in $CPPFLAGS; do
11185 acl_save_prefix
="$prefix"
11186 prefix
="$acl_final_prefix"
11187 acl_save_exec_prefix
="$exec_prefix"
11188 exec_prefix
="$acl_final_exec_prefix"
11190 exec_prefix
="$acl_save_exec_prefix"
11191 prefix
="$acl_save_prefix"
11193 if test "X$x" = "X$element"; then
11198 if test -z "$haveit"; then
11199 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11204 $as_echo_n "checking how to link with libiconv... " >&6; }
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11206 $as_echo "$LIBICONV" >&6; }
11214 if test "$am_cv_func_iconv" = yes; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11216 $as_echo_n "checking for iconv declaration... " >&6; }
11217 if ${am_cv_proto_iconv+:} false
; then :
11218 $as_echo_n "(cached) " >&6
11221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11224 #include <stdlib.h>
11230 #if defined(__STDC__) || defined(__cplusplus)
11231 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11244 if ac_fn_cxx_try_compile
"$LINENO"; then :
11245 am_cv_proto_iconv_arg1
=""
11247 am_cv_proto_iconv_arg1
="const"
11249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11250 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);"
11253 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11255 }$am_cv_proto_iconv" >&5
11257 }$am_cv_proto_iconv" >&6; }
11259 cat >>confdefs.h
<<_ACEOF
11260 #define ICONV_CONST $am_cv_proto_iconv_arg1
11266 # Until we have in-tree GNU iconv:
11268 if test -f "$LTLIBICONV"; then
11269 LIBICONV_DEP
=$LTLIBICONV
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11275 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11276 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11277 $as_echo_n "(cached) " >&6
11279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281 #include <locale.h>
11290 if ac_fn_cxx_try_link
"$LINENO"; then :
11291 am_cv_val_LC_MESSAGES
=yes
11293 am_cv_val_LC_MESSAGES
=no
11295 rm -f core conftest.err conftest.
$ac_objext \
11296 conftest
$ac_exeext conftest.
$ac_ext
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11299 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11300 if test $am_cv_val_LC_MESSAGES = yes; then
11302 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11309 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11310 if ${am_cv_langinfo_codeset+:} false
; then :
11311 $as_echo_n "(cached) " >&6
11313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315 #include <langinfo.h>
11319 char* cs = nl_langinfo(CODESET);
11324 if ac_fn_cxx_try_link
"$LINENO"; then :
11325 am_cv_langinfo_codeset
=yes
11327 am_cv_langinfo_codeset
=no
11329 rm -f core conftest.err conftest.
$ac_objext \
11330 conftest
$ac_exeext conftest.
$ac_ext
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11334 $as_echo "$am_cv_langinfo_codeset" >&6; }
11335 if test $am_cv_langinfo_codeset = yes; then
11337 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11342 # We will need to find libiberty.h and ansidecl.h
11343 saved_CFLAGS
="$CFLAGS"
11344 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11345 saved_CXXFLAGS
="$CXXFLAGS"
11346 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11348 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11349 # normal autoconf function for these. But force definition of
11350 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11351 # basename handling in libiberty.h.
11352 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11353 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11354 #undef HAVE_DECL_BASENAME
11355 #define HAVE_DECL_BASENAME 1
11356 #include \"ansidecl.h\"
11357 #include \"system.h\"
11359 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11365 cat >>confdefs.h
<<_ACEOF
11366 #define HAVE_DECL_BASENAME $ac_have_decl
11368 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11369 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11370 #undef HAVE_DECL_BASENAME
11371 #define HAVE_DECL_BASENAME 1
11372 #include \"ansidecl.h\"
11373 #include \"system.h\"
11375 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11381 cat >>confdefs.h
<<_ACEOF
11382 #define HAVE_DECL_STRSTR $ac_have_decl
11386 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11387 madvise stpcpy strnlen strsignal strverscmp \
11388 strtol strtoul strtoll strtoull setenv unsetenv \
11389 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11390 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
11392 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11394 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11395 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11396 $as_echo_n "(cached) " >&6
11398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11401 #define $ac_tr_decl 1
11403 #include "ansidecl.h"
11404 #include "system.h"
11410 char *(*pfn) = (char *(*)) $ac_func ;
11416 if ac_fn_cxx_try_compile
"$LINENO"; then :
11417 eval "gcc_cv_have_decl_$ac_func=yes"
11419 eval "gcc_cv_have_decl_$ac_func=no"
11421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11424 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11426 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11427 #define $ac_tr_decl 1
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11433 #define $ac_tr_decl 0
11441 for ac_func
in getrlimit setrlimit getrusage
11443 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11445 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11446 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11447 $as_echo_n "(cached) " >&6
11449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11450 /* end confdefs.h. */
11452 #define $ac_tr_decl 1
11454 #include "ansidecl.h"
11455 #include "system.h"
11456 #ifdef HAVE_SYS_RESOURCE_H
11457 #include <sys/resource.h>
11465 char *(*pfn) = (char *(*)) $ac_func ;
11471 if ac_fn_cxx_try_compile
"$LINENO"; then :
11472 eval "gcc_cv_have_decl_$ac_func=yes"
11474 eval "gcc_cv_have_decl_$ac_func=no"
11476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11479 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11481 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11482 #define $ac_tr_decl 1
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11488 #define $ac_tr_decl 0
11496 for ac_func
in mallinfo
11498 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11500 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11501 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11502 $as_echo_n "(cached) " >&6
11504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11507 #define $ac_tr_decl 1
11509 #include "ansidecl.h"
11510 #include "system.h"
11511 #ifdef HAVE_MALLOC_H
11512 #include <malloc.h>
11520 char *(*pfn) = (char *(*)) $ac_func ;
11526 if ac_fn_cxx_try_compile
"$LINENO"; then :
11527 eval "gcc_cv_have_decl_$ac_func=yes"
11529 eval "gcc_cv_have_decl_$ac_func=no"
11531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11534 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11536 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11537 #define $ac_tr_decl 1
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11543 #define $ac_tr_decl 0
11551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11554 #include "ansidecl.h"
11555 #include "system.h"
11556 #ifdef HAVE_SYS_RESOURCE_H
11557 #include <sys/resource.h>
11568 if ac_fn_cxx_try_compile
"$LINENO"; then :
11572 $as_echo "#define rlim_t long" >>confdefs.h
11575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11577 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11578 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11579 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11580 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11581 for ac_func
in ldgetname
11583 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11585 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11586 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11587 $as_echo_n "(cached) " >&6
11589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11590 /* end confdefs.h. */
11592 #define $ac_tr_decl 1
11594 #include "ansidecl.h"
11595 #include "system.h"
11596 #ifdef HAVE_LDFCN_H
11607 char *(*pfn) = (char *(*)) $ac_func ;
11613 if ac_fn_cxx_try_compile
"$LINENO"; then :
11614 eval "gcc_cv_have_decl_$ac_func=yes"
11616 eval "gcc_cv_have_decl_$ac_func=no"
11618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11621 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11624 #define $ac_tr_decl 1
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11630 #define $ac_tr_decl 0
11638 for ac_func
in times
11640 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11642 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11643 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11644 $as_echo_n "(cached) " >&6
11646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h. */
11649 #define $ac_tr_decl 1
11651 #include "ansidecl.h"
11652 #include "system.h"
11653 #ifdef HAVE_SYS_TIMES_H
11654 #include <sys/times.h>
11662 char *(*pfn) = (char *(*)) $ac_func ;
11668 if ac_fn_cxx_try_compile
"$LINENO"; then :
11669 eval "gcc_cv_have_decl_$ac_func=yes"
11671 eval "gcc_cv_have_decl_$ac_func=no"
11673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11676 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11678 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11679 #define $ac_tr_decl 1
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11685 #define $ac_tr_decl 0
11693 for ac_func
in sigaltstack
11695 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11697 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11698 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11699 $as_echo_n "(cached) " >&6
11701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11704 #define $ac_tr_decl 1
11706 #include "ansidecl.h"
11707 #include "system.h"
11708 #include <signal.h>
11715 char *(*pfn) = (char *(*)) $ac_func ;
11721 if ac_fn_cxx_try_compile
"$LINENO"; then :
11722 eval "gcc_cv_have_decl_$ac_func=yes"
11724 eval "gcc_cv_have_decl_$ac_func=no"
11726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11729 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11731 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11732 #define $ac_tr_decl 1
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11738 #define $ac_tr_decl 0
11746 # More time-related stuff.
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11748 $as_echo_n "checking for struct tms... " >&6; }
11749 if ${ac_cv_struct_tms+:} false
; then :
11750 $as_echo_n "(cached) " >&6
11753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11756 #include "ansidecl.h"
11757 #include "system.h"
11758 #ifdef HAVE_SYS_TIMES_H
11759 #include <sys/times.h>
11770 if ac_fn_cxx_try_compile
"$LINENO"; then :
11771 ac_cv_struct_tms
=yes
11773 ac_cv_struct_tms
=no
11775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11778 $as_echo "$ac_cv_struct_tms" >&6; }
11779 if test $ac_cv_struct_tms = yes; then
11781 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11785 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11786 # revisit after autoconf 2.50.
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11788 $as_echo_n "checking for clock_t... " >&6; }
11789 if ${gcc_cv_type_clock_t+:} false
; then :
11790 $as_echo_n "(cached) " >&6
11793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h. */
11796 #include "ansidecl.h"
11797 #include "system.h"
11807 if ac_fn_cxx_try_compile
"$LINENO"; then :
11808 gcc_cv_type_clock_t
=yes
11810 gcc_cv_type_clock_t
=no
11812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11815 $as_echo "$gcc_cv_type_clock_t" >&6; }
11816 if test $gcc_cv_type_clock_t = yes; then
11818 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11822 # Check if F_SETLKW is supported by fcntl.
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11824 $as_echo_n "checking for F_SETLKW... " >&6; }
11825 if ${ac_cv_f_setlkw+:} false
; then :
11826 $as_echo_n "(cached) " >&6
11829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11842 return fcntl (1, F_SETLKW, &fl);
11847 if ac_fn_cxx_try_compile
"$LINENO"; then :
11852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11855 $as_echo "$ac_cv_f_setlkw" >&6; }
11856 if test $ac_cv_f_setlkw = yes; then
11858 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11862 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11863 CFLAGS
="$saved_CFLAGS"
11864 CXXFLAGS
="$saved_CXXFLAGS"
11866 # mkdir takes a single argument on some systems.
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11868 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11869 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
11870 $as_echo_n "(cached) " >&6
11872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11875 #include <sys/types.h>
11876 #ifdef HAVE_SYS_STAT_H
11877 # include <sys/stat.h>
11879 #ifdef HAVE_UNISTD_H
11880 # include <unistd.h>
11882 #ifdef HAVE_DIRECT_H
11883 # include <direct.h>
11893 if ac_fn_cxx_try_compile
"$LINENO"; then :
11894 gcc_cv_mkdir_takes_one_arg
=no
11896 gcc_cv_mkdir_takes_one_arg
=yes
11898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11901 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11902 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11904 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11915 # With Setjmp/Longjmp based exception handling.
11916 # Check whether --enable-sjlj-exceptions was given.
11917 if test "${enable_sjlj_exceptions+set}" = set; then :
11918 enableval
=$enable_sjlj_exceptions; case $target in
11920 if test $enableval != yes; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11922 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11927 force_sjlj_exceptions
=yes
11931 force_sjlj_exceptions
=yes
11935 force_sjlj_exceptions
=yes
11939 force_sjlj_exceptions
=no
11944 if test $force_sjlj_exceptions = yes; then
11945 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11947 cat >>confdefs.h
<<_ACEOF
11948 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11953 # --------------------------------------------------------
11954 # Build, host, and target specific configuration fragments
11955 # --------------------------------------------------------
11957 # Collect build-machine-specific information.
11958 .
${srcdir}/config.build ||
exit 1
11960 # Collect host-machine-specific information.
11961 .
${srcdir}/config.
host ||
exit 1
11965 # Collect target-machine-specific information.
11966 .
${srcdir}/config.gcc ||
exit 1
11968 extra_objs
="${host_extra_objs} ${extra_objs}"
11969 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11971 # Default the target-machine variables that were not explicitly set.
11972 if test x
"$tm_file" = x
11973 then tm_file
=$cpu_type/$cpu_type.h
; fi
11975 if test x
"$extra_headers" = x
11976 then extra_headers
=; fi
11978 if test x
$md_file = x
11979 then md_file
=$cpu_type/$cpu_type.md
; fi
11981 if test x
$out_file = x
11982 then out_file
=$cpu_type/$cpu_type.c
; fi
11984 if test x
"$tmake_file" = x
11985 then tmake_file
=$cpu_type/t-
$cpu_type
11988 # Support --enable-initfini-array.
11989 if test x
$enable_initfini_array != xno
; then
11990 tm_file
="${tm_file} initfini-array.h"
11993 if test x
"$dwarf2" = xyes
11994 then tm_file
="$tm_file tm-dwarf2.h"
11997 # Say what files are being used for the output code and MD file.
11998 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11999 echo "Using \`$srcdir/config/$md_file' as machine description file."
12001 # If any of the xm_file variables contain nonexistent files, warn
12002 # about them and drop them.
12005 for x
in $build_xm_file; do
12006 if test -f $srcdir/config
/$x
12008 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12009 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12012 build_xm_file
="$bx"
12015 for x
in $host_xm_file; do
12016 if test -f $srcdir/config
/$x
12018 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12019 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12025 for x
in $xm_file; do
12026 if test -f $srcdir/config
/$x
12028 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12029 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12035 for f
in $tm_file; do
12038 if test $count = ax
; then
12039 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12041 echo "Using the following target machine macro files:"
12042 for f
in $tm_file; do
12043 echo " $srcdir/config/$f"
12047 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12049 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12053 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12055 cat >>confdefs.h
<<_ACEOF
12056 #define HAVE_GNU_LD $gnu_ld_bool
12060 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12062 cat >>confdefs.h
<<_ACEOF
12063 #define HAVE_GNU_AS $gnu_as_bool
12068 for f
in $host_xm_file; do
12071 if test $count = a
; then
12073 elif test $count = ax
; then
12074 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12076 echo "Using the following host machine macro files:"
12077 for f
in $host_xm_file; do
12078 echo " $srcdir/config/$f"
12081 echo "Using ${out_host_hook_obj} for host machine hooks."
12083 if test "$host_xm_file" != "$build_xm_file"; then
12085 for f
in $build_xm_file; do
12088 if test $count = a
; then
12090 elif test $count = ax
; then
12091 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12093 echo "Using the following build machine macro files:"
12094 for f
in $build_xm_file; do
12095 echo " $srcdir/config/$f"
12100 if test -n "$configured_native_system_header_dir"; then
12101 native_system_header_dir
=$configured_native_system_header_dir
12103 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12107 powerpc
*-*-darwin*)
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12109 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12110 if ${gcc_cv_mcontext_underscores+:} false
; then :
12111 $as_echo_n "(cached) " >&6
12113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12116 #include <sys/cdefs.h>
12117 #include <sys/signal.h>
12118 #include <ucontext.h>
12119 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12122 if ac_fn_cxx_try_compile
"$LINENO"; then :
12123 gcc_cv_mcontext_underscores
=no
12125 gcc_cv_mcontext_underscores
=yes
12127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12130 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12131 if test $gcc_cv_mcontext_underscores = yes; then
12133 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12143 # Check if a valid thread package
12144 case ${enable_threads} in
12147 target_thread_file
='single'
12151 target_thread_file
='single'
12153 aix | dce | lynx | mipssde | posix | rtems | \
12154 single | tpf | vxworks | win32
)
12155 target_thread_file
=${enable_threads}
12158 echo "${enable_threads} is an unknown thread package" 1>&2
12163 if test x
${thread_file} = x
; then
12164 # No thread file set by target-specific clauses in config.gcc,
12165 # so use file chosen by default logic above
12166 thread_file
=${target_thread_file}
12174 if test x
$enable___cxa_atexit = xyes || \
12175 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12176 if test x
$host = x
$target; then
12178 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12179 # keyed to flag_use_cxa_atexit
12187 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12188 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12191 echo "__cxa_atexit can't be enabled on this target"
12197 # We can't check for __cxa_atexit when building a cross, so assume
12201 if test x
$use_cxa_atexit = xyes
; then
12203 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12208 # Look for a file containing extra machine modes.
12209 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12210 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12213 cat >>confdefs.h
<<_ACEOF
12214 #define EXTRA_MODES_FILE "config/$extra_modes"
12219 # Convert extra_options into a form suitable for Makefile use.
12222 for f
in $extra_options; do
12223 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12224 all_opt_files
="$all_opt_files $srcdir/config/$f"
12228 # auto-host.h is the file containing items generated by autoconf and is
12229 # the first file included by config.h.
12230 # If host=build, it is correct to have bconfig include auto-host.h
12231 # as well. If host!=build, we are in error and need to do more
12232 # work to find out the build config parameters.
12233 if test x
$host = x
$build
12235 build_auto
=auto-host.h
12236 HAVE_AUTO_BUILD
='# '
12238 # We create a subdir, then run autoconf in the subdir.
12239 # To prevent recursion we set host and build for the new
12240 # invocation of configure to the build for this invocation
12247 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12248 *) realsrcdir
=..
/${srcdir};;
12250 # Clearing GMPINC is necessary to prevent host headers being
12251 # used by the build compiler. Defining GENERATOR_FILE stops
12252 # system.h from including gmp.h.
12253 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12254 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
12255 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
12256 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
12257 ${realsrcdir}/configure \
12258 --enable-languages=${enable_languages-all} \
12259 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12260 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12261 --target=$target_alias --host=$build_alias \
12262 --build=$build_alias ||
exit # retaining $tempdir
12264 # We just finished tests for the build machine, so rename
12265 # the file auto-build.h in the gcc directory.
12266 mv auto-host.h ..
/auto-build.h
12269 build_auto
=auto-build.h
12275 tm_file
="${tm_file} defaults.h"
12276 tm_p_file
="${tm_p_file} tm-preds.h"
12277 tm_d_file
="${tm_d_file} defaults.h"
12278 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12279 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12280 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12281 # put this back in temporarily.
12282 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12288 # Compile in configure arguments.
12289 if test -f configargs.h
; then
12290 # Being re-configured.
12291 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12292 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12293 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12294 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12297 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12300 # Double all backslashes and backslash all quotes to turn
12301 # gcc_config_arguments into a C string.
12302 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12303 $gcc_config_arguments
12305 gcc_config_arguments_str
=`cat conftest.out`
12308 cat > configargs.h
<<EOF
12309 /* Generated automatically. */
12310 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12311 static const char thread_model[] = "$thread_file";
12313 static const struct {
12314 const char *name, *value;
12315 } configure_default_options[] = $configure_default_options;
12318 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12319 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12320 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12321 if test -f $srcdir/REVISION
; then
12322 gcc_REVISION
=`cat $srcdir/REVISION`
12326 cat > plugin-version.h
<<EOF
12327 #include "configargs.h"
12329 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12330 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12331 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12332 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12334 static char basever[] = "$gcc_BASEVER";
12335 static char datestamp[] = "$gcc_DATESTAMP";
12336 static char devphase[] = "$gcc_DEVPHASE";
12337 static char revision[] = "$gcc_REVISION";
12339 /* FIXME plugins: We should make the version information more precise.
12340 One way to do is to add a checksum. */
12342 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12343 devphase, revision,
12344 configuration_arguments};
12347 # Determine what GCC version number to use in filesystem paths.
12349 get_gcc_base_ver
="cat"
12351 # Check whether --with-gcc-major-version-only was given.
12352 if test "${with_gcc_major_version_only+set}" = set; then :
12353 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12354 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12362 # Internationalization
12363 # If we haven't got the data from the intl directory,
12364 # assume NLS is disabled.
12373 if test -f ..
/intl
/config.intl
; then
12374 . ..
/intl
/config.intl
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12377 $as_echo_n "checking whether NLS is requested... " >&6; }
12378 if test x
"$USE_NLS" != xyes
; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; }
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12383 $as_echo "yes" >&6; }
12385 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12389 $as_echo_n "checking for catalogs to be installed... " >&6; }
12390 # Look for .po and .gmo files in the source directory.
12393 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12394 # If there aren't any .gmo files the shell will give us the
12395 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12397 case "$cat" in *\
**)
12400 # The quadruple backslash is collapsed to a double backslash
12401 # by the backticks, then collapsed again by the double quotes,
12402 # leaving us with one backslash in the sed expression (right
12403 # before the dot that mustn't act as a wildcard).
12404 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12405 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12406 # The user is allowed to set LINGUAS to a list of languages to
12407 # install catalogs for. If it's empty that means "all of them."
12408 if test "x$LINGUAS" = x
; then
12409 CATALOGS
="$CATALOGS $cat"
12410 XLINGUAS
="$XLINGUAS $lang"
12412 case "$LINGUAS" in *$lang*)
12413 CATALOGS
="$CATALOGS $cat"
12414 XLINGUAS
="$XLINGUAS $lang"
12419 LINGUAS
="$XLINGUAS"
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12421 $as_echo "$LINGUAS" >&6; }
12434 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12435 # -liconv on the link line twice.
12436 case "$LIBINTL" in *$LIBICONV*)
12440 # Check whether --enable-secureplt was given.
12441 if test "${enable_secureplt+set}" = set; then :
12442 enableval
=$enable_secureplt;
12446 # Check whether --enable-mingw-wildcard was given.
12447 if test "${enable_mingw_wildcard+set}" = set; then :
12448 enableval
=$enable_mingw_wildcard;
12450 enable_mingw_wildcard
=platform
12453 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12455 cat >>confdefs.h
<<_ACEOF
12456 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12461 # Check whether --enable-large-address-aware was given.
12462 if test "${enable_large_address_aware+set}" = set; then :
12463 enableval
=$enable_large_address_aware;
12466 if test x
"$enable_large_address_aware" = xyes
; then :
12468 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12472 # Check whether --enable-leading-mingw64-underscores was given.
12473 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12474 enableval
=$enable_leading_mingw64_underscores;
12477 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12479 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12483 # Check whether --enable-cld was given.
12484 if test "${enable_cld+set}" = set; then :
12485 enableval
=$enable_cld;
12491 # Check whether --enable-frame-pointer was given.
12492 if test "${enable_frame_pointer+set}" = set; then :
12493 enableval
=$enable_frame_pointer;
12497 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
12498 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12499 enable_frame_pointer
=no
12502 enable_frame_pointer
=yes
12510 i
[34567]86-*-* | x86_64-
*-*)
12511 if test "x$enable_cld" = xyes
; then
12512 tm_defines
="${tm_defines} USE_IX86_CLD=1"
12514 if test "x$enable_frame_pointer" = xyes
; then
12515 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
12520 # Windows32 Registry support for specifying GCC installation paths.
12521 # Check whether --enable-win32-registry was given.
12522 if test "${enable_win32_registry+set}" = set; then :
12523 enableval
=$enable_win32_registry;
12528 win32 | pe | cygwin
* | mingw32
*)
12529 if test "x$enable_win32_registry" != xno
; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12531 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12532 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12533 $as_echo_n "(cached) " >&6
12535 ac_func_search_save_LIBS
=$LIBS
12536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12539 /* Override any GCC internal prototype to avoid an error.
12540 Use char because int might match the return type of a GCC
12541 builtin and then its argument prototype would still apply. */
12545 char RegOpenKeyExA ();
12549 return RegOpenKeyExA ();
12554 for ac_lib
in '' advapi32
; do
12555 if test -z "$ac_lib"; then
12556 ac_res
="none required"
12559 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12561 if ac_fn_cxx_try_link
"$LINENO"; then :
12562 ac_cv_search_RegOpenKeyExA
=$ac_res
12564 rm -f core conftest.err conftest.
$ac_objext \
12566 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12570 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12573 ac_cv_search_RegOpenKeyExA
=no
12575 rm conftest.
$ac_ext
12576 LIBS
=$ac_func_search_save_LIBS
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12579 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12580 ac_res
=$ac_cv_search_RegOpenKeyExA
12581 if test "$ac_res" != no
; then :
12582 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12585 enable_win32_registry
=no
12590 if test "x$enable_win32_registry" != xno
; then
12592 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12595 if test "x$enable_win32_registry" != xyes \
12596 && test "x$enable_win32_registry" != x
; then
12598 cat >>confdefs.h
<<_ACEOF
12599 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12607 # Get an absolute path to the GCC top-level source directory
12608 holddir
=`${PWDCMD-pwd}`
12610 topdir
=`${PWDCMD-pwd}`
12613 # Conditionalize the makefile for this host machine.
12615 for f
in ${host_xmake_file}
12617 if test -f ${srcdir}/config
/$f
12619 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12623 # Conditionalize the makefile for this target machine.
12625 for f
in ${tmake_file}
12627 if test -f ${srcdir}/config
/$f
12629 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12632 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
12634 out_object_file
=`basename $out_file .c`.o
12635 common_out_object_file
=`basename $common_out_file .c`.o
12637 tm_file_list
="options.h"
12638 tm_include_list
="options.h insn-constants.h"
12639 for f
in $tm_file; do
12642 f
=`echo $f | sed 's/^..//'`
12643 tm_file_list
="${tm_file_list} $f"
12644 tm_include_list
="${tm_include_list} $f"
12647 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12648 tm_include_list
="${tm_include_list} $f"
12651 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12652 tm_include_list
="${tm_include_list} config/$f"
12659 for f
in $tm_p_file; do
12662 tm_p_file_list
="${tm_p_file_list} $f"
12663 tm_p_include_list
="${tm_p_include_list} $f"
12666 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12667 tm_p_include_list
="${tm_p_include_list} config/$f"
12672 tm_d_include_list
="options.h insn-constants.h"
12673 for f
in $tm_d_file; do
12676 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
12677 tm_d_include_list
="${tm_d_include_list} $f"
12680 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
12681 tm_d_include_list
="${tm_d_include_list} config/$f"
12688 for f
in $xm_file; do
12691 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12692 xm_include_list
="${xm_include_list} $f"
12695 xm_file_list
="${xm_file_list} $f"
12696 xm_include_list
="${xm_include_list} $f"
12699 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12700 xm_include_list
="${xm_include_list} config/$f"
12706 host_xm_include_list
=
12707 for f
in $host_xm_file; do
12710 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12711 host_xm_include_list
="${host_xm_include_list} $f"
12714 host_xm_file_list
="${host_xm_file_list} $f"
12715 host_xm_include_list
="${host_xm_include_list} $f"
12718 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12719 host_xm_include_list
="${host_xm_include_list} config/$f"
12724 build_xm_file_list
=
12725 for f
in $build_xm_file; do
12728 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12729 build_xm_include_list
="${build_xm_include_list} $f"
12731 auto-build.h | auto-host.h
)
12732 build_xm_file_list
="${build_xm_file_list} $f"
12733 build_xm_include_list
="${build_xm_include_list} $f"
12736 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12737 build_xm_include_list
="${build_xm_include_list} config/$f"
12742 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12743 # cross-compiler which does not use the native headers and libraries.
12744 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12747 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12748 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12750 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12751 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12752 if test "x$with_build_sysroot" != x
; then
12753 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12755 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12758 if test x
$host != x
$target
12760 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12762 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12763 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12764 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12767 if test "x$with_build_sysroot" != "x"; then
12768 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12769 elif test "x$with_sysroot" = x
; then
12770 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12771 elif test "x$with_sysroot" = xyes
; then
12772 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12774 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12777 target_header_dir
=${native_system_header_dir}
12780 # If this is a cross-compiler that does not
12781 # have its own set of headers then define
12784 # If this is using newlib, without having the headers available now,
12785 # then define inhibit_libc in LIBGCC2_CFLAGS.
12786 # This prevents libgcc2 from containing any code which requires libc
12788 : ${inhibit_libc=false}
12789 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12790 test x
$with_newlib = xyes
; } &&
12791 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12796 # When building gcc with a cross-compiler, we need to adjust things so
12797 # that the generator programs are still built with the native compiler.
12798 # Also, we cannot run fixincludes.
12800 # These are the normal (build=host) settings:
12801 CC_FOR_BUILD
='$(CC)'
12802 CXX_FOR_BUILD
='$(CXX)'
12803 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12804 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12805 BUILD_LDFLAGS
='$(LDFLAGS)'
12806 STMP_FIXINC
=stmp-fixinc
12808 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12809 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12811 # And these apply if build != host, or we are generating coverage data
12812 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12814 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12815 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12816 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12818 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12819 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12820 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12821 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12826 # Expand extra_headers to include complete path.
12827 # This substitutes for lots of t-* files.
12828 extra_headers_list
=
12829 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12830 for file in ${extra_headers} ; do
12831 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12834 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12835 if test x
"$use_gcc_tgmath" = xyes
12836 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12839 # Define collect2 in Makefile.
12840 case $host_can_use_collect2 in
12842 *) collect2
='collect2$(exeext)' ;;
12846 # Add a definition of USE_COLLECT2 if system wants one.
12847 case $use_collect2 in
12848 no
) use_collect2
= ;;
12851 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12852 xm_defines
="${xm_defines} USE_COLLECT2"
12853 case $host_can_use_collect2 in
12855 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
12862 cat >>confdefs.h
<<_ACEOF
12863 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12867 # ---------------------------
12868 # Assembler & linker features
12869 # ---------------------------
12871 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12872 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12873 # However when ld-new is first executed from the build tree, libtool will
12874 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12875 # to the build tree. While doing this we need to use the previous-stage
12876 # linker, or we have an infinite loop. The presence of a shell script as
12877 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12878 # the gcc/collect-ld script. So we need to know how libtool works, or
12879 # exec-tool will fail.
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12885 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12890 macro_version
='2.2.7a'
12891 macro_revision
='1.3134'
12905 ltmain
="$ac_aux_dir/ltmain.sh"
12907 # Backslashify metacharacters that are still active within
12908 # double-quoted strings.
12909 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12911 # Same as above, but do not quote variable references.
12912 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12914 # Sed substitution to delay expansion of an escaped shell variable in a
12915 # double_quote_subst'ed string.
12916 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12918 # Sed substitution to delay expansion of an escaped single quote.
12919 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12921 # Sed substitution to avoid accidental globbing in evaled expressions
12922 no_glob_subst
='s/\*/\\\*/g'
12924 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12925 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12926 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12929 $as_echo_n "checking how to print strings... " >&6; }
12930 # Test print first, because it will be a builtin if present.
12931 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12932 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12934 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12937 # Use this function as a fallback that always works.
12938 func_fallback_echo ()
12940 eval 'cat <<_LTECHO_EOF
12944 ECHO='func_fallback_echo
'
12947 # func_echo_all arg...
12948 # Invoke $ECHO with all args, space-separated.
12955 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12956 $as_echo "printf" >&6; } ;;
12957 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12958 $as_echo "print -r" >&6; } ;;
12959 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12960 $as_echo "cat" >&6; } ;;
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12977 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12978 if ${ac_cv_path_SED+:} false; then :
12979 $as_echo_n "(cached) " >&6
12981 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12982 for ac_i in 1 2 3 4 5 6 7; do
12983 ac_script="$ac_script$as_nl$ac_script"
12985 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12986 { ac_script=; unset ac_script;}
12987 if test -z "$SED"; then
12988 ac_path_SED_found=false
12989 # Loop through the user's path and
test for each of PROGNAME-LIST
12990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12991 for as_dir
in $PATH
12994 test -z "$as_dir" && as_dir
=.
12995 for ac_prog
in sed gsed
; do
12996 for ac_exec_ext
in '' $ac_executable_extensions; do
12997 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12998 as_fn_executable_p
"$ac_path_SED" ||
continue
12999 # Check for GNU ac_path_SED and select it if it is found.
13000 # Check for GNU $ac_path_SED
13001 case `"$ac_path_SED" --version 2>&1` in
13003 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13006 $as_echo_n 0123456789 >"conftest.in"
13009 cat "conftest.in" "conftest.in" >"conftest.tmp"
13010 mv "conftest.tmp" "conftest.in"
13011 cp "conftest.in" "conftest.nl"
13012 $as_echo '' >> "conftest.nl"
13013 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13014 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13015 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13016 if test $ac_count -gt ${ac_path_SED_max-0}; then
13017 # Best one so far, save it but keep looking for a better one
13018 ac_cv_path_SED
="$ac_path_SED"
13019 ac_path_SED_max
=$ac_count
13021 # 10*(2^10) chars as input seems more than enough
13022 test $ac_count -gt 10 && break
13024 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13027 $ac_path_SED_found && break 3
13032 if test -z "$ac_cv_path_SED"; then
13033 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13036 ac_cv_path_SED
=$SED
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13041 $as_echo "$ac_cv_path_SED" >&6; }
13042 SED
="$ac_cv_path_SED"
13045 test -z "$SED" && SED
=sed
13046 Xsed
="$SED -e 1s/^X//"
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13059 $as_echo_n "checking for fgrep... " >&6; }
13060 if ${ac_cv_path_FGREP+:} false
; then :
13061 $as_echo_n "(cached) " >&6
13063 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13064 then ac_cv_path_FGREP
="$GREP -F"
13066 if test -z "$FGREP"; then
13067 ac_path_FGREP_found
=false
13068 # Loop through the user's path and test for each of PROGNAME-LIST
13069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13070 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13073 test -z "$as_dir" && as_dir
=.
13074 for ac_prog
in fgrep
; do
13075 for ac_exec_ext
in '' $ac_executable_extensions; do
13076 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13077 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13078 # Check for GNU ac_path_FGREP and select it if it is found.
13079 # Check for GNU $ac_path_FGREP
13080 case `"$ac_path_FGREP" --version 2>&1` in
13082 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13085 $as_echo_n 0123456789 >"conftest.in"
13088 cat "conftest.in" "conftest.in" >"conftest.tmp"
13089 mv "conftest.tmp" "conftest.in"
13090 cp "conftest.in" "conftest.nl"
13091 $as_echo 'FGREP' >> "conftest.nl"
13092 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13093 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13094 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13095 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13096 # Best one so far, save it but keep looking for a better one
13097 ac_cv_path_FGREP
="$ac_path_FGREP"
13098 ac_path_FGREP_max
=$ac_count
13100 # 10*(2^10) chars as input seems more than enough
13101 test $ac_count -gt 10 && break
13103 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13106 $ac_path_FGREP_found && break 3
13111 if test -z "$ac_cv_path_FGREP"; then
13112 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13115 ac_cv_path_FGREP
=$FGREP
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13121 $as_echo "$ac_cv_path_FGREP" >&6; }
13122 FGREP
="$ac_cv_path_FGREP"
13125 test -z "$GREP" && GREP
=grep
13145 # Check whether --with-gnu-ld was given.
13146 if test "${with_gnu_ld+set}" = set; then :
13147 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13153 if test "$GCC" = yes; then
13154 # Check if gcc -print-prog-name=ld gives a path.
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13156 $as_echo_n "checking for ld used by $CC... " >&6; }
13159 # gcc leaves a trailing carriage return which upsets mingw
13160 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13162 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13165 # Accept absolute paths.
13167 re_direlt
='/[^/][^/]*/\.\./'
13168 # Canonicalize the pathname of ld
13169 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13170 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13171 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13173 test -z "$LD" && LD
="$ac_prog"
13176 # If it fails, then pretend we aren't using GCC.
13180 # If it is relative, then search for the first ld in PATH.
13181 with_gnu_ld
=unknown
13184 elif test "$with_gnu_ld" = yes; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13186 $as_echo_n "checking for GNU ld... " >&6; }
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13189 $as_echo_n "checking for non-GNU ld... " >&6; }
13191 if ${lt_cv_path_LD+:} false
; then :
13192 $as_echo_n "(cached) " >&6
13194 if test -z "$LD"; then
13195 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13196 for ac_dir
in $PATH; do
13198 test -z "$ac_dir" && ac_dir
=.
13199 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13200 lt_cv_path_LD
="$ac_dir/$ac_prog"
13201 # Check to see if the program is GNU ld. I'd rather use --version,
13202 # but apparently some variants of GNU ld only accept -v.
13203 # Break only if it was the GNU/non-GNU ld that we prefer.
13204 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13205 *GNU
* |
*'with BFD'*)
13206 test "$with_gnu_ld" != no
&& break
13209 test "$with_gnu_ld" != yes && break
13216 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13220 LD
="$lt_cv_path_LD"
13221 if test -n "$LD"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13223 $as_echo "$LD" >&6; }
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13228 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13230 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13231 if ${lt_cv_prog_gnu_ld+:} false
; then :
13232 $as_echo_n "(cached) " >&6
13234 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13235 case `$LD -v 2>&1 </dev/null` in
13236 *GNU
* |
*'with BFD'*)
13237 lt_cv_prog_gnu_ld
=yes
13240 lt_cv_prog_gnu_ld
=no
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13245 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13246 with_gnu_ld
=$lt_cv_prog_gnu_ld
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13257 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13258 if ${lt_cv_path_NM+:} false
; then :
13259 $as_echo_n "(cached) " >&6
13261 if test -n "$NM"; then
13262 # Let the user override the test.
13263 lt_cv_path_NM
="$NM"
13265 lt_nm_to_check
="${ac_tool_prefix}nm"
13266 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13267 lt_nm_to_check
="$lt_nm_to_check nm"
13269 for lt_tmp_nm
in $lt_nm_to_check; do
13270 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13271 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13273 test -z "$ac_dir" && ac_dir
=.
13274 tmp_nm
="$ac_dir/$lt_tmp_nm"
13275 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
13276 # Check to see if the nm accepts a BSD-compat flag.
13277 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13278 # nm: unknown option "B" ignored
13279 # Tru64's nm complains that /dev/null is an invalid object file
13280 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13281 */dev
/null
* |
*'Invalid file or object type'*)
13282 lt_cv_path_NM
="$tmp_nm -B"
13286 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13288 lt_cv_path_NM
="$tmp_nm -p"
13292 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13293 continue # so that we can try to find one that supports BSD flags
13302 : ${lt_cv_path_NM=no}
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13306 $as_echo "$lt_cv_path_NM" >&6; }
13307 if test "$lt_cv_path_NM" != "no"; then
13308 NM
="$lt_cv_path_NM"
13310 # Didn't find any BSD compatible name lister, look for dumpbin.
13311 if test -n "$DUMPBIN"; then :
13312 # Let the user override the test.
13314 if test -n "$ac_tool_prefix"; then
13315 for ac_prog
in dumpbin
"link -dump"
13317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13318 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320 $as_echo_n "checking for $ac_word... " >&6; }
13321 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13322 $as_echo_n "(cached) " >&6
13324 if test -n "$DUMPBIN"; then
13325 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13328 for as_dir
in $PATH
13331 test -z "$as_dir" && as_dir
=.
13332 for ac_exec_ext
in '' $ac_executable_extensions; do
13333 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13334 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13344 DUMPBIN
=$ac_cv_prog_DUMPBIN
13345 if test -n "$DUMPBIN"; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13347 $as_echo "$DUMPBIN" >&6; }
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 $as_echo "no" >&6; }
13354 test -n "$DUMPBIN" && break
13357 if test -z "$DUMPBIN"; then
13358 ac_ct_DUMPBIN
=$DUMPBIN
13359 for ac_prog
in dumpbin
"link -dump"
13361 # Extract the first word of "$ac_prog", so it can be a program name with args.
13362 set dummy
$ac_prog; ac_word
=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13366 $as_echo_n "(cached) " >&6
13368 if test -n "$ac_ct_DUMPBIN"; then
13369 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
13371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13372 for as_dir
in $PATH
13375 test -z "$as_dir" && as_dir
=.
13376 for ac_exec_ext
in '' $ac_executable_extensions; do
13377 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13378 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13388 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
13389 if test -n "$ac_ct_DUMPBIN"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13391 $as_echo "$ac_ct_DUMPBIN" >&6; }
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13398 test -n "$ac_ct_DUMPBIN" && break
13401 if test "x$ac_ct_DUMPBIN" = x
; then
13404 case $cross_compiling:$ac_tool_warned in
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13408 ac_tool_warned
=yes ;;
13410 DUMPBIN
=$ac_ct_DUMPBIN
13414 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13416 DUMPBIN
="$DUMPBIN -symbols"
13424 if test "$DUMPBIN" != ":"; then
13428 test -z "$NM" && NM
=nm
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13436 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13437 if ${lt_cv_nm_interface+:} false
; then :
13438 $as_echo_n "(cached) " >&6
13440 lt_cv_nm_interface
="BSD nm"
13441 echo "int some_variable = 0;" > conftest.
$ac_ext
13442 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13443 (eval "$ac_compile" 2>conftest.err
)
13444 cat conftest.err
>&5
13445 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13446 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13447 cat conftest.err
>&5
13448 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13449 cat conftest.out
>&5
13450 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13451 lt_cv_nm_interface
="MS dumpbin"
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13456 $as_echo "$lt_cv_nm_interface" >&6; }
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13459 $as_echo_n "checking whether ln -s works... " >&6; }
13461 if test "$LN_S" = "ln -s"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13463 $as_echo "yes" >&6; }
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13466 $as_echo "no, using $LN_S" >&6; }
13469 # find the maximum length of command line arguments
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13471 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13472 if ${lt_cv_sys_max_cmd_len+:} false
; then :
13473 $as_echo_n "(cached) " >&6
13480 # On DJGPP, this test can blow up pretty badly due to problems in libc
13481 # (any single argument exceeding 2000 bytes causes a buffer overrun
13482 # during glob expansion). Even if it were fixed, the result of this
13483 # check would be larger than it should be.
13484 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13488 # Under GNU Hurd, this test is not required because there is
13489 # no limit to the length of command line arguments.
13490 # Libtool will interpret -1 as no limit whatsoever
13491 lt_cv_sys_max_cmd_len
=-1;
13494 cygwin
* | mingw
* | cegcc
*)
13495 # On Win9x/ME, this test blows up -- it succeeds, but takes
13496 # about 5 minutes as the teststring grows exponentially.
13497 # Worse, since 9x/ME are not pre-emptively multitasking,
13498 # you end up with a "frozen" computer, even though with patience
13499 # the test eventually succeeds (with a max line length of 256k).
13500 # Instead, let's just punt: use the minimum linelength reported by
13501 # all of the supported platforms: 8192 (on NT/2K/XP).
13502 lt_cv_sys_max_cmd_len
=8192;
13506 # On MiNT this can take a long time and run out of memory.
13507 lt_cv_sys_max_cmd_len
=8192;
13511 # On AmigaOS with pdksh, this test takes hours, literally.
13512 # So we just punt and use a minimum line length of 8192.
13513 lt_cv_sys_max_cmd_len
=8192;
13516 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13517 # This has been around since 386BSD, at least. Likely further.
13518 if test -x /sbin
/sysctl
; then
13519 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13520 elif test -x /usr
/sbin
/sysctl
; then
13521 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13523 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13525 # And add a safety zone
13526 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13527 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13531 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13532 lt_cv_sys_max_cmd_len
=196608
13536 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13537 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13538 # nice to cause kernel panics so lets avoid the loop below.
13539 # First set a reasonable default.
13540 lt_cv_sys_max_cmd_len
=16384
13542 if test -x /sbin
/sysconfig
; then
13543 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13544 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13549 lt_cv_sys_max_cmd_len
=102400
13551 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13552 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13553 if test -n "$kargmax"; then
13554 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13556 lt_cv_sys_max_cmd_len
=32768
13560 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13561 if test -n "$lt_cv_sys_max_cmd_len"; then
13562 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13563 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13565 # Make teststring a little bigger before we do anything with it.
13566 # a 1K string should be a reasonable start.
13567 for i
in 1 2 3 4 5 6 7 8 ; do
13568 teststring
=$teststring$teststring
13570 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13571 # If test is not a shell built-in, we'll probably end up computing a
13572 # maximum length that is only half of the actual maximum length, but
13574 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13575 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13576 test $i != 17 # 1/2 MB should be enough
13579 teststring
=$teststring$teststring
13581 # Only check the string length outside the loop.
13582 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13584 # Add a significant safety factor because C++ compilers can tack on
13585 # massive amounts of additional arguments before passing them to the
13586 # linker. It appears as though 1/2 is a usable value.
13587 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13594 if test -n $lt_cv_sys_max_cmd_len ; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13596 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13599 $as_echo "none" >&6; }
13601 max_cmd_len
=$lt_cv_sys_max_cmd_len
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13613 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13614 # Try some XSI features
13616 ( _lt_dummy
="a/b/c"
13617 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13619 && eval 'test $(( 1 + 1 )) -eq 2 \
13620 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13623 $as_echo "$xsi_shell" >&6; }
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13627 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13629 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13631 && lt_shell_append=yes
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13633 $as_echo "$lt_shell_append" >&6; }
13636 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13646 # test EBCDIC or ASCII
13647 case `echo X|tr X '\101'` in
13648 A) # ASCII based system
13649 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13650 lt_SP2NL='tr \040 \012'
13651 lt_NL2SP='tr \015\012 \040\040'
13653 *) # EBCDIC based system
13654 lt_SP2NL='tr \100 \n'
13655 lt_NL2SP='tr \r\n \100\100'
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13668 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13669 if ${lt_cv_ld_reload_flag+:} false; then :
13670 $as_echo_n "(cached
) " >&6
13672 lt_cv_ld_reload_flag='-r'
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13675 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13676 reload_flag=$lt_cv_ld_reload_flag
13677 case $reload_flag in
13679 *) reload_flag=" $reload_flag" ;;
13681 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13684 if test "$GCC" = yes; then
13685 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13687 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13700 if test -n "$ac_tool_prefix"; then
13701 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13702 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13704 $as_echo_n "checking
for $ac_word...
" >&6; }
13705 if ${ac_cv_prog_OBJDUMP+:} false; then :
13706 $as_echo_n "(cached
) " >&6
13708 if test -n "$OBJDUMP"; then
13709 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712 for as_dir in $PATH
13715 test -z "$as_dir" && as_dir=.
13716 for ac_exec_ext in '' $ac_executable_extensions; do
13717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13718 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13719 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13728 OBJDUMP=$ac_cv_prog_OBJDUMP
13729 if test -n "$OBJDUMP"; then
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13731 $as_echo "$OBJDUMP" >&6; }
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13734 $as_echo "no
" >&6; }
13739 if test -z "$ac_cv_prog_OBJDUMP"; then
13740 ac_ct_OBJDUMP=$OBJDUMP
13741 # Extract the first word of "objdump
", so it can be a program name with args.
13742 set dummy objdump; ac_word=$2
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13744 $as_echo_n "checking
for $ac_word...
" >&6; }
13745 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13746 $as_echo_n "(cached
) " >&6
13748 if test -n "$ac_ct_OBJDUMP"; then
13749 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $PATH
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13758 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13768 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13769 if test -n "$ac_ct_OBJDUMP"; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13771 $as_echo "$ac_ct_OBJDUMP" >&6; }
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13774 $as_echo "no
" >&6; }
13777 if test "x
$ac_ct_OBJDUMP" = x; then
13780 case $cross_compiling:$ac_tool_warned in
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13783 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13784 ac_tool_warned=yes ;;
13786 OBJDUMP=$ac_ct_OBJDUMP
13789 OBJDUMP="$ac_cv_prog_OBJDUMP"
13792 test -z "$OBJDUMP" && OBJDUMP=objdump
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13803 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13804 if ${lt_cv_deplibs_check_method+:} false; then :
13805 $as_echo_n "(cached
) " >&6
13807 lt_cv_file_magic_cmd='$MAGIC_CMD'
13808 lt_cv_file_magic_test_file=
13809 lt_cv_deplibs_check_method='unknown'
13810 # Need to set the preceding variable on all platforms that support
13811 # interlibrary dependencies.
13812 # 'none' -- dependencies not supported.
13813 # `unknown' -- same as none, but documents that we really don't know.
13814 # 'pass_all' -- all dependencies passed with no checks.
13815 # 'test_compile' -- check by making test program.
13816 # 'file_magic [[regex]]' -- check by looking for files in library path
13817 # which responds to the $file_magic_cmd with a given extended regex.
13818 # If you have `file' or equivalent on your system and you're not sure
13819 # whether `pass_all' will *always* work, you probably want this one.
13823 lt_cv_deplibs_check_method=pass_all
13827 lt_cv_deplibs_check_method=pass_all
13831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13832 lt_cv_file_magic_cmd='/usr/bin/file -L'
13833 lt_cv_file_magic_test_file=/shlib/libc.so
13837 # func_win32_libid is a shell function defined in ltmain.sh
13838 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13839 lt_cv_file_magic_cmd='func_win32_libid'
13843 # Base MSYS/MinGW do not provide the 'file' command needed by
13844 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13845 # unless we find 'file', for example because we are cross-compiling.
13846 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13847 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13848 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13849 lt_cv_file_magic_cmd='func_win32_libid'
13851 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13852 lt_cv_file_magic_cmd='$OBJDUMP -f'
13857 # use the weaker test based on 'objdump'. See mingw*.
13858 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13859 lt_cv_file_magic_cmd='$OBJDUMP -f'
13862 darwin* | rhapsody*)
13863 lt_cv_deplibs_check_method=pass_all
13866 freebsd* | dragonfly*)
13867 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13870 # Not sure whether the presence of OpenBSD here was a mistake.
13871 # Let's accept both of them until this is cleared up.
13872 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13873 lt_cv_file_magic_cmd=/usr/bin/file
13874 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13878 lt_cv_deplibs_check_method=pass_all
13883 lt_cv_deplibs_check_method=pass_all
13887 lt_cv_deplibs_check_method=pass_all
13890 hpux10.20* | hpux11*)
13891 lt_cv_file_magic_cmd=/usr/bin/file
13894 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13895 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13898 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]'
13899 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13902 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13903 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13909 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13913 irix5* | irix6* | nonstopux*)
13915 *-32|*"-32 ") libmagic=32-bit;;
13916 *-n32|*"-n32 ") libmagic=N32;;
13917 *-64|*"-64 ") libmagic=64-bit;;
13918 *) libmagic=never-match;;
13920 lt_cv_deplibs_check_method=pass_all
13923 # This must be Linux ELF.
13924 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13925 lt_cv_deplibs_check_method=pass_all
13929 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13938 lt_cv_file_magic_cmd=/usr/bin/file
13939 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13943 lt_cv_deplibs_check_method=pass_all
13947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13954 osf3* | osf4* | osf5*)
13955 lt_cv_deplibs_check_method=pass_all
13959 lt_cv_deplibs_check_method=pass_all
13963 lt_cv_deplibs_check_method=pass_all
13966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13967 lt_cv_deplibs_check_method=pass_all
13971 case $host_vendor in
13973 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]'
13974 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13977 lt_cv_deplibs_check_method=pass_all
13980 lt_cv_file_magic_cmd='/bin/file'
13981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13984 lt_cv_file_magic_cmd='/bin/file'
13985 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13986 lt_cv_file_magic_test_file=/lib/libc.so
13989 lt_cv_deplibs_check_method=pass_all
13992 lt_cv_deplibs_check_method=pass_all
13998 lt_cv_deplibs_check_method=pass_all
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14004 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14005 file_magic_cmd=$lt_cv_file_magic_cmd
14006 deplibs_check_method=$lt_cv_deplibs_check_method
14007 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14020 if test -n "$ac_tool_prefix"; then
14021 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14022 set dummy ${ac_tool_prefix}ar; ac_word=$2
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14024 $as_echo_n "checking
for $ac_word...
" >&6; }
14025 if ${ac_cv_prog_AR+:} false; then :
14026 $as_echo_n "(cached
) " >&6
14028 if test -n "$AR"; then
14029 ac_cv_prog_AR="$AR" # Let the user override the test.
14031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032 for as_dir in $PATH
14035 test -z "$as_dir" && as_dir=.
14036 for ac_exec_ext in '' $ac_executable_extensions; do
14037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14038 ac_cv_prog_AR="${ac_tool_prefix}ar"
14039 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14049 if test -n "$AR"; then
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14051 $as_echo "$AR" >&6; }
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14054 $as_echo "no
" >&6; }
14059 if test -z "$ac_cv_prog_AR"; then
14061 # Extract the first word of "ar", so it can be a program name with args.
14062 set dummy ar; ac_word=$2
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14064 $as_echo_n "checking
for $ac_word...
" >&6; }
14065 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14066 $as_echo_n "(cached
) " >&6
14068 if test -n "$ac_ct_AR"; then
14069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072 for as_dir in $PATH
14075 test -z "$as_dir" && as_dir=.
14076 for ac_exec_ext in '' $ac_executable_extensions; do
14077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14078 ac_cv_prog_ac_ct_AR="ar"
14079 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14088 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14089 if test -n "$ac_ct_AR"; then
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14091 $as_echo "$ac_ct_AR" >&6; }
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14094 $as_echo "no
" >&6; }
14097 if test "x
$ac_ct_AR" = x; then
14100 case $cross_compiling:$ac_tool_warned in
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14103 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14104 ac_tool_warned=yes ;;
14109 AR="$ac_cv_prog_AR"
14112 test -z "$AR" && AR=ar
14113 test -z "$AR_FLAGS" && AR_FLAGS=cru
14125 if test -n "$ac_tool_prefix"; then
14126 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14127 set dummy ${ac_tool_prefix}strip; ac_word=$2
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14129 $as_echo_n "checking
for $ac_word...
" >&6; }
14130 if ${ac_cv_prog_STRIP+:} false; then :
14131 $as_echo_n "(cached
) " >&6
14133 if test -n "$STRIP"; then
14134 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137 for as_dir in $PATH
14140 test -z "$as_dir" && as_dir=.
14141 for ac_exec_ext in '' $ac_executable_extensions; do
14142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14143 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14144 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14153 STRIP=$ac_cv_prog_STRIP
14154 if test -n "$STRIP"; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14156 $as_echo "$STRIP" >&6; }
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14159 $as_echo "no
" >&6; }
14164 if test -z "$ac_cv_prog_STRIP"; then
14166 # Extract the first word of "strip
", so it can be a program name with args.
14167 set dummy strip; ac_word=$2
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14169 $as_echo_n "checking
for $ac_word...
" >&6; }
14170 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14171 $as_echo_n "(cached
) " >&6
14173 if test -n "$ac_ct_STRIP"; then
14174 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177 for as_dir in $PATH
14180 test -z "$as_dir" && as_dir=.
14181 for ac_exec_ext in '' $ac_executable_extensions; do
14182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14183 ac_cv_prog_ac_ct_STRIP="strip
"
14184 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14193 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14194 if test -n "$ac_ct_STRIP"; then
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14196 $as_echo "$ac_ct_STRIP" >&6; }
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14199 $as_echo "no
" >&6; }
14202 if test "x
$ac_ct_STRIP" = x; then
14205 case $cross_compiling:$ac_tool_warned in
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14208 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14209 ac_tool_warned=yes ;;
14214 STRIP="$ac_cv_prog_STRIP"
14217 test -z "$STRIP" && STRIP=:
14224 if test -n "$ac_tool_prefix"; then
14225 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14226 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14228 $as_echo_n "checking
for $ac_word...
" >&6; }
14229 if ${ac_cv_prog_RANLIB+:} false; then :
14230 $as_echo_n "(cached
) " >&6
14232 if test -n "$RANLIB"; then
14233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14243 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14252 RANLIB=$ac_cv_prog_RANLIB
14253 if test -n "$RANLIB"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14255 $as_echo "$RANLIB" >&6; }
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14258 $as_echo "no
" >&6; }
14263 if test -z "$ac_cv_prog_RANLIB"; then
14264 ac_ct_RANLIB=$RANLIB
14265 # Extract the first word of "ranlib
", so it can be a program name with args.
14266 set dummy ranlib; ac_word=$2
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14268 $as_echo_n "checking
for $ac_word...
" >&6; }
14269 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14270 $as_echo_n "(cached
) " >&6
14272 if test -n "$ac_ct_RANLIB"; then
14273 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14276 for as_dir in $PATH
14279 test -z "$as_dir" && as_dir=.
14280 for ac_exec_ext in '' $ac_executable_extensions; do
14281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14282 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14283 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14292 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14293 if test -n "$ac_ct_RANLIB"; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
14295 $as_echo "$ac_ct_RANLIB" >&6; }
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14298 $as_echo "no
" >&6; }
14301 if test "x
$ac_ct_RANLIB" = x; then
14304 case $cross_compiling:$ac_tool_warned in
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14307 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14308 ac_tool_warned=yes ;;
14310 RANLIB=$ac_ct_RANLIB
14313 RANLIB="$ac_cv_prog_RANLIB"
14316 test -z "$RANLIB" && RANLIB=:
14323 # Determine commands to create old-style static archives.
14324 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14325 old_postinstall_cmds='chmod 644 $oldlib'
14326 old_postuninstall_cmds=
14328 if test -n "$RANLIB"; then
14331 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14334 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14337 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14342 lock_old_archive_extraction=yes ;;
14344 lock_old_archive_extraction=no ;;
14385 # If no C compiler was specified, use CC.
14388 # If no C compiler flags were specified, use CFLAGS.
14389 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14391 # Allow CC to be a program name with arguments.
14395 # Check for command to grab the raw symbol name followed by C symbol from nm.
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
14397 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
14398 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14399 $as_echo_n "(cached
) " >&6
14402 # These are sane defaults that work on at least a few old systems.
14403 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14405 # Character class describing NM global symbol codes.
14406 symcode='[BCDEGRST]'
14408 # Regexp to match symbols that can be accessed directly from C.
14409 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14411 # Define system-specific variables.
14416 cygwin* | mingw* | pw32* | cegcc*)
14417 symcode='[ABCDGISTW]'
14420 if test "$host_cpu" = ia64; then
14421 symcode='[ABCDEGRST]'
14424 irix* | nonstopux*)
14425 symcode='[BCDEGRST]'
14428 symcode='[BCDEGQRST]'
14439 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14447 # If we're using GNU nm, then use its standard symbol codes.
14448 case `$NM -V 2>&1` in
14449 *GNU* | *'with BFD'*)
14450 symcode='[ABCDGIRSTW]' ;;
14453 # Transform an extracted symbol line into a proper C declaration.
14454 # Some systems (esp. on ia64) link data and code symbols differently,
14455 # so use this general approach.
14456 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14458 # Transform an extracted symbol line into symbol name and symbol address
14459 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14460 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'"
14462 # Handle CRLF in mingw tool chain
14466 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14470 # Try without a prefix underscore, then with it.
14471 for ac_symprfx in "" "_
"; do
14473 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14474 symxfrm="\\1 $ac_symprfx\\2 \\2"
14476 # Write the raw and C identifiers.
14477 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14478 # Fake it for dumpbin and say T for any non-static function
14479 # and D for any global variable.
14480 # Also find C++ and __fastcall symbols from MSVC++,
14481 # which start with @ or ?.
14482 lt_cv_sys_global_symbol_pipe="$AWK '"\
14483 " {last_section=section; section=\$ 3};"\
14484 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14485 " \$ 0!~/External *\|/{next};"\
14486 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14487 " {if(hide[section]) next};"\
14488 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14489 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14490 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14491 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14492 " ' prfx
=^
$ac_symprfx"
14494 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14497 # Check to see that the pipe works correctly.
14501 cat > conftest.$ac_ext <<_LT_EOF
14506 void nm_test_func(void);
14507 void nm_test_func(void){}
14511 int main(){nm_test_var='a';nm_test_func();return(0);}
14514 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14515 (eval $ac_compile) 2>&5
14517 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14518 test $ac_status = 0; }; then
14519 # Now try to grab the symbols.
14521 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14522 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14524 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14525 test $ac_status = 0; } && test -s "$nlist"; then
14526 # Try sorting and uniquifying the output.
14527 if sort "$nlist" | uniq > "$nlist"T; then
14528 mv -f "$nlist"T "$nlist"
14533 # Make sure that we snagged all the symbols we need.
14534 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14535 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14536 cat <<_LT_EOF > conftest.$ac_ext
14542 # Now generate the symbol file.
14543 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14545 cat <<_LT_EOF >> conftest.$ac_ext
14547 /* The mapping between symbol names and symbols. */
14552 lt__PROGRAM__LTX_preloaded_symbols[] =
14554 { "@PROGRAM@
", (void *) 0 },
14556 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14557 cat <<\_LT_EOF >> conftest.$ac_ext
14561 /* This works around a problem in FreeBSD linker */
14562 #ifdef FREEBSD_WORKAROUND
14563 static const void *lt_preloaded_setup() {
14564 return lt__PROGRAM__LTX_preloaded_symbols;
14572 # Now try linking the two files.
14573 mv conftest.$ac_objext conftstm.$ac_objext
14574 lt_save_LIBS="$LIBS"
14575 lt_save_CFLAGS="$CFLAGS"
14576 LIBS="conftstm.
$ac_objext"
14577 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14578 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14579 (eval $ac_link) 2>&5
14581 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14582 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14585 LIBS="$lt_save_LIBS"
14586 CFLAGS="$lt_save_CFLAGS"
14588 echo "cannot
find nm_test_func
in $nlist" >&5
14591 echo "cannot
find nm_test_var
in $nlist" >&5
14594 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14597 echo "$progname: failed program was
:" >&5
14598 cat conftest.$ac_ext >&5
14600 rm -rf conftest* conftst*
14602 # Do not use the global_symbol_pipe unless it works.
14603 if test "$pipe_works" = yes; then
14606 lt_cv_sys_global_symbol_pipe=
14612 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14613 lt_cv_sys_global_symbol_to_cdecl=
14615 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14617 $as_echo "failed
" >&6; }
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14620 $as_echo "ok
" >&6; }
14644 # Check whether --enable-libtool-lock was given.
14645 if test "${enable_libtool_lock+set}" = set; then :
14646 enableval=$enable_libtool_lock;
14649 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14651 # Some flags need to be propagated to the compiler or linker for good
14655 # Find out which ABI we are using.
14656 echo 'int i;' > conftest.$ac_ext
14657 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14658 (eval $ac_compile) 2>&5
14660 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14661 test $ac_status = 0; }; then
14662 case `/usr/bin/file conftest.$ac_objext` in
14664 HPUX_IA64_MODE="32"
14667 HPUX_IA64_MODE="64"
14674 # Find out which ABI we are using.
14675 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14676 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14677 (eval $ac_compile) 2>&5
14679 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14680 test $ac_status = 0; }; then
14681 if test "$lt_cv_prog_gnu_ld" = yes; then
14682 case `/usr/bin/file conftest.$ac_objext` in
14684 LD="${LD-ld} -melf32bsmip"
14687 LD="${LD-ld} -melf32bmipn32"
14690 LD="${LD-ld} -melf64bmip"
14694 case `/usr/bin/file conftest.$ac_objext` in
14710 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14711 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14712 # Find out which ABI we are using.
14713 echo 'int i;' > conftest.$ac_ext
14714 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14715 (eval $ac_compile) 2>&5
14717 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14718 test $ac_status = 0; }; then
14719 case `/usr/bin/file conftest.o` in
14722 x86_64-*kfreebsd*-gnu)
14723 LD="${LD-ld} -m elf_i386_fbsd
"
14726 case `/usr/bin/file conftest.o` in
14728 LD="${LD-ld} -m elf32_x86_64
"
14731 LD="${LD-ld} -m elf_i386
"
14735 powerpc64le-*linux*)
14736 LD="${LD-ld} -m elf32lppclinux
"
14739 LD="${LD-ld} -m elf32ppclinux
"
14742 LD="${LD-ld} -m elf_s390
"
14745 LD="${LD-ld} -m elf32_sparc
"
14751 x86_64-*kfreebsd*-gnu)
14752 LD="${LD-ld} -m elf_x86_64_fbsd
"
14755 LD="${LD-ld} -m elf_x86_64
"
14758 LD="${LD-ld} -m elf64lppc
"
14761 LD="${LD-ld} -m elf64ppc
"
14763 s390*-*linux*|s390*-*tpf*)
14764 LD="${LD-ld} -m elf64_s390
"
14767 LD="${LD-ld} -m elf64_sparc
"
14777 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14778 SAVE_CFLAGS="$CFLAGS"
14779 CFLAGS="$CFLAGS -belf"
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14781 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14782 if ${lt_cv_cc_needs_belf+:} false; then :
14783 $as_echo_n "(cached
) " >&6
14786 ac_cpp='$CPP $CPPFLAGS'
14787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14802 if ac_fn_c_try_link "$LINENO"; then :
14803 lt_cv_cc_needs_belf=yes
14805 lt_cv_cc_needs_belf=no
14807 rm -f core conftest.err conftest.$ac_objext \
14808 conftest$ac_exeext conftest.$ac_ext
14810 ac_cpp='$CPP $CPPFLAGS'
14811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14817 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14818 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14819 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14820 CFLAGS="$SAVE_CFLAGS"
14824 # Find out which ABI we are using.
14825 echo 'int i;' > conftest.$ac_ext
14826 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14827 (eval $ac_compile) 2>&5
14829 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14830 test $ac_status = 0; }; then
14831 case `/usr/bin/file conftest.o` in
14833 case $lt_cv_prog_gnu_ld in
14834 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14836 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14848 need_locks="$enable_libtool_lock"
14852 rhapsody* | darwin*)
14853 if test -n "$ac_tool_prefix"; then
14854 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14855 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14857 $as_echo_n "checking
for $ac_word...
" >&6; }
14858 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14859 $as_echo_n "(cached
) " >&6
14861 if test -n "$DSYMUTIL"; then
14862 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14865 for as_dir in $PATH
14868 test -z "$as_dir" && as_dir=.
14869 for ac_exec_ext in '' $ac_executable_extensions; do
14870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14871 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14872 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14881 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14882 if test -n "$DSYMUTIL"; then
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14884 $as_echo "$DSYMUTIL" >&6; }
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14887 $as_echo "no
" >&6; }
14892 if test -z "$ac_cv_prog_DSYMUTIL"; then
14893 ac_ct_DSYMUTIL=$DSYMUTIL
14894 # Extract the first word of "dsymutil
", so it can be a program name with args.
14895 set dummy dsymutil; ac_word=$2
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14897 $as_echo_n "checking
for $ac_word...
" >&6; }
14898 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14899 $as_echo_n "(cached
) " >&6
14901 if test -n "$ac_ct_DSYMUTIL"; then
14902 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14905 for as_dir in $PATH
14908 test -z "$as_dir" && as_dir=.
14909 for ac_exec_ext in '' $ac_executable_extensions; do
14910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14911 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14912 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14921 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14922 if test -n "$ac_ct_DSYMUTIL"; then
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14924 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14927 $as_echo "no
" >&6; }
14930 if test "x
$ac_ct_DSYMUTIL" = x; then
14933 case $cross_compiling:$ac_tool_warned in
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14936 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14937 ac_tool_warned=yes ;;
14939 DSYMUTIL=$ac_ct_DSYMUTIL
14942 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14945 if test -n "$ac_tool_prefix"; then
14946 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14947 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14949 $as_echo_n "checking
for $ac_word...
" >&6; }
14950 if ${ac_cv_prog_NMEDIT+:} false; then :
14951 $as_echo_n "(cached
) " >&6
14953 if test -n "$NMEDIT"; then
14954 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14957 for as_dir in $PATH
14960 test -z "$as_dir" && as_dir=.
14961 for ac_exec_ext in '' $ac_executable_extensions; do
14962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14963 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14964 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14973 NMEDIT=$ac_cv_prog_NMEDIT
14974 if test -n "$NMEDIT"; then
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14976 $as_echo "$NMEDIT" >&6; }
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14979 $as_echo "no
" >&6; }
14984 if test -z "$ac_cv_prog_NMEDIT"; then
14985 ac_ct_NMEDIT=$NMEDIT
14986 # Extract the first word of "nmedit
", so it can be a program name with args.
14987 set dummy nmedit; ac_word=$2
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14989 $as_echo_n "checking
for $ac_word...
" >&6; }
14990 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14991 $as_echo_n "(cached
) " >&6
14993 if test -n "$ac_ct_NMEDIT"; then
14994 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14997 for as_dir in $PATH
15000 test -z "$as_dir" && as_dir=.
15001 for ac_exec_ext in '' $ac_executable_extensions; do
15002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15003 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15004 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15013 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15014 if test -n "$ac_ct_NMEDIT"; then
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15016 $as_echo "$ac_ct_NMEDIT" >&6; }
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15019 $as_echo "no
" >&6; }
15022 if test "x
$ac_ct_NMEDIT" = x; then
15025 case $cross_compiling:$ac_tool_warned in
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15028 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15029 ac_tool_warned=yes ;;
15031 NMEDIT=$ac_ct_NMEDIT
15034 NMEDIT="$ac_cv_prog_NMEDIT"
15037 if test -n "$ac_tool_prefix"; then
15038 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15039 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15041 $as_echo_n "checking
for $ac_word...
" >&6; }
15042 if ${ac_cv_prog_LIPO+:} false; then :
15043 $as_echo_n "(cached
) " >&6
15045 if test -n "$LIPO"; then
15046 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15049 for as_dir in $PATH
15052 test -z "$as_dir" && as_dir=.
15053 for ac_exec_ext in '' $ac_executable_extensions; do
15054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15055 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15056 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15065 LIPO=$ac_cv_prog_LIPO
15066 if test -n "$LIPO"; then
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15068 $as_echo "$LIPO" >&6; }
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15071 $as_echo "no
" >&6; }
15076 if test -z "$ac_cv_prog_LIPO"; then
15078 # Extract the first word of "lipo
", so it can be a program name with args.
15079 set dummy lipo; ac_word=$2
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15081 $as_echo_n "checking
for $ac_word...
" >&6; }
15082 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15083 $as_echo_n "(cached
) " >&6
15085 if test -n "$ac_ct_LIPO"; then
15086 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15089 for as_dir in $PATH
15092 test -z "$as_dir" && as_dir=.
15093 for ac_exec_ext in '' $ac_executable_extensions; do
15094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15095 ac_cv_prog_ac_ct_LIPO="lipo
"
15096 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15105 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15106 if test -n "$ac_ct_LIPO"; then
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15108 $as_echo "$ac_ct_LIPO" >&6; }
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15111 $as_echo "no
" >&6; }
15114 if test "x
$ac_ct_LIPO" = x; then
15117 case $cross_compiling:$ac_tool_warned in
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15120 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15121 ac_tool_warned=yes ;;
15126 LIPO="$ac_cv_prog_LIPO"
15129 if test -n "$ac_tool_prefix"; then
15130 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15131 set dummy ${ac_tool_prefix}otool; ac_word=$2
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15133 $as_echo_n "checking
for $ac_word...
" >&6; }
15134 if ${ac_cv_prog_OTOOL+:} false; then :
15135 $as_echo_n "(cached
) " >&6
15137 if test -n "$OTOOL"; then
15138 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15141 for as_dir in $PATH
15144 test -z "$as_dir" && as_dir=.
15145 for ac_exec_ext in '' $ac_executable_extensions; do
15146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15147 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15148 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15157 OTOOL=$ac_cv_prog_OTOOL
15158 if test -n "$OTOOL"; then
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15160 $as_echo "$OTOOL" >&6; }
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15163 $as_echo "no
" >&6; }
15168 if test -z "$ac_cv_prog_OTOOL"; then
15170 # Extract the first word of "otool
", so it can be a program name with args.
15171 set dummy otool; ac_word=$2
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15173 $as_echo_n "checking
for $ac_word...
" >&6; }
15174 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15175 $as_echo_n "(cached
) " >&6
15177 if test -n "$ac_ct_OTOOL"; then
15178 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15181 for as_dir in $PATH
15184 test -z "$as_dir" && as_dir=.
15185 for ac_exec_ext in '' $ac_executable_extensions; do
15186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15187 ac_cv_prog_ac_ct_OTOOL="otool
"
15188 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15197 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15198 if test -n "$ac_ct_OTOOL"; then
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15200 $as_echo "$ac_ct_OTOOL" >&6; }
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15203 $as_echo "no
" >&6; }
15206 if test "x
$ac_ct_OTOOL" = x; then
15209 case $cross_compiling:$ac_tool_warned in
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15212 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15213 ac_tool_warned=yes ;;
15218 OTOOL="$ac_cv_prog_OTOOL"
15221 if test -n "$ac_tool_prefix"; then
15222 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15223 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15225 $as_echo_n "checking
for $ac_word...
" >&6; }
15226 if ${ac_cv_prog_OTOOL64+:} false; then :
15227 $as_echo_n "(cached
) " >&6
15229 if test -n "$OTOOL64"; then
15230 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15233 for as_dir in $PATH
15236 test -z "$as_dir" && as_dir=.
15237 for ac_exec_ext in '' $ac_executable_extensions; do
15238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15239 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15240 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15249 OTOOL64=$ac_cv_prog_OTOOL64
15250 if test -n "$OTOOL64"; then
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15252 $as_echo "$OTOOL64" >&6; }
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15255 $as_echo "no
" >&6; }
15260 if test -z "$ac_cv_prog_OTOOL64"; then
15261 ac_ct_OTOOL64=$OTOOL64
15262 # Extract the first word of "otool64
", so it can be a program name with args.
15263 set dummy otool64; ac_word=$2
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15265 $as_echo_n "checking
for $ac_word...
" >&6; }
15266 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15267 $as_echo_n "(cached
) " >&6
15269 if test -n "$ac_ct_OTOOL64"; then
15270 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15273 for as_dir in $PATH
15276 test -z "$as_dir" && as_dir=.
15277 for ac_exec_ext in '' $ac_executable_extensions; do
15278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15279 ac_cv_prog_ac_ct_OTOOL64="otool64
"
15280 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15289 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15290 if test -n "$ac_ct_OTOOL64"; then
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
15292 $as_echo "$ac_ct_OTOOL64" >&6; }
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15295 $as_echo "no
" >&6; }
15298 if test "x
$ac_ct_OTOOL64" = x; then
15301 case $cross_compiling:$ac_tool_warned in
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15304 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15305 ac_tool_warned=yes ;;
15307 OTOOL64=$ac_ct_OTOOL64
15310 OTOOL64="$ac_cv_prog_OTOOL64"
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15340 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15341 if ${lt_cv_apple_cc_single_mod+:} false; then :
15342 $as_echo_n "(cached
) " >&6
15344 lt_cv_apple_cc_single_mod=no
15345 if test -z "${LT_MULTI_MODULE}"; then
15346 # By default we will add the -single_module flag. You can override
15347 # by either setting the environment variable LT_MULTI_MODULE
15348 # non-empty at configure time, or by adding -multi_module to the
15350 rm -rf libconftest.dylib*
15351 echo "int foo
(void
){return 1;}" > conftest.c
15352 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15353 -dynamiclib -Wl,-single_module conftest.c
" >&5
15354 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15355 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15357 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15358 lt_cv_apple_cc_single_mod=yes
15360 cat conftest.err >&5
15362 rm -rf libconftest.dylib*
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15367 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15369 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15370 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15371 $as_echo_n "(cached
) " >&6
15373 lt_cv_ld_exported_symbols_list=no
15374 save_LDFLAGS=$LDFLAGS
15375 echo "_main
" > conftest.sym
15376 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h. */
15388 if ac_fn_c_try_link "$LINENO"; then :
15389 lt_cv_ld_exported_symbols_list=yes
15391 lt_cv_ld_exported_symbols_list=no
15393 rm -f core conftest.err conftest.$ac_objext \
15394 conftest$ac_exeext conftest.$ac_ext
15395 LDFLAGS="$save_LDFLAGS"
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
15399 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
15401 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
15402 if ${lt_cv_ld_force_load+:} false; then :
15403 $as_echo_n "(cached
) " >&6
15405 lt_cv_ld_force_load=no
15406 cat > conftest.c << _LT_EOF
15407 int forced_loaded() { return 2;}
15409 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
15410 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15411 echo "$AR cru libconftest.a conftest.o
" >&5
15412 $AR cru libconftest.a conftest.o 2>&5
15413 cat > conftest.c << _LT_EOF
15414 int main() { return 0;}
15416 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
15417 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15419 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15420 lt_cv_ld_force_load=yes
15422 cat conftest.err >&5
15424 rm -f conftest.err libconftest.a conftest conftest.c
15425 rm -rf conftest.dSYM
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15429 $as_echo "$lt_cv_ld_force_load" >&6; }
15431 rhapsody* | darwin1.[012])
15432 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15434 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15435 darwin*) # darwin 5.x on
15436 # if running on 10.5 or later, the deployment target defaults
15437 # to the OS version, if on x86, and 10.4, the deployment
15438 # target defaults to 10.4. Don't you love it?
15439 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15440 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15441 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15443 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15445 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15449 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15450 _lt_dar_single_mod='$single_module'
15452 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15453 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15455 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15457 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15458 _lt_dsymutil='~$DSYMUTIL $lib || :'
15466 for ac_header in dlfcn.h
15468 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15469 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
15470 cat >>confdefs.h <<_ACEOF
15471 #define HAVE_DLFCN_H 1
15488 enable_win32_dll=no
15491 # Check whether --enable-shared was given.
15492 if test "${enable_shared+set}" = set; then :
15493 enableval=$enable_shared; p=${PACKAGE-default}
15495 yes) enable_shared=yes ;;
15496 no) enable_shared=no ;;
15499 # Look at the argument we got. We use all the common list separators.
15500 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15501 for pkg in $enableval; do
15503 if test "X
$pkg" = "X
$p"; then
15522 # Check whether --enable-static was given.
15523 if test "${enable_static+set}" = set; then :
15524 enableval=$enable_static; p=${PACKAGE-default}
15526 yes) enable_static=yes ;;
15527 no) enable_static=no ;;
15530 # Look at the argument we got. We use all the common list separators.
15531 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15532 for pkg in $enableval; do
15534 if test "X
$pkg" = "X
$p"; then
15554 # Check whether --with-pic was given.
15555 if test "${with_pic+set}" = set; then :
15556 withval=$with_pic; pic_mode="$withval"
15562 test -z "$pic_mode" && pic_mode=default
15570 # Check whether --enable-fast-install was given.
15571 if test "${enable_fast_install+set}" = set; then :
15572 enableval=$enable_fast_install; p=${PACKAGE-default}
15574 yes) enable_fast_install=yes ;;
15575 no) enable_fast_install=no ;;
15577 enable_fast_install=no
15578 # Look at the argument we got. We use all the common list separators.
15579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15580 for pkg in $enableval; do
15582 if test "X
$pkg" = "X
$p"; then
15583 enable_fast_install=yes
15590 enable_fast_install=yes
15603 # This can be used to rebuild libtool when needed
15604 LIBTOOL_DEPS="$ltmain"
15606 # Always use our own libtool.
15607 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15634 test -z "$LN_S" && LN_S="ln -s"
15649 if test -n "${ZSH_VERSION+set}" ; then
15650 setopt NO_GLOB_SUBST
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15654 $as_echo_n "checking
for objdir...
" >&6; }
15655 if ${lt_cv_objdir+:} false; then :
15656 $as_echo_n "(cached
) " >&6
15658 rm -f .libs 2>/dev/null
15659 mkdir .libs 2>/dev/null
15660 if test -d .libs; then
15663 # MS-DOS does not allow filenames that begin with a dot.
15666 rmdir .libs 2>/dev/null
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15669 $as_echo "$lt_cv_objdir" >&6; }
15670 objdir=$lt_cv_objdir
15676 cat >>confdefs.h <<_ACEOF
15677 #define LT_OBJDIR "$lt_cv_objdir/"
15685 # AIX sometimes has problems with the GCC collect2 program. For some
15686 # reason, if we set the COLLECT_NAMES environment variable, the problems
15687 # vanish in a puff of smoke.
15688 if test "X
${COLLECT_NAMES+set}" != Xset; then
15690 export COLLECT_NAMES
15695 # Global variables:
15697 can_build_shared=yes
15699 # All known linkers require a `.a' archive for static linking (except MSVC,
15700 # which needs '.lib').
15703 with_gnu_ld="$lt_cv_prog_gnu_ld"
15706 old_CFLAGS="$CFLAGS"
15708 # Set sane defaults for various variables
15709 test -z "$CC" && CC=cc
15710 test -z "$LTCC" && LTCC=$CC
15711 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15712 test -z "$LD" && LD=ld
15713 test -z "$ac_objext" && ac_objext=o
15715 for cc_temp in $compiler""; do
15717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15723 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15726 # Only perform the check for file, if the check method requires it
15727 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15728 case $deplibs_check_method in
15730 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15732 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15733 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15734 $as_echo_n "(cached
) " >&6
15738 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15741 lt_save_MAGIC_CMD="$MAGIC_CMD"
15742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15743 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15744 for ac_dir in $ac_dummy; do
15746 test -z "$ac_dir" && ac_dir=.
15747 if test -f $ac_dir/${ac_tool_prefix}file; then
15748 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15749 if test -n "$file_magic_test_file"; then
15750 case $deplibs_check_method in
15752 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15755 $EGREP "$file_magic_regex" > /dev/null; then
15760 *** Warning: the command libtool uses to detect shared libraries,
15761 *** $file_magic_cmd, produces output that libtool cannot recognize.
15762 *** The result is that libtool may fail to recognize shared libraries
15763 *** as such. This will affect the creation of libtool libraries that
15764 *** depend on shared libraries, but programs linked with such libtool
15765 *** libraries will work regardless of this problem. Nevertheless, you
15766 *** may want to report the problem to your system manager and/or to
15767 *** bug-libtool@gnu.org
15777 MAGIC_CMD="$lt_save_MAGIC_CMD"
15782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15783 if test -n "$MAGIC_CMD"; then
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15785 $as_echo "$MAGIC_CMD" >&6; }
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15788 $as_echo "no
" >&6; }
15795 if test -z "$lt_cv_path_MAGIC_CMD"; then
15796 if test -n "$ac_tool_prefix"; then
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15798 $as_echo_n "checking
for file...
" >&6; }
15799 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15800 $as_echo_n "(cached
) " >&6
15804 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15807 lt_save_MAGIC_CMD="$MAGIC_CMD"
15808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15809 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15810 for ac_dir in $ac_dummy; do
15812 test -z "$ac_dir" && ac_dir=.
15813 if test -f $ac_dir/file; then
15814 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15815 if test -n "$file_magic_test_file"; then
15816 case $deplibs_check_method in
15818 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15819 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15820 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15821 $EGREP "$file_magic_regex" > /dev/null; then
15826 *** Warning: the command libtool uses to detect shared libraries,
15827 *** $file_magic_cmd, produces output that libtool cannot recognize.
15828 *** The result is that libtool may fail to recognize shared libraries
15829 *** as such. This will affect the creation of libtool libraries that
15830 *** depend on shared libraries, but programs linked with such libtool
15831 *** libraries will work regardless of this problem. Nevertheless, you
15832 *** may want to report the problem to your system manager and/or to
15833 *** bug-libtool@gnu.org
15843 MAGIC_CMD="$lt_save_MAGIC_CMD"
15848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15849 if test -n "$MAGIC_CMD"; then
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15851 $as_echo "$MAGIC_CMD" >&6; }
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15854 $as_echo "no
" >&6; }
15867 # Use C for the default configuration in the libtool script
15871 ac_cpp='$CPP $CPPFLAGS'
15872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15877 # Source file extension for C test sources.
15880 # Object file extension for compiled C test sources.
15884 # Code to be used in simple compile tests
15885 lt_simple_compile_test_code="int some_variable
= 0;"
15887 # Code to be used in simple link tests
15888 lt_simple_link_test_code='int main(){return(0);}'
15896 # If no C compiler was specified, use CC.
15899 # If no C compiler flags were specified, use CFLAGS.
15900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15902 # Allow CC to be a program name with arguments.
15905 # Save the default compiler, since it gets overwritten when the other
15906 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15907 compiler_DEFAULT=$CC
15909 # save warnings/boilerplate of simple test code
15910 ac_outfile=conftest.$ac_objext
15911 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15912 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15913 _lt_compiler_boilerplate=`cat conftest.err`
15916 ac_outfile=conftest.$ac_objext
15917 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15918 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15919 _lt_linker_boilerplate=`cat conftest.err`
15924 ## There is no encapsulation within the following macros, do not change
15925 ## the running order or otherwise move them around unless you know exactly
15926 ## what you are doing...
15927 if test -n "$compiler"; then
15929 lt_prog_compiler_no_builtin_flag=
15931 if test "$GCC" = yes; then
15932 case $cc_basename in
15934 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15936 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15940 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15941 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15942 $as_echo_n "(cached
) " >&6
15944 lt_cv_prog_compiler_rtti_exceptions=no
15945 ac_outfile=conftest.$ac_objext
15946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15947 lt_compiler_flag="-fno-rtti -fno-exceptions"
15948 # Insert the option either (1) after the last *FLAGS variable, or
15949 # (2) before a word containing "conftest.
", or (3) at the end.
15950 # Note that $ac_compile itself does not contain backslashes and begins
15951 # with a dollar sign (not a hyphen), so the echo should work correctly.
15952 # The option is referenced via a variable to avoid confusing sed.
15953 lt_compile=`echo "$ac_compile" | $SED \
15954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15956 -e 's:$: $lt_compiler_flag:'`
15957 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15958 (eval "$lt_compile" 2>conftest.err)
15960 cat conftest.err >&5
15961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15962 if (exit $ac_status) && test -s "$ac_outfile"; then
15963 # The compiler can only warn and ignore the option if not recognized
15964 # So say no if there are warnings other than the usual output.
15965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15968 lt_cv_prog_compiler_rtti_exceptions=yes
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15975 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15977 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15978 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15990 lt_prog_compiler_wl=
15991 lt_prog_compiler_pic=
15992 lt_prog_compiler_static=
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15995 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15997 if test "$GCC" = yes; then
15998 lt_prog_compiler_wl='-Wl,'
15999 lt_prog_compiler_static='-static'
16003 # All AIX code is PIC.
16004 if test "$host_cpu" = ia64; then
16005 # AIX 5 now supports IA64 processor
16006 lt_prog_compiler_static='-Bstatic'
16008 lt_prog_compiler_pic='-fPIC'
16014 # see comment about AmigaOS4 .so support
16015 lt_prog_compiler_pic='-fPIC'
16018 # FIXME: we need at least 68020 code to build shared libraries, but
16019 # adding the `-m68020' flag to GCC prevents building anything better,
16021 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16026 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16027 # PIC is the default for these OSes.
16030 mingw* | cygwin* | pw32* | os2* | cegcc*)
16031 # This hack is so that the source file can tell whether it is being
16032 # built for inclusion in a dll (and should export symbols for example).
16033 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16034 # (--disable-auto-import) libraries
16035 lt_prog_compiler_pic='-DDLL_EXPORT'
16038 darwin* | rhapsody*)
16039 # PIC is the default on this platform
16040 # Common symbols not allowed in MH_DYLIB files
16041 lt_prog_compiler_pic='-fno-common'
16045 # PIC is the default for Haiku.
16046 # The "-static" flag exists, but is broken.
16047 lt_prog_compiler_static=
16051 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16052 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16053 # sets the default TLS model and affects inlining.
16059 lt_prog_compiler_pic='-fPIC'
16065 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16066 # Instead, we relocate shared libraries at runtime.
16070 # Just because we use GCC doesn't mean we suddenly get shared libraries
16071 # on systems that don't support them.
16072 lt_prog_compiler_can_build_shared=no
16077 # QNX uses GNU C++, but need to define -shared option too, otherwise
16078 # it will coredump.
16079 lt_prog_compiler_pic='-fPIC -shared'
16083 if test -d /usr/nec; then
16084 lt_prog_compiler_pic=-Kconform_pic
16089 lt_prog_compiler_pic='-fPIC'
16093 case $cc_basename in
16094 nvcc*) # Cuda Compiler Driver 2.2
16095 lt_prog_compiler_wl='-Xlinker '
16096 lt_prog_compiler_pic='-Xcompiler -fPIC'
16100 # PORTME Check for flag to pass linker flags through the system compiler.
16103 lt_prog_compiler_wl='-Wl,'
16104 if test "$host_cpu" = ia64; then
16105 # AIX 5 now supports IA64 processor
16106 lt_prog_compiler_static='-Bstatic'
16108 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16112 mingw* | cygwin* | pw32* | os2* | cegcc*)
16113 # This hack is so that the source file can tell whether it is being
16114 # built for inclusion in a dll (and should export symbols for example).
16115 lt_prog_compiler_pic='-DDLL_EXPORT'
16118 hpux9* | hpux10* | hpux11*)
16119 lt_prog_compiler_wl='-Wl,'
16120 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16121 # not for PA HP-UX.
16127 lt_prog_compiler_pic='+Z'
16130 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16131 lt_prog_compiler_static='${wl}-a ${wl}archive'
16134 irix5* | irix6* | nonstopux*)
16135 lt_prog_compiler_wl='-Wl,'
16136 # PIC (with -KPIC) is the default.
16137 lt_prog_compiler_static='-non_shared'
16140 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16141 case $cc_basename in
16142 # old Intel for x86_64 which still supported -KPIC.
16144 lt_prog_compiler_wl='-Wl,'
16145 lt_prog_compiler_pic='-KPIC'
16146 lt_prog_compiler_static='-static'
16148 # icc used to be incompatible with GCC.
16149 # ICC 10 doesn't accept -KPIC any more.
16151 lt_prog_compiler_wl='-Wl,'
16152 lt_prog_compiler_pic='-fPIC'
16153 lt_prog_compiler_static='-static'
16155 # Lahey Fortran 8.1.
16157 lt_prog_compiler_wl='-Wl,'
16158 lt_prog_compiler_pic='--shared'
16159 lt_prog_compiler_static='--static'
16161 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16162 # Portland Group compilers (*not* the Pentium gcc compiler,
16163 # which looks to be a dead project)
16164 lt_prog_compiler_wl='-Wl,'
16165 lt_prog_compiler_pic='-fpic'
16166 lt_prog_compiler_static='-Bstatic'
16169 lt_prog_compiler_wl='-Wl,'
16170 # All Alpha code is PIC.
16171 lt_prog_compiler_static='-non_shared'
16173 xl* | bgxl* | bgf* | mpixl*)
16174 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16175 lt_prog_compiler_wl='-Wl,'
16176 lt_prog_compiler_pic='-qpic'
16177 lt_prog_compiler_static='-qstaticlink'
16180 case `$CC -V 2>&1 | sed 5q` in
16181 *Sun\ F* | *Sun*Fortran*)
16182 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16183 lt_prog_compiler_pic='-KPIC'
16184 lt_prog_compiler_static='-Bstatic'
16185 lt_prog_compiler_wl=''
16189 lt_prog_compiler_pic='-KPIC'
16190 lt_prog_compiler_static='-Bstatic'
16191 lt_prog_compiler_wl='-Wl,'
16199 lt_prog_compiler_pic='-KPIC'
16200 lt_prog_compiler_static='-Bstatic'
16204 # QNX uses GNU C++, but need to define -shared option too, otherwise
16205 # it will coredump.
16206 lt_prog_compiler_pic='-fPIC -shared'
16209 osf3* | osf4* | osf5*)
16210 lt_prog_compiler_wl='-Wl,'
16211 # All OSF/1 code is PIC.
16212 lt_prog_compiler_static='-non_shared'
16216 lt_prog_compiler_static='-non_shared'
16220 lt_prog_compiler_pic='-KPIC'
16221 lt_prog_compiler_static='-Bstatic'
16222 case $cc_basename in
16223 f77* | f90* | f95*)
16224 lt_prog_compiler_wl='-Qoption ld ';;
16226 lt_prog_compiler_wl='-Wl,';;
16231 lt_prog_compiler_wl='-Qoption ld '
16232 lt_prog_compiler_pic='-PIC'
16233 lt_prog_compiler_static='-Bstatic'
16236 sysv4 | sysv4.2uw2* | sysv4.3*)
16237 lt_prog_compiler_wl='-Wl,'
16238 lt_prog_compiler_pic='-KPIC'
16239 lt_prog_compiler_static='-Bstatic'
16243 if test -d /usr/nec ;then
16244 lt_prog_compiler_pic='-Kconform_pic'
16245 lt_prog_compiler_static='-Bstatic'
16249 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16250 lt_prog_compiler_wl='-Wl,'
16251 lt_prog_compiler_pic='-KPIC'
16252 lt_prog_compiler_static='-Bstatic'
16256 lt_prog_compiler_wl='-Wl,'
16257 lt_prog_compiler_can_build_shared=no
16261 lt_prog_compiler_pic='-pic'
16262 lt_prog_compiler_static='-Bstatic'
16266 lt_prog_compiler_can_build_shared=no
16272 # For platforms which do not support PIC, -DPIC is meaningless:
16274 lt_prog_compiler_pic=
16277 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
16281 $as_echo "$lt_prog_compiler_pic" >&6; }
16289 # Check to make sure the PIC flag actually works.
16291 if test -n "$lt_prog_compiler_pic"; then
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
16293 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
16294 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16295 $as_echo_n "(cached
) " >&6
16297 lt_cv_prog_compiler_pic_works=no
16298 ac_outfile=conftest.$ac_objext
16299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16300 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16301 # Insert the option either (1) after the last *FLAGS variable, or
16302 # (2) before a word containing "conftest.
", or (3) at the end.
16303 # Note that $ac_compile itself does not contain backslashes and begins
16304 # with a dollar sign (not a hyphen), so the echo should work correctly.
16305 # The option is referenced via a variable to avoid confusing sed.
16306 lt_compile=`echo "$ac_compile" | $SED \
16307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16309 -e 's:$: $lt_compiler_flag:'`
16310 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16311 (eval "$lt_compile" 2>conftest.err)
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16315 if (exit $ac_status) && test -s "$ac_outfile"; then
16316 # The compiler can only warn and ignore the option if not recognized
16317 # So say no if there are warnings other than the usual output.
16318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16320 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16321 lt_cv_prog_compiler_pic_works=yes
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16328 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16330 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16331 case $lt_prog_compiler_pic in
16333 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16336 lt_prog_compiler_pic=
16337 lt_prog_compiler_can_build_shared=no
16348 # Check to make sure the static flag actually works.
16350 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16352 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16353 if ${lt_cv_prog_compiler_static_works+:} false; then :
16354 $as_echo_n "(cached
) " >&6
16356 lt_cv_prog_compiler_static_works=no
16357 save_LDFLAGS="$LDFLAGS"
16358 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16359 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16360 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16361 # The linker can only warn and ignore the option if not recognized
16362 # So say no if there are warnings
16363 if test -s conftest.err; then
16364 # Append any errors to the config.log.
16365 cat conftest.err 1>&5
16366 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16368 if diff conftest.exp conftest.er2 >/dev/null; then
16369 lt_cv_prog_compiler_static_works=yes
16372 lt_cv_prog_compiler_static_works=yes
16376 LDFLAGS="$save_LDFLAGS"
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16380 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16382 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16385 lt_prog_compiler_static=
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16395 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16396 if ${lt_cv_prog_compiler_c_o+:} false; then :
16397 $as_echo_n "(cached
) " >&6
16399 lt_cv_prog_compiler_c_o=no
16400 $RM -r conftest 2>/dev/null
16404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16406 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16407 # Insert the option either (1) after the last *FLAGS variable, or
16408 # (2) before a word containing "conftest.
", or (3) at the end.
16409 # Note that $ac_compile itself does not contain backslashes and begins
16410 # with a dollar sign (not a hyphen), so the echo should work correctly.
16411 lt_compile=`echo "$ac_compile" | $SED \
16412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16414 -e 's:$: $lt_compiler_flag:'`
16415 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16416 (eval "$lt_compile" 2>out/conftest.err)
16418 cat out/conftest.err >&5
16419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16420 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16422 # The compiler can only warn and ignore the option if not recognized
16423 # So say no if there are warnings
16424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16427 lt_cv_prog_compiler_c_o=yes
16432 # SGI C++ compiler will create directory out/ii_files/ for
16433 # template instantiation
16434 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16435 $RM out/* && rmdir out
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16442 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16450 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16451 if ${lt_cv_prog_compiler_c_o+:} false; then :
16452 $as_echo_n "(cached
) " >&6
16454 lt_cv_prog_compiler_c_o=no
16455 $RM -r conftest 2>/dev/null
16459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16461 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16462 # Insert the option either (1) after the last *FLAGS variable, or
16463 # (2) before a word containing "conftest.
", or (3) at the end.
16464 # Note that $ac_compile itself does not contain backslashes and begins
16465 # with a dollar sign (not a hyphen), so the echo should work correctly.
16466 lt_compile=`echo "$ac_compile" | $SED \
16467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16469 -e 's:$: $lt_compiler_flag:'`
16470 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16471 (eval "$lt_compile" 2>out/conftest.err)
16473 cat out/conftest.err >&5
16474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16475 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16477 # The compiler can only warn and ignore the option if not recognized
16478 # So say no if there are warnings
16479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16482 lt_cv_prog_compiler_c_o=yes
16487 # SGI C++ compiler will create directory out/ii_files/ for
16488 # template instantiation
16489 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16490 $RM out/* && rmdir out
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16497 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16502 hard_links="nottested
"
16503 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16504 # do not overwrite the value of need_locks provided by the user
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16506 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16509 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16511 ln conftest.a conftest.b 2>&5 || hard_links=no
16512 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16514 $as_echo "$hard_links" >&6; }
16515 if test "$hard_links" = no; then
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16517 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16530 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16533 allow_undefined_flag=
16534 always_export_symbols=no
16536 archive_expsym_cmds=
16537 compiler_needs_object=no
16538 enable_shared_with_static_runtimes=no
16539 export_dynamic_flag_spec=
16540 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16541 hardcode_automatic=no
16543 hardcode_direct_absolute=no
16544 hardcode_libdir_flag_spec=
16545 hardcode_libdir_flag_spec_ld=
16546 hardcode_libdir_separator=
16547 hardcode_minus_L=no
16548 hardcode_shlibpath_var=unsupported
16550 link_all_deplibs=unknown
16552 module_expsym_cmds=
16553 old_archive_from_new_cmds=
16554 old_archive_from_expsyms_cmds=
16555 thread_safe_flag_spec=
16556 whole_archive_flag_spec=
16557 # include_expsyms should be a list of space-separated symbols to be *always*
16558 # included in the symbol list
16560 # exclude_expsyms can be an extended regexp of symbols to exclude
16561 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16562 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16563 # as well as any symbol that contains `d'.
16564 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16565 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16566 # platforms (ab)use it in PIC code, but their linkers get confused if
16567 # the symbol is explicitly referenced. Since portable code cannot
16568 # rely on this symbol name, it's probably fine to never include it in
16569 # preloaded symbol tables.
16570 # Exclude shared library initialization/finalization symbols.
16571 extract_expsyms_cmds=
16574 cygwin* | mingw* | pw32* | cegcc*)
16575 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16576 # When not using gcc, we currently assume that we are using
16577 # Microsoft Visual C++.
16578 if test "$GCC" != yes; then
16583 # we just hope/assume this is gcc and not c89 (= MSVC++)
16593 # On some targets, GNU ld is compatible enough with the native linker
16594 # that we're better off using the native interface for both.
16595 lt_use_gnu_ld_interface=no
16596 if test "$with_gnu_ld" = yes; then
16599 # The AIX port of GNU ld has always aspired to compatibility
16600 # with the native linker. However, as the warning in the GNU ld
16601 # block says, versions before 2.19.5* couldn't really create working
16602 # shared libraries, regardless of the interface used.
16603 case `$LD -v 2>&1` in
16604 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16605 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16606 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16608 lt_use_gnu_ld_interface=yes
16613 lt_use_gnu_ld_interface=yes
16618 if test "$lt_use_gnu_ld_interface" = yes; then
16619 # If archive_cmds runs LD, not CC, wlarc should be empty
16622 # Set some defaults for GNU ld with shared library support. These
16623 # are reset later if shared libraries are not supported. Putting them
16624 # here allows them to be overridden if necessary.
16625 runpath_var=LD_RUN_PATH
16626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16627 export_dynamic_flag_spec='${wl}--export-dynamic'
16628 # ancient GNU ld didn't support --whole-archive et. al.
16629 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16630 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16632 whole_archive_flag_spec=
16634 supports_anon_versioning=no
16635 case `$LD -v 2>&1` in
16636 *GNU\ gold*) supports_anon_versioning=yes ;;
16637 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16638 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16639 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16640 *\ 2.11.*) ;; # other 2.11 versions
16641 *) supports_anon_versioning=yes ;;
16644 # See if GNU ld supports shared libraries.
16647 # On AIX/PPC, the GNU linker is very broken
16648 if test "$host_cpu" != ia64; then
16652 *** Warning: the GNU linker, at least up to release 2.19, is reported
16653 *** to be unable to reliably create shared libraries on AIX.
16654 *** Therefore, libtool is disabling shared libraries support. If you
16655 *** really care for shared libraries, you may want to install binutils
16656 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16657 *** You will then need to restart the configuration process.
16666 # see comment about AmigaOS4 .so support
16667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16668 archive_expsym_cmds=''
16671 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)'
16672 hardcode_libdir_flag_spec
='-L$libdir'
16673 hardcode_minus_L
=yes
16679 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16680 allow_undefined_flag
=unsupported
16681 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16682 # support --undefined. This deserves some investigation. FIXME
16683 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16689 cygwin
* | mingw
* | pw32
* | cegcc
*)
16690 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16691 # as there is no search path for DLLs.
16692 hardcode_libdir_flag_spec
='-L$libdir'
16693 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16694 allow_undefined_flag
=unsupported
16695 always_export_symbols
=no
16696 enable_shared_with_static_runtimes
=yes
16697 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16699 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16700 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16701 # If the export-symbols file already is a .def file (1st line
16702 # is EXPORTS), use it as is; otherwise, prepend...
16703 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16704 cp $export_symbols $output_objdir/$soname.def;
16706 echo EXPORTS > $output_objdir/$soname.def;
16707 cat $export_symbols >> $output_objdir/$soname.def;
16709 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16716 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16717 link_all_deplibs
=yes
16722 hardcode_shlibpath_var
=no
16723 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16724 export_dynamic_flag_spec
='${wl}-E'
16725 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16726 # Instead, shared libraries are loaded at an image base (0x10000000 by
16727 # default) and relocated if they conflict, which is a slow very memory
16728 # consuming and fragmenting process. To avoid this, we pick a random,
16729 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16730 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16731 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16732 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'
16735 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
16737 if test "$host_os" = linux-dietlibc
; then
16738 case $cc_basename in
16739 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16742 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16743 && test "$tmp_diet" = no
16745 tmp_addflag
=' $pic_flag'
16746 tmp_sharedflag
='-shared'
16747 case $cc_basename,$host_cpu in
16748 pgcc
*) # Portland Group C compiler
16749 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'
16750 tmp_addflag
=' $pic_flag'
16752 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16753 # Portland Group f77 and f90 compilers
16754 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'
16755 tmp_addflag
=' $pic_flag -Mnomain' ;;
16756 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16757 tmp_addflag
=' -i_dynamic' ;;
16758 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16759 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16760 ifc
* | ifort
*) # Intel Fortran compiler
16761 tmp_addflag
=' -nofor_main' ;;
16762 lf95
*) # Lahey Fortran 8.1
16763 whole_archive_flag_spec
=
16764 tmp_sharedflag
='--shared' ;;
16765 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16766 tmp_sharedflag
='-qmkshrobj'
16768 nvcc
*) # Cuda Compiler Driver 2.2
16769 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'
16770 compiler_needs_object
=yes
16773 case `$CC -V 2>&1 | sed 5q` in
16774 *Sun\ C
*) # Sun C 5.9
16775 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'
16776 compiler_needs_object
=yes
16777 tmp_sharedflag
='-G' ;;
16778 *Sun\ F
*) # Sun Fortran 8.3
16779 tmp_sharedflag
='-G' ;;
16781 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16783 if test "x$supports_anon_versioning" = xyes
; then
16784 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16785 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16786 echo "local: *; };" >> $output_objdir/$libname.ver~
16787 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16790 case $cc_basename in
16791 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16792 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16793 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16794 hardcode_libdir_flag_spec
=
16795 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16796 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16797 if test "x$supports_anon_versioning" = xyes
; then
16798 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16800 echo "local: *; };" >> $output_objdir/$libname.ver~
16801 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16811 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16812 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16815 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16816 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16821 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16825 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16826 *** create shared libraries on Solaris systems. Therefore, libtool
16827 *** is disabling shared libraries support. We urge you to upgrade GNU
16828 *** binutils to release 2.9.1 or newer. Another option is to modify
16829 *** your PATH or compiler configuration so that the native linker is
16830 *** used, and then restart.
16833 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16834 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16835 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16841 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16842 case `$LD -v 2>&1` in
16843 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16847 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16848 *** reliably create shared libraries on SCO systems. Therefore, libtool
16849 *** is disabling shared libraries support. We urge you to upgrade GNU
16850 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16851 *** your PATH or compiler configuration so that the native linker is
16852 *** used, and then restart.
16857 # For security reasons, it is highly recommended that you always
16858 # use absolute paths for naming shared libraries, and exclude the
16859 # DT_RUNPATH tag from executables and libraries. But doing so
16860 # requires that you compile everything twice, which is a pain.
16861 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16862 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16863 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16864 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16873 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16875 hardcode_direct
=yes
16876 hardcode_shlibpath_var
=no
16880 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16881 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16882 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16889 if test "$ld_shlibs" = no
; then
16891 hardcode_libdir_flag_spec
=
16892 export_dynamic_flag_spec
=
16893 whole_archive_flag_spec
=
16896 # PORTME fill in a description of your system's linker (not GNU ld)
16899 allow_undefined_flag
=unsupported
16900 always_export_symbols
=yes
16901 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'
16902 # Note: this linker hardcodes the directories in LIBPATH if there
16903 # are no directories specified by -L.
16904 hardcode_minus_L
=yes
16905 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16906 # Neither direct hardcoding nor static linking is supported with a
16908 hardcode_direct
=unsupported
16913 if test "$host_cpu" = ia64
; then
16914 # On IA64, the linker does run time linking by default, so we don't
16915 # have to do anything special.
16916 aix_use_runtimelinking
=no
16917 exp_sym_flag
='-Bexport'
16920 # If we're using GNU nm, then we don't want the "-C" option.
16921 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16922 # Also, AIX nm treats weak defined symbols like other global
16923 # defined symbols, whereas GNU nm marks them as "W".
16924 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16925 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'
16927 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'
16929 aix_use_runtimelinking
=no
16931 # Test if we are trying to use run time linking or normal
16932 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16933 # need to do runtime linking.
16934 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16935 for ld_flag
in $LDFLAGS; do
16936 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16937 aix_use_runtimelinking
=yes
16944 exp_sym_flag
='-bexport'
16945 no_entry_flag
='-bnoentry'
16948 # When large executables or shared objects are built, AIX ld can
16949 # have problems creating the table of contents. If linking a library
16950 # or program results in "error TOC overflow" add -mminimal-toc to
16951 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16952 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16955 hardcode_direct
=yes
16956 hardcode_direct_absolute
=yes
16957 hardcode_libdir_separator
=':'
16958 link_all_deplibs
=yes
16959 file_list_spec
='${wl}-f,'
16961 if test "$GCC" = yes; then
16962 case $host_os in aix4.
[012]|aix4.
[012].
*)
16963 # We only want to do this on AIX 4.2 and lower, the check
16964 # below for broken collect2 doesn't work under 4.3+
16965 collect2name
=`${CC} -print-prog-name=collect2`
16966 if test -f "$collect2name" &&
16967 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16969 # We have reworked collect2
16972 # We have old collect2
16973 hardcode_direct
=unsupported
16974 # It fails to find uninstalled libraries when the uninstalled
16975 # path is not listed in the libpath. Setting hardcode_minus_L
16976 # to unsupported forces relinking
16977 hardcode_minus_L
=yes
16978 hardcode_libdir_flag_spec
='-L$libdir'
16979 hardcode_libdir_separator
=
16983 shared_flag
='-shared'
16984 if test "$aix_use_runtimelinking" = yes; then
16985 shared_flag
="$shared_flag "'${wl}-G'
16989 if test "$host_cpu" = ia64
; then
16990 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16991 # chokes on -Wl,-G. The following line is correct:
16994 if test "$aix_use_runtimelinking" = yes; then
16995 shared_flag
='${wl}-G'
16997 shared_flag
='${wl}-bM:SRE'
17002 export_dynamic_flag_spec
='${wl}-bexpall'
17003 # It seems that -bexpall does not export symbols beginning with
17004 # underscore (_), so it is better to generate a list of symbols to export.
17005 always_export_symbols
=yes
17006 if test "$aix_use_runtimelinking" = yes; then
17007 # Warning - without using the other runtime loading flags (-brtl),
17008 # -berok will link without error, but may produce a broken library.
17009 allow_undefined_flag
='-berok'
17010 # Determine the default libpath from the value encoded in an
17011 # empty executable.
17012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17013 /* end confdefs.h. */
17023 if ac_fn_c_try_link
"$LINENO"; then :
17025 lt_aix_libpath_sed
='
17026 /Import File Strings/,/^$/ {
17032 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17033 # Check for a 64-bit object if we didn't find anything.
17034 if test -z "$aix_libpath"; then
17035 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17038 rm -f core conftest.err conftest.
$ac_objext \
17039 conftest
$ac_exeext conftest.
$ac_ext
17040 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17042 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17043 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"
17045 if test "$host_cpu" = ia64
; then
17046 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17047 allow_undefined_flag
="-z nodefs"
17048 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"
17050 # Determine the default libpath from the value encoded in an
17051 # empty executable.
17052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17053 /* end confdefs.h. */
17063 if ac_fn_c_try_link
"$LINENO"; then :
17065 lt_aix_libpath_sed
='
17066 /Import File Strings/,/^$/ {
17072 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17073 # Check for a 64-bit object if we didn't find anything.
17074 if test -z "$aix_libpath"; then
17075 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17078 rm -f core conftest.err conftest.
$ac_objext \
17079 conftest
$ac_exeext conftest.
$ac_ext
17080 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17082 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17083 # Warning - without using the other run time loading flags,
17084 # -berok will link without error, but may produce a broken library.
17085 no_undefined_flag
=' ${wl}-bernotok'
17086 allow_undefined_flag
=' ${wl}-berok'
17087 if test "$with_gnu_ld" = yes; then
17088 # We only use this code for GNU lds that support --whole-archive.
17089 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17091 # Exported symbols can be pulled into shared objects from archives
17092 whole_archive_flag_spec
='$convenience'
17094 archive_cmds_need_lc
=yes
17095 # This is similar to how AIX traditionally builds its shared libraries.
17096 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'
17104 # see comment about AmigaOS4 .so support
17105 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17106 archive_expsym_cmds
=''
17109 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)'
17110 hardcode_libdir_flag_spec
='-L$libdir'
17111 hardcode_minus_L
=yes
17117 export_dynamic_flag_spec
=-rdynamic
17120 cygwin
* | mingw
* | pw32
* | cegcc
*)
17121 # When not using gcc, we currently assume that we are using
17122 # Microsoft Visual C++.
17123 # hardcode_libdir_flag_spec is actually meaningless, as there is
17124 # no search path for DLLs.
17125 hardcode_libdir_flag_spec
=' '
17126 allow_undefined_flag
=unsupported
17127 # Tell ltmain to make .lib files, not .a files.
17129 # Tell ltmain to make .dll files, not .so files.
17131 # FIXME: Setting linknames here is a bad hack.
17132 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17133 # The linker will automatically build a .lib file if we build a DLL.
17134 old_archive_from_new_cmds
='true'
17135 # FIXME: Should let the user specify the lib program.
17136 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17137 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17138 enable_shared_with_static_runtimes
=yes
17141 darwin
* | rhapsody
*)
17144 archive_cmds_need_lc
=no
17146 hardcode_automatic
=yes
17147 hardcode_shlibpath_var
=unsupported
17148 if test "$lt_cv_ld_force_load" = "yes"; then
17149 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\"`'
17151 whole_archive_flag_spec
=''
17153 link_all_deplibs
=yes
17154 allow_undefined_flag
="$_lt_dar_allow_undefined"
17155 case $cc_basename in
17156 ifort
*) _lt_dar_can_shared
=yes ;;
17157 *) _lt_dar_can_shared
=$GCC ;;
17159 if test "$_lt_dar_can_shared" = "yes"; then
17160 output_verbose_link_cmd
=func_echo_all
17161 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17162 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17163 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}"
17164 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}"
17173 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17174 hardcode_libdir_flag_spec
='-L$libdir'
17175 hardcode_shlibpath_var
=no
17178 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17179 # support. Future versions do this automatically, but an explicit c++rt0.o
17180 # does not break anything, and helps significantly (at the cost of a little
17183 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17184 hardcode_libdir_flag_spec
='-R$libdir'
17185 hardcode_direct
=yes
17186 hardcode_shlibpath_var
=no
17189 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17191 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17192 hardcode_direct
=yes
17193 hardcode_minus_L
=yes
17194 hardcode_shlibpath_var
=no
17197 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17198 freebsd
* | dragonfly
*)
17199 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17200 hardcode_libdir_flag_spec
='-R$libdir'
17201 hardcode_direct
=yes
17202 hardcode_shlibpath_var
=no
17206 if test "$GCC" = yes; then
17207 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'
17209 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'
17211 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17212 hardcode_libdir_separator
=:
17213 hardcode_direct
=yes
17215 # hardcode_minus_L: Not really in the search PATH,
17216 # but as the default location of the library.
17217 hardcode_minus_L
=yes
17218 export_dynamic_flag_spec
='${wl}-E'
17222 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17223 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17225 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17227 if test "$with_gnu_ld" = no
; then
17228 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17229 hardcode_libdir_flag_spec_ld
='+b $libdir'
17230 hardcode_libdir_separator
=:
17231 hardcode_direct
=yes
17232 hardcode_direct_absolute
=yes
17233 export_dynamic_flag_spec
='${wl}-E'
17234 # hardcode_minus_L: Not really in the search PATH,
17235 # but as the default location of the library.
17236 hardcode_minus_L
=yes
17241 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17244 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17247 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17250 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17256 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17259 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17263 # Older versions of the 11.00 compiler do not understand -b yet
17264 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17266 $as_echo_n "checking if $CC understands -b... " >&6; }
17267 if ${lt_cv_prog_compiler__b+:} false
; then :
17268 $as_echo_n "(cached) " >&6
17270 lt_cv_prog_compiler__b
=no
17271 save_LDFLAGS
="$LDFLAGS"
17272 LDFLAGS
="$LDFLAGS -b"
17273 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17274 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17275 # The linker can only warn and ignore the option if not recognized
17276 # So say no if there are warnings
17277 if test -s conftest.err
; then
17278 # Append any errors to the config.log.
17279 cat conftest.err
1>&5
17280 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
17281 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17282 if diff conftest.exp conftest.er2
>/dev
/null
; then
17283 lt_cv_prog_compiler__b
=yes
17286 lt_cv_prog_compiler__b
=yes
17290 LDFLAGS
="$save_LDFLAGS"
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17294 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17296 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
17297 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17299 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17305 if test "$with_gnu_ld" = no
; then
17306 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17307 hardcode_libdir_separator
=:
17312 hardcode_shlibpath_var
=no
17315 hardcode_direct
=yes
17316 hardcode_direct_absolute
=yes
17317 export_dynamic_flag_spec
='${wl}-E'
17319 # hardcode_minus_L: Not really in the search PATH,
17320 # but as the default location of the library.
17321 hardcode_minus_L
=yes
17327 irix5
* | irix6
* | nonstopux
*)
17328 if test "$GCC" = yes; then
17329 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'
17330 # Try to use the -exported_symbol ld option, if it does not
17331 # work, assume that -exports_file does not work either and
17332 # implicitly export all symbols.
17333 save_LDFLAGS
="$LDFLAGS"
17334 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17339 if ac_fn_c_try_link
"$LINENO"; then :
17340 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'
17343 rm -f core conftest.err conftest.
$ac_objext \
17344 conftest
$ac_exeext conftest.
$ac_ext
17345 LDFLAGS
="$save_LDFLAGS"
17347 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'
17348 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'
17350 archive_cmds_need_lc
='no'
17351 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17352 hardcode_libdir_separator
=:
17354 link_all_deplibs
=yes
17358 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17359 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17361 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17363 hardcode_libdir_flag_spec
='-R$libdir'
17364 hardcode_direct
=yes
17365 hardcode_shlibpath_var
=no
17369 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17370 hardcode_direct
=yes
17371 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17372 hardcode_libdir_separator
=:
17373 hardcode_shlibpath_var
=no
17380 if test -f /usr
/libexec
/ld.so
; then
17381 hardcode_direct
=yes
17382 hardcode_shlibpath_var
=no
17383 hardcode_direct_absolute
=yes
17384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17385 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17386 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17387 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17388 export_dynamic_flag_spec
='${wl}-E'
17391 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17392 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17393 hardcode_libdir_flag_spec
='-R$libdir'
17396 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17397 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17407 hardcode_libdir_flag_spec
='-L$libdir'
17408 hardcode_minus_L
=yes
17409 allow_undefined_flag
=unsupported
17410 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'
17411 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17415 if test "$GCC" = yes; then
17416 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17417 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'
17419 allow_undefined_flag
=' -expect_unresolved \*'
17420 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'
17422 archive_cmds_need_lc
='no'
17423 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17424 hardcode_libdir_separator
=:
17427 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17428 if test "$GCC" = yes; then
17429 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17430 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'
17431 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17433 allow_undefined_flag
=' -expect_unresolved \*'
17434 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'
17435 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~
17436 $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'
17438 # Both c and cxx compiler support -rpath directly
17439 hardcode_libdir_flag_spec
='-rpath $libdir'
17441 archive_cmds_need_lc
='no'
17442 hardcode_libdir_separator
=:
17446 no_undefined_flag
=' -z defs'
17447 if test "$GCC" = yes; then
17449 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17450 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17451 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17453 case `$CC -V 2>&1` in
17456 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17457 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17458 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17462 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17463 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17464 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17468 hardcode_libdir_flag_spec
='-R$libdir'
17469 hardcode_shlibpath_var
=no
17471 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17473 # The compiler driver will combine and reorder linker options,
17474 # but understands `-z linker_flag'. GCC discards it without `$wl',
17475 # but is careful enough not to reorder.
17476 # Supported since Solaris 2.6 (maybe 2.5.1?)
17477 if test "$GCC" = yes; then
17478 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17480 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17484 link_all_deplibs
=yes
17488 if test "x$host_vendor" = xsequent
; then
17489 # Use $CC to link under sequent, because it throws in some extra .o
17490 # files that make .init and .fini sections work.
17491 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17493 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17495 hardcode_libdir_flag_spec
='-L$libdir'
17496 hardcode_direct
=yes
17497 hardcode_minus_L
=yes
17498 hardcode_shlibpath_var
=no
17502 case $host_vendor in
17504 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17505 hardcode_direct
=yes # is this really true???
17508 ## LD is ld it makes a PLAMLIB
17509 ## CC just makes a GrossModule.
17510 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17511 reload_cmds
='$CC -r -o $output$reload_objs'
17515 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17516 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17519 runpath_var
='LD_RUN_PATH'
17520 hardcode_shlibpath_var
=no
17524 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17525 hardcode_shlibpath_var
=no
17526 export_dynamic_flag_spec
='-Bexport'
17530 if test -d /usr
/nec
; then
17531 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17532 hardcode_shlibpath_var
=no
17533 runpath_var
=LD_RUN_PATH
17534 hardcode_runpath_var
=yes
17539 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17540 no_undefined_flag
='${wl}-z,text'
17541 archive_cmds_need_lc
=no
17542 hardcode_shlibpath_var
=no
17543 runpath_var
='LD_RUN_PATH'
17545 if test "$GCC" = yes; then
17546 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17547 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17549 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17550 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17554 sysv5
* | sco3.2v5
* | sco5v6
*)
17555 # Note: We can NOT use -z defs as we might desire, because we do not
17556 # link with -lc, and that would cause any symbols used from libc to
17557 # always be unresolved, which means just about no library would
17558 # ever link correctly. If we're not using GNU ld we use -z text
17559 # though, which does catch some bad symbols but isn't as heavy-handed
17561 no_undefined_flag
='${wl}-z,text'
17562 allow_undefined_flag
='${wl}-z,nodefs'
17563 archive_cmds_need_lc
=no
17564 hardcode_shlibpath_var
=no
17565 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17566 hardcode_libdir_separator
=':'
17567 link_all_deplibs
=yes
17568 export_dynamic_flag_spec
='${wl}-Bexport'
17569 runpath_var
='LD_RUN_PATH'
17571 if test "$GCC" = yes; then
17572 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17573 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17575 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17576 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17581 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17582 hardcode_libdir_flag_spec
='-L$libdir'
17583 hardcode_shlibpath_var
=no
17591 if test x
$host_vendor = xsni
; then
17593 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17594 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17601 $as_echo "$ld_shlibs" >&6; }
17602 test "$ld_shlibs" = no
&& can_build_shared
=no
17604 with_gnu_ld
=$with_gnu_ld
17621 # Do we need to explicitly link libc?
17623 case "x$archive_cmds_need_lc" in
17625 # Assume -lc should be added
17626 archive_cmds_need_lc
=yes
17628 if test "$enable_shared" = yes && test "$GCC" = yes; then
17629 case $archive_cmds in
17631 # FIXME: we may have to deal with multi-command sequences.
17634 # Test whether the compiler implicitly links with -lc since on some
17635 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17636 # to ld, don't add -lc before -lgcc.
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17638 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17639 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
17640 $as_echo_n "(cached) " >&6
17643 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17646 (eval $ac_compile) 2>&5
17648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17649 test $ac_status = 0; } 2>conftest.err
; then
17652 libobjs
=conftest.
$ac_objext
17654 wl
=$lt_prog_compiler_wl
17655 pic_flag
=$lt_prog_compiler_pic
17661 lt_save_allow_undefined_flag
=$allow_undefined_flag
17662 allow_undefined_flag
=
17663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17664 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17667 test $ac_status = 0; }
17669 lt_cv_archive_cmds_need_lc
=no
17671 lt_cv_archive_cmds_need_lc
=yes
17673 allow_undefined_flag
=$lt_save_allow_undefined_flag
17675 cat conftest.err
1>&5
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17681 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17682 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17846 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17848 if test "$GCC" = yes; then
17850 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17851 *) lt_awk_arg
="/^libraries:/" ;;
17854 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17855 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17857 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17858 case $lt_search_path_spec in
17860 # if the path contains ";" then we assume it to be the separator
17861 # otherwise default to the standard path separator (i.e. ":") - it is
17862 # assumed that no part of a normal pathname contains ";" but that should
17863 # okay in the real world where ";" in dirpaths is itself problematic.
17864 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17867 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17870 # Ok, now we have the path, separated by spaces, we can step through it
17871 # and add multilib dir if necessary.
17872 lt_tmp_lt_search_path_spec
=
17873 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17874 for lt_sys_path
in $lt_search_path_spec; do
17875 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17876 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17878 test -d "$lt_sys_path" && \
17879 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17882 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17883 BEGIN {RS=" "; FS="/|\n";} {
17886 for (lt_i = NF; lt_i > 0; lt_i--) {
17887 if ($lt_i != "" && $lt_i != ".") {
17888 if ($lt_i == "..") {
17891 if (lt_count == 0) {
17892 lt_foo="/" $lt_i lt_foo;
17899 if (lt_foo != "") { lt_freq[lt_foo]++; }
17900 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17902 # AWK program above erroneously prepends '/' to C:/dos/paths
17905 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17906 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17908 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17910 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17912 library_names_spec
=
17913 libname_spec
='lib$name'
17917 postuninstall_cmds
=
17921 shlibpath_overrides_runpath
=unknown
17923 dynamic_linker
="$host_os ld.so"
17924 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17925 need_lib_prefix
=unknown
17926 hardcode_into_libs
=no
17928 # when you set need_version to no, make sure it does not cause -set_version
17929 # flags to be left without arguments
17930 need_version
=unknown
17935 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17936 shlibpath_var
=LIBPATH
17938 # AIX 3 has no versioning support, so we append a major version to the name.
17939 soname_spec
='${libname}${release}${shared_ext}$major'
17946 hardcode_into_libs
=yes
17947 if test "$host_cpu" = ia64
; then
17948 # AIX 5 supports IA64
17949 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17950 shlibpath_var
=LD_LIBRARY_PATH
17952 # With GCC up to 2.95.x, collect2 would create an import file
17953 # for dependence libraries. The import file would start with
17954 # the line `#! .'. This would cause the generated library to
17955 # depend on `.', always an invalid library. This was fixed in
17956 # development snapshots of GCC prior to 3.0.
17958 aix4 | aix4.
[01] | aix4.
[01].
*)
17959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17961 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17964 can_build_shared
=no
17968 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17969 # soname into executable. Probably we can add versioning support to
17970 # collect2, so additional links can be useful in future.
17971 if test "$aix_use_runtimelinking" = yes; then
17972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17973 # instead of lib<name>.a to let people know that these are not
17974 # typical AIX shared libraries.
17975 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17977 # We preserve .a as extension for shared libraries through AIX4.2
17978 # and later when we are not doing run time linking.
17979 library_names_spec
='${libname}${release}.a $libname.a'
17980 soname_spec
='${libname}${release}${shared_ext}$major'
17982 shlibpath_var
=LIBPATH
17989 # Since July 2007 AmigaOS4 officially supports .so libraries.
17990 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17991 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17994 library_names_spec
='$libname.ixlibrary $libname.a'
17995 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17996 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'
18002 library_names_spec
='${libname}${shared_ext}'
18003 dynamic_linker
="$host_os ld.so"
18004 shlibpath_var
=LIBRARY_PATH
18010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18011 soname_spec
='${libname}${release}${shared_ext}$major'
18012 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18013 shlibpath_var
=LD_LIBRARY_PATH
18014 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18015 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18016 # the default ld.so.conf also contains /usr/contrib/lib and
18017 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18018 # libtool to hard-code these into programs
18021 cygwin
* | mingw
* | pw32
* | cegcc
*)
18022 version_type
=windows
18027 case $GCC,$host_os in
18028 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18029 library_names_spec
='$libname.dll.a'
18030 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18031 postinstall_cmds
='base_file=`basename \${file}`~
18032 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18033 dldir=$destdir/`dirname \$dlpath`~
18034 test -d \$dldir || mkdir -p \$dldir~
18035 $install_prog $dir/$dlname \$dldir/$dlname~
18036 chmod a+x \$dldir/$dlname~
18037 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18038 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18040 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18041 dlpath=$dir/\$dldll~
18043 shlibpath_overrides_runpath
=yes
18047 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18048 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18050 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18053 # MinGW DLLs use traditional 'lib' prefix
18054 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18057 # pw32 DLLs use 'pw' prefix rather than 'lib'
18058 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18064 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18067 dynamic_linker
='Win32 ld.exe'
18068 # FIXME: first we should search . and the directory the executable is in
18072 darwin
* | rhapsody
*)
18073 dynamic_linker
="$host_os dyld"
18074 version_type
=darwin
18077 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18078 soname_spec
='${libname}${release}${major}$shared_ext'
18079 shlibpath_overrides_runpath
=yes
18080 shlibpath_var
=DYLD_LIBRARY_PATH
18081 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18083 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18084 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18092 soname_spec
='${libname}${release}${shared_ext}$major'
18093 shlibpath_var
=LD_LIBRARY_PATH
18096 freebsd
* | dragonfly
*)
18097 # DragonFly does not have aout. When/if they implement a new
18098 # versioning mechanism, adjust this.
18099 if test -x /usr
/bin
/objformat
; then
18100 objformat
=`/usr/bin/objformat`
18103 freebsd
[23].
*) objformat
=aout
;;
18104 *) objformat
=elf
;;
18107 version_type
=freebsd-
$objformat
18108 case $version_type in
18110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18115 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18119 shlibpath_var
=LD_LIBRARY_PATH
18122 shlibpath_overrides_runpath
=yes
18124 freebsd3.
[01]* | freebsdelf3.
[01]*)
18125 shlibpath_overrides_runpath
=yes
18126 hardcode_into_libs
=yes
18128 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18129 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18130 shlibpath_overrides_runpath
=no
18131 hardcode_into_libs
=yes
18133 *) # from 4.6 on, and DragonFly
18134 shlibpath_overrides_runpath
=yes
18135 hardcode_into_libs
=yes
18144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18145 soname_spec
='${libname}${release}${shared_ext}$major'
18146 shlibpath_var
=LD_LIBRARY_PATH
18147 hardcode_into_libs
=yes
18154 dynamic_linker
="$host_os runtime_loader"
18155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18156 soname_spec
='${libname}${release}${shared_ext}$major'
18157 shlibpath_var
=LIBRARY_PATH
18158 shlibpath_overrides_runpath
=yes
18159 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18160 hardcode_into_libs
=yes
18163 hpux9
* | hpux10
* | hpux11
*)
18164 # Give a soname corresponding to the major version so that dld.sl refuses to
18165 # link against other versions.
18172 hardcode_into_libs
=yes
18173 dynamic_linker
="$host_os dld.so"
18174 shlibpath_var
=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18176 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177 soname_spec
='${libname}${release}${shared_ext}$major'
18178 if test "X$HPUX_IA64_MODE" = X32
; then
18179 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18181 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18183 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18187 hardcode_into_libs
=yes
18188 dynamic_linker
="$host_os dld.sl"
18189 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18190 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18192 soname_spec
='${libname}${release}${shared_ext}$major'
18193 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18194 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18198 dynamic_linker
="$host_os dld.sl"
18199 shlibpath_var
=SHLIB_PATH
18200 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18201 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18202 soname_spec
='${libname}${release}${shared_ext}$major'
18205 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18206 postinstall_cmds
='chmod 555 $lib'
18207 # or fails outright, so override atomically:
18208 install_override_mode
=555
18215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18216 soname_spec
='${libname}${release}${shared_ext}$major'
18217 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18218 shlibpath_var
=LD_LIBRARY_PATH
18219 shlibpath_overrides_runpath
=no
18220 hardcode_into_libs
=yes
18223 irix5
* | irix6
* | nonstopux
*)
18225 nonstopux
*) version_type
=nonstopux
;;
18227 if test "$lt_cv_prog_gnu_ld" = yes; then
18235 soname_spec
='${libname}${release}${shared_ext}$major'
18236 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18238 irix5
* | nonstopux
*)
18239 libsuff
= shlibsuff
=
18242 case $LD in # libtool.m4 will add one of these switches to LD
18243 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18244 libsuff
= shlibsuff
= libmagic
=32-bit;;
18245 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18246 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18247 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18248 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18249 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18253 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18254 shlibpath_overrides_runpath
=no
18255 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18256 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18257 hardcode_into_libs
=yes
18260 # No shared lib support for Linux oldld, aout, or coff.
18261 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18265 # This must be Linux ELF.
18267 # uclinux* changes (here and below) have been submitted to the libtool
18268 # project, but have not yet been accepted: they are GCC-local changes
18269 # for the time being. (See
18270 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18271 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
18275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18276 soname_spec
='${libname}${release}${shared_ext}$major'
18277 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18278 shlibpath_var
=LD_LIBRARY_PATH
18279 shlibpath_overrides_runpath
=no
18281 # Some binutils ld are patched to set DT_RUNPATH
18282 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
18283 $as_echo_n "(cached) " >&6
18285 lt_cv_shlibpath_overrides_runpath
=no
18286 save_LDFLAGS
=$LDFLAGS
18287 save_libdir
=$libdir
18288 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18289 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18291 /* end confdefs.h. */
18301 if ac_fn_c_try_link
"$LINENO"; then :
18302 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
18303 lt_cv_shlibpath_overrides_runpath
=yes
18306 rm -f core conftest.err conftest.
$ac_objext \
18307 conftest
$ac_exeext conftest.
$ac_ext
18308 LDFLAGS
=$save_LDFLAGS
18309 libdir
=$save_libdir
18313 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18315 # This implies no fast_install, which is unacceptable.
18316 # Some rework will be needed to allow for fast_install
18317 # before this can be enabled.
18318 hardcode_into_libs
=yes
18320 # Append ld.so.conf contents to the search path
18321 if test -f /etc
/ld.so.conf
; then
18322 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' ' '`
18323 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18326 # We used to test for /lib/ld.so.1 and disable shared libraries on
18327 # powerpc, because MkLinux only supported shared libraries with the
18328 # GNU dynamic linker. Since this was broken with cross compilers,
18329 # most powerpc-linux boxes support dynamic linking these days and
18330 # people can always --disable-shared, the test was removed, and we
18331 # assume the GNU/Linux dynamic linker is in use.
18332 dynamic_linker
='GNU/Linux ld.so'
18339 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18341 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18342 dynamic_linker
='NetBSD (a.out) ld.so'
18344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18345 soname_spec
='${libname}${release}${shared_ext}$major'
18346 dynamic_linker
='NetBSD ld.elf_so'
18348 shlibpath_var
=LD_LIBRARY_PATH
18349 shlibpath_overrides_runpath
=yes
18350 hardcode_into_libs
=yes
18355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18356 shlibpath_var
=LD_LIBRARY_PATH
18357 shlibpath_overrides_runpath
=yes
18364 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365 soname_spec
='${libname}${release}${shared_ext}$major'
18366 shlibpath_var
=LD_LIBRARY_PATH
18367 shlibpath_overrides_runpath
=no
18368 hardcode_into_libs
=yes
18369 dynamic_linker
='ldqnx.so'
18374 sys_lib_dlsearch_path_spec
="/usr/lib"
18376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18378 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18379 *) need_version
=no
;;
18381 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18382 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18383 shlibpath_var
=LD_LIBRARY_PATH
18384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18386 openbsd2.
[89] | openbsd2.
[89].
*)
18387 shlibpath_overrides_runpath
=no
18390 shlibpath_overrides_runpath
=yes
18394 shlibpath_overrides_runpath
=yes
18399 libname_spec
='$name'
18402 library_names_spec
='$libname${shared_ext} $libname.a'
18403 dynamic_linker
='OS/2 ld.exe'
18404 shlibpath_var
=LIBPATH
18407 osf3
* | osf4
* | osf5
*)
18411 soname_spec
='${libname}${release}${shared_ext}$major'
18412 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18413 shlibpath_var
=LD_LIBRARY_PATH
18414 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18415 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18427 soname_spec
='${libname}${release}${shared_ext}$major'
18428 shlibpath_var
=LD_LIBRARY_PATH
18429 shlibpath_overrides_runpath
=yes
18430 hardcode_into_libs
=yes
18431 # ldd complains unless libraries are executable
18432 postinstall_cmds
='chmod +x $lib'
18437 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18438 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18439 shlibpath_var
=LD_LIBRARY_PATH
18440 shlibpath_overrides_runpath
=yes
18441 if test "$with_gnu_ld" = yes; then
18449 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450 soname_spec
='${libname}${release}${shared_ext}$major'
18451 shlibpath_var
=LD_LIBRARY_PATH
18452 case $host_vendor in
18454 shlibpath_overrides_runpath
=no
18456 runpath_var
=LD_RUN_PATH
18464 shlibpath_overrides_runpath
=no
18465 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18471 if test -d /usr
/nec
;then
18473 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18474 soname_spec
='$libname${shared_ext}.$major'
18475 shlibpath_var
=LD_LIBRARY_PATH
18479 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18480 version_type
=freebsd-elf
18483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18484 soname_spec
='${libname}${release}${shared_ext}$major'
18485 shlibpath_var
=LD_LIBRARY_PATH
18486 shlibpath_overrides_runpath
=yes
18487 hardcode_into_libs
=yes
18488 if test "$with_gnu_ld" = yes; then
18489 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18491 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18494 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18498 sys_lib_dlsearch_path_spec
='/usr/lib'
18502 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18506 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18507 shlibpath_var
=LD_LIBRARY_PATH
18508 shlibpath_overrides_runpath
=no
18509 hardcode_into_libs
=yes
18514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18515 soname_spec
='${libname}${release}${shared_ext}$major'
18516 shlibpath_var
=LD_LIBRARY_PATH
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18524 $as_echo "$dynamic_linker" >&6; }
18525 test "$dynamic_linker" = no
&& can_build_shared
=no
18527 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18528 if test "$GCC" = yes; then
18529 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18532 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18533 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18535 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18536 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18631 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18633 if test -n "$hardcode_libdir_flag_spec" ||
18634 test -n "$runpath_var" ||
18635 test "X$hardcode_automatic" = "Xyes" ; then
18637 # We can hardcode non-existent directories.
18638 if test "$hardcode_direct" != no
&&
18639 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18640 # have to relink, otherwise we might link with an installed library
18641 # when we should be linking with a yet-to-be-installed one
18642 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18643 test "$hardcode_minus_L" != no
; then
18644 # Linking always hardcodes the temporary library directory.
18645 hardcode_action
=relink
18647 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18648 hardcode_action
=immediate
18651 # We cannot hardcode anything, or else we can only hardcode existing
18653 hardcode_action
=unsupported
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18656 $as_echo "$hardcode_action" >&6; }
18658 if test "$hardcode_action" = relink ||
18659 test "$inherit_rpath" = yes; then
18660 # Fast installation is not supported
18661 enable_fast_install
=no
18662 elif test "$shlibpath_overrides_runpath" = yes ||
18663 test "$enable_shared" = no
; then
18664 # Fast installation is not necessary
18665 enable_fast_install
=needless
18673 if test "x$enable_dlopen" != xyes
; then
18674 enable_dlopen
=unknown
18675 enable_dlopen_self
=unknown
18676 enable_dlopen_self_static
=unknown
18683 lt_cv_dlopen
="load_add_on"
18685 lt_cv_dlopen_self
=yes
18688 mingw
* | pw32
* | cegcc
*)
18689 lt_cv_dlopen
="LoadLibrary"
18694 lt_cv_dlopen
="dlopen"
18699 # if libdl is installed we need to link against it
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18701 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18702 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18703 $as_echo_n "(cached) " >&6
18705 ac_check_lib_save_LIBS
=$LIBS
18707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18710 /* Override any GCC internal prototype to avoid an error.
18711 Use char because int might match the return type of a GCC
18712 builtin and then its argument prototype would still apply. */
18725 if ac_fn_c_try_link
"$LINENO"; then :
18726 ac_cv_lib_dl_dlopen
=yes
18728 ac_cv_lib_dl_dlopen
=no
18730 rm -f core conftest.err conftest.
$ac_objext \
18731 conftest
$ac_exeext conftest.
$ac_ext
18732 LIBS
=$ac_check_lib_save_LIBS
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18735 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18736 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18737 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18740 lt_cv_dlopen
="dyld"
18742 lt_cv_dlopen_self
=yes
18749 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18750 if test "x$ac_cv_func_shl_load" = xyes
; then :
18751 lt_cv_dlopen
="shl_load"
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18754 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18755 if ${ac_cv_lib_dld_shl_load+:} false
; then :
18756 $as_echo_n "(cached) " >&6
18758 ac_check_lib_save_LIBS
=$LIBS
18760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18763 /* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18773 return shl_load ();
18778 if ac_fn_c_try_link
"$LINENO"; then :
18779 ac_cv_lib_dld_shl_load
=yes
18781 ac_cv_lib_dld_shl_load
=no
18783 rm -f core conftest.err conftest.
$ac_objext \
18784 conftest
$ac_exeext conftest.
$ac_ext
18785 LIBS
=$ac_check_lib_save_LIBS
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18788 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18789 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
18790 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18792 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18793 if test "x$ac_cv_func_dlopen" = xyes
; then :
18794 lt_cv_dlopen
="dlopen"
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18797 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18798 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18799 $as_echo_n "(cached) " >&6
18801 ac_check_lib_save_LIBS
=$LIBS
18803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18806 /* Override any GCC internal prototype to avoid an error.
18807 Use char because int might match the return type of a GCC
18808 builtin and then its argument prototype would still apply. */
18821 if ac_fn_c_try_link
"$LINENO"; then :
18822 ac_cv_lib_dl_dlopen
=yes
18824 ac_cv_lib_dl_dlopen
=no
18826 rm -f core conftest.err conftest.
$ac_objext \
18827 conftest
$ac_exeext conftest.
$ac_ext
18828 LIBS
=$ac_check_lib_save_LIBS
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18831 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18832 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18833 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18836 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18837 if ${ac_cv_lib_svld_dlopen+:} false
; then :
18838 $as_echo_n "(cached) " >&6
18840 ac_check_lib_save_LIBS
=$LIBS
18841 LIBS
="-lsvld $LIBS"
18842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18843 /* end confdefs.h. */
18845 /* Override any GCC internal prototype to avoid an error.
18846 Use char because int might match the return type of a GCC
18847 builtin and then its argument prototype would still apply. */
18860 if ac_fn_c_try_link
"$LINENO"; then :
18861 ac_cv_lib_svld_dlopen
=yes
18863 ac_cv_lib_svld_dlopen
=no
18865 rm -f core conftest.err conftest.
$ac_objext \
18866 conftest
$ac_exeext conftest.
$ac_ext
18867 LIBS
=$ac_check_lib_save_LIBS
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18870 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18871 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
18872 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18875 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18876 if ${ac_cv_lib_dld_dld_link+:} false
; then :
18877 $as_echo_n "(cached) " >&6
18879 ac_check_lib_save_LIBS
=$LIBS
18881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18882 /* end confdefs.h. */
18884 /* Override any GCC internal prototype to avoid an error.
18885 Use char because int might match the return type of a GCC
18886 builtin and then its argument prototype would still apply. */
18894 return dld_link ();
18899 if ac_fn_c_try_link
"$LINENO"; then :
18900 ac_cv_lib_dld_dld_link
=yes
18902 ac_cv_lib_dld_dld_link
=no
18904 rm -f core conftest.err conftest.
$ac_objext \
18905 conftest
$ac_exeext conftest.
$ac_ext
18906 LIBS
=$ac_check_lib_save_LIBS
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18909 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18910 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
18911 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18932 if test "x$lt_cv_dlopen" != xno
; then
18938 case $lt_cv_dlopen in
18940 save_CPPFLAGS
="$CPPFLAGS"
18941 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18943 save_LDFLAGS
="$LDFLAGS"
18944 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18947 LIBS
="$lt_cv_dlopen_libs $LIBS"
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18950 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18951 if ${lt_cv_dlopen_self+:} false
; then :
18952 $as_echo_n "(cached) " >&6
18954 if test "$cross_compiling" = yes; then :
18955 lt_cv_dlopen_self
=cross
18957 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18958 lt_status
=$lt_dlunknown
18959 cat > conftest.
$ac_ext <<_LT_EOF
18960 #line 18977 "configure"
18961 #include "confdefs.h"
18970 # define LT_DLGLOBAL RTLD_GLOBAL
18973 # define LT_DLGLOBAL DL_GLOBAL
18975 # define LT_DLGLOBAL 0
18979 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18980 find out it does not work in some platform. */
18981 #ifndef LT_DLLAZY_OR_NOW
18983 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18986 # define LT_DLLAZY_OR_NOW DL_LAZY
18989 # define LT_DLLAZY_OR_NOW RTLD_NOW
18992 # define LT_DLLAZY_OR_NOW DL_NOW
18994 # define LT_DLLAZY_OR_NOW 0
19001 /* When -fvisbility=hidden is used, assume the code has been annotated
19002 correspondingly for the symbols needed. */
19003 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19004 void fnord () __attribute__((visibility("default")));
19007 void fnord () { int i=42; }
19010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19011 int status = $lt_dlunknown;
19015 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19018 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19019 else puts (dlerror ());
19021 /* dlclose (self); */
19029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19030 (eval $ac_link) 2>&5
19032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19033 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19034 (.
/conftest
; exit; ) >&5 2>/dev
/null
19036 case x
$lt_status in
19037 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19038 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19039 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19042 # compilation failed
19043 lt_cv_dlopen_self
=no
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19051 $as_echo "$lt_cv_dlopen_self" >&6; }
19053 if test "x$lt_cv_dlopen_self" = xyes
; then
19054 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19056 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19057 if ${lt_cv_dlopen_self_static+:} false
; then :
19058 $as_echo_n "(cached) " >&6
19060 if test "$cross_compiling" = yes; then :
19061 lt_cv_dlopen_self_static
=cross
19063 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19064 lt_status
=$lt_dlunknown
19065 cat > conftest.
$ac_ext <<_LT_EOF
19066 #line 19083 "configure"
19067 #include "confdefs.h"
19076 # define LT_DLGLOBAL RTLD_GLOBAL
19079 # define LT_DLGLOBAL DL_GLOBAL
19081 # define LT_DLGLOBAL 0
19085 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19086 find out it does not work in some platform. */
19087 #ifndef LT_DLLAZY_OR_NOW
19089 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19092 # define LT_DLLAZY_OR_NOW DL_LAZY
19095 # define LT_DLLAZY_OR_NOW RTLD_NOW
19098 # define LT_DLLAZY_OR_NOW DL_NOW
19100 # define LT_DLLAZY_OR_NOW 0
19107 /* When -fvisbility=hidden is used, assume the code has been annotated
19108 correspondingly for the symbols needed. */
19109 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19110 void fnord () __attribute__((visibility("default")));
19113 void fnord () { int i=42; }
19116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19117 int status = $lt_dlunknown;
19121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19124 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19125 else puts (dlerror ());
19127 /* dlclose (self); */
19135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19136 (eval $ac_link) 2>&5
19138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19139 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19140 (.
/conftest
; exit; ) >&5 2>/dev
/null
19142 case x
$lt_status in
19143 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19144 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19145 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19148 # compilation failed
19149 lt_cv_dlopen_self_static
=no
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19157 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19160 CPPFLAGS
="$save_CPPFLAGS"
19161 LDFLAGS
="$save_LDFLAGS"
19166 case $lt_cv_dlopen_self in
19167 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19168 *) enable_dlopen_self
=unknown
;;
19171 case $lt_cv_dlopen_self_static in
19172 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19173 *) enable_dlopen_self_static
=unknown
;;
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19196 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19197 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19198 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19199 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19201 $as_echo "yes" >&6; }
19203 # FIXME - insert some real tests, host_os isn't really good enough
19206 if test -n "$STRIP" ; then
19207 striplib
="$STRIP -x"
19208 old_striplib
="$STRIP -S"
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19210 $as_echo "yes" >&6; }
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19213 $as_echo "no" >&6; }
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19218 $as_echo "no" >&6; }
19234 # Report which library types will actually be built
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19236 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19238 $as_echo "$can_build_shared" >&6; }
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19241 $as_echo_n "checking whether to build shared libraries... " >&6; }
19242 test "$can_build_shared" = "no" && enable_shared
=no
19244 # On AIX, shared libraries and static libraries use the same namespace, and
19245 # are all built from PIC.
19248 test "$enable_shared" = yes && enable_static
=no
19249 if test -n "$RANLIB"; then
19250 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19251 postinstall_cmds
='$RANLIB $lib'
19256 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19257 test "$enable_shared" = yes && enable_static
=no
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19262 $as_echo "$enable_shared" >&6; }
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19265 $as_echo_n "checking whether to build static libraries... " >&6; }
19266 # Make sure either enable_shared or enable_static is yes.
19267 test "$enable_shared" = yes || enable_static
=yes
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19269 $as_echo "$enable_static" >&6; }
19276 ac_cpp
='$CXXCPP $CPPFLAGS'
19277 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19278 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19279 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19283 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19284 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19285 (test "X$CXX" != "Xg++"))) ; then
19287 ac_cpp
='$CXXCPP $CPPFLAGS'
19288 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19289 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19290 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19292 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19293 if test -z "$CXXCPP"; then
19294 if ${ac_cv_prog_CXXCPP+:} false
; then :
19295 $as_echo_n "(cached) " >&6
19297 # Double quotes because CXXCPP needs to be expanded
19298 for CXXCPP
in "$CXX -E" "/lib/cpp"
19300 ac_preproc_ok
=false
19301 for ac_cxx_preproc_warn_flag
in '' yes
19303 # Use a header file that comes with gcc, so configuring glibc
19304 # with a fresh cross-compiler works.
19305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19306 # <limits.h> exists even on freestanding compilers.
19307 # On the NeXT, cc -E runs the code through the compiler's parser,
19308 # not just through cpp. "Syntax error" is here to catch this case.
19309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19310 /* end confdefs.h. */
19312 # include <limits.h>
19314 # include <assert.h>
19318 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19321 # Broken: fails on valid input.
19324 rm -f conftest.err conftest.i conftest.
$ac_ext
19326 # OK, works on sane cases. Now check whether nonexistent headers
19327 # can be detected and how.
19328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h. */
19330 #include <ac_nonexistent.h>
19332 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19333 # Broken: success on invalid input.
19336 # Passes both tests.
19340 rm -f conftest.err conftest.i conftest.
$ac_ext
19343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19344 rm -f conftest.i conftest.err conftest.
$ac_ext
19345 if $ac_preproc_ok; then :
19350 ac_cv_prog_CXXCPP
=$CXXCPP
19353 CXXCPP
=$ac_cv_prog_CXXCPP
19355 ac_cv_prog_CXXCPP
=$CXXCPP
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19358 $as_echo "$CXXCPP" >&6; }
19359 ac_preproc_ok
=false
19360 for ac_cxx_preproc_warn_flag
in '' yes
19362 # Use a header file that comes with gcc, so configuring glibc
19363 # with a fresh cross-compiler works.
19364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19365 # <limits.h> exists even on freestanding compilers.
19366 # On the NeXT, cc -E runs the code through the compiler's parser,
19367 # not just through cpp. "Syntax error" is here to catch this case.
19368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19369 /* end confdefs.h. */
19371 # include <limits.h>
19373 # include <assert.h>
19377 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19380 # Broken: fails on valid input.
19383 rm -f conftest.err conftest.i conftest.
$ac_ext
19385 # OK, works on sane cases. Now check whether nonexistent headers
19386 # can be detected and how.
19387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h. */
19389 #include <ac_nonexistent.h>
19391 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19392 # Broken: success on invalid input.
19395 # Passes both tests.
19399 rm -f conftest.err conftest.i conftest.
$ac_ext
19402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19403 rm -f conftest.i conftest.err conftest.
$ac_ext
19404 if $ac_preproc_ok; then :
19407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19409 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
19410 See \`config.log' for more details" "$LINENO" 5; }
19414 ac_cpp
='$CXXCPP $CPPFLAGS'
19415 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19416 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19417 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19420 _lt_caught_CXX_error
=yes
19424 ac_cpp
='$CXXCPP $CPPFLAGS'
19425 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19429 archive_cmds_need_lc_CXX
=no
19430 allow_undefined_flag_CXX
=
19431 always_export_symbols_CXX
=no
19432 archive_expsym_cmds_CXX
=
19433 compiler_needs_object_CXX
=no
19434 export_dynamic_flag_spec_CXX
=
19435 hardcode_direct_CXX
=no
19436 hardcode_direct_absolute_CXX
=no
19437 hardcode_libdir_flag_spec_CXX
=
19438 hardcode_libdir_flag_spec_ld_CXX
=
19439 hardcode_libdir_separator_CXX
=
19440 hardcode_minus_L_CXX
=no
19441 hardcode_shlibpath_var_CXX
=unsupported
19442 hardcode_automatic_CXX
=no
19443 inherit_rpath_CXX
=no
19445 module_expsym_cmds_CXX
=
19446 link_all_deplibs_CXX
=unknown
19447 old_archive_cmds_CXX
=$old_archive_cmds
19448 reload_flag_CXX
=$reload_flag
19449 reload_cmds_CXX
=$reload_cmds
19450 no_undefined_flag_CXX
=
19451 whole_archive_flag_spec_CXX
=
19452 enable_shared_with_static_runtimes_CXX
=no
19454 # Source file extension for C++ test sources.
19457 # Object file extension for compiled C++ test sources.
19461 # No sense in running all these tests if we already determined that
19462 # the CXX compiler isn't working. Some variables (like enable_shared)
19463 # are currently assumed to apply to all compilers on this platform,
19464 # and will be corrupted by setting them based on a non-working compiler.
19465 if test "$_lt_caught_CXX_error" != yes; then
19466 # Code to be used in simple compile tests
19467 lt_simple_compile_test_code
="int some_variable = 0;"
19469 # Code to be used in simple link tests
19470 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19472 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19479 # If no C compiler was specified, use CC.
19482 # If no C compiler flags were specified, use CFLAGS.
19483 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19485 # Allow CC to be a program name with arguments.
19489 # save warnings/boilerplate of simple test code
19490 ac_outfile
=conftest.
$ac_objext
19491 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19492 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19493 _lt_compiler_boilerplate
=`cat conftest.err`
19496 ac_outfile
=conftest.
$ac_objext
19497 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19498 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19499 _lt_linker_boilerplate
=`cat conftest.err`
19503 # Allow CC to be a program name with arguments.
19508 lt_save_with_gnu_ld
=$with_gnu_ld
19509 lt_save_path_LD
=$lt_cv_path_LD
19510 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19511 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19513 $as_unset lt_cv_prog_gnu_ld
19515 if test -n "${lt_cv_path_LDCXX+set}"; then
19516 lt_cv_path_LD
=$lt_cv_path_LDCXX
19518 $as_unset lt_cv_path_LD
19520 test -z "${LDCXX+set}" || LD
=$LDCXX
19524 for cc_temp
in $compiler""; do
19526 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19527 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19532 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19535 if test -n "$compiler"; then
19536 # We don't want -fno-exception when compiling C++ code, so set the
19537 # no_builtin_flag separately
19538 if test "$GXX" = yes; then
19539 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19541 lt_prog_compiler_no_builtin_flag_CXX
=
19544 if test "$GXX" = yes; then
19545 # Set up default GNU C++ configuration
19549 # Check whether --with-gnu-ld was given.
19550 if test "${with_gnu_ld+set}" = set; then :
19551 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19557 if test "$GCC" = yes; then
19558 # Check if gcc -print-prog-name=ld gives a path.
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19560 $as_echo_n "checking for ld used by $CC... " >&6; }
19563 # gcc leaves a trailing carriage return which upsets mingw
19564 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19566 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19569 # Accept absolute paths.
19571 re_direlt
='/[^/][^/]*/\.\./'
19572 # Canonicalize the pathname of ld
19573 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19574 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19575 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19577 test -z "$LD" && LD
="$ac_prog"
19580 # If it fails, then pretend we aren't using GCC.
19584 # If it is relative, then search for the first ld in PATH.
19585 with_gnu_ld
=unknown
19588 elif test "$with_gnu_ld" = yes; then
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19590 $as_echo_n "checking for GNU ld... " >&6; }
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19593 $as_echo_n "checking for non-GNU ld... " >&6; }
19595 if ${lt_cv_path_LD+:} false
; then :
19596 $as_echo_n "(cached) " >&6
19598 if test -z "$LD"; then
19599 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19600 for ac_dir
in $PATH; do
19602 test -z "$ac_dir" && ac_dir
=.
19603 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19604 lt_cv_path_LD
="$ac_dir/$ac_prog"
19605 # Check to see if the program is GNU ld. I'd rather use --version,
19606 # but apparently some variants of GNU ld only accept -v.
19607 # Break only if it was the GNU/non-GNU ld that we prefer.
19608 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19609 *GNU
* |
*'with BFD'*)
19610 test "$with_gnu_ld" != no
&& break
19613 test "$with_gnu_ld" != yes && break
19620 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19624 LD
="$lt_cv_path_LD"
19625 if test -n "$LD"; then
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19627 $as_echo "$LD" >&6; }
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19630 $as_echo "no" >&6; }
19632 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19634 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19635 if ${lt_cv_prog_gnu_ld+:} false
; then :
19636 $as_echo_n "(cached) " >&6
19638 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19639 case `$LD -v 2>&1 </dev/null` in
19640 *GNU
* |
*'with BFD'*)
19641 lt_cv_prog_gnu_ld
=yes
19644 lt_cv_prog_gnu_ld
=no
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19649 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19650 with_gnu_ld
=$lt_cv_prog_gnu_ld
19658 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19659 # archiving commands below assume that GNU ld is being used.
19660 if test "$with_gnu_ld" = yes; then
19661 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19662 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'
19664 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19665 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19667 # If archive_cmds runs LD, not CC, wlarc should be empty
19668 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19669 # investigate it a little bit more. (MM)
19672 # ancient GNU ld didn't support --whole-archive et. al.
19673 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19674 $GREP 'no-whole-archive' > /dev
/null
; then
19675 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19677 whole_archive_flag_spec_CXX
=
19683 # A generic and very simple default shared library creation
19684 # command for GNU C++ for the case where it uses the native
19685 # linker, instead of GNU ld. If possible, this setting should
19686 # overridden to take advantage of the native linker features on
19687 # the platform it is being used on.
19688 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19691 # Commands to make compiler produce verbose output that lists
19692 # what "hidden" libraries, object files and flags are used when
19693 # linking a shared library.
19694 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19702 # PORTME: fill in a description of your system's C++ link characteristics
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19704 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19708 # FIXME: insert proper C++ library support
19712 if test "$host_cpu" = ia64
; then
19713 # On IA64, the linker does run time linking by default, so we don't
19714 # have to do anything special.
19715 aix_use_runtimelinking
=no
19716 exp_sym_flag
='-Bexport'
19719 aix_use_runtimelinking
=no
19721 # Test if we are trying to use run time linking or normal
19722 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19723 # need to do runtime linking.
19724 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19725 for ld_flag
in $LDFLAGS; do
19728 aix_use_runtimelinking
=yes
19736 exp_sym_flag
='-bexport'
19737 no_entry_flag
='-bnoentry'
19740 # When large executables or shared objects are built, AIX ld can
19741 # have problems creating the table of contents. If linking a library
19742 # or program results in "error TOC overflow" add -mminimal-toc to
19743 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19744 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19746 archive_cmds_CXX
=''
19747 hardcode_direct_CXX
=yes
19748 hardcode_direct_absolute_CXX
=yes
19749 hardcode_libdir_separator_CXX
=':'
19750 link_all_deplibs_CXX
=yes
19751 file_list_spec_CXX
='${wl}-f,'
19753 if test "$GXX" = yes; then
19754 case $host_os in aix4.
[012]|aix4.
[012].
*)
19755 # We only want to do this on AIX 4.2 and lower, the check
19756 # below for broken collect2 doesn't work under 4.3+
19757 collect2name
=`${CC} -print-prog-name=collect2`
19758 if test -f "$collect2name" &&
19759 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19761 # We have reworked collect2
19764 # We have old collect2
19765 hardcode_direct_CXX
=unsupported
19766 # It fails to find uninstalled libraries when the uninstalled
19767 # path is not listed in the libpath. Setting hardcode_minus_L
19768 # to unsupported forces relinking
19769 hardcode_minus_L_CXX
=yes
19770 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19771 hardcode_libdir_separator_CXX
=
19774 shared_flag
='-shared'
19775 if test "$aix_use_runtimelinking" = yes; then
19776 shared_flag
="$shared_flag "'${wl}-G'
19780 if test "$host_cpu" = ia64
; then
19781 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19782 # chokes on -Wl,-G. The following line is correct:
19785 if test "$aix_use_runtimelinking" = yes; then
19786 shared_flag
='${wl}-G'
19788 shared_flag
='${wl}-bM:SRE'
19793 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19794 # It seems that -bexpall does not export symbols beginning with
19795 # underscore (_), so it is better to generate a list of symbols to
19797 always_export_symbols_CXX
=yes
19798 if test "$aix_use_runtimelinking" = yes; then
19799 # Warning - without using the other runtime loading flags (-brtl),
19800 # -berok will link without error, but may produce a broken library.
19801 allow_undefined_flag_CXX
='-berok'
19802 # Determine the default libpath from the value encoded in an empty
19804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19805 /* end confdefs.h. */
19815 if ac_fn_cxx_try_link
"$LINENO"; then :
19817 lt_aix_libpath_sed
='
19818 /Import File Strings/,/^$/ {
19824 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19825 # Check for a 64-bit object if we didn't find anything.
19826 if test -z "$aix_libpath"; then
19827 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19830 rm -f core conftest.err conftest.
$ac_objext \
19831 conftest
$ac_exeext conftest.
$ac_ext
19832 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19834 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19836 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"
19838 if test "$host_cpu" = ia64
; then
19839 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19840 allow_undefined_flag_CXX
="-z nodefs"
19841 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"
19843 # Determine the default libpath from the value encoded in an
19844 # empty executable.
19845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19846 /* end confdefs.h. */
19856 if ac_fn_cxx_try_link
"$LINENO"; then :
19858 lt_aix_libpath_sed
='
19859 /Import File Strings/,/^$/ {
19865 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19866 # Check for a 64-bit object if we didn't find anything.
19867 if test -z "$aix_libpath"; then
19868 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19871 rm -f core conftest.err conftest.
$ac_objext \
19872 conftest
$ac_exeext conftest.
$ac_ext
19873 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19875 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19876 # Warning - without using the other run time loading flags,
19877 # -berok will link without error, but may produce a broken library.
19878 no_undefined_flag_CXX
=' ${wl}-bernotok'
19879 allow_undefined_flag_CXX
=' ${wl}-berok'
19880 if test "$with_gnu_ld" = yes; then
19881 # We only use this code for GNU lds that support --whole-archive.
19882 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19884 # Exported symbols can be pulled into shared objects from archives
19885 whole_archive_flag_spec_CXX
='$convenience'
19887 archive_cmds_need_lc_CXX
=yes
19888 # This is similar to how AIX traditionally builds its shared
19890 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'
19896 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19897 allow_undefined_flag_CXX
=unsupported
19898 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19899 # support --undefined. This deserves some investigation. FIXME
19900 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19907 case $cc_basename in
19909 # FIXME: insert proper C++ library support
19915 cygwin
* | mingw
* | pw32
* | cegcc
*)
19916 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19917 # as there is no search path for DLLs.
19918 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19919 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19920 allow_undefined_flag_CXX
=unsupported
19921 always_export_symbols_CXX
=no
19922 enable_shared_with_static_runtimes_CXX
=yes
19924 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19925 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'
19926 # If the export-symbols file already is a .def file (1st line
19927 # is EXPORTS), use it as is; otherwise, prepend...
19928 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19929 cp $export_symbols $output_objdir/$soname.def;
19931 echo EXPORTS > $output_objdir/$soname.def;
19932 cat $export_symbols >> $output_objdir/$soname.def;
19934 $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'
19939 darwin
* | rhapsody
*)
19942 archive_cmds_need_lc_CXX
=no
19943 hardcode_direct_CXX
=no
19944 hardcode_automatic_CXX
=yes
19945 hardcode_shlibpath_var_CXX
=unsupported
19946 if test "$lt_cv_ld_force_load" = "yes"; then
19947 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\"`'
19949 whole_archive_flag_spec_CXX
=''
19951 link_all_deplibs_CXX
=yes
19952 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19953 case $cc_basename in
19954 ifort
*) _lt_dar_can_shared
=yes ;;
19955 *) _lt_dar_can_shared
=$GCC ;;
19957 if test "$_lt_dar_can_shared" = "yes"; then
19958 output_verbose_link_cmd
=func_echo_all
19959 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}"
19960 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19961 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}"
19962 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}"
19963 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19964 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}"
19965 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}"
19975 case $cc_basename in
19977 # FIXME: insert proper C++ library support
19981 # Green Hills C++ Compiler
19982 # FIXME: insert proper C++ library support
19986 # FIXME: insert proper C++ library support
19993 # C++ shared libraries reported to be fairly broken before
19999 archive_cmds_need_lc_CXX
=no
20002 freebsd
* | dragonfly
*)
20003 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20012 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20013 link_all_deplibs_CXX
=yes
20017 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20018 hardcode_libdir_separator_CXX
=:
20019 export_dynamic_flag_spec_CXX
='${wl}-E'
20020 hardcode_direct_CXX
=yes
20021 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20022 # but as the default
20023 # location of the library.
20025 case $cc_basename in
20027 # FIXME: insert proper C++ library support
20031 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'
20032 # Commands to make compiler produce verbose output that lists
20033 # what "hidden" libraries, object files and flags are used when
20034 # linking a shared library.
20036 # There doesn't appear to be a way to prevent this compiler from
20037 # explicitly linking system object files so we need to strip them
20038 # from the output so that they don't get included in the library
20040 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"'
20043 if test "$GXX" = yes; then
20044 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'
20046 # FIXME: insert proper C++ library support
20054 if test $with_gnu_ld = no
; then
20055 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20056 hardcode_libdir_separator_CXX
=:
20062 export_dynamic_flag_spec_CXX
='${wl}-E'
20068 hardcode_direct_CXX
=no
20069 hardcode_shlibpath_var_CXX
=no
20072 hardcode_direct_CXX
=yes
20073 hardcode_direct_absolute_CXX
=yes
20074 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20075 # but as the default
20076 # location of the library.
20080 case $cc_basename in
20082 # FIXME: insert proper C++ library support
20088 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20091 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20094 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20097 # Commands to make compiler produce verbose output that lists
20098 # what "hidden" libraries, object files and flags are used when
20099 # linking a shared library.
20101 # There doesn't appear to be a way to prevent this compiler from
20102 # explicitly linking system object files so we need to strip them
20103 # from the output so that they don't get included in the library
20105 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"'
20108 if test "$GXX" = yes; then
20109 if test $with_gnu_ld = no
; then
20112 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20115 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20118 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'
20123 # FIXME: insert proper C++ library support
20131 hardcode_direct_CXX
=no
20132 hardcode_shlibpath_var_CXX
=no
20133 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20134 export_dynamic_flag_spec_CXX
='${wl}-E'
20135 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20136 # Instead, shared libraries are loaded at an image base (0x10000000 by
20137 # default) and relocated if they conflict, which is a slow very memory
20138 # consuming and fragmenting process. To avoid this, we pick a random,
20139 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20140 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20141 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'
20142 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'
20145 case $cc_basename in
20148 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'
20150 # Archives containing C++ object files must be created using
20151 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20152 # necessary to make sure instantiated templates are included
20154 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20157 if test "$GXX" = yes; then
20158 if test "$with_gnu_ld" = no
; then
20159 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'
20161 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'
20164 link_all_deplibs_CXX
=yes
20167 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20168 hardcode_libdir_separator_CXX
=:
20169 inherit_rpath_CXX
=yes
20172 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20173 case $cc_basename in
20175 # Kuck and Associates, Inc. (KAI) C++ Compiler
20177 # KCC will only create a shared library if the output file
20178 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20179 # to its proper name (with version) after linking.
20180 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'
20181 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'
20182 # Commands to make compiler produce verbose output that lists
20183 # what "hidden" libraries, object files and flags are used when
20184 # linking a shared library.
20186 # There doesn't appear to be a way to prevent this compiler from
20187 # explicitly linking system object files so we need to strip them
20188 # from the output so that they don't get included in the library
20190 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"'
20192 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20193 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20195 # Archives containing C++ object files must be created using
20196 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20197 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20202 # version 8.0 and above of icpc choke on multiply defined symbols
20203 # if we add $predep_objects and $postdep_objects, however 7.1 and
20204 # earlier do not add the objects themselves.
20205 case `$CC -V 2>&1` in
20207 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20208 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'
20210 *) # Version 8.0 or newer
20213 ia64
*) tmp_idyn
=' -i_dynamic';;
20215 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20216 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'
20219 archive_cmds_need_lc_CXX
=no
20220 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20221 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20222 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20225 # Portland Group C++ compiler
20227 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20228 prelink_cmds_CXX
='tpldir=Template.dir~
20230 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20231 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20232 old_archive_cmds_CXX
='tpldir=Template.dir~
20234 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20235 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20237 archive_cmds_CXX
='tpldir=Template.dir~
20239 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20240 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20241 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20243 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20244 $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'
20246 *) # Version 6 and above use weak symbols
20247 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20248 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'
20252 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20253 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20254 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'
20258 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20259 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'
20261 runpath_var
=LD_RUN_PATH
20262 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20263 hardcode_libdir_separator_CXX
=:
20265 # Commands to make compiler produce verbose output that lists
20266 # what "hidden" libraries, object files and flags are used when
20267 # linking a shared library.
20269 # There doesn't appear to be a way to prevent this compiler from
20270 # explicitly linking system object files so we need to strip them
20271 # from the output so that they don't get included in the library
20273 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'
20275 xl
* | mpixl
* | bgxl
*)
20276 # IBM XL 8.0 on PPC, with GNU ld
20277 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20278 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20279 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20280 if test "x$supports_anon_versioning" = xyes
; then
20281 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
20282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20283 echo "local: *; };" >> $output_objdir/$libname.ver~
20284 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20288 case `$CC -V 2>&1 | sed 5q` in
20291 no_undefined_flag_CXX
=' -zdefs'
20292 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20293 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'
20294 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20295 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'
20296 compiler_needs_object_CXX
=yes
20298 # Not sure whether something based on
20299 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20301 output_verbose_link_cmd
='func_echo_all'
20303 # Archives containing C++ object files must be created using
20304 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20305 # necessary to make sure instantiated templates are included
20307 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20315 # FIXME: insert proper C++ library support
20320 # FIXME: insert proper C++ library support
20325 case $cc_basename in
20327 # FIXME: insert proper C++ library support
20331 # FIXME: insert proper C++ library support
20338 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20339 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20341 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20342 hardcode_direct_CXX
=yes
20343 hardcode_shlibpath_var_CXX
=no
20345 # Workaround some broken pre-1.5 toolchains
20346 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20354 # C++ shared libraries are fairly broken
20359 if test -f /usr
/libexec
/ld.so
; then
20360 hardcode_direct_CXX
=yes
20361 hardcode_shlibpath_var_CXX
=no
20362 hardcode_direct_absolute_CXX
=yes
20363 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20364 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20365 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20366 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20367 export_dynamic_flag_spec_CXX
='${wl}-E'
20368 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20370 output_verbose_link_cmd
=func_echo_all
20376 osf3
* | osf4
* | osf5
*)
20377 case $cc_basename in
20379 # Kuck and Associates, Inc. (KAI) C++ Compiler
20381 # KCC will only create a shared library if the output file
20382 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20383 # to its proper name (with version) after linking.
20384 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'
20386 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20387 hardcode_libdir_separator_CXX
=:
20389 # Archives containing C++ object files must be created using
20390 # the KAI C++ compiler.
20392 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20393 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
20397 # Rational C++ 2.4.1
20398 # FIXME: insert proper C++ library support
20404 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20405 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'
20406 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20409 allow_undefined_flag_CXX
=' -expect_unresolved \*'
20410 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'
20411 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20412 echo "-hidden">> $lib.exp~
20413 $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~
20415 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20419 hardcode_libdir_separator_CXX
=:
20421 # Commands to make compiler produce verbose output that lists
20422 # what "hidden" libraries, object files and flags are used when
20423 # linking a shared library.
20425 # There doesn't appear to be a way to prevent this compiler from
20426 # explicitly linking system object files so we need to strip them
20427 # from the output so that they don't get included in the library
20429 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"'
20432 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20433 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20436 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'
20439 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'
20443 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20444 hardcode_libdir_separator_CXX
=:
20446 # Commands to make compiler produce verbose output that lists
20447 # what "hidden" libraries, object files and flags are used when
20448 # linking a shared library.
20449 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20452 # FIXME: insert proper C++ library support
20460 # FIXME: insert proper C++ library support
20465 case $cc_basename in
20468 # FIXME: insert proper C++ library support
20473 # FIXME: insert proper C++ library support
20477 # FIXME: insert proper C++ library support
20484 case $cc_basename in
20486 # Sun C++ 4.2, 5.x and Centerline C++
20487 archive_cmds_need_lc_CXX
=yes
20488 no_undefined_flag_CXX
=' -zdefs'
20489 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20490 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20491 $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'
20493 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20494 hardcode_shlibpath_var_CXX
=no
20496 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20498 # The compiler driver will combine and reorder linker options,
20499 # but understands `-z linker_flag'.
20500 # Supported since Solaris 2.6 (maybe 2.5.1?)
20501 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20504 link_all_deplibs_CXX
=yes
20506 output_verbose_link_cmd
='func_echo_all'
20508 # Archives containing C++ object files must be created using
20509 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20510 # necessary to make sure instantiated templates are included
20512 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20515 # Green Hills C++ Compiler
20516 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20518 # The C++ compiler must be used to create the archive.
20519 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20522 # GNU C++ compiler with Solaris linker
20523 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20524 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20525 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20526 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20527 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20528 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20530 # Commands to make compiler produce verbose output that lists
20531 # what "hidden" libraries, object files and flags are used when
20532 # linking a shared library.
20533 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20535 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20537 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20538 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20539 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20541 # Commands to make compiler produce verbose output that lists
20542 # what "hidden" libraries, object files and flags are used when
20543 # linking a shared library.
20544 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20547 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20549 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20551 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20559 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20560 no_undefined_flag_CXX
='${wl}-z,text'
20561 archive_cmds_need_lc_CXX
=no
20562 hardcode_shlibpath_var_CXX
=no
20563 runpath_var
='LD_RUN_PATH'
20565 case $cc_basename in
20567 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20568 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20571 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20572 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20577 sysv5
* | sco3.2v5
* | sco5v6
*)
20578 # Note: We can NOT use -z defs as we might desire, because we do not
20579 # link with -lc, and that would cause any symbols used from libc to
20580 # always be unresolved, which means just about no library would
20581 # ever link correctly. If we're not using GNU ld we use -z text
20582 # though, which does catch some bad symbols but isn't as heavy-handed
20584 no_undefined_flag_CXX
='${wl}-z,text'
20585 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20586 archive_cmds_need_lc_CXX
=no
20587 hardcode_shlibpath_var_CXX
=no
20588 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20589 hardcode_libdir_separator_CXX
=':'
20590 link_all_deplibs_CXX
=yes
20591 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20592 runpath_var
='LD_RUN_PATH'
20594 case $cc_basename in
20596 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20597 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20598 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20599 '"$old_archive_cmds_CXX"
20600 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20601 '"$reload_cmds_CXX"
20604 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20605 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20611 case $cc_basename in
20613 # NonStop-UX NCC 3.20
20614 # FIXME: insert proper C++ library support
20618 # FIXME: insert proper C++ library support
20625 # FIXME: insert proper C++ library support
20630 # FIXME: insert proper C++ library support
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20636 $as_echo "$ld_shlibs_CXX" >&6; }
20637 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20643 ## There is no encapsulation within the following macros, do not change
20644 ## the running order or otherwise move them around unless you know exactly
20645 ## what you are doing...
20646 # Dependencies to place before and after the object being linked:
20647 predep_objects_CXX
=
20648 postdep_objects_CXX
=
20651 compiler_lib_search_path_CXX
=
20653 cat > conftest.
$ac_ext <<_LT_EOF
20657 Foo (void) { a = 0; }
20663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20664 (eval $ac_compile) 2>&5
20666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20667 test $ac_status = 0; }; then
20668 # Parse the compiler output and extract the necessary
20669 # objects, libraries and library flags.
20671 # Sentinel used to keep track of whether or not we are before
20672 # the conftest object file.
20673 pre_test_object_deps_done
=no
20675 for p
in `eval "$output_verbose_link_cmd"`; do
20679 # Some compilers place space between "-{L,R}" and the path.
20680 # Remove the space.
20681 if test $p = "-L" ||
20682 test $p = "-R"; then
20689 if test "$pre_test_object_deps_done" = no
; then
20692 # Internal compiler library paths should come after those
20693 # provided the user. The postdeps already come after the
20694 # user supplied libs so there is no need to process them.
20695 if test -z "$compiler_lib_search_path_CXX"; then
20696 compiler_lib_search_path_CXX
="${prev}${p}"
20698 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20701 # The "-l" case would never come before the object being
20702 # linked, so don't bother handling this case.
20705 if test -z "$postdeps_CXX"; then
20706 postdeps_CXX
="${prev}${p}"
20708 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20714 # This assumes that the test object file only shows up
20715 # once in the compiler output.
20716 if test "$p" = "conftest.$objext"; then
20717 pre_test_object_deps_done
=yes
20721 if test "$pre_test_object_deps_done" = no
; then
20722 if test -z "$predep_objects_CXX"; then
20723 predep_objects_CXX
="$p"
20725 predep_objects_CXX
="$predep_objects_CXX $p"
20728 if test -z "$postdep_objects_CXX"; then
20729 postdep_objects_CXX
="$p"
20731 postdep_objects_CXX
="$postdep_objects_CXX $p"
20736 *) ;; # Ignore the rest.
20744 echo "libtool.m4: error: problem compiling CXX test program"
20747 $RM -f confest.
$objext
20749 # PORTME: override above test on systems where it is broken
20752 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20753 # hack all around it, let's just trust "g++" to DTRT.
20754 predep_objects_CXX
=
20755 postdep_objects_CXX
=
20760 case `$CC -V 2>&1 | sed 5q` in
20764 # The more standards-conforming stlport4 library is
20765 # incompatible with the Cstd library. Avoid specifying
20766 # it if it's in CXXFLAGS. Ignore libCrun as
20767 # -library=stlport4 depends on it.
20768 case " $CXX $CXXFLAGS " in
20769 *" -library=stlport4 "*)
20770 solaris_use_stlport4
=yes
20774 if test "$solaris_use_stlport4" != yes; then
20775 postdeps_CXX
='-library=Cstd -library=Crun'
20782 case $cc_basename in
20784 # The more standards-conforming stlport4 library is
20785 # incompatible with the Cstd library. Avoid specifying
20786 # it if it's in CXXFLAGS. Ignore libCrun as
20787 # -library=stlport4 depends on it.
20788 case " $CXX $CXXFLAGS " in
20789 *" -library=stlport4 "*)
20790 solaris_use_stlport4
=yes
20794 # Adding this requires a known-good setup of shared libraries for
20795 # Sun compiler versions before 5.6, else PIC objects from an old
20796 # archive will be linked into the output, leading to subtle bugs.
20797 if test "$solaris_use_stlport4" != yes; then
20798 postdeps_CXX
='-library=Cstd -library=Crun'
20806 case " $postdeps_CXX " in
20807 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20809 compiler_lib_search_dirs_CXX
=
20810 if test -n "${compiler_lib_search_path_CXX}"; then
20811 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20844 lt_prog_compiler_wl_CXX
=
20845 lt_prog_compiler_pic_CXX
=
20846 lt_prog_compiler_static_CXX
=
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20849 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20851 # C++ specific cases for pic, static, wl, etc.
20852 if test "$GXX" = yes; then
20853 lt_prog_compiler_wl_CXX
='-Wl,'
20854 lt_prog_compiler_static_CXX
='-static'
20858 # All AIX code is PIC.
20859 if test "$host_cpu" = ia64
; then
20860 # AIX 5 now supports IA64 processor
20861 lt_prog_compiler_static_CXX
='-Bstatic'
20863 lt_prog_compiler_pic_CXX
='-fPIC'
20869 # see comment about AmigaOS4 .so support
20870 lt_prog_compiler_pic_CXX
='-fPIC'
20873 # FIXME: we need at least 68020 code to build shared libraries, but
20874 # adding the `-m68020' flag to GCC prevents building anything better,
20876 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20881 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20882 # PIC is the default for these OSes.
20884 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20885 # This hack is so that the source file can tell whether it is being
20886 # built for inclusion in a dll (and should export symbols for example).
20887 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20888 # (--disable-auto-import) libraries
20889 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20891 darwin
* | rhapsody
*)
20892 # PIC is the default on this platform
20893 # Common symbols not allowed in MH_DYLIB files
20894 lt_prog_compiler_pic_CXX
='-fno-common'
20897 # DJGPP does not support shared libraries at all
20898 lt_prog_compiler_pic_CXX
=
20901 # PIC is the default for Haiku.
20902 # The "-static" flag exists, but is broken.
20903 lt_prog_compiler_static_CXX
=
20906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20907 # Instead, we relocate shared libraries at runtime.
20910 if test -d /usr
/nec
; then
20911 lt_prog_compiler_pic_CXX
=-Kconform_pic
20915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20917 # sets the default TLS model and affects inlining.
20922 lt_prog_compiler_pic_CXX
='-fPIC'
20927 # QNX uses GNU C++, but need to define -shared option too, otherwise
20928 # it will coredump.
20929 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20932 lt_prog_compiler_pic_CXX
='-fPIC'
20938 # All AIX code is PIC.
20939 if test "$host_cpu" = ia64
; then
20940 # AIX 5 now supports IA64 processor
20941 lt_prog_compiler_static_CXX
='-Bstatic'
20943 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20947 case $cc_basename in
20949 # Green Hills C++ Compiler
20950 # _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"
20955 case $cc_basename in
20957 lt_prog_compiler_pic_CXX
='-KPIC'
20960 # Green Hills C++ Compiler
20961 lt_prog_compiler_pic_CXX
='-pic'
20967 freebsd
* | dragonfly
*)
20968 # FreeBSD uses GNU C++
20970 hpux9
* | hpux10
* | hpux11
*)
20971 case $cc_basename in
20973 lt_prog_compiler_wl_CXX
='-Wl,'
20974 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20975 if test "$host_cpu" != ia64
; then
20976 lt_prog_compiler_pic_CXX
='+Z'
20980 lt_prog_compiler_wl_CXX
='-Wl,'
20981 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20987 lt_prog_compiler_pic_CXX
='+Z'
20996 # This is c89, which is MS Visual C++ (no shared libs)
20997 # Anyone wants to do a port?
20999 irix5
* | irix6
* | nonstopux
*)
21000 case $cc_basename in
21002 lt_prog_compiler_wl_CXX
='-Wl,'
21003 lt_prog_compiler_static_CXX
='-non_shared'
21004 # CC pic flag -KPIC is the default.
21010 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21011 case $cc_basename in
21014 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21015 lt_prog_compiler_pic_CXX
='-fPIC'
21018 # old Intel C++ for x86_64 which still supported -KPIC.
21019 lt_prog_compiler_wl_CXX
='-Wl,'
21020 lt_prog_compiler_pic_CXX
='-KPIC'
21021 lt_prog_compiler_static_CXX
='-static'
21024 # Intel C++, used to be incompatible with GCC.
21025 # ICC 10 doesn't accept -KPIC any more.
21026 lt_prog_compiler_wl_CXX
='-Wl,'
21027 lt_prog_compiler_pic_CXX
='-fPIC'
21028 lt_prog_compiler_static_CXX
='-static'
21031 # Portland Group C++ compiler
21032 lt_prog_compiler_wl_CXX
='-Wl,'
21033 lt_prog_compiler_pic_CXX
='-fpic'
21034 lt_prog_compiler_static_CXX
='-Bstatic'
21038 # Make sure the PIC flag is empty. It appears that all Alpha
21039 # Linux and Compaq Tru64 Unix objects are PIC.
21040 lt_prog_compiler_pic_CXX
=
21041 lt_prog_compiler_static_CXX
='-non_shared'
21043 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21044 # IBM XL 8.0, 9.0 on PPC and BlueGene
21045 lt_prog_compiler_wl_CXX
='-Wl,'
21046 lt_prog_compiler_pic_CXX
='-qpic'
21047 lt_prog_compiler_static_CXX
='-qstaticlink'
21050 case `$CC -V 2>&1 | sed 5q` in
21053 lt_prog_compiler_pic_CXX
='-KPIC'
21054 lt_prog_compiler_static_CXX
='-Bstatic'
21055 lt_prog_compiler_wl_CXX
='-Qoption ld '
21066 case $cc_basename in
21068 lt_prog_compiler_pic_CXX
='-W c,exportall'
21077 # QNX uses GNU C++, but need to define -shared option too, otherwise
21078 # it will coredump.
21079 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21081 osf3
* | osf4
* | osf5
*)
21082 case $cc_basename in
21084 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21087 # Rational C++ 2.4.1
21088 lt_prog_compiler_pic_CXX
='-pic'
21091 # Digital/Compaq C++
21092 lt_prog_compiler_wl_CXX
='-Wl,'
21093 # Make sure the PIC flag is empty. It appears that all Alpha
21094 # Linux and Compaq Tru64 Unix objects are PIC.
21095 lt_prog_compiler_pic_CXX
=
21096 lt_prog_compiler_static_CXX
='-non_shared'
21105 case $cc_basename in
21107 # Sun C++ 4.2, 5.x and Centerline C++
21108 lt_prog_compiler_pic_CXX
='-KPIC'
21109 lt_prog_compiler_static_CXX
='-Bstatic'
21110 lt_prog_compiler_wl_CXX
='-Qoption ld '
21113 # Green Hills C++ Compiler
21114 lt_prog_compiler_pic_CXX
='-PIC'
21121 case $cc_basename in
21124 lt_prog_compiler_pic_CXX
='-pic'
21125 lt_prog_compiler_static_CXX
='-Bstatic'
21129 lt_prog_compiler_pic_CXX
='-pic'
21135 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21136 case $cc_basename in
21138 lt_prog_compiler_wl_CXX
='-Wl,'
21139 lt_prog_compiler_pic_CXX
='-KPIC'
21140 lt_prog_compiler_static_CXX
='-Bstatic'
21145 case $cc_basename in
21147 # NonStop-UX NCC 3.20
21148 lt_prog_compiler_pic_CXX
='-KPIC'
21157 lt_prog_compiler_can_build_shared_CXX
=no
21163 # For platforms which do not support PIC, -DPIC is meaningless:
21165 lt_prog_compiler_pic_CXX
=
21168 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21172 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21177 # Check to make sure the PIC flag actually works.
21179 if test -n "$lt_prog_compiler_pic_CXX"; then
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21181 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21182 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21183 $as_echo_n "(cached) " >&6
21185 lt_cv_prog_compiler_pic_works_CXX
=no
21186 ac_outfile
=conftest.
$ac_objext
21187 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21188 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21189 # Insert the option either (1) after the last *FLAGS variable, or
21190 # (2) before a word containing "conftest.", or (3) at the end.
21191 # Note that $ac_compile itself does not contain backslashes and begins
21192 # with a dollar sign (not a hyphen), so the echo should work correctly.
21193 # The option is referenced via a variable to avoid confusing sed.
21194 lt_compile
=`echo "$ac_compile" | $SED \
21195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21197 -e 's:$: $lt_compiler_flag:'`
21198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21199 (eval "$lt_compile" 2>conftest.err
)
21201 cat conftest.err
>&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 if (exit $ac_status) && test -s "$ac_outfile"; then
21204 # The compiler can only warn and ignore the option if not recognized
21205 # So say no if there are warnings other than the usual output.
21206 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21207 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21208 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21209 lt_cv_prog_compiler_pic_works_CXX
=yes
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21216 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21218 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21219 case $lt_prog_compiler_pic_CXX in
21221 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21224 lt_prog_compiler_pic_CXX
=
21225 lt_prog_compiler_can_build_shared_CXX
=no
21233 # Check to make sure the static flag actually works.
21235 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21237 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21238 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21239 $as_echo_n "(cached) " >&6
21241 lt_cv_prog_compiler_static_works_CXX
=no
21242 save_LDFLAGS
="$LDFLAGS"
21243 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21244 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21245 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21246 # The linker can only warn and ignore the option if not recognized
21247 # So say no if there are warnings
21248 if test -s conftest.err
; then
21249 # Append any errors to the config.log.
21250 cat conftest.err
1>&5
21251 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21252 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21253 if diff conftest.exp conftest.er2
>/dev
/null
; then
21254 lt_cv_prog_compiler_static_works_CXX
=yes
21257 lt_cv_prog_compiler_static_works_CXX
=yes
21261 LDFLAGS
="$save_LDFLAGS"
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21265 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21267 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
21270 lt_prog_compiler_static_CXX
=
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21277 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21278 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21279 $as_echo_n "(cached) " >&6
21281 lt_cv_prog_compiler_c_o_CXX
=no
21282 $RM -r conftest
2>/dev
/null
21286 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21288 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21289 # Insert the option either (1) after the last *FLAGS variable, or
21290 # (2) before a word containing "conftest.", or (3) at the end.
21291 # Note that $ac_compile itself does not contain backslashes and begins
21292 # with a dollar sign (not a hyphen), so the echo should work correctly.
21293 lt_compile
=`echo "$ac_compile" | $SED \
21294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21296 -e 's:$: $lt_compiler_flag:'`
21297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21298 (eval "$lt_compile" 2>out
/conftest.err
)
21300 cat out
/conftest.err
>&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21304 # The compiler can only warn and ignore the option if not recognized
21305 # So say no if there are warnings
21306 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21307 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21308 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21309 lt_cv_prog_compiler_c_o_CXX
=yes
21314 # SGI C++ compiler will create directory out/ii_files/ for
21315 # template instantiation
21316 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21317 $RM out
/* && rmdir out
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21324 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21329 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21330 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21331 $as_echo_n "(cached) " >&6
21333 lt_cv_prog_compiler_c_o_CXX
=no
21334 $RM -r conftest
2>/dev
/null
21338 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21340 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21341 # Insert the option either (1) after the last *FLAGS variable, or
21342 # (2) before a word containing "conftest.", or (3) at the end.
21343 # Note that $ac_compile itself does not contain backslashes and begins
21344 # with a dollar sign (not a hyphen), so the echo should work correctly.
21345 lt_compile
=`echo "$ac_compile" | $SED \
21346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21348 -e 's:$: $lt_compiler_flag:'`
21349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21350 (eval "$lt_compile" 2>out
/conftest.err
)
21352 cat out
/conftest.err
>&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21356 # The compiler can only warn and ignore the option if not recognized
21357 # So say no if there are warnings
21358 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21359 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21360 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21361 lt_cv_prog_compiler_c_o_CXX
=yes
21366 # SGI C++ compiler will create directory out/ii_files/ for
21367 # template instantiation
21368 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21369 $RM out
/* && rmdir out
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21376 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21381 hard_links
="nottested"
21382 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21383 # do not overwrite the value of need_locks provided by the user
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21385 $as_echo_n "checking if we can lock with hard links... " >&6; }
21388 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21390 ln conftest.a conftest.b
2>&5 || hard_links
=no
21391 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21393 $as_echo "$hard_links" >&6; }
21394 if test "$hard_links" = no
; then
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21396 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21406 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21408 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21411 # If we're using GNU nm, then we don't want the "-C" option.
21412 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21413 # Also, AIX nm treats weak defined symbols like other global defined
21414 # symbols, whereas GNU nm marks them as "W".
21415 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
21416 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'
21418 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'
21422 export_symbols_cmds_CXX
="$ltdll_cmds"
21424 cygwin
* | mingw
* | cegcc
*)
21425 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'
21428 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21431 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21434 $as_echo "$ld_shlibs_CXX" >&6; }
21435 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21437 with_gnu_ld_CXX
=$with_gnu_ld
21445 # Do we need to explicitly link libc?
21447 case "x$archive_cmds_need_lc_CXX" in
21449 # Assume -lc should be added
21450 archive_cmds_need_lc_CXX
=yes
21452 if test "$enable_shared" = yes && test "$GCC" = yes; then
21453 case $archive_cmds_CXX in
21455 # FIXME: we may have to deal with multi-command sequences.
21458 # Test whether the compiler implicitly links with -lc since on some
21459 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21460 # to ld, don't add -lc before -lgcc.
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21462 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21463 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
21464 $as_echo_n "(cached) " >&6
21467 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21470 (eval $ac_compile) 2>&5
21472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21473 test $ac_status = 0; } 2>conftest.err
; then
21476 libobjs
=conftest.
$ac_objext
21478 wl
=$lt_prog_compiler_wl_CXX
21479 pic_flag
=$lt_prog_compiler_pic_CXX
21485 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21486 allow_undefined_flag_CXX
=
21487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21488 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21491 test $ac_status = 0; }
21493 lt_cv_archive_cmds_need_lc_CXX
=no
21495 lt_cv_archive_cmds_need_lc_CXX
=yes
21497 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21499 cat conftest.err
1>&5
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21505 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21506 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21577 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21579 library_names_spec
=
21580 libname_spec
='lib$name'
21584 postuninstall_cmds
=
21588 shlibpath_overrides_runpath
=unknown
21590 dynamic_linker
="$host_os ld.so"
21591 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21592 need_lib_prefix
=unknown
21593 hardcode_into_libs
=no
21595 # when you set need_version to no, make sure it does not cause -set_version
21596 # flags to be left without arguments
21597 need_version
=unknown
21602 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21603 shlibpath_var
=LIBPATH
21605 # AIX 3 has no versioning support, so we append a major version to the name.
21606 soname_spec
='${libname}${release}${shared_ext}$major'
21613 hardcode_into_libs
=yes
21614 if test "$host_cpu" = ia64
; then
21615 # AIX 5 supports IA64
21616 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21617 shlibpath_var
=LD_LIBRARY_PATH
21619 # With GCC up to 2.95.x, collect2 would create an import file
21620 # for dependence libraries. The import file would start with
21621 # the line `#! .'. This would cause the generated library to
21622 # depend on `.', always an invalid library. This was fixed in
21623 # development snapshots of GCC prior to 3.0.
21625 aix4 | aix4.
[01] | aix4.
[01].
*)
21626 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21628 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21631 can_build_shared
=no
21635 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21636 # soname into executable. Probably we can add versioning support to
21637 # collect2, so additional links can be useful in future.
21638 if test "$aix_use_runtimelinking" = yes; then
21639 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21640 # instead of lib<name>.a to let people know that these are not
21641 # typical AIX shared libraries.
21642 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21644 # We preserve .a as extension for shared libraries through AIX4.2
21645 # and later when we are not doing run time linking.
21646 library_names_spec
='${libname}${release}.a $libname.a'
21647 soname_spec
='${libname}${release}${shared_ext}$major'
21649 shlibpath_var
=LIBPATH
21656 # Since July 2007 AmigaOS4 officially supports .so libraries.
21657 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21658 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21661 library_names_spec
='$libname.ixlibrary $libname.a'
21662 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21663 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'
21669 library_names_spec
='${libname}${shared_ext}'
21670 dynamic_linker
="$host_os ld.so"
21671 shlibpath_var
=LIBRARY_PATH
21677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21678 soname_spec
='${libname}${release}${shared_ext}$major'
21679 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21680 shlibpath_var
=LD_LIBRARY_PATH
21681 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21682 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21683 # the default ld.so.conf also contains /usr/contrib/lib and
21684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21685 # libtool to hard-code these into programs
21688 cygwin
* | mingw
* | pw32
* | cegcc
*)
21689 version_type
=windows
21694 case $GCC,$host_os in
21695 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21696 library_names_spec
='$libname.dll.a'
21697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21698 postinstall_cmds
='base_file=`basename \${file}`~
21699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21700 dldir=$destdir/`dirname \$dlpath`~
21701 test -d \$dldir || mkdir -p \$dldir~
21702 $install_prog $dir/$dlname \$dldir/$dlname~
21703 chmod a+x \$dldir/$dlname~
21704 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21705 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21707 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21708 dlpath=$dir/\$dldll~
21710 shlibpath_overrides_runpath
=yes
21714 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21715 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21719 # MinGW DLLs use traditional 'lib' prefix
21720 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21723 # pw32 DLLs use 'pw' prefix rather than 'lib'
21724 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21730 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21733 dynamic_linker
='Win32 ld.exe'
21734 # FIXME: first we should search . and the directory the executable is in
21738 darwin
* | rhapsody
*)
21739 dynamic_linker
="$host_os dyld"
21740 version_type
=darwin
21743 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21744 soname_spec
='${libname}${release}${major}$shared_ext'
21745 shlibpath_overrides_runpath
=yes
21746 shlibpath_var
=DYLD_LIBRARY_PATH
21747 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21749 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21756 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21757 soname_spec
='${libname}${release}${shared_ext}$major'
21758 shlibpath_var
=LD_LIBRARY_PATH
21761 freebsd
* | dragonfly
*)
21762 # DragonFly does not have aout. When/if they implement a new
21763 # versioning mechanism, adjust this.
21764 if test -x /usr
/bin
/objformat
; then
21765 objformat
=`/usr/bin/objformat`
21768 freebsd
[23].
*) objformat
=aout
;;
21769 *) objformat
=elf
;;
21772 version_type
=freebsd-
$objformat
21773 case $version_type in
21775 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21780 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21784 shlibpath_var
=LD_LIBRARY_PATH
21787 shlibpath_overrides_runpath
=yes
21789 freebsd3.
[01]* | freebsdelf3.
[01]*)
21790 shlibpath_overrides_runpath
=yes
21791 hardcode_into_libs
=yes
21793 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21794 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21795 shlibpath_overrides_runpath
=no
21796 hardcode_into_libs
=yes
21798 *) # from 4.6 on, and DragonFly
21799 shlibpath_overrides_runpath
=yes
21800 hardcode_into_libs
=yes
21809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21810 soname_spec
='${libname}${release}${shared_ext}$major'
21811 shlibpath_var
=LD_LIBRARY_PATH
21812 hardcode_into_libs
=yes
21819 dynamic_linker
="$host_os runtime_loader"
21820 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21821 soname_spec
='${libname}${release}${shared_ext}$major'
21822 shlibpath_var
=LIBRARY_PATH
21823 shlibpath_overrides_runpath
=yes
21824 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21825 hardcode_into_libs
=yes
21828 hpux9
* | hpux10
* | hpux11
*)
21829 # Give a soname corresponding to the major version so that dld.sl refuses to
21830 # link against other versions.
21837 hardcode_into_libs
=yes
21838 dynamic_linker
="$host_os dld.so"
21839 shlibpath_var
=LD_LIBRARY_PATH
21840 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21842 soname_spec
='${libname}${release}${shared_ext}$major'
21843 if test "X$HPUX_IA64_MODE" = X32
; then
21844 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21846 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21848 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21852 hardcode_into_libs
=yes
21853 dynamic_linker
="$host_os dld.sl"
21854 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21855 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21857 soname_spec
='${libname}${release}${shared_ext}$major'
21858 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21859 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21863 dynamic_linker
="$host_os dld.sl"
21864 shlibpath_var
=SHLIB_PATH
21865 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21867 soname_spec
='${libname}${release}${shared_ext}$major'
21870 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21871 postinstall_cmds
='chmod 555 $lib'
21872 # or fails outright, so override atomically:
21873 install_override_mode
=555
21880 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21881 soname_spec
='${libname}${release}${shared_ext}$major'
21882 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21883 shlibpath_var
=LD_LIBRARY_PATH
21884 shlibpath_overrides_runpath
=no
21885 hardcode_into_libs
=yes
21888 irix5
* | irix6
* | nonstopux
*)
21890 nonstopux
*) version_type
=nonstopux
;;
21892 if test "$lt_cv_prog_gnu_ld" = yes; then
21900 soname_spec
='${libname}${release}${shared_ext}$major'
21901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21903 irix5
* | nonstopux
*)
21904 libsuff
= shlibsuff
=
21907 case $LD in # libtool.m4 will add one of these switches to LD
21908 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21909 libsuff
= shlibsuff
= libmagic
=32-bit;;
21910 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21911 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21912 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21913 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21914 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21918 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21919 shlibpath_overrides_runpath
=no
21920 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21921 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21922 hardcode_into_libs
=yes
21925 # No shared lib support for Linux oldld, aout, or coff.
21926 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21930 # This must be Linux ELF.
21932 # uclinux* changes (here and below) have been submitted to the libtool
21933 # project, but have not yet been accepted: they are GCC-local changes
21934 # for the time being. (See
21935 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21936 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
21940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21941 soname_spec
='${libname}${release}${shared_ext}$major'
21942 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21943 shlibpath_var
=LD_LIBRARY_PATH
21944 shlibpath_overrides_runpath
=no
21946 # Some binutils ld are patched to set DT_RUNPATH
21947 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
21948 $as_echo_n "(cached) " >&6
21950 lt_cv_shlibpath_overrides_runpath
=no
21951 save_LDFLAGS
=$LDFLAGS
21952 save_libdir
=$libdir
21953 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21954 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21956 /* end confdefs.h. */
21966 if ac_fn_cxx_try_link
"$LINENO"; then :
21967 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21968 lt_cv_shlibpath_overrides_runpath
=yes
21971 rm -f core conftest.err conftest.
$ac_objext \
21972 conftest
$ac_exeext conftest.
$ac_ext
21973 LDFLAGS
=$save_LDFLAGS
21974 libdir
=$save_libdir
21978 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21980 # This implies no fast_install, which is unacceptable.
21981 # Some rework will be needed to allow for fast_install
21982 # before this can be enabled.
21983 hardcode_into_libs
=yes
21985 # Append ld.so.conf contents to the search path
21986 if test -f /etc
/ld.so.conf
; then
21987 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' ' '`
21988 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21991 # We used to test for /lib/ld.so.1 and disable shared libraries on
21992 # powerpc, because MkLinux only supported shared libraries with the
21993 # GNU dynamic linker. Since this was broken with cross compilers,
21994 # most powerpc-linux boxes support dynamic linking these days and
21995 # people can always --disable-shared, the test was removed, and we
21996 # assume the GNU/Linux dynamic linker is in use.
21997 dynamic_linker
='GNU/Linux ld.so'
22004 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22006 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22007 dynamic_linker
='NetBSD (a.out) ld.so'
22009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22010 soname_spec
='${libname}${release}${shared_ext}$major'
22011 dynamic_linker
='NetBSD ld.elf_so'
22013 shlibpath_var
=LD_LIBRARY_PATH
22014 shlibpath_overrides_runpath
=yes
22015 hardcode_into_libs
=yes
22020 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22021 shlibpath_var
=LD_LIBRARY_PATH
22022 shlibpath_overrides_runpath
=yes
22029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22030 soname_spec
='${libname}${release}${shared_ext}$major'
22031 shlibpath_var
=LD_LIBRARY_PATH
22032 shlibpath_overrides_runpath
=no
22033 hardcode_into_libs
=yes
22034 dynamic_linker
='ldqnx.so'
22039 sys_lib_dlsearch_path_spec
="/usr/lib"
22041 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22043 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22044 *) need_version
=no
;;
22046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22047 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22048 shlibpath_var
=LD_LIBRARY_PATH
22049 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22051 openbsd2.
[89] | openbsd2.
[89].
*)
22052 shlibpath_overrides_runpath
=no
22055 shlibpath_overrides_runpath
=yes
22059 shlibpath_overrides_runpath
=yes
22064 libname_spec
='$name'
22067 library_names_spec
='$libname${shared_ext} $libname.a'
22068 dynamic_linker
='OS/2 ld.exe'
22069 shlibpath_var
=LIBPATH
22072 osf3
* | osf4
* | osf5
*)
22076 soname_spec
='${libname}${release}${shared_ext}$major'
22077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22078 shlibpath_var
=LD_LIBRARY_PATH
22079 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22080 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22092 soname_spec
='${libname}${release}${shared_ext}$major'
22093 shlibpath_var
=LD_LIBRARY_PATH
22094 shlibpath_overrides_runpath
=yes
22095 hardcode_into_libs
=yes
22096 # ldd complains unless libraries are executable
22097 postinstall_cmds
='chmod +x $lib'
22102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22103 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22104 shlibpath_var
=LD_LIBRARY_PATH
22105 shlibpath_overrides_runpath
=yes
22106 if test "$with_gnu_ld" = yes; then
22114 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22115 soname_spec
='${libname}${release}${shared_ext}$major'
22116 shlibpath_var
=LD_LIBRARY_PATH
22117 case $host_vendor in
22119 shlibpath_overrides_runpath
=no
22121 runpath_var
=LD_RUN_PATH
22129 shlibpath_overrides_runpath
=no
22130 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22136 if test -d /usr
/nec
;then
22138 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22139 soname_spec
='$libname${shared_ext}.$major'
22140 shlibpath_var
=LD_LIBRARY_PATH
22144 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22145 version_type
=freebsd-elf
22148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22149 soname_spec
='${libname}${release}${shared_ext}$major'
22150 shlibpath_var
=LD_LIBRARY_PATH
22151 shlibpath_overrides_runpath
=yes
22152 hardcode_into_libs
=yes
22153 if test "$with_gnu_ld" = yes; then
22154 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22156 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22159 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22163 sys_lib_dlsearch_path_spec
='/usr/lib'
22167 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22172 shlibpath_var
=LD_LIBRARY_PATH
22173 shlibpath_overrides_runpath
=no
22174 hardcode_into_libs
=yes
22179 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22180 soname_spec
='${libname}${release}${shared_ext}$major'
22181 shlibpath_var
=LD_LIBRARY_PATH
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22189 $as_echo "$dynamic_linker" >&6; }
22190 test "$dynamic_linker" = no
&& can_build_shared
=no
22192 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22193 if test "$GCC" = yes; then
22194 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22197 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22198 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22200 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22201 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22242 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22243 hardcode_action_CXX
=
22244 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22245 test -n "$runpath_var_CXX" ||
22246 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22248 # We can hardcode non-existent directories.
22249 if test "$hardcode_direct_CXX" != no
&&
22250 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22251 # have to relink, otherwise we might link with an installed library
22252 # when we should be linking with a yet-to-be-installed one
22253 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22254 test "$hardcode_minus_L_CXX" != no
; then
22255 # Linking always hardcodes the temporary library directory.
22256 hardcode_action_CXX
=relink
22258 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22259 hardcode_action_CXX
=immediate
22262 # We cannot hardcode anything, or else we can only hardcode existing
22264 hardcode_action_CXX
=unsupported
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22267 $as_echo "$hardcode_action_CXX" >&6; }
22269 if test "$hardcode_action_CXX" = relink ||
22270 test "$inherit_rpath_CXX" = yes; then
22271 # Fast installation is not supported
22272 enable_fast_install
=no
22273 elif test "$shlibpath_overrides_runpath" = yes ||
22274 test "$enable_shared" = no
; then
22275 # Fast installation is not necessary
22276 enable_fast_install
=needless
22285 fi # test -n "$compiler"
22291 with_gnu_ld
=$lt_save_with_gnu_ld
22292 lt_cv_path_LDCXX
=$lt_cv_path_LD
22293 lt_cv_path_LD
=$lt_save_path_LD
22294 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
22295 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
22296 fi # test "$_lt_caught_CXX_error" != yes
22299 ac_cpp
='$CXXCPP $CPPFLAGS'
22300 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22301 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22302 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22319 # Only expand once:
22325 # Identify the assembler which will work hand-in-glove with the newly
22326 # built GCC, so that we can examine its features. This is the assembler
22327 # which will be driven by the driver program.
22329 # If build != host, and we aren't building gas in-tree, we identify a
22330 # build->target assembler and hope that it will have the same features
22331 # as the host->target assembler we'll be using.
22332 gcc_cv_gas_major_version
=
22333 gcc_cv_gas_minor_version
=
22334 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22336 if ${gcc_cv_as+:} false
; then :
22340 if test -x "$DEFAULT_ASSEMBLER"; then
22341 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22342 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22343 && test -f ..
/gas
/Makefile \
22344 && test x
$build = x
$host; then
22345 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22346 elif test -x as
$build_exeext; then
22347 # Build using assembler in the current directory.
22348 gcc_cv_as
=.
/as
$build_exeext
22349 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22350 gcc_cv_as
="$AS_FOR_TARGET"
22352 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22353 set dummy
$AS_FOR_TARGET; ac_word
=$2
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22355 $as_echo_n "checking for $ac_word... " >&6; }
22356 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22357 $as_echo_n "(cached) " >&6
22361 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22365 for as_dir
in $PATH
22368 test -z "$as_dir" && as_dir
=.
22369 for ac_exec_ext
in '' $ac_executable_extensions; do
22370 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22371 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22382 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22383 if test -n "$gcc_cv_as"; then
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22385 $as_echo "$gcc_cv_as" >&6; }
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22388 $as_echo "no" >&6; }
22395 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22397 case "$ORIGINAL_AS_FOR_TARGET" in
22398 .
/as | .
/as
$build_exeext) ;;
22399 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22404 $as_echo_n "checking what assembler to use... " >&6; }
22405 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
22406 # Single tree build which includes gas. We want to prefer it
22407 # over whatever linker top-level may have detected, since
22408 # we'll use what we're building after installation anyway.
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22410 $as_echo "newly built gas" >&6; }
22412 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22413 for f
in $gcc_cv_as_bfd_srcdir/configure \
22414 $gcc_cv_as_gas_srcdir/configure \
22415 $gcc_cv_as_gas_srcdir/configure.ac \
22416 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
22417 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22418 if test x
$gcc_cv_gas_version != x
; then
22422 case $gcc_cv_gas_version in
22424 *) as_fn_error $?
"cannot find version of in-tree assembler" "$LINENO" 5;;
22426 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22427 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22428 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22429 case $gcc_cv_gas_patch_version in
22430 "") gcc_cv_gas_patch_version
="0" ;;
22432 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22433 + $gcc_cv_gas_minor_version \) \* 1000 \
22434 + $gcc_cv_gas_patch_version`
22436 in_tree_gas_is_elf
=no
22437 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
22438 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
22439 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
22441 in_tree_gas_is_elf
=yes
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22445 $as_echo "$gcc_cv_as" >&6; }
22450 # Check whether --enable-ld was given.
22451 if test "${enable_ld+set}" = set; then :
22452 enableval
=$enable_ld; case "${enableval}" in
22460 install_gold_as_default
=no
22461 # Check whether --enable-gold was given.
22462 if test "${enable_gold+set}" = set; then :
22463 enableval
=$enable_gold; case "${enableval}" in
22465 install_gold_as_default
=yes
22468 if test x
${default_ld} != x
; then
22469 install_gold_as_default
=yes
22475 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
22481 # Identify the linker which will work hand-in-glove with the newly
22482 # built GCC, so that we can examine its features. This is the linker
22483 # which will be driven by the driver program.
22485 # If build != host, and we aren't building gas in-tree, we identify a
22486 # build->target linker and hope that it will have the same features
22487 # as the host->target linker we'll be using.
22488 gcc_cv_gld_major_version
=
22489 gcc_cv_gld_minor_version
=
22490 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22491 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22492 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22494 if ${gcc_cv_ld+:} false
; then :
22498 if test -x "$DEFAULT_LINKER"; then
22499 gcc_cv_ld
="$DEFAULT_LINKER"
22500 elif test $install_gold_as_default = yes \
22501 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22502 && test -f ..
/gold
/Makefile \
22503 && test x
$build = x
$host; then
22504 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22505 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22506 && test -f ..
/ld
/Makefile \
22507 && test x
$build = x
$host; then
22508 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22509 elif test -x collect-ld
$build_exeext; then
22510 # Build using linker in the current directory.
22511 gcc_cv_ld
=.
/collect-ld
$build_exeext
22512 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22513 gcc_cv_ld
="$LD_FOR_TARGET"
22515 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22516 set dummy
$LD_FOR_TARGET; ac_word
=$2
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22518 $as_echo_n "checking for $ac_word... " >&6; }
22519 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
22520 $as_echo_n "(cached) " >&6
22524 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22528 for as_dir
in $PATH
22531 test -z "$as_dir" && as_dir
=.
22532 for ac_exec_ext
in '' $ac_executable_extensions; do
22533 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22534 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22545 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22546 if test -n "$gcc_cv_ld"; then
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22548 $as_echo "$gcc_cv_ld" >&6; }
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22551 $as_echo "no" >&6; }
22558 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22559 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22560 # if the PLUGIN_LD is set ld-new, just have it as ld
22561 # as that is the installed named.
22562 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22563 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22564 PLUGIN_LD_SUFFIX
=ld
22567 # Check whether --with-plugin-ld was given.
22568 if test "${with_plugin_ld+set}" = set; then :
22569 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22570 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22571 PLUGIN_LD_SUFFIX
="$withval"
22577 cat >>confdefs.h
<<_ACEOF
22578 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22582 # Check to see if we are using gold instead of ld
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22584 $as_echo_n "checking whether we are using gold... " >&6; }
22586 if test x
$gcc_cv_ld != x
; then
22587 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22588 |
grep "GNU gold" > /dev
/null
; then
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22593 $as_echo "$ld_is_gold" >&6; }
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22596 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22597 # Check to see if default ld is not gold, but gold is
22598 # available and has support for split stack. If gcc was configured
22599 # with gold then no checking is done.
22601 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22603 # For platforms other than powerpc64*, enable as appropriate.
22605 gold_non_default
=no
22606 ld_gold
=`which ${gcc_cv_ld}.gold`
22607 # Make sure this gold has minimal split stack support
22608 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22609 ld_vers
=`$ld_gold --version | sed 1q`
22610 gold_vers
=`echo $ld_vers | sed -n \
22611 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22613 # check that the gold version contains the complete split stack support
22614 # on powerpc64 big and little endian
22616 case "$gold_vers" in
22617 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22619 *) gold_non_default
=no
22625 if test $gold_non_default = yes; then
22627 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22632 $as_echo "$gold_non_default" >&6; }
22634 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22636 case "$ORIGINAL_LD_FOR_TARGET" in
22637 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22638 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22643 $as_echo_n "checking what linker to use... " >&6; }
22644 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22645 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22646 # Single tree build which includes ld. We want to prefer it
22647 # over whatever linker top-level may have detected, since
22648 # we'll use what we're building after installation anyway.
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22650 $as_echo "newly built ld" >&6; }
22652 in_tree_ld_is_elf
=no
22653 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22654 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22655 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22656 in_tree_ld_is_elf
=yes
22657 elif test "$ld_is_gold" = yes; then
22658 in_tree_ld_is_elf
=yes
22660 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
22662 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22663 if test x
$gcc_cv_gld_version != x
; then
22667 case $gcc_cv_gld_version in
22669 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22671 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22672 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22673 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22674 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22677 $as_echo "$gcc_cv_ld" >&6; }
22679 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22680 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22681 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22687 # Figure out what nm we will be using.
22688 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22689 if ${gcc_cv_nm+:} false
; then :
22693 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22694 && test -f ..
/binutils
/Makefile \
22695 && test x
$build = x
$host; then
22696 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22697 elif test -x nm
$build_exeext; then
22698 gcc_cv_nm
=.
/nm
$build_exeext
22699 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22700 gcc_cv_nm
="$NM_FOR_TARGET"
22702 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22703 set dummy
$NM_FOR_TARGET; ac_word
=$2
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22705 $as_echo_n "checking for $ac_word... " >&6; }
22706 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
22707 $as_echo_n "(cached) " >&6
22711 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22715 for as_dir
in $PATH
22718 test -z "$as_dir" && as_dir
=.
22719 for ac_exec_ext
in '' $ac_executable_extensions; do
22720 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22721 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22732 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22733 if test -n "$gcc_cv_nm"; then
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22735 $as_echo "$gcc_cv_nm" >&6; }
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22738 $as_echo "no" >&6; }
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22746 $as_echo_n "checking what nm to use... " >&6; }
22747 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22748 # Single tree build which includes binutils.
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22750 $as_echo "newly built nm" >&6; }
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22754 $as_echo "$gcc_cv_nm" >&6; }
22758 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22760 case "$ORIGINAL_NM_FOR_TARGET" in
22761 .
/nm | .
/nm
$build_exeext) ;;
22762 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22767 # Figure out what objdump we will be using.
22768 if ${gcc_cv_objdump+:} false
; then :
22772 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22773 && test -f ..
/binutils
/Makefile \
22774 && test x
$build = x
$host; then
22775 # Single tree build which includes binutils.
22776 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22777 elif test -x objdump
$build_exeext; then
22778 gcc_cv_objdump
=.
/objdump
$build_exeext
22779 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22780 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22782 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22783 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22785 $as_echo_n "checking for $ac_word... " >&6; }
22786 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
22787 $as_echo_n "(cached) " >&6
22789 case $gcc_cv_objdump in
22791 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22795 for as_dir
in $PATH
22798 test -z "$as_dir" && as_dir
=.
22799 for ac_exec_ext
in '' $ac_executable_extensions; do
22800 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22801 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22812 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22813 if test -n "$gcc_cv_objdump"; then
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22815 $as_echo "$gcc_cv_objdump" >&6; }
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22818 $as_echo "no" >&6; }
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22826 $as_echo_n "checking what objdump to use... " >&6; }
22827 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22828 # Single tree build which includes binutils.
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22830 $as_echo "newly built objdump" >&6; }
22831 elif test x
$gcc_cv_objdump = x
; then
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22833 $as_echo "not found" >&6; }
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22836 $as_echo "$gcc_cv_objdump" >&6; }
22839 # Figure out what readelf we will be using.
22840 if ${gcc_cv_readelf+:} false
; then :
22844 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22845 && test -f ..
/binutils
/Makefile \
22846 && test x
$build = x
$host; then
22847 # Single tree build which includes binutils.
22848 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22849 elif test -x readelf
$build_exeext; then
22850 gcc_cv_readelf
=.
/readelf
$build_exeext
22851 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22852 gcc_cv_readelf
="$READELF_FOR_TARGET"
22854 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22855 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22857 $as_echo_n "checking for $ac_word... " >&6; }
22858 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
22859 $as_echo_n "(cached) " >&6
22861 case $gcc_cv_readelf in
22863 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22867 for as_dir
in $PATH
22870 test -z "$as_dir" && as_dir
=.
22871 for ac_exec_ext
in '' $ac_executable_extensions; do
22872 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22873 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22884 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22885 if test -n "$gcc_cv_readelf"; then
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22887 $as_echo "$gcc_cv_readelf" >&6; }
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22890 $as_echo "no" >&6; }
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22898 $as_echo_n "checking what readelf to use... " >&6; }
22899 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22900 # Single tree build which includes binutils.
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22902 $as_echo "newly built readelf" >&6; }
22903 elif test x
$gcc_cv_readelf = x
; then
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22905 $as_echo "not found" >&6; }
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22908 $as_echo "$gcc_cv_readelf" >&6; }
22911 # Figure out what otool we will be using.
22912 if ${gcc_cv_otool+:} false
; then :
22916 if test -x otool
$build_exeext; then
22917 gcc_cv_otool
=.
/otool
$build_exeext
22918 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
22919 gcc_cv_otool
="$OTOOL_FOR_TARGET"
22921 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22922 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22924 $as_echo_n "checking for $ac_word... " >&6; }
22925 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
22926 $as_echo_n "(cached) " >&6
22928 case $gcc_cv_otool in
22930 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
22933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22934 for as_dir
in $PATH
22937 test -z "$as_dir" && as_dir
=.
22938 for ac_exec_ext
in '' $ac_executable_extensions; do
22939 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22940 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
22941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22951 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
22952 if test -n "$gcc_cv_otool"; then
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22954 $as_echo "$gcc_cv_otool" >&6; }
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22957 $as_echo "no" >&6; }
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22965 $as_echo_n "checking what otool to use... " >&6; }
22966 if test x
$gcc_cv_otool = x
; then
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22968 $as_echo "not found" >&6; }
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22971 $as_echo "$gcc_cv_otool" >&6; }
22974 # Figure out what assembler alignment features are present.
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22976 $as_echo_n "checking assembler flags... " >&6; }
22977 if ${gcc_cv_as_flags+:} false
; then :
22978 $as_echo_n "(cached) " >&6
22981 i
[34567]86-*-linux*)
22982 gcc_cv_as_flags
=--32
22984 x86_64-
*-linux-gnux32)
22985 gcc_cv_as_flags
=--x32
22988 gcc_cv_as_flags
=--64
22990 powerpc
*-*-darwin*)
22991 gcc_cv_as_flags
="-arch ppc"
22994 gcc_cv_as_flags
=" "
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22999 $as_echo "$gcc_cv_as_flags" >&6; }
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23002 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23003 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23004 $as_echo_n "(cached) " >&6
23006 gcc_cv_as_balign_and_p2align
=no
23007 if test $in_tree_gas = yes; then
23008 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23009 then gcc_cv_as_balign_and_p2align
=yes
23011 elif test x
$gcc_cv_as != x
; then
23012 $as_echo '.balign 4
23013 .p2align 2' > conftest.s
23014 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23016 (eval $ac_try) 2>&5
23018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23019 test $ac_status = 0; }; }
23021 gcc_cv_as_balign_and_p2align
=yes
23023 echo "configure: failed program was" >&5
23026 rm -f conftest.o conftest.s
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23030 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23031 if test $gcc_cv_as_balign_and_p2align = yes; then
23033 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23039 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23040 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23041 $as_echo_n "(cached) " >&6
23043 gcc_cv_as_max_skip_p2align
=no
23044 if test $in_tree_gas = yes; then
23045 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23046 then gcc_cv_as_max_skip_p2align
=yes
23048 elif test x
$gcc_cv_as != x
; then
23049 $as_echo '.p2align 4,,7' > conftest.s
23050 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23052 (eval $ac_try) 2>&5
23054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23055 test $ac_status = 0; }; }
23057 gcc_cv_as_max_skip_p2align
=yes
23059 echo "configure: failed program was" >&5
23062 rm -f conftest.o conftest.s
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23066 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23067 if test $gcc_cv_as_max_skip_p2align = yes; then
23069 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23075 $as_echo_n "checking assembler for .literal16... " >&6; }
23076 if ${gcc_cv_as_literal16+:} false
; then :
23077 $as_echo_n "(cached) " >&6
23079 gcc_cv_as_literal16
=no
23080 if test $in_tree_gas = yes; then
23081 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23082 then gcc_cv_as_literal16
=yes
23084 elif test x
$gcc_cv_as != x
; then
23085 $as_echo '.literal16' > conftest.s
23086 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23088 (eval $ac_try) 2>&5
23090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23091 test $ac_status = 0; }; }
23093 gcc_cv_as_literal16
=yes
23095 echo "configure: failed program was" >&5
23098 rm -f conftest.o conftest.s
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23102 $as_echo "$gcc_cv_as_literal16" >&6; }
23103 if test $gcc_cv_as_literal16 = yes; then
23105 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23111 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23112 if ${gcc_cv_as_subsection_m1+:} false
; then :
23113 $as_echo_n "(cached) " >&6
23115 gcc_cv_as_subsection_m1
=no
23116 if test $in_tree_gas = yes; then
23117 if test $in_tree_gas_is_elf = yes \
23118 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23119 then gcc_cv_as_subsection_m1
=yes
23121 elif test x
$gcc_cv_as != x
; then
23122 $as_echo 'conftest_label1: .word 0
23124 conftest_label2: .word 0
23125 .previous' > conftest.s
23126 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23128 (eval $ac_try) 2>&5
23130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23131 test $ac_status = 0; }; }
23133 if test x
$gcc_cv_nm != x
; then
23134 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23135 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23136 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23138 else gcc_cv_as_subsection_m1
=yes
23140 rm -f conftest.nm1 conftest.nm2
23143 echo "configure: failed program was" >&5
23146 rm -f conftest.o conftest.s
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23150 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23151 if test $gcc_cv_as_subsection_m1 = yes; then
23153 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23159 $as_echo_n "checking assembler for .weak... " >&6; }
23160 if ${gcc_cv_as_weak+:} false
; then :
23161 $as_echo_n "(cached) " >&6
23164 if test $in_tree_gas = yes; then
23165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23166 then gcc_cv_as_weak
=yes
23168 elif test x
$gcc_cv_as != x
; then
23169 $as_echo ' .weak foobar' > conftest.s
23170 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23172 (eval $ac_try) 2>&5
23174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23175 test $ac_status = 0; }; }
23179 echo "configure: failed program was" >&5
23182 rm -f conftest.o conftest.s
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23186 $as_echo "$gcc_cv_as_weak" >&6; }
23187 if test $gcc_cv_as_weak = yes; then
23189 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23195 $as_echo_n "checking assembler for .weakref... " >&6; }
23196 if ${gcc_cv_as_weakref+:} false
; then :
23197 $as_echo_n "(cached) " >&6
23199 gcc_cv_as_weakref
=no
23200 if test $in_tree_gas = yes; then
23201 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23202 then gcc_cv_as_weakref
=yes
23204 elif test x
$gcc_cv_as != x
; then
23205 $as_echo ' .weakref foobar, barfnot' > conftest.s
23206 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23208 (eval $ac_try) 2>&5
23210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23211 test $ac_status = 0; }; }
23213 gcc_cv_as_weakref
=yes
23215 echo "configure: failed program was" >&5
23218 rm -f conftest.o conftest.s
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23222 $as_echo "$gcc_cv_as_weakref" >&6; }
23223 if test $gcc_cv_as_weakref = yes; then
23225 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23231 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23232 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
23233 $as_echo_n "(cached) " >&6
23235 gcc_cv_as_nsubspa_comdat
=no
23236 if test $in_tree_gas = yes; then
23237 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23238 then gcc_cv_as_nsubspa_comdat
=yes
23240 elif test x
$gcc_cv_as != x
; then
23241 $as_echo ' .SPACE $TEXT$
23242 .NSUBSPA $CODE$,COMDAT' > conftest.s
23243 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23245 (eval $ac_try) 2>&5
23247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23248 test $ac_status = 0; }; }
23250 gcc_cv_as_nsubspa_comdat
=yes
23252 echo "configure: failed program was" >&5
23255 rm -f conftest.o conftest.s
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23259 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23260 if test $gcc_cv_as_nsubspa_comdat = yes; then
23262 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23267 # .hidden needs to be supported in both the assembler and the linker,
23268 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23269 # This is irritatingly difficult to feature test for; we have to check the
23270 # date string after the version number. If we've got an in-tree
23271 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23273 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23274 case "${target}" in
23276 conftest_s
=' .globl foobar,hidden'
23279 conftest_s
=' .hidden foobar
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23284 $as_echo_n "checking assembler for .hidden... " >&6; }
23285 if ${gcc_cv_as_hidden+:} false
; then :
23286 $as_echo_n "(cached) " >&6
23288 gcc_cv_as_hidden
=no
23289 if test $in_tree_gas = yes; then
23290 if test $in_tree_gas_is_elf = yes \
23291 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23292 then gcc_cv_as_hidden
=yes
23294 elif test x
$gcc_cv_as != x
; then
23295 $as_echo "$conftest_s" > conftest.s
23296 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23298 (eval $ac_try) 2>&5
23300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23301 test $ac_status = 0; }; }
23303 gcc_cv_as_hidden
=yes
23305 echo "configure: failed program was" >&5
23308 rm -f conftest.o conftest.s
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23312 $as_echo "$gcc_cv_as_hidden" >&6; }
23315 case "${target}" in
23317 # Darwin as has some visibility support, though with a different syntax.
23318 gcc_cv_as_hidden
=yes
23322 # gnu_indirect_function type is an extension proposed at
23323 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23324 # selection of function implementation
23325 # Check whether --enable-gnu-indirect-function was given.
23326 if test "${enable_gnu_indirect_function+set}" = set; then :
23327 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23329 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23330 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23333 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23337 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23339 cat >>confdefs.h
<<_ACEOF
23340 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23345 if test $in_tree_ld != yes ; then
23346 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23347 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23348 if test x
"$ld_is_gold" = xyes
; then
23349 # GNU gold --version looks like this:
23351 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23353 # We extract the binutils version which is more familiar and specific
23354 # than the gold version.
23355 ld_vers
=`echo $ld_ver | sed -n \
23356 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23358 # GNU ld --version looks like this:
23360 # GNU ld (GNU Binutils) 2.21.51.20110225
23361 ld_vers
=`echo $ld_ver | sed -n \
23362 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23364 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'`
23365 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23366 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23367 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23369 case "${target}" in
23371 # Solaris 2 ld -V output looks like this for a regular version:
23373 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23375 # but test versions add stuff at the end:
23377 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23379 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23380 # numbers can be used in ld.so.1 feature checks even if a different
23381 # linker is configured.
23382 ld_ver
=`$gcc_cv_ld -V 2>&1`
23383 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
23384 ld_vers
=`echo $ld_ver | sed -n \
23385 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23386 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23387 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23395 $as_echo_n "checking linker for .hidden support... " >&6; }
23396 if ${gcc_cv_ld_hidden+:} false
; then :
23397 $as_echo_n "(cached) " >&6
23399 if test $in_tree_ld = yes ; then
23400 gcc_cv_ld_hidden
=no
23401 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 \
23402 && test $in_tree_ld_is_elf = yes; then
23403 gcc_cv_ld_hidden
=yes
23406 gcc_cv_ld_hidden
=yes
23407 if test x
"$ld_is_gold" = xyes
; then
23409 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23410 case "${target}" in
23411 mmix-knuth-mmixware
)
23412 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23413 gcc_cv_ld_hidden
=no
23416 if test 0"$ld_date" -lt 20020404; then
23417 if test -n "$ld_date"; then
23418 # If there was date string, but was earlier than 2002-04-04, fail
23419 gcc_cv_ld_hidden
=no
23420 elif test -z "$ld_vers"; then
23421 # If there was no date string nor ld version number, something is wrong
23422 gcc_cv_ld_hidden
=no
23424 test -z "$ld_vers_patch" && ld_vers_patch
=0
23425 if test "$ld_vers_major" -lt 2; then
23426 gcc_cv_ld_hidden
=no
23427 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23428 gcc_cv_ld_hidden
="no"
23429 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23430 gcc_cv_ld_hidden
=no
23435 case "${target}" in
23437 gcc_cv_ld_hidden
=yes
23440 # Darwin ld has some visibility support.
23441 gcc_cv_ld_hidden
=yes
23443 hppa64
*-*-hpux* | ia64
*-*-hpux*)
23444 gcc_cv_ld_hidden
=yes
23447 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23448 # .symbolic was only added in Solaris 9 12/02.
23449 gcc_cv_ld_hidden
=yes
23452 gcc_cv_ld_hidden
=no
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23459 $as_echo "$gcc_cv_ld_hidden" >&6; }
23460 libgcc_visibility
=no
23463 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23464 libgcc_visibility
=yes
23466 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23471 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23472 gcc_cv_ld_ro_rw_mix
=unknown
23473 if test $in_tree_ld = yes ; then
23474 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 \
23475 && test $in_tree_ld_is_elf = yes; then
23476 gcc_cv_ld_ro_rw_mix
=read-write
23478 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23479 echo '.section myfoosect, "a"' > conftest1.s
23480 echo '.section myfoosect, "aw"' > conftest2.s
23481 echo '.byte 1' >> conftest2.s
23482 echo '.section myfoosect, "a"' > conftest3.s
23483 echo '.byte 0' >> conftest3.s
23484 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23485 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23486 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
23487 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23488 conftest2.o conftest3.o
> /dev
/null
2>&1; then
23489 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
23490 | sed -e '/myfoosect/!d' -e N`
23491 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23492 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23493 gcc_cv_ld_ro_rw_mix
=read-only
23495 gcc_cv_ld_ro_rw_mix
=read-write
23499 rm -f conftest.
* conftest
[123].
*
23501 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23503 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23507 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23509 # Check whether --enable-initfini-array was given.
23510 if test "${enable_initfini_array+set}" = set; then :
23511 enableval
=$enable_initfini_array;
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23515 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23516 if ${gcc_cv_initfini_array+:} false
; then :
23517 $as_echo_n "(cached) " >&6
23519 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23520 case "${target}" in
23522 if test "$cross_compiling" = yes; then :
23523 gcc_cv_initfini_array
=no
23525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23526 /* end confdefs.h. */
23529 #error Not an ELF OS
23531 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23532 if it can be used. */
23534 int main (void) { return x; }
23535 int foo (void) { x = 0; }
23536 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23539 if ac_fn_cxx_try_run
"$LINENO"; then :
23540 gcc_cv_initfini_array
=yes
23542 gcc_cv_initfini_array
=no
23544 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23545 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23549 gcc_cv_initfini_array
=no
23550 if test $in_tree_ld = yes ; then
23551 if test "$gcc_cv_gld_major_version" -eq 2 \
23552 -a "$gcc_cv_gld_minor_version" -ge 22 \
23553 -o "$gcc_cv_gld_major_version" -gt 2 \
23554 && test $in_tree_ld_is_elf = yes; then
23555 gcc_cv_initfini_array
=yes
23557 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23558 case $target:$gas in
23561 sh_type
='%progbits'
23563 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23565 sh_type
='@progbits'
23567 sparc
*-*-solaris2*:no
)
23569 sh_type
='#progbits'
23573 case "$target:$gnu_ld" in
23575 cat > conftest.s
<<EOF
23576 .section .dtors,$sh_flags,$sh_type
23578 .byte 'A', 'A', 'A', 'A'
23579 .section .ctors,$sh_flags,$sh_type
23581 .byte 'B', 'B', 'B', 'B'
23582 .section .fini_array.65530,$sh_flags,$sh_type
23584 .byte 'C', 'C', 'C', 'C'
23585 .section .init_array.65530,$sh_flags,$sh_type
23587 .byte 'D', 'D', 'D', 'D'
23588 .section .dtors.64528,$sh_flags,$sh_type
23590 .byte 'E', 'E', 'E', 'E'
23591 .section .ctors.64528,$sh_flags,$sh_type
23593 .byte 'F', 'F', 'F', 'F'
23594 .section .fini_array.01005,$sh_flags,$sh_type
23596 .byte 'G', 'G', 'G', 'G'
23597 .section .init_array.01005,$sh_flags,$sh_type
23599 .byte 'H', 'H', 'H', 'H'
23604 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23605 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23606 && $gcc_cv_objdump -s -j .init_array conftest \
23607 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23608 && $gcc_cv_objdump -s -j .fini_array conftest \
23609 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23610 gcc_cv_initfini_array
=yes
23614 # When Solaris ld added constructor priority support, it was
23615 # decided to only handle .init_array.N/.fini_array.N since
23616 # there was no need for backwards compatibility with
23617 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23618 # sections with correct execution order resp. to
23619 # .init_array/.fini_array, while gld merges them into
23620 # .init_array/.fini_array.
23621 cat > conftest.s
<<EOF
23622 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23624 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23625 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23627 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23628 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23630 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23631 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23633 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23638 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23639 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23640 && $gcc_cv_objdump -s -j .init_array conftest \
23641 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
23642 && $gcc_cv_objdump -s -j .fini_array conftest \
23643 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
23644 gcc_cv_initfini_array
=yes
23648 rm -f conftest conftest.
*
23650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23651 /* end confdefs.h. */
23654 # error Not an ELF OS
23656 #include <stdlib.h>
23657 #if defined __GLIBC_PREREQ
23658 # if __GLIBC_PREREQ (2, 4)
23660 # error GLIBC 2.4 required
23663 # if defined __sun__ && defined __svr4__
23664 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23666 # error The C library not known to support .init_array/.fini_array
23671 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23674 gcc_cv_initfini_array
=no
23676 rm -f conftest.err conftest.i conftest.
$ac_ext;;
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23680 $as_echo_n "checking cross compile... guessing... " >&6; }
23681 gcc_cv_initfini_array
=no
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23685 $as_echo "$gcc_cv_initfini_array" >&6; }
23686 enable_initfini_array
=$gcc_cv_initfini_array
23691 cat >>confdefs.h
<<_ACEOF
23692 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23697 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23699 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23700 if ${gcc_cv_as_leb128+:} false
; then :
23701 $as_echo_n "(cached) " >&6
23703 gcc_cv_as_leb128
=no
23704 if test $in_tree_gas = yes; then
23705 if test $in_tree_gas_is_elf = yes \
23706 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23707 then gcc_cv_as_leb128
=yes
23709 elif test x
$gcc_cv_as != x
; then
23716 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23718 (eval $ac_try) 2>&5
23720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23721 test $ac_status = 0; }; }
23723 # GAS versions before 2.11 do not support uleb128,
23724 # despite appearing to.
23725 # ??? There exists an elf-specific test that will crash
23726 # the assembler. Perhaps it's better to figure out whether
23727 # arbitrary sections are supported and try the test.
23728 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23729 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23730 as_vers
=`echo $as_ver | sed -n \
23731 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23732 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23733 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23734 if test $as_major -eq 2 && test $as_minor -lt 11
23736 else gcc_cv_as_leb128
=yes
23740 echo "configure: failed program was" >&5
23743 rm -f conftest.o conftest.s
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23747 $as_echo "$gcc_cv_as_leb128" >&6; }
23748 if test $gcc_cv_as_leb128 = yes; then
23750 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23753 if test $gcc_cv_as_leb128 != yes; then
23755 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23759 # Determine if an .eh_frame section is read-only.
23760 gcc_fn_eh_frame_ro
() {
23761 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23762 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23763 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23766 # Check if we have assembler support for unwind directives.
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23768 $as_echo_n "checking assembler for cfi directives... " >&6; }
23769 if ${gcc_cv_as_cfi_directive+:} false
; then :
23770 $as_echo_n "(cached) " >&6
23772 gcc_cv_as_cfi_directive
=no
23773 if test x
$gcc_cv_as != x
; then
23779 .cfi_escape 1, 2, 3, 4, 5
23780 .cfi_endproc' > conftest.s
23781 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23783 (eval $ac_try) 2>&5
23785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23786 test $ac_status = 0; }; }
23790 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23791 # read-only and read-write sections, we need to make sure that the
23792 # assembler used emits read-write .eh_frame sections.
23793 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23794 gcc_cv_as_cfi_directive
=yes
23795 elif test "x$gcc_cv_objdump" = x
; then
23796 # No objdump, err on the side of caution.
23797 gcc_cv_as_cfi_directive
=no
23799 if test x
$gas = xyes
; then
23807 sparc
*-*-solaris2.
*)
23808 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23809 if gcc_fn_eh_frame_ro
$as_32_opt \
23810 || gcc_fn_eh_frame_ro
$as_64_opt; then
23811 gcc_cv_as_cfi_directive
=no
23813 gcc_cv_as_cfi_directive
=yes
23816 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23817 # On Solaris/x86, make sure that GCC and assembler agree on using
23818 # read-only .eh_frame sections for 64-bit.
23819 if gcc_fn_eh_frame_ro
$as_32_opt; then
23820 gcc_cv_as_cfi_directive
=no
23821 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23822 gcc_cv_as_cfi_directive
=yes
23824 gcc_cv_as_cfi_directive
=no
23831 gcc_cv_as_cfi_directive
=yes
23835 echo "configure: failed program was" >&5
23838 rm -f conftest.o conftest.s
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23842 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23845 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23847 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23848 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
23849 $as_echo_n "(cached) " >&6
23851 gcc_cv_as_cfi_advance_working
=no
23852 if test x
$gcc_cv_as != x
; then
23855 .cfi_adjust_cfa_offset 64
23857 .cfi_adjust_cfa_offset 128
23858 .cfi_endproc' > conftest.s
23859 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23861 (eval $ac_try) 2>&5
23863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23864 test $ac_status = 0; }; }
23867 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23868 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23869 gcc_cv_as_cfi_advance_working
=yes
23873 echo "configure: failed program was" >&5
23876 rm -f conftest.o conftest.s
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23880 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23884 # no objdump, err on the side of caution
23885 gcc_cv_as_cfi_advance_working
=no
23889 cat >>confdefs.h
<<_ACEOF
23890 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23891 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23897 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23898 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
23899 $as_echo_n "(cached) " >&6
23901 gcc_cv_as_cfi_personality_directive
=no
23902 if test x
$gcc_cv_as != x
; then
23905 .cfi_personality 0, symbol
23906 .cfi_endproc' > conftest.s
23907 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23909 (eval $ac_try) 2>&5
23911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23912 test $ac_status = 0; }; }
23914 gcc_cv_as_cfi_personality_directive
=yes
23916 echo "configure: failed program was" >&5
23919 rm -f conftest.o conftest.s
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23923 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23927 cat >>confdefs.h
<<_ACEOF
23928 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23933 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23934 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
23935 $as_echo_n "(cached) " >&6
23937 gcc_cv_as_cfi_sections_directive
=no
23938 if test x
$gcc_cv_as != x
; then
23940 .cfi_sections .debug_frame, .eh_frame
23942 .cfi_endproc' > conftest.s
23943 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23945 (eval $ac_try) 2>&5
23947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23948 test $ac_status = 0; }; }
23951 win32 | pe | cygwin
* | mingw32
*)
23952 # Need to check that we generated the correct relocation for the
23953 # .debug_frame section. This was fixed for binutils 2.21.
23954 gcc_cv_as_cfi_sections_directive
=no
23955 if test "x$gcc_cv_objdump" != x
; then
23956 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23957 grep secrel
> /dev
/null
; then
23958 gcc_cv_as_cfi_sections_directive
=yes
23963 gcc_cv_as_cfi_sections_directive
=yes
23967 echo "configure: failed program was" >&5
23970 rm -f conftest.o conftest.s
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23974 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23979 cat >>confdefs.h
<<_ACEOF
23980 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23984 # GAS versions up to and including 2.11.0 may mis-optimize
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23987 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23988 if ${gcc_cv_as_eh_frame+:} false
; then :
23989 $as_echo_n "(cached) " >&6
23991 gcc_cv_as_eh_frame
=no
23992 if test $in_tree_gas = yes; then
23993 if test $in_tree_gas_is_elf = yes \
23994 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23995 then gcc_cv_as_eh_frame
=yes
23997 elif test x
$gcc_cv_as != x
; then
24004 .section .eh_frame,"aw",@progbits
24006 .4byte .LECIE1-.LSCIE1
24020 .4byte .LEFDE1-.LASFDE1
24022 .4byte .LASFDE1-__FRAME_BEGIN__
24029 .LEFDE1:' > conftest.s
24030 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24032 (eval $ac_try) 2>&5
24034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24035 test $ac_status = 0; }; }
24037 cat > conftest.lit
<<EOF
24038 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24039 0010 01000000 12000000 18000000 00000000 ................
24040 0020 08000000 04080000 0044 .........D
24042 cat > conftest.big
<<EOF
24043 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24044 0010 00000001 00000012 00000018 00000000 ................
24045 0020 00000008 04000000 0844 .........D
24047 # If the assembler didn't choke, and we can objdump,
24048 # and we got the correct data, then succeed.
24049 # The text in the here-document typically retains its unix-style line
24050 # endings, while the output of objdump will use host line endings.
24051 # Therefore, use diff -b for the comparisons.
24052 if test x
$gcc_cv_objdump != x \
24053 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24054 |
tail -3 > conftest.got \
24055 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24056 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24058 gcc_cv_as_eh_frame
=yes
24059 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24061 (eval $ac_try) 2>&5
24063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24064 test $ac_status = 0; }; }; then
24065 gcc_cv_as_eh_frame
=buggy
24067 # Uh oh, what do we do now?
24068 gcc_cv_as_eh_frame
=no
24071 echo "configure: failed program was" >&5
24074 rm -f conftest.o conftest.s
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24078 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24082 if test $gcc_cv_as_eh_frame = buggy
; then
24084 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24088 # Test if the assembler supports the section flag 'e' or #exclude for
24089 # specifying an excluded section.
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24091 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24092 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24093 $as_echo_n "(cached) " >&6
24095 gcc_cv_as_section_exclude_e
=no
24096 if test $in_tree_gas = yes; then
24097 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24098 then gcc_cv_as_section_exclude_e
=yes
24100 elif test x
$gcc_cv_as != x
; then
24101 $as_echo '.section foo1,"e"
24102 .byte 0,0,0,0' > conftest.s
24103 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24105 (eval $ac_try) 2>&5
24107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24108 test $ac_status = 0; }; }
24110 gcc_cv_as_section_exclude_e
=yes
24112 echo "configure: failed program was" >&5
24115 rm -f conftest.o conftest.s
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24119 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24122 if test $gcc_cv_as_section_exclude_e = no
; then
24123 case "${target}" in
24124 # Solaris as uses #exclude instead.
24126 case "${target}" in
24127 sparc
*-*-solaris2*)
24128 conftest_s
='.section "foo1", #exclude'
24130 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24131 conftest_s
='.section foo1, #exclude'
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24137 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24138 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24139 $as_echo_n "(cached) " >&6
24141 gcc_cv_as_section_exclude_hash
=no
24142 if test x
$gcc_cv_as != x
; then
24143 $as_echo "$conftest_s
24144 .byte 0,0,0,0" > conftest.s
24145 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24147 (eval $ac_try) 2>&5
24149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24150 test $ac_status = 0; }; }
24152 gcc_cv_as_section_exclude_hash
=yes
24154 echo "configure: failed program was" >&5
24157 rm -f conftest.o conftest.s
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24161 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24166 cat >>confdefs.h
<<_ACEOF
24167 #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`
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24172 $as_echo_n "checking assembler for section merging support... " >&6; }
24173 if ${gcc_cv_as_shf_merge+:} false
; then :
24174 $as_echo_n "(cached) " >&6
24176 gcc_cv_as_shf_merge
=no
24177 if test $in_tree_gas = yes; then
24178 if test $in_tree_gas_is_elf = yes \
24179 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24180 then gcc_cv_as_shf_merge
=yes
24182 elif test x
$gcc_cv_as != x
; then
24183 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24184 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24186 (eval $ac_try) 2>&5
24188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24189 test $ac_status = 0; }; }
24191 gcc_cv_as_shf_merge
=yes
24193 echo "configure: failed program was" >&5
24196 rm -f conftest.o conftest.s
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24200 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24203 if test $gcc_cv_as_shf_merge = no
; then
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24205 $as_echo_n "checking assembler for section merging support... " >&6; }
24206 if ${gcc_cv_as_shf_merge+:} false
; then :
24207 $as_echo_n "(cached) " >&6
24209 gcc_cv_as_shf_merge
=no
24210 if test $in_tree_gas = yes; then
24211 if test $in_tree_gas_is_elf = yes \
24212 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24213 then gcc_cv_as_shf_merge
=yes
24215 elif test x
$gcc_cv_as != x
; then
24216 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24217 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24219 (eval $ac_try) 2>&5
24221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24222 test $ac_status = 0; }; }
24224 gcc_cv_as_shf_merge
=yes
24226 echo "configure: failed program was" >&5
24229 rm -f conftest.o conftest.s
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24233 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24238 cat >>confdefs.h
<<_ACEOF
24239 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24243 gcc_cv_ld_aligned_shf_merge
=yes
24245 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24247 sparc
*-*-solaris2.11
*)
24248 if test x
"$gnu_ld" = xno \
24249 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24250 gcc_cv_ld_aligned_shf_merge
=no
24255 cat >>confdefs.h
<<_ACEOF
24256 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24261 $as_echo_n "checking assembler for stabs directive... " >&6; }
24262 if ${gcc_cv_as_stabs_directive+:} false
; then :
24263 $as_echo_n "(cached) " >&6
24265 gcc_cv_as_stabs_directive
=no
24266 if test x
$gcc_cv_as != x
; then
24267 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24268 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24270 (eval $ac_try) 2>&5
24272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24273 test $ac_status = 0; }; }
24275 gcc_cv_as_stabs_directive
=yes
24277 echo "configure: failed program was" >&5
24280 rm -f conftest.o conftest.s
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24284 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24285 if test $gcc_cv_as_stabs_directive = yes; then
24287 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24293 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24294 if ${gcc_cv_as_comdat_group+:} false
; then :
24295 $as_echo_n "(cached) " >&6
24297 gcc_cv_as_comdat_group
=no
24298 if test $in_tree_gas = yes; then
24299 if test $in_tree_gas_is_elf = yes \
24300 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24301 then gcc_cv_as_comdat_group
=yes
24303 elif test x
$gcc_cv_as != x
; then
24304 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24305 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24307 (eval $ac_try) 2>&5
24309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24310 test $ac_status = 0; }; }
24312 gcc_cv_as_comdat_group
=yes
24314 echo "configure: failed program was" >&5
24317 rm -f conftest.o conftest.s
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24321 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24324 if test $gcc_cv_as_comdat_group = yes; then
24325 gcc_cv_as_comdat_group_percent
=no
24326 gcc_cv_as_comdat_group_group
=no
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24329 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24330 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
24331 $as_echo_n "(cached) " >&6
24333 gcc_cv_as_comdat_group_percent
=no
24334 if test $in_tree_gas = yes; then
24335 if test $in_tree_gas_is_elf = yes \
24336 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24337 then gcc_cv_as_comdat_group_percent
=yes
24339 elif test x
$gcc_cv_as != x
; then
24340 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24341 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24343 (eval $ac_try) 2>&5
24345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24346 test $ac_status = 0; }; }
24348 gcc_cv_as_comdat_group_percent
=yes
24350 echo "configure: failed program was" >&5
24353 rm -f conftest.o conftest.s
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24357 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24360 if test $gcc_cv_as_comdat_group_percent = yes; then
24361 gcc_cv_as_comdat_group_group
=no
24363 case "${target}" in
24364 # Sun as uses a completely different syntax.
24366 case "${target}" in
24367 sparc
*-*-solaris2*)
24369 .group foo,".text%foo",#comdat
24370 .section ".text%foo", #alloc,#execinstr,#progbits
24375 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24377 .group foo,.text%foo,#comdat
24378 .section .text%foo, "ax", @progbits
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24385 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24386 if ${gcc_cv_as_comdat_group_group+:} false
; then :
24387 $as_echo_n "(cached) " >&6
24389 gcc_cv_as_comdat_group_group
=no
24390 if test x
$gcc_cv_as != x
; then
24391 $as_echo "$conftest_s" > conftest.s
24392 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24394 (eval $ac_try) 2>&5
24396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24397 test $ac_status = 0; }; }
24399 gcc_cv_as_comdat_group_group
=yes
24401 echo "configure: failed program was" >&5
24404 rm -f conftest.o conftest.s
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24408 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24413 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24414 gcc_cv_as_comdat_group_group
=no
24418 if test x
"$ld_is_gold" = xyes
; then
24420 elif test $in_tree_ld = yes ; then
24422 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 \
24423 && test $in_tree_ld_is_elf = yes; then
24426 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24428 if test 0"$ld_date" -lt 20050308; then
24429 if test -n "$ld_date"; then
24430 # If there was date string, but was earlier than 2005-03-08, fail
24432 elif test "$ld_vers_major" -lt 2; then
24434 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24439 case "${target}" in
24440 *-*-solaris2.1
[1-9]*)
24442 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24443 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24446 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24447 # least ld version 1.2267.
24448 if test "$ld_vers_major" -gt 1; then
24450 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
24452 elif test "$ld_vers_minor" -ge 2267; then
24457 # Assume linkers other than GNU ld don't support COMDAT group.
24462 # Allow overriding the automatic COMDAT group tests above.
24463 # Check whether --enable-comdat was given.
24464 if test "${enable_comdat+set}" = set; then :
24465 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
24468 if test $comdat_group = no
; then
24469 gcc_cv_as_comdat_group
=no
24470 gcc_cv_as_comdat_group_percent
=no
24471 gcc_cv_as_comdat_group_group
=no
24474 cat >>confdefs.h
<<_ACEOF
24475 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24476 || test $gcc_cv_as_comdat_group_percent = yes \
24477 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24481 # Restrict this test to Solaris/x86: other targets define this statically.
24482 case "${target}" in
24483 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24485 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24486 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24487 hidden_linkonce
=yes
24489 case "${target}" in
24490 # Full support for hidden thunks in linkonce sections only appeared in
24491 # Solaris 11/OpenSolaris.
24492 *-*-solaris2.1
[1-9]*)
24493 hidden_linkonce
=yes
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24501 $as_echo "$hidden_linkonce" >&6; }
24503 cat >>confdefs.h
<<_ACEOF
24504 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24511 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24512 if ${gcc_cv_as_is_stmt+:} false
; then :
24513 $as_echo_n "(cached) " >&6
24515 gcc_cv_as_is_stmt
=no
24516 if test $in_tree_gas = yes; then
24517 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24518 then gcc_cv_as_is_stmt
=yes
24520 elif test x
$gcc_cv_as != x
; then
24523 .loc 1 1 0 is_stmt 1' > conftest.s
24524 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24531 gcc_cv_as_is_stmt
=yes
24533 echo "configure: failed program was" >&5
24536 rm -f conftest.o conftest.s
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24540 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24541 if test $gcc_cv_as_is_stmt = yes; then
24543 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24549 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24550 if ${gcc_cv_as_discriminator+:} false
; then :
24551 $as_echo_n "(cached) " >&6
24553 gcc_cv_as_discriminator
=no
24554 if test $in_tree_gas = yes; then
24555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24556 then gcc_cv_as_discriminator
=yes
24558 elif test x
$gcc_cv_as != x
; then
24561 .loc 1 1 0 discriminator 1' > conftest.s
24562 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24564 (eval $ac_try) 2>&5
24566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24567 test $ac_status = 0; }; }
24569 gcc_cv_as_discriminator
=yes
24571 echo "configure: failed program was" >&5
24574 rm -f conftest.o conftest.s
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24578 $as_echo "$gcc_cv_as_discriminator" >&6; }
24579 if test $gcc_cv_as_discriminator = yes; then
24581 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24586 # Catch the newlib flag of the same name so we can gate GCC features on it.
24587 # Check whether --enable-newlib-nano-formatted-io was given.
24588 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24589 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
24593 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24599 # Thread-local storage - the check is heavily parameterized.
24607 .section ".tdata","awT",@progbits
24610 ldq $27,__tls_get_addr($29) !literal!1
24611 lda $16,foo($29) !tlsgd!1
24612 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24613 ldq $27,__tls_get_addr($29) !literal!2
24614 lda $16,foo($29) !tlsldm!2
24615 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24616 ldq $1,foo($29) !gotdtprel
24617 ldah $2,foo($29) !dtprelhi
24618 lda $3,foo($2) !dtprello
24619 lda $4,foo($29) !dtprel
24620 ldq $1,foo($29) !gottprel
24621 ldah $2,foo($29) !tprelhi
24622 lda $3,foo($2) !tprello
24623 lda $4,foo($29) !tprel'
24626 tls_as_opt
=--fatal-warnings
24630 add_s r0,r0, @foo@tpoff'
24634 cris-
*-*|crisv32-
*-*)
24636 .section ".tdata","awT",@progbits
24643 tls_as_opt
=--fatal-warnings
24647 .section ".tdata","awT",@progbits
24650 call #gettlsoff(x)'
24659 .section ".tdata","awT",@progbits
24663 addil LT%foo-$tls_gdidx$,gp
24664 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24667 addil LT%foo-$tls_ldidx$,gp
24669 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24670 addil LR%foo-$tls_dtpoff$,%ret0
24671 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24673 addil LT%foo-$tls_ieoff$,gp
24674 ldw RT%foo-$tls_ieoff$(%r1),%t2
24677 addil LR%foo-$tls_leoff$,%t1
24678 ldo RR%foo-$tls_leoff$(%r1),%t2'
24681 tls_as_opt
=--fatal-warnings
24685 .section ".tdata","awT",%progbits
24688 .word foo(gottpoff)
24696 i
[34567]86-*-* | x86_64-
*-*)
24698 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24705 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24707 .section .tdata,"awt",@progbits'
24712 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24716 .section ".tdata","awT",@progbits'
24720 tls_as_opt
="--fatal-warnings"
24724 conftest_s
="$conftest_s
24728 leal foo@tlsgd(,%ebx,1), %eax
24729 leal foo@tlsldm(%ebx), %eax
24730 leal foo@dtpoff(%eax), %edx
24731 movl foo@gottpoff(%ebx), %eax
24732 subl foo@gottpoff(%ebx), %eax
24733 addl foo@gotntpoff(%ebx), %eax
24734 movl foo@indntpoff, %eax
24735 movl \$foo@tpoff, %eax
24736 subl \$foo@tpoff, %eax
24737 leal foo@ntpoff(%ecx), %eax"
24740 if test x
$on_solaris = xyes
; then
24742 yes) tls_as_opt
="$tls_as_opt --64" ;;
24743 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24746 conftest_s
="$conftest_s
24750 leaq foo@tlsgd(%rip), %rdi
24751 leaq foo@tlsld(%rip), %rdi
24752 leaq foo@dtpoff(%rax), %rdx
24753 movq foo@gottpoff(%rip), %rax
24754 movq \$foo@tpoff, %rax"
24760 .section ".tdata","awT",@progbits
24763 addl r16 = @ltoff(@dtpmod(foo#)), gp
24764 addl r17 = @ltoff(@dtprel(foo#)), gp
24765 addl r18 = @ltoff(@tprel(foo#)), gp
24766 addl r19 = @dtprel(foo#), gp
24767 adds r21 = @dtprel(foo#), r13
24768 movl r23 = @dtprel(foo#)
24769 addl r20 = @tprel(foo#), gp
24770 adds r22 = @tprel(foo#), r13
24771 movl r24 = @tprel(foo#)'
24774 tls_as_opt
=--fatal-warnings
24778 .section .tdata,"awT",@progbits
24782 addik r5,r20,x@TLSGD
24783 addik r5,r20,x@TLSLDM'
24786 tls_as_opt
='--fatal-warnings'
24790 .section .tdata,"awT",@progbits
24794 addiu $4, $28, %tlsgd(x)
24795 addiu $4, $28, %tlsldm(x)
24796 lui $4, %dtprel_hi(x)
24797 addiu $4, $4, %dtprel_lo(x)
24798 lw $4, %gottprel(x)($28)
24799 lui $4, %tprel_hi(x)
24800 addiu $4, $4, %tprel_lo(x)'
24803 tls_as_opt
='-32 --fatal-warnings'
24807 .section .tdata,"awT",@progbits
24812 move.l x@TLSGD(%a5),%a0
24813 move.l x@TLSLDM(%a5),%a0
24814 move.l x@TLSLDO(%a5),%a0
24815 move.l x@TLSIE(%a5),%a0
24816 move.l x@TLSLE(%a5),%a0'
24819 tls_as_opt
='--fatal-warnings'
24823 .section ".tdata","awT",@progbits'
24826 tls_as_opt
="--fatal-warnings"
24830 .section ".tdata","awT",%progbits
24834 add x0, x0, #:tlsgd_lo12:x
24839 tls_as_opt
='--fatal-warnings'
24843 .section ".tdata","awT",@progbits
24846 l.movhi r3, tpoffha(foo)
24848 l.lwz r4, tpofflo(foo)(r3)'
24851 tls_as_opt
=--fatal-warnings
24855 .extern __get_tpointer
24873 .section ".tdata","awT",@progbits
24881 addi 3,2,ld0@got@tlsgd
24887 addi 3,2,x1@got@tlsld
24893 addis 9,3,x2@dtprel@ha
24894 addi 9,9,x2@dtprel@l
24897 ld 9,x3@got@dtprel(2)
24903 tls_as_opt
="-a64 --fatal-warnings"
24907 .section ".tdata","awT",@progbits
24915 addi 3,31,ld0@got@tlsgd
24917 addi 3,31,x1@got@tlsld
24920 addis 9,3,x2@dtprel@ha
24921 addi 9,9,x2@dtprel@l
24922 lwz 9,x3@got@tprel(31)
24925 addis 9,2,x2@tprel@ha
24926 addi 9,9,x2@tprel@l'
24929 tls_as_opt
="-a32 --fatal-warnings"
24933 .section .tdata,"awT",@progbits
24937 call __tls_get_addr'
24940 tls_as_opt
='--fatal-warnings'
24944 .section ".tdata","awT",@progbits
24951 .long foo@GOTNTPOFF
24952 .long foo@INDNTPOFF
24953 l %r1,foo@GOTNTPOFF(%r12)
24954 l %r1,0(%r1):tls_load:foo
24955 bas %r14,0(%r1,%r13):tls_gdcall:foo
24956 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24959 tls_as_opt
="-m31 --fatal-warnings"
24963 .section ".tdata","awT",@progbits
24970 .quad foo@GOTNTPOFF
24971 lg %r1,foo@GOTNTPOFF(%r12)
24972 larl %r1,foo@INDNTPOFF
24973 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24974 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24977 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24979 sh-
*-* | sh
[123456789lbe
]*-*-*)
24981 .section ".tdata","awT",@progbits
24991 tls_as_opt
=--fatal-warnings
24995 sparc
*-sun-solaris2.
*)
25002 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25004 .section ".tdata",#alloc,#write,#tls'
25009 .section ".tdata","awT",@progbits'
25012 tls_as_opt
="-32 --fatal-warnings"
25014 conftest_s
="$conftest_s
25017 sethi %tgd_hi22(foo), %o0
25018 add %o0, %tgd_lo10(foo), %o1
25019 add %l7, %o1, %o0, %tgd_add(foo)
25020 call __tls_get_addr, %tgd_call(foo)
25021 sethi %tldm_hi22(foo), %l1
25022 add %l1, %tldm_lo10(foo), %l2
25023 add %l7, %l2, %o0, %tldm_add(foo)
25024 call __tls_get_addr, %tldm_call(foo)
25025 sethi %tldo_hix22(foo), %l3
25026 xor %l3, %tldo_lox10(foo), %l4
25027 add %o0, %l4, %l5, %tldo_add(foo)
25028 sethi %tie_hi22(foo), %o3
25029 add %o3, %tie_lo10(foo), %o3
25030 ld [%l7 + %o3], %o2, %tie_ld(foo)
25031 add %g7, %o2, %o4, %tie_add(foo)
25032 sethi %tle_hix22(foo), %l1
25033 xor %l1, %tle_lox10(foo), %o5
25034 ld [%g7 + %o5], %o1"
25038 .section ".tdata","awT",@progbits
25041 addli r0, zero, tls_gd(foo)
25042 auli r0, zero, tls_gd_ha16(foo)
25043 addli r0, r0, tls_gd_lo16(foo)
25045 addli r0, zero, tls_ie(foo)
25046 auli r0, r0, tls_ie_ha16(foo)
25047 addli r0, r0, tls_ie_lo16(foo)'
25050 tls_as_opt
="--fatal-warnings"
25054 .section ".tdata","awT",@progbits
25057 shl16insli r0, zero, hw0_last_tls_gd(foo)
25058 shl16insli r0, zero, hw1_last_tls_gd(foo)
25059 shl16insli r0, r0, hw0_tls_gd(foo)
25061 shl16insli r0, zero, hw1_last_tls_ie(foo)
25062 shl16insli r0, r0, hw0_tls_ie(foo)'
25065 tls_as_opt
="--fatal-warnings"
25069 .section ".tdata","awT",@progbits
25072 movi a8, foo@TLSFUNC
25073 movi a10, foo@TLSARG
25074 callx8.tls a8, foo@TLSCALL'
25080 if test "x$enable_tls" = xno
; then
25081 : # TLS explicitly disabled.
25082 elif test "x$enable_tls" = xyes
; then
25083 set_have_as_tls
=yes # TLS explicitly enabled.
25084 elif test -z "$tls_first_major"; then
25085 : # If we don't have a check, assume no support.
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25088 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25089 if ${gcc_cv_as_tls+:} false
; then :
25090 $as_echo_n "(cached) " >&6
25093 if test $in_tree_gas = yes; then
25094 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25095 then gcc_cv_as_tls
=yes
25097 elif test x
$gcc_cv_as != x
; then
25098 $as_echo "$conftest_s" > conftest.s
25099 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25101 (eval $ac_try) 2>&5
25103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25104 test $ac_status = 0; }; }
25108 echo "configure: failed program was" >&5
25111 rm -f conftest.o conftest.s
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25115 $as_echo "$gcc_cv_as_tls" >&6; }
25116 if test $gcc_cv_as_tls = yes; then
25117 set_have_as_tls
=yes
25121 if test $set_have_as_tls = yes ; then
25123 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25127 # Target-specific assembler checks.
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25130 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25131 gcc_cv_ld_static_dynamic
=no
25132 gcc_cv_ld_static_option
='-Bstatic'
25133 gcc_cv_ld_dynamic_option
='-Bdynamic'
25134 if test $in_tree_ld = yes ; then
25135 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
25136 gcc_cv_ld_static_dynamic
=yes
25138 elif test x
$gcc_cv_ld != x
; then
25139 # Check if linker supports -Bstatic/-Bdynamic option
25140 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25141 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25142 gcc_cv_ld_static_dynamic
=yes
25145 # AIX ld uses -b flags
25146 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25147 gcc_cv_ld_static_dynamic
=yes
25148 gcc_cv_ld_static_option
="-bstatic"
25149 gcc_cv_ld_dynamic_option
="-bdynamic"
25151 # HP-UX ld uses -a flags to select between shared and archive.
25153 if test x
"$gnu_ld" = xno
; then
25154 gcc_cv_ld_static_dynamic
=yes
25155 gcc_cv_ld_static_option
="-aarchive_shared"
25156 gcc_cv_ld_dynamic_option
="-adefault"
25159 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25161 gcc_cv_ld_static_dynamic
=yes
25166 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25168 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25171 cat >>confdefs.h
<<_ACEOF
25172 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25176 cat >>confdefs.h
<<_ACEOF
25177 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25182 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25185 $as_echo_n "checking linker --version-script option... " >&6; }
25186 gcc_cv_ld_version_script
=no
25187 ld_version_script_option
=''
25188 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25189 gcc_cv_ld_version_script
=yes
25190 ld_version_script_option
='--version-script'
25191 elif test x
$gcc_cv_ld != x
; then
25193 # Solaris 2 ld always supports -M. It also supports a subset of
25194 # --version-script since Solaris 11.4, but requires
25195 # -z gnu-version-script-compat to activate.
25197 gcc_cv_ld_version_script
=yes
25198 ld_version_script_option
='-M'
25202 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25204 $as_echo "$gcc_cv_ld_version_script" >&6; }
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25208 $as_echo_n "checking linker soname option... " >&6; }
25209 gcc_cv_ld_soname
=no
25210 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25211 gcc_cv_ld_soname
=yes
25212 ld_soname_option
='-soname'
25213 elif test x
$gcc_cv_ld != x
; then
25216 gcc_cv_ld_soname
=yes
25217 ld_soname_option
='-install_name'
25219 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25220 # ld compatiblity since some Solaris 10 update.
25222 gcc_cv_ld_soname
=yes
25223 ld_soname_option
='-h'
25227 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25229 $as_echo "$gcc_cv_ld_soname" >&6; }
25232 if test x
"$demangler_in_ld" = xyes
; then
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25234 $as_echo_n "checking linker --demangle support... " >&6; }
25235 gcc_cv_ld_demangle
=no
25236 if test $in_tree_ld = yes; then
25237 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 \
25238 gcc_cv_ld_demangle
=yes
25240 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
25241 # Check if the GNU linker supports --demangle option
25242 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
25243 gcc_cv_ld_demangle
=yes
25246 if test x
"$gcc_cv_ld_demangle" = xyes
; then
25248 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25252 $as_echo "$gcc_cv_ld_demangle" >&6; }
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25256 $as_echo_n "checking linker plugin support... " >&6; }
25257 gcc_cv_lto_plugin
=0
25258 if test -f liblto_plugin.la
; then
25259 save_ld_ver
="$ld_ver"
25260 save_ld_vers_major
="$ld_vers_major"
25261 save_ld_vers_minor
="$ld_vers_minor"
25262 save_ld_is_gold
="$ld_is_gold"
25266 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
25268 # FIXME: ld_is_gold?
25269 ld_vers_major
="$gcc_cv_gld_major_version"
25270 ld_vers_minor
="$gcc_cv_gld_minor_version"
25272 # Determine plugin linker version.
25273 # FIXME: Partial duplicate from above, generalize.
25274 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25275 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25276 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
25278 ld_vers
=`echo $ld_ver | sed -n \
25279 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25281 ld_vers
=`echo $ld_ver | sed -n \
25282 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25284 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25285 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25289 # Determine plugin support.
25290 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25291 # Require GNU ld or gold 2.21+ for plugin support by default.
25292 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25293 gcc_cv_lto_plugin
=2
25294 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25295 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25296 gcc_cv_lto_plugin
=1
25300 ld_ver
="$save_ld_ver"
25301 ld_vers_major
="$save_ld_vers_major"
25302 ld_vers_minor
="$save_ld_vers_minor"
25303 ld_is_gold
="$save_ld_is_gold"
25306 cat >>confdefs.h
<<_ACEOF
25307 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25311 $as_echo "$gcc_cv_lto_plugin" >&6; }
25313 # Target OS-specific assembler checks.
25315 case "$target_os" in
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25318 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25319 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
25320 $as_echo_n "(cached) " >&6
25322 gcc_cv_as_mmacosx_version_min
=no
25323 if test x
$gcc_cv_as != x
; then
25324 $as_echo '.text' > conftest.s
25325 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25327 (eval $ac_try) 2>&5
25329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25330 test $ac_status = 0; }; }
25332 gcc_cv_as_mmacosx_version_min
=yes
25334 echo "configure: failed program was" >&5
25337 rm -f conftest.o conftest.s
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25341 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25342 if test $gcc_cv_as_mmacosx_version_min = yes; then
25344 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25351 # Target CPU-specific assembler checks.
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25356 $as_echo_n "checking assembler for -mabi option... " >&6; }
25357 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
25358 $as_echo_n "(cached) " >&6
25360 gcc_cv_as_aarch64_mabi
=no
25361 if test x
$gcc_cv_as != x
; then
25362 $as_echo '.text' > conftest.s
25363 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25365 (eval $ac_try) 2>&5
25367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25368 test $ac_status = 0; }; }
25370 gcc_cv_as_aarch64_mabi
=yes
25372 echo "configure: failed program was" >&5
25375 rm -f conftest.o conftest.s
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25379 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25382 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
25384 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25387 if test x
$with_abi = xilp32
; then
25388 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25389 Upgrade the Assembler." "$LINENO" 5
25391 if test x
"$with_multilib_list" = xdefault
; then
25392 TM_MULTILIB_CONFIG
=lp64
25394 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
25395 for aarch64_multilib
in ${aarch64_multilibs}; do
25396 case ${aarch64_multilib} in
25398 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25399 Upgrade the Assembler." "$LINENO" 5
25407 # Check if we have binutils support for relocations types needed by -fpic
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25409 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25410 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
25411 $as_echo_n "(cached) " >&6
25413 gcc_cv_as_aarch64_picreloc
=no
25414 if test x
$gcc_cv_as != x
; then
25417 ldr x0, [x2, #:gotpage_lo15:globalsym]
25419 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25421 (eval $ac_try) 2>&5
25423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25424 test $ac_status = 0; }; }
25426 gcc_cv_as_aarch64_picreloc
=yes
25428 echo "configure: failed program was" >&5
25431 rm -f conftest.o conftest.s
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25435 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25436 if test $gcc_cv_as_aarch64_picreloc = yes; then
25438 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25442 # Enable Branch Target Identification Mechanism and Return Address
25443 # Signing by default.
25444 # Check whether --enable-standard-branch-protection was given.
25445 if test "${enable_standard_branch_protection+set}" = set; then :
25446 enableval
=$enable_standard_branch_protection;
25449 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25454 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
25455 Valid choices are 'yes' and 'no'." "$LINENO" 5
25461 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25462 # Check whether --enable-fix-cortex-a53-835769 was given.
25463 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25464 enableval
=$enable_fix_cortex_a53_835769;
25467 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25472 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25473 Valid choices are 'yes' and 'no'." "$LINENO" 5
25480 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25481 # Check whether --enable-fix-cortex-a53-843419 was given.
25482 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25483 enableval
=$enable_fix_cortex_a53_843419;
25486 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25491 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25492 Valid choices are 'yes' and 'no'." "$LINENO" 5
25501 # All TARGET_ABI_OSF targets.
25502 alpha
*-*-linux* | alpha
*-*-*bsd
*)
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25504 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25505 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
25506 $as_echo_n "(cached) " >&6
25508 gcc_cv_as_alpha_explicit_relocs
=no
25509 if test $in_tree_gas = yes; then
25510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25511 then gcc_cv_as_alpha_explicit_relocs
=yes
25513 elif test x
$gcc_cv_as != x
; then
25514 $as_echo ' .set nomacro
25516 extbl $3, $2, $3 !lituse_bytoff!1
25517 ldq $2, a($29) !literal!1
25518 ldq $4, b($29) !literal!2
25519 ldq_u $3, 0($2) !lituse_base!1
25520 ldq $27, f($29) !literal!5
25521 jsr $26, ($27), f !lituse_jsr!5
25522 ldah $29, 0($26) !gpdisp!3
25523 lda $0, c($29) !gprel
25524 ldah $1, d($29) !gprelhigh
25525 lda $1, d($1) !gprellow
25526 lda $29, 0($29) !gpdisp!3' > conftest.s
25527 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25529 (eval $ac_try) 2>&5
25531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25532 test $ac_status = 0; }; }
25534 gcc_cv_as_alpha_explicit_relocs
=yes
25536 echo "configure: failed program was" >&5
25539 rm -f conftest.o conftest.s
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25543 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25544 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25546 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25551 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25552 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
25553 $as_echo_n "(cached) " >&6
25555 gcc_cv_as_alpha_jsrdirect_relocs
=no
25556 if test $in_tree_gas = yes; then
25557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25558 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
25560 elif test x
$gcc_cv_as != x
; then
25561 $as_echo ' .set nomacro
25563 ldq $27, a($29) !literal!1
25564 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25567 (eval $ac_try) 2>&5
25569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25570 test $ac_status = 0; }; }
25572 gcc_cv_as_alpha_jsrdirect_relocs
=yes
25574 echo "configure: failed program was" >&5
25577 rm -f conftest.o conftest.s
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25581 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25582 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25584 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25592 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25593 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
25594 $as_echo_n "(cached) " >&6
25596 gcc_cv_as_avr_mlink_relax
=no
25597 if test x
$gcc_cv_as != x
; then
25598 $as_echo '.text' > conftest.s
25599 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25601 (eval $ac_try) 2>&5
25603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25604 test $ac_status = 0; }; }
25606 gcc_cv_as_avr_mlink_relax
=yes
25608 echo "configure: failed program was" >&5
25611 rm -f conftest.o conftest.s
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25615 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25616 if test $gcc_cv_as_avr_mlink_relax = yes; then
25618 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25624 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25625 if ${gcc_cv_as_avr_mrmw+:} false
; then :
25626 $as_echo_n "(cached) " >&6
25628 gcc_cv_as_avr_mrmw
=no
25629 if test x
$gcc_cv_as != x
; then
25630 $as_echo '.text' > conftest.s
25631 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25633 (eval $ac_try) 2>&5
25635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25636 test $ac_status = 0; }; }
25638 gcc_cv_as_avr_mrmw
=yes
25640 echo "configure: failed program was" >&5
25643 rm -f conftest.o conftest.s
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25647 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25648 if test $gcc_cv_as_avr_mrmw = yes; then
25650 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25656 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25657 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
25658 $as_echo_n "(cached) " >&6
25660 gcc_cv_as_avr_mgccisr
=no
25661 if test x
$gcc_cv_as != x
; then
25667 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25669 (eval $ac_try) 2>&5
25671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25672 test $ac_status = 0; }; }
25674 gcc_cv_as_avr_mgccisr
=yes
25676 echo "configure: failed program was" >&5
25679 rm -f conftest.o conftest.s
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25683 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25684 if test $gcc_cv_as_avr_mgccisr = yes; then
25686 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25691 # Check how default linker description file implements .rodata for
25692 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25693 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25695 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25696 cat > conftest.s
<<EOF
25697 .section .rodata,"a",@progbits
25699 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25704 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25706 (eval $ac_try) 2>&5
25708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25709 test $ac_status = 0; }; }
25710 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25712 (eval $ac_try) 2>&5
25714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25715 test $ac_status = 0; }; }
25716 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
25717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25718 (eval $ac_try) 2>&5
25720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25721 test $ac_status = 0; }; }
25722 if test -s conftest.nm
25724 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25726 $as_echo "yes" >&6; }
25728 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25732 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25733 echo "$as_me: nm output was" >&5
25734 cat conftest.nm
>&5
25735 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25736 { $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
25737 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25741 $as_echo "test failed" >&6; }
25742 echo "$as_me: failed program was" >&5
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25745 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25747 rm -f conftest.s conftest.o conftest.elf conftest.nm
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25752 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25753 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
25754 $as_echo_n "(cached) " >&6
25756 gcc_cv_as_cris_no_mul_bug
=no
25757 if test $in_tree_gas = yes; then
25758 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25759 then gcc_cv_as_cris_no_mul_bug
=yes
25761 elif test x
$gcc_cv_as != x
; then
25762 $as_echo '.text' > conftest.s
25763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25765 (eval $ac_try) 2>&5
25767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25768 test $ac_status = 0; }; }
25770 gcc_cv_as_cris_no_mul_bug
=yes
25772 echo "configure: failed program was" >&5
25775 rm -f conftest.o conftest.s
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25779 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25780 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25782 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25790 $as_echo_n "checking assembler for -relax option... " >&6; }
25791 if ${gcc_cv_as_sparc_relax+:} false
; then :
25792 $as_echo_n "(cached) " >&6
25794 gcc_cv_as_sparc_relax
=no
25795 if test x
$gcc_cv_as != x
; then
25796 $as_echo '.text' > conftest.s
25797 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25799 (eval $ac_try) 2>&5
25801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25802 test $ac_status = 0; }; }
25804 gcc_cv_as_sparc_relax
=yes
25806 echo "configure: failed program was" >&5
25809 rm -f conftest.o conftest.s
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25813 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25814 if test $gcc_cv_as_sparc_relax = yes; then
25816 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25822 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25823 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
25824 $as_echo_n "(cached) " >&6
25826 gcc_cv_as_sparc_gotdata_op
=no
25827 if test x
$gcc_cv_as != x
; then
25833 sethi %gdop_hix22(foo), %g1
25834 xor %g1, %gdop_lox10(foo), %g1
25835 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25836 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25838 (eval $ac_try) 2>&5
25840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25841 test $ac_status = 0; }; }
25843 if test x
$gcc_cv_ld != x \
25844 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25845 if test x
$gcc_cv_objdump != x
; then
25846 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25847 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25848 gcc_cv_as_sparc_gotdata_op
=no
25850 gcc_cv_as_sparc_gotdata_op
=yes
25856 echo "configure: failed program was" >&5
25859 rm -f conftest.o conftest.s
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25863 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25864 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25866 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25872 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25873 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
25874 $as_echo_n "(cached) " >&6
25876 gcc_cv_as_sparc_ua_pcrel
=no
25877 if test x
$gcc_cv_as != x
; then
25884 .uaword %r_disp32(foo)' > conftest.s
25885 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25887 (eval $ac_try) 2>&5
25889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25890 test $ac_status = 0; }; }
25892 if test x
$gcc_cv_ld != x \
25893 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25894 gcc_cv_as_sparc_ua_pcrel
=yes
25898 echo "configure: failed program was" >&5
25901 rm -f conftest.o conftest.s
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25905 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25906 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25908 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25912 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25913 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
25914 $as_echo_n "(cached) " >&6
25916 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25917 if test x
$gcc_cv_as != x
; then
25921 .uaword %r_disp32(foo)
25922 .byte 0x32, 0x33, 0x34
25926 .skip 4' > conftest.s
25927 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25929 (eval $ac_try) 2>&5
25931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25932 test $ac_status = 0; }; }
25934 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25935 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25936 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25937 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25938 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25939 |
grep 'DISP32' > /dev
/null
2>&1; then
25942 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25947 echo "configure: failed program was" >&5
25950 rm -f conftest.o conftest.s
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25954 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25955 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25957 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25963 # unaligned pcrel relocs
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25966 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25967 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
25968 $as_echo_n "(cached) " >&6
25970 gcc_cv_as_sparc_offsetable_lo10
=no
25971 if test x
$gcc_cv_as != x
; then
25973 or %g1, %lo(ab) + 12, %g1
25974 or %g1, %lo(ab + 12), %g1' > conftest.s
25975 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25977 (eval $ac_try) 2>&5
25979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25980 test $ac_status = 0; }; }
25982 if test x
$gcc_cv_objdump != x \
25983 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25984 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25985 gcc_cv_as_sparc_offsetable_lo10
=yes
25988 echo "configure: failed program was" >&5
25991 rm -f conftest.o conftest.s
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25995 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25996 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25998 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26004 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26005 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26006 $as_echo_n "(cached) " >&6
26008 gcc_cv_as_sparc_fmaf
=no
26009 if test x
$gcc_cv_as != x
; then
26011 .register %g2, #scratch
26012 .register %g3, #scratch
26014 fmaddd %f0, %f2, %f4, %f6
26015 addxccc %g1, %g2, %g3
26016 fsrl32 %f2, %f4, %f8
26017 fnaddd %f10, %f12, %f14' > conftest.s
26018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26020 (eval $ac_try) 2>&5
26022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26023 test $ac_status = 0; }; }
26025 gcc_cv_as_sparc_fmaf
=yes
26027 echo "configure: failed program was" >&5
26030 rm -f conftest.o conftest.s
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26034 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26035 if test $gcc_cv_as_sparc_fmaf = yes; then
26037 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26043 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26044 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26045 $as_echo_n "(cached) " >&6
26047 gcc_cv_as_sparc_sparc4
=no
26048 if test x
$gcc_cv_as != x
; then
26050 .register %g2, #scratch
26051 .register %g3, #scratch
26054 1: cwbneg %g2, %g3, 1f
26057 aes_kexpand0 %f4, %f6, %f8
26058 des_round %f38, %f40, %f42, %f44
26059 camellia_f %f54, %f56, %f58, %f60
26060 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26061 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26063 (eval $ac_try) 2>&5
26065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26066 test $ac_status = 0; }; }
26068 gcc_cv_as_sparc_sparc4
=yes
26070 echo "configure: failed program was" >&5
26073 rm -f conftest.o conftest.s
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26077 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26078 if test $gcc_cv_as_sparc_sparc4 = yes; then
26080 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26086 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26087 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26088 $as_echo_n "(cached) " >&6
26090 gcc_cv_as_sparc_sparc5
=no
26091 if test x
$gcc_cv_as != x
; then
26093 .register %g2, #scratch
26094 .register %g3, #scratch
26096 subxc %g1, %g2, %g3
26097 fpadd8 %f0, %f2, %f4' > conftest.s
26098 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26100 (eval $ac_try) 2>&5
26102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26103 test $ac_status = 0; }; }
26105 gcc_cv_as_sparc_sparc5
=yes
26107 echo "configure: failed program was" >&5
26110 rm -f conftest.o conftest.s
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26114 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26115 if test $gcc_cv_as_sparc_sparc5 = yes; then
26117 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26123 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26124 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26125 $as_echo_n "(cached) " >&6
26127 gcc_cv_as_sparc_sparc6
=no
26128 if test x
$gcc_cv_as != x
; then
26130 .register %g2, #scratch
26131 .register %g3, #scratch
26134 fpsll64x %f0, %f2, %f4' > conftest.s
26135 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26137 (eval $ac_try) 2>&5
26139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26140 test $ac_status = 0; }; }
26142 gcc_cv_as_sparc_sparc6
=yes
26144 echo "configure: failed program was" >&5
26147 rm -f conftest.o conftest.s
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26151 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26152 if test $gcc_cv_as_sparc_sparc6 = yes; then
26154 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26160 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26161 if ${gcc_cv_as_sparc_leon+:} false
; then :
26162 $as_echo_n "(cached) " >&6
26164 gcc_cv_as_sparc_leon
=no
26165 if test x
$gcc_cv_as != x
; then
26167 .register %g2, #scratch
26168 .register %g3, #scratch
26172 casa [%g2] 0xb, %g3, %g1' > conftest.s
26173 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26175 (eval $ac_try) 2>&5
26177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26178 test $ac_status = 0; }; }
26180 gcc_cv_as_sparc_leon
=yes
26182 echo "configure: failed program was" >&5
26185 rm -f conftest.o conftest.s
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26189 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26190 if test $gcc_cv_as_sparc_leon = yes; then
26192 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26198 i
[34567]86-*-* | x86_64-
*-*)
26201 # Full C++ conformance when using a shared libstdc++-v3 requires some
26202 # support from the Cygwin DLL, which in more recent versions exports
26203 # wrappers to aid in interposing and redirecting operators new, delete,
26204 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26205 # are configuring for a version of Cygwin that exports the wrappers.
26206 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26207 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26208 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26209 gcc_ac_cygwin_dll_wrappers
=yes
26211 gcc_ac_cygwin_dll_wrappers
=no
26215 # Can't check presence of libc functions during cross-compile, so
26216 # we just have to assume we're building for an up-to-date target.
26217 gcc_ac_cygwin_dll_wrappers
=yes
26220 cat >>confdefs.h
<<_ACEOF
26221 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26226 cygwin
* | pe | mingw32
*)
26227 # Recent binutils allows the three-operand form of ".comm" on PE. This
26228 # definition is used unconditionally to initialise the default state of
26229 # the target option variable that governs usage of the feature.
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26231 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26232 if ${gcc_cv_as_comm_has_align+:} false
; then :
26233 $as_echo_n "(cached) " >&6
26235 gcc_cv_as_comm_has_align
=no
26236 if test $in_tree_gas = yes; then
26237 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26238 then gcc_cv_as_comm_has_align
=yes
26240 elif test x
$gcc_cv_as != x
; then
26241 $as_echo '.comm foo,1,32' > conftest.s
26242 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26244 (eval $ac_try) 2>&5
26246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26247 test $ac_status = 0; }; }
26249 gcc_cv_as_comm_has_align
=yes
26251 echo "configure: failed program was" >&5
26254 rm -f conftest.o conftest.s
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26258 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26262 cat >>confdefs.h
<<_ACEOF
26263 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26266 # Used for DWARF 2 in PE
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26268 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26269 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
26270 $as_echo_n "(cached) " >&6
26272 gcc_cv_as_ix86_pe_secrel32
=no
26273 if test $in_tree_gas = yes; then
26274 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26275 then gcc_cv_as_ix86_pe_secrel32
=yes
26277 elif test x
$gcc_cv_as != x
; then
26281 .secrel32 foo' > conftest.s
26282 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26284 (eval $ac_try) 2>&5
26286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26287 test $ac_status = 0; }; }
26289 if test x
$gcc_cv_ld != x \
26290 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
26291 gcc_cv_as_ix86_pe_secrel32
=yes
26295 echo "configure: failed program was" >&5
26298 rm -f conftest.o conftest.s
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26302 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26303 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26305 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26309 # Test if the assembler supports the extended form of the .section
26310 # directive that specifies section alignment. LTO support uses this,
26311 # but normally only after installation, so we warn but don't fail the
26312 # configure if LTO is enabled but the assembler does not support it.
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26314 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26315 if ${gcc_cv_as_section_has_align+:} false
; then :
26316 $as_echo_n "(cached) " >&6
26318 gcc_cv_as_section_has_align
=no
26319 if test $in_tree_gas = yes; then
26320 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26321 then gcc_cv_as_section_has_align
=yes
26323 elif test x
$gcc_cv_as != x
; then
26324 $as_echo '.section lto_test,"dr0"' > conftest.s
26325 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26327 (eval $ac_try) 2>&5
26329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26330 test $ac_status = 0; }; }
26332 gcc_cv_as_section_has_align
=yes
26334 echo "configure: failed program was" >&5
26337 rm -f conftest.o conftest.s
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26341 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26344 if test x
$gcc_cv_as_section_has_align != xyes
; then
26345 case ",$enable_languages," in
26347 { $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
26348 $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;}
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26356 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26357 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
26358 $as_echo_n "(cached) " >&6
26360 gcc_cv_as_ix86_xbrace_comment
=no
26361 if test x
$gcc_cv_as != x
; then
26362 $as_echo '.text' > conftest.s
26363 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26365 (eval $ac_try) 2>&5
26367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26368 test $ac_status = 0; }; }
26370 gcc_cv_as_ix86_xbrace_comment
=yes
26372 echo "configure: failed program was" >&5
26375 rm -f conftest.o conftest.s
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26379 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26380 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26382 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26388 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26389 if ${gcc_cv_as_ix86_filds+:} false
; then :
26390 $as_echo_n "(cached) " >&6
26392 gcc_cv_as_ix86_filds
=no
26393 if test x
$gcc_cv_as != x
; then
26394 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26395 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397 (eval $ac_try) 2>&5
26399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400 test $ac_status = 0; }; }
26402 gcc_cv_as_ix86_filds
=yes
26404 echo "configure: failed program was" >&5
26407 rm -f conftest.o conftest.s
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26411 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26412 if test $gcc_cv_as_ix86_filds = yes; then
26414 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26420 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26421 if ${gcc_cv_as_ix86_fildq+:} false
; then :
26422 $as_echo_n "(cached) " >&6
26424 gcc_cv_as_ix86_fildq
=no
26425 if test x
$gcc_cv_as != x
; then
26426 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26427 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26429 (eval $ac_try) 2>&5
26431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26432 test $ac_status = 0; }; }
26434 gcc_cv_as_ix86_fildq
=yes
26436 echo "configure: failed program was" >&5
26439 rm -f conftest.o conftest.s
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26443 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26444 if test $gcc_cv_as_ix86_fildq = yes; then
26446 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26452 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26453 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
26454 $as_echo_n "(cached) " >&6
26456 gcc_cv_as_ix86_cmov_sun_syntax
=no
26457 if test x
$gcc_cv_as != x
; then
26458 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26459 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26461 (eval $ac_try) 2>&5
26463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26464 test $ac_status = 0; }; }
26466 gcc_cv_as_ix86_cmov_sun_syntax
=yes
26468 echo "configure: failed program was" >&5
26471 rm -f conftest.o conftest.s
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26475 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26476 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26478 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26484 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26485 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
26486 $as_echo_n "(cached) " >&6
26488 gcc_cv_as_ix86_ffreep
=no
26489 if test x
$gcc_cv_as != x
; then
26490 $as_echo 'ffreep %st(1)' > conftest.s
26491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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 gcc_cv_as_ix86_ffreep
=yes
26500 echo "configure: failed program was" >&5
26503 rm -f conftest.o conftest.s
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26507 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26508 if test $gcc_cv_as_ix86_ffreep = yes; then
26510 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26516 $as_echo_n "checking assembler for .quad directive... " >&6; }
26517 if ${gcc_cv_as_ix86_quad+:} false
; then :
26518 $as_echo_n "(cached) " >&6
26520 gcc_cv_as_ix86_quad
=no
26521 if test x
$gcc_cv_as != x
; then
26522 $as_echo '.quad 0' > conftest.s
26523 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26525 (eval $ac_try) 2>&5
26527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26528 test $ac_status = 0; }; }
26530 gcc_cv_as_ix86_quad
=yes
26532 echo "configure: failed program was" >&5
26535 rm -f conftest.o conftest.s
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26539 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26540 if test $gcc_cv_as_ix86_quad = yes; then
26542 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26548 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26549 if ${gcc_cv_as_ix86_sahf+:} false
; then :
26550 $as_echo_n "(cached) " >&6
26552 gcc_cv_as_ix86_sahf
=no
26553 if test x
$gcc_cv_as != x
; then
26556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26558 (eval $ac_try) 2>&5
26560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26561 test $ac_status = 0; }; }
26563 gcc_cv_as_ix86_sahf
=yes
26565 echo "configure: failed program was" >&5
26568 rm -f conftest.o conftest.s
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26572 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26573 if test $gcc_cv_as_ix86_sahf = yes; then
26575 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26581 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26582 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
26583 $as_echo_n "(cached) " >&6
26585 gcc_cv_as_ix86_interunit_movq
=no
26586 if test x
$gcc_cv_as != x
; then
26589 movq %rax, %xmm0' > conftest.s
26590 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26592 (eval $ac_try) 2>&5
26594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26595 test $ac_status = 0; }; }
26597 gcc_cv_as_ix86_interunit_movq
=yes
26599 echo "configure: failed program was" >&5
26602 rm -f conftest.o conftest.s
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26606 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26610 cat >>confdefs.h
<<_ACEOF
26611 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26616 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26617 if ${gcc_cv_as_ix86_hle+:} false
; then :
26618 $as_echo_n "(cached) " >&6
26620 gcc_cv_as_ix86_hle
=no
26621 if test x
$gcc_cv_as != x
; then
26622 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26623 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26625 (eval $ac_try) 2>&5
26627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26628 test $ac_status = 0; }; }
26630 gcc_cv_as_ix86_hle
=yes
26632 echo "configure: failed program was" >&5
26635 rm -f conftest.o conftest.s
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26639 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26640 if test $gcc_cv_as_ix86_hle = yes; then
26642 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26648 $as_echo_n "checking assembler for swap suffix... " >&6; }
26649 if ${gcc_cv_as_ix86_swap+:} false
; then :
26650 $as_echo_n "(cached) " >&6
26652 gcc_cv_as_ix86_swap
=no
26653 if test x
$gcc_cv_as != x
; then
26654 $as_echo 'movl.s %esp, %ebp' > conftest.s
26655 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26657 (eval $ac_try) 2>&5
26659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26660 test $ac_status = 0; }; }
26662 gcc_cv_as_ix86_swap
=yes
26664 echo "configure: failed program was" >&5
26667 rm -f conftest.o conftest.s
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26671 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26672 if test $gcc_cv_as_ix86_swap = yes; then
26674 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26680 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26681 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
26682 $as_echo_n "(cached) " >&6
26684 gcc_cv_as_ix86_diff_sect_delta
=no
26685 if test x
$gcc_cv_as != x
; then
26686 $as_echo '.section .rodata
26692 .L2: nop' > conftest.s
26693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26695 (eval $ac_try) 2>&5
26697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26698 test $ac_status = 0; }; }
26700 gcc_cv_as_ix86_diff_sect_delta
=yes
26702 echo "configure: failed program was" >&5
26705 rm -f conftest.o conftest.s
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26709 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26710 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26712 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26718 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26719 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
26720 $as_echo_n "(cached) " >&6
26722 gcc_cv_as_ix86_rep_lock_prefix
=no
26723 if test x
$gcc_cv_as != x
; then
26724 $as_echo 'rep movsl
26729 lock addl %edi, (%eax,%esi)
26730 lock orl $0, (%esp)' > conftest.s
26731 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26733 (eval $ac_try) 2>&5
26735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26736 test $ac_status = 0; }; }
26738 gcc_cv_as_ix86_rep_lock_prefix
=yes
26740 echo "configure: failed program was" >&5
26743 rm -f conftest.o conftest.s
26746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26747 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26748 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26750 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26756 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26757 if ${gcc_cv_as_ix86_ud2+:} false
; then :
26758 $as_echo_n "(cached) " >&6
26760 gcc_cv_as_ix86_ud2
=no
26761 if test x
$gcc_cv_as != x
; then
26762 $as_echo 'ud2' > conftest.s
26763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26765 (eval $ac_try) 2>&5
26767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26768 test $ac_status = 0; }; }
26770 gcc_cv_as_ix86_ud2
=yes
26772 echo "configure: failed program was" >&5
26775 rm -f conftest.o conftest.s
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26779 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26780 if test $gcc_cv_as_ix86_ud2 = yes; then
26782 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26787 # Enforce 32-bit output with gas and gld.
26788 if test x
$gas = xyes
; then
26789 as_ix86_gas_32_opt
="--32"
26791 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26792 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26793 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26795 ld_ix86_gld_32_opt
="-melf_i386"
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26800 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26801 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
26802 $as_echo_n "(cached) " >&6
26804 gcc_cv_as_ix86_tlsgdplt
=no
26805 if test x
$gcc_cv_as != x
; then
26806 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26807 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26809 (eval $ac_try) 2>&5
26811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26812 test $ac_status = 0; }; }
26814 if test x
$gcc_cv_ld != x \
26815 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26816 gcc_cv_as_ix86_tlsgdplt
=yes
26820 echo "configure: failed program was" >&5
26823 rm -f conftest.o conftest.s
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26827 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26828 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26830 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26836 .section .tdata,"aw'$tls_section_flag'",@progbits
26838 .section .text,"ax",@progbits
26839 call tls_ld@tlsldmplt'
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26842 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26843 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
26844 $as_echo_n "(cached) " >&6
26846 gcc_cv_as_ix86_tlsldmplt
=no
26847 if test x
$gcc_cv_as != x
; then
26848 $as_echo "$conftest_s" > conftest.s
26849 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26851 (eval $ac_try) 2>&5
26853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26854 test $ac_status = 0; }; }
26856 if test x
$gcc_cv_ld != x \
26857 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26858 gcc_cv_as_ix86_tlsldmplt
=yes
26862 echo "configure: failed program was" >&5
26865 rm -f conftest.o conftest.s
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26869 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26873 cat >>confdefs.h
<<_ACEOF
26874 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26879 .section .text,"ax",@progbits
26881 .type _start, @function
26883 leal value@tlsldm(%ebx), %eax
26884 call ___tls_get_addr@plt
26886 .section .tdata,"aw'$tls_section_flag'",@progbits
26887 .type value, @object
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26890 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26891 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
26892 $as_echo_n "(cached) " >&6
26894 gcc_cv_as_ix86_tlsldm
=no
26895 if test x
$gcc_cv_as != x
; then
26896 $as_echo "$conftest_s" > conftest.s
26897 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26899 (eval $ac_try) 2>&5
26901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26902 test $ac_status = 0; }; }
26904 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26905 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26906 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26907 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26908 gcc_cv_as_ix86_tlsldm
=yes
26913 echo "configure: failed program was" >&5
26916 rm -f conftest.o conftest.s
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26920 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26924 cat >>confdefs.h
<<_ACEOF
26925 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26939 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26940 if ${gcc_cv_as_ix86_got32x+:} false
; then :
26941 $as_echo_n "(cached) " >&6
26943 gcc_cv_as_ix86_got32x
=no
26944 if test x
$gcc_cv_as != x
; then
26945 $as_echo "$conftest_s" > conftest.s
26946 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26948 (eval $ac_try) 2>&5
26950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26951 test $ac_status = 0; }; }
26953 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26954 && test x
$gcc_cv_readelf != x \
26955 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26956 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26957 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26958 if $gcc_cv_objdump -dw conftest
2>&1 \
26959 |
grep 0xffffff > /dev
/null
2>&1; then
26960 gcc_cv_as_ix86_got32x
=no
26962 gcc_cv_as_ix86_got32x
=yes
26967 echo "configure: failed program was" >&5
26970 rm -f conftest.o conftest.s
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26974 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26978 cat >>confdefs.h
<<_ACEOF
26979 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26984 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26985 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
26986 $as_echo_n "(cached) " >&6
26988 gcc_cv_as_ix86_gotoff_in_data
=no
26989 if test $in_tree_gas = yes; then
26990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26991 then gcc_cv_as_ix86_gotoff_in_data
=yes
26993 elif test x
$gcc_cv_as != x
; then
26998 .long .L0@GOTOFF' > conftest.s
26999 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -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_ix86_gotoff_in_data
=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_ix86_gotoff_in_data" >&5
27015 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27019 cat >>confdefs.h
<<_ACEOF
27020 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27025 .section .text,"ax",@progbits
27027 .type _start, @function
27029 leal ld@tlsldm(%ecx), %eax
27030 call *___tls_get_addr@GOT(%ecx)
27031 leal gd@tlsgd(%ecx), %eax
27032 call *___tls_get_addr@GOT(%ecx)
27034 .section .tdata,"aw'$tls_section_flag'",@progbits
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27043 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27044 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27045 $as_echo_n "(cached) " >&6
27047 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27048 if test x
$gcc_cv_as != x
; then
27049 $as_echo "$conftest_s" > conftest.s
27050 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27052 (eval $ac_try) 2>&5
27054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27055 test $ac_status = 0; }; }
27057 if test x
$gcc_cv_ld != x \
27058 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27059 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27063 echo "configure: failed program was" >&5
27066 rm -f conftest.o conftest.s
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27070 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27074 cat >>confdefs.h
<<_ACEOF
27075 #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`
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27082 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27083 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27084 $as_echo_n "(cached) " >&6
27086 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27087 if test $in_tree_gas = yes; then
27088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27089 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27091 elif test x
$gcc_cv_as != x
; then
27093 addl r15 = @ltoffx(x#), gp
27095 ld8.mov r16 = [r15], x#
27097 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27099 (eval $ac_try) 2>&5
27101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27102 test $ac_status = 0; }; }
27104 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27106 echo "configure: failed program was" >&5
27109 rm -f conftest.o conftest.s
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27113 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27114 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27116 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27128 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27129 if ${gcc_cv_as_machine_directive+:} false
; then :
27130 $as_echo_n "(cached) " >&6
27132 gcc_cv_as_machine_directive
=no
27133 if test x
$gcc_cv_as != x
; then
27134 $as_echo ' .machine ppc7400' > conftest.s
27135 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27137 (eval $ac_try) 2>&5
27139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27140 test $ac_status = 0; }; }
27142 gcc_cv_as_machine_directive
=yes
27144 echo "configure: failed program was" >&5
27147 rm -f conftest.o conftest.s
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27151 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27154 if test x
$gcc_cv_as_machine_directive != xyes
; then
27155 echo "*** This target requires an assembler supporting \".machine\"" >&2
27156 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27157 test x
$build = x
$target && exit 1
27163 *-*-aix*) conftest_s
=' .machine "pwr5"
27166 *-*-darwin*) conftest_s
=' .text
27168 *) conftest_s
=' .machine power4
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27174 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27175 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27176 $as_echo_n "(cached) " >&6
27178 gcc_cv_as_powerpc_mfcrf
=no
27179 if test $in_tree_gas = yes; then
27180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27181 then gcc_cv_as_powerpc_mfcrf
=yes
27183 elif test x
$gcc_cv_as != x
; then
27184 $as_echo "$conftest_s" > conftest.s
27185 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27187 (eval $ac_try) 2>&5
27189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27190 test $ac_status = 0; }; }
27192 gcc_cv_as_powerpc_mfcrf
=yes
27194 echo "configure: failed program was" >&5
27197 rm -f conftest.o conftest.s
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27201 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27202 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27204 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27210 *-*-aix*) conftest_s
=' .csect .text[PR]
27212 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27216 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27217 *) conftest_s
=' .text
27219 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27223 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27224 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27225 $as_echo_n "(cached) " >&6
27227 gcc_cv_as_powerpc_rel16
=no
27228 if test $in_tree_gas = yes; then
27229 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27230 then gcc_cv_as_powerpc_rel16
=yes
27232 elif test x
$gcc_cv_as != x
; then
27233 $as_echo "$conftest_s" > conftest.s
27234 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27236 (eval $ac_try) 2>&5
27238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27239 test $ac_status = 0; }; }
27241 gcc_cv_as_powerpc_rel16
=yes
27243 echo "configure: failed program was" >&5
27246 rm -f conftest.o conftest.s
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27250 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27251 if test $gcc_cv_as_powerpc_rel16 = yes; then
27253 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27259 *-*-aix*) conftest_s
=' .machine "pwr7"
27262 *) conftest_s
=' .machine power7
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27268 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27269 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
27270 $as_echo_n "(cached) " >&6
27272 gcc_cv_as_powerpc_vsx
=no
27273 if test $in_tree_gas = yes; then
27274 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27275 then gcc_cv_as_powerpc_vsx
=yes
27277 elif test x
$gcc_cv_as != x
; then
27278 $as_echo "$conftest_s" > conftest.s
27279 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27281 (eval $ac_try) 2>&5
27283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27284 test $ac_status = 0; }; }
27286 gcc_cv_as_powerpc_vsx
=yes
27288 echo "configure: failed program was" >&5
27291 rm -f conftest.o conftest.s
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27295 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27296 if test $gcc_cv_as_powerpc_vsx = yes; then
27298 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27304 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27305 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
27306 $as_echo_n "(cached) " >&6
27308 gcc_cv_as_powerpc_gnu_attribute
=no
27309 if test $in_tree_gas = yes; then
27310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27311 then gcc_cv_as_powerpc_gnu_attribute
=yes
27313 elif test x
$gcc_cv_as != x
; then
27314 $as_echo '.gnu_attribute 4,1' > conftest.s
27315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27317 (eval $ac_try) 2>&5
27319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27320 test $ac_status = 0; }; }
27322 gcc_cv_as_powerpc_gnu_attribute
=yes
27324 echo "configure: failed program was" >&5
27327 rm -f conftest.o conftest.s
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27331 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27332 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27334 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27340 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27341 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
27342 $as_echo_n "(cached) " >&6
27344 gcc_cv_as_powerpc_entry_markers
=no
27345 if test $in_tree_gas = yes; then
27346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27347 then gcc_cv_as_powerpc_entry_markers
=yes
27349 elif test x
$gcc_cv_as != x
; then
27350 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27351 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27353 (eval $ac_try) 2>&5
27355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27356 test $ac_status = 0; }; }
27358 gcc_cv_as_powerpc_entry_markers
=yes
27360 echo "configure: failed program was" >&5
27363 rm -f conftest.o conftest.s
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27367 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27368 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27370 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27376 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27377 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
27378 $as_echo_n "(cached) " >&6
27380 gcc_cv_as_powerpc_pltseq_markers
=no
27381 if test $in_tree_gas = yes; then
27382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27383 then gcc_cv_as_powerpc_pltseq_markers
=yes
27385 elif test x
$gcc_cv_as != x
; then
27386 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27387 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27389 (eval $ac_try) 2>&5
27391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27392 test $ac_status = 0; }; }
27394 gcc_cv_as_powerpc_pltseq_markers
=yes
27396 echo "configure: failed program was" >&5
27399 rm -f conftest.o conftest.s
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27403 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27404 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27406 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27414 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27415 if ${gcc_cv_as_aix_ref+:} false
; then :
27416 $as_echo_n "(cached) " >&6
27418 gcc_cv_as_aix_ref
=no
27419 if test $in_tree_gas = yes; then
27420 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27421 then gcc_cv_as_aix_ref
=yes
27423 elif test x
$gcc_cv_as != x
; then
27424 $as_echo ' .csect stuff[rw]
27430 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27432 (eval $ac_try) 2>&5
27434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27435 test $ac_status = 0; }; }
27437 gcc_cv_as_aix_ref
=yes
27439 echo "configure: failed program was" >&5
27442 rm -f conftest.o conftest.s
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27446 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27447 if test $gcc_cv_as_aix_ref = yes; then
27449 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27455 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27456 if ${gcc_cv_as_aix_dwloc+:} false
; then :
27457 $as_echo_n "(cached) " >&6
27459 gcc_cv_as_aix_dwloc
=no
27460 if test $in_tree_gas = yes; then
27461 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27462 then gcc_cv_as_aix_dwloc
=yes
27464 elif test x
$gcc_cv_as != x
; then
27465 $as_echo ' .dwsect 0xA0000
27469 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27471 (eval $ac_try) 2>&5
27473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27474 test $ac_status = 0; }; }
27476 gcc_cv_as_aix_dwloc
=yes
27478 echo "configure: failed program was" >&5
27481 rm -f conftest.o conftest.s
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27485 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27486 if test $gcc_cv_as_aix_dwloc = yes; then
27488 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27498 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27499 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
27500 $as_echo_n "(cached) " >&6
27502 gcc_cv_as_mips_explicit_relocs
=no
27503 if test $in_tree_gas = yes; then
27504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27505 then gcc_cv_as_mips_explicit_relocs
=yes
27507 elif test x
$gcc_cv_as != x
; then
27508 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27509 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27511 (eval $ac_try) 2>&5
27513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27514 test $ac_status = 0; }; }
27516 gcc_cv_as_mips_explicit_relocs
=yes
27518 echo "configure: failed program was" >&5
27521 rm -f conftest.o conftest.s
27524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27525 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27526 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27527 if test x
$target_cpu_default = x
27528 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27529 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27535 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27536 if ${gcc_cv_as_mips_no_shared+:} false
; then :
27537 $as_echo_n "(cached) " >&6
27539 gcc_cv_as_mips_no_shared
=no
27540 if test $in_tree_gas = yes; then
27541 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27542 then gcc_cv_as_mips_no_shared
=yes
27544 elif test x
$gcc_cv_as != x
; then
27545 $as_echo 'nop' > conftest.s
27546 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27548 (eval $ac_try) 2>&5
27550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27551 test $ac_status = 0; }; }
27553 gcc_cv_as_mips_no_shared
=yes
27555 echo "configure: failed program was" >&5
27558 rm -f conftest.o conftest.s
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27562 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27563 if test $gcc_cv_as_mips_no_shared = yes; then
27565 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27571 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27572 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
27573 $as_echo_n "(cached) " >&6
27575 gcc_cv_as_mips_gnu_attribute
=no
27576 if test $in_tree_gas = yes; then
27577 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27578 then gcc_cv_as_mips_gnu_attribute
=yes
27580 elif test x
$gcc_cv_as != x
; then
27581 $as_echo '.gnu_attribute 4,1' > conftest.s
27582 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27584 (eval $ac_try) 2>&5
27586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27587 test $ac_status = 0; }; }
27589 gcc_cv_as_mips_gnu_attribute
=yes
27591 echo "configure: failed program was" >&5
27594 rm -f conftest.o conftest.s
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27598 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27599 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27601 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27607 $as_echo_n "checking assembler for .module support... " >&6; }
27608 if ${gcc_cv_as_mips_dot_module+:} false
; then :
27609 $as_echo_n "(cached) " >&6
27611 gcc_cv_as_mips_dot_module
=no
27612 if test x
$gcc_cv_as != x
; then
27613 $as_echo '.module mips2
27614 .module fp=xx' > conftest.s
27615 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27617 (eval $ac_try) 2>&5
27619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27620 test $ac_status = 0; }; }
27622 gcc_cv_as_mips_dot_module
=yes
27624 echo "configure: failed program was" >&5
27627 rm -f conftest.o conftest.s
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27631 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27632 if test $gcc_cv_as_mips_dot_module = yes; then
27634 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27638 if test x
$gcc_cv_as_mips_dot_module = xno \
27639 && test x
$with_fp_32 != x
; then
27640 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27644 $as_echo_n "checking assembler for .micromips support... " >&6; }
27645 if ${gcc_cv_as_micromips_support+:} false
; then :
27646 $as_echo_n "(cached) " >&6
27648 gcc_cv_as_micromips_support
=no
27649 if test x
$gcc_cv_as != x
; then
27650 $as_echo '.set micromips' > conftest.s
27651 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27653 (eval $ac_try) 2>&5
27655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27656 test $ac_status = 0; }; }
27658 gcc_cv_as_micromips_support
=yes
27660 echo "configure: failed program was" >&5
27663 rm -f conftest.o conftest.s
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27667 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27668 if test $gcc_cv_as_micromips_support = yes; then
27670 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27676 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27677 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
27678 $as_echo_n "(cached) " >&6
27680 gcc_cv_as_mips_dtprelword
=no
27681 if test $in_tree_gas = yes; then
27682 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27683 then gcc_cv_as_mips_dtprelword
=yes
27685 elif test x
$gcc_cv_as != x
; then
27686 $as_echo '.section .tdata,"awT",@progbits
27690 .dtprelword x+0x8000' > conftest.s
27691 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27693 (eval $ac_try) 2>&5
27695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27696 test $ac_status = 0; }; }
27698 gcc_cv_as_mips_dtprelword
=yes
27700 echo "configure: failed program was" >&5
27703 rm -f conftest.o conftest.s
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27707 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27708 if test $gcc_cv_as_mips_dtprelword = yes; then
27710 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27716 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27717 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
27718 $as_echo_n "(cached) " >&6
27720 gcc_cv_as_mips_dspr1_mult
=no
27721 if test x
$gcc_cv_as != x
; then
27722 $as_echo ' .set mips32r2
27730 multu $ac3,$4,$5' > conftest.s
27731 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27733 (eval $ac_try) 2>&5
27735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27736 test $ac_status = 0; }; }
27738 gcc_cv_as_mips_dspr1_mult
=yes
27740 echo "configure: failed program was" >&5
27743 rm -f conftest.o conftest.s
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27747 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27748 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27750 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27756 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27757 gcc_cv_as_ld_jalr_reloc
=no
27758 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27759 if test $in_tree_ld = yes ; then
27760 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 \
27761 && test $in_tree_ld_is_elf = yes; then
27762 gcc_cv_as_ld_jalr_reloc
=yes
27764 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27765 echo ' .ent x' > conftest.s
27766 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27767 echo ' lw $25,%call16(y)($28)' >> conftest.s
27768 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27769 echo '1: jalr $25' >> conftest.s
27770 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27771 echo '1: jalr $25' >> conftest.s
27772 echo ' .end x' >> conftest.s
27773 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27774 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27775 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27776 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27777 gcc_cv_as_ld_jalr_reloc
=yes
27783 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27784 if test x
$target_cpu_default = x
; then
27785 target_cpu_default
=MASK_RELAX_PIC_CALLS
27787 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27791 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27794 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27795 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
27796 $as_echo_n "(cached) " >&6
27798 gcc_cv_ld_mips_personality_relaxation
=no
27799 if test $in_tree_ld = yes ; then
27800 if test "$gcc_cv_gld_major_version" -eq 2 \
27801 -a "$gcc_cv_gld_minor_version" -ge 21 \
27802 -o "$gcc_cv_gld_major_version" -gt 2; then
27803 gcc_cv_ld_mips_personality_relaxation
=yes
27805 elif test x
$gcc_cv_as != x \
27806 -a x
$gcc_cv_ld != x \
27807 -a x
$gcc_cv_readelf != x
; then
27808 cat > conftest.s
<<EOF
27810 .cfi_personality 0x80,indirect_ptr
27817 .section .data,"aw",@progbits
27821 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27822 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27823 if $gcc_cv_readelf -d conftest
2>&1 \
27824 |
grep TEXTREL
> /dev
/null
2>&1; then
27826 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27827 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27830 gcc_cv_ld_mips_personality_relaxation
=yes
27834 rm -f conftest.s conftest.o conftest
27836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27837 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27838 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27840 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27845 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27846 if ${gcc_cv_as_mips_nan+:} false
; then :
27847 $as_echo_n "(cached) " >&6
27849 gcc_cv_as_mips_nan
=no
27850 if test x
$gcc_cv_as != x
; then
27851 $as_echo '' > conftest.s
27852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27854 (eval $ac_try) 2>&5
27856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27857 test $ac_status = 0; }; }
27859 gcc_cv_as_mips_nan
=yes
27861 echo "configure: failed program was" >&5
27864 rm -f conftest.o conftest.s
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27868 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27869 if test $gcc_cv_as_mips_nan = yes; then
27871 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27875 if test x
$gcc_cv_as_mips_nan = xno \
27876 && test x
$with_nan != x
; then
27877 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27881 # Earlier GAS versions generically support .gnu_attribute, but the
27882 # msp430 assembler will not do anything with it.
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27884 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27885 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
27886 $as_echo_n "(cached) " >&6
27888 gcc_cv_as_msp430_gnu_attribute
=no
27889 if test $in_tree_gas = yes; then
27890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27891 then gcc_cv_as_msp430_gnu_attribute
=yes
27893 elif test x
$gcc_cv_as != x
; then
27894 $as_echo '.gnu_attribute 4,1' > conftest.s
27895 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27897 (eval $ac_try) 2>&5
27899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27900 test $ac_status = 0; }; }
27902 gcc_cv_as_msp430_gnu_attribute
=yes
27904 echo "configure: failed program was" >&5
27907 rm -f conftest.o conftest.s
27910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27911 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27912 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27914 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27919 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27920 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
27921 $as_echo_n "(cached) " >&6
27923 gcc_cv_as_msp430_mspabi_attribute
=no
27924 if test $in_tree_gas = yes; then
27925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27926 then gcc_cv_as_msp430_mspabi_attribute
=yes
27928 elif test x
$gcc_cv_as != x
; then
27929 $as_echo '.mspabi_attribute 4,1' > conftest.s
27930 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27932 (eval $ac_try) 2>&5
27934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27935 test $ac_status = 0; }; }
27937 gcc_cv_as_msp430_mspabi_attribute
=yes
27939 echo "configure: failed program was" >&5
27942 rm -f conftest.o conftest.s
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
27946 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
27947 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
27949 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
27953 if test x
$enable_newlib_nano_formatted_io = xyes
; then
27955 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
27961 $as_echo_n "checking assembler for .attribute support... " >&6; }
27962 if ${gcc_cv_as_riscv_attribute+:} false
; then :
27963 $as_echo_n "(cached) " >&6
27965 gcc_cv_as_riscv_attribute
=no
27966 if test $in_tree_gas = yes; then
27967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
27968 then gcc_cv_as_riscv_attribute
=yes
27970 elif test x
$gcc_cv_as != x
; then
27971 $as_echo '.attribute stack_align,4' > conftest.s
27972 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27974 (eval $ac_try) 2>&5
27976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27977 test $ac_status = 0; }; }
27979 gcc_cv_as_riscv_attribute
=yes
27981 echo "configure: failed program was" >&5
27984 rm -f conftest.o conftest.s
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
27988 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
27989 if test $gcc_cv_as_riscv_attribute = yes; then
27991 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27998 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27999 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
28000 $as_echo_n "(cached) " >&6
28002 gcc_cv_as_s390_gnu_attribute
=no
28003 if test $in_tree_gas = yes; then
28004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28005 then gcc_cv_as_s390_gnu_attribute
=yes
28007 elif test x
$gcc_cv_as != x
; then
28008 $as_echo '.gnu_attribute 8,1' > conftest.s
28009 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28011 (eval $ac_try) 2>&5
28013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28014 test $ac_status = 0; }; }
28016 gcc_cv_as_s390_gnu_attribute
=yes
28018 echo "configure: failed program was" >&5
28021 rm -f conftest.o conftest.s
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28025 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28026 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28028 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28033 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28034 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
28035 $as_echo_n "(cached) " >&6
28037 gcc_cv_as_s390_machine_machinemode
=no
28038 if test $in_tree_gas = yes; then
28039 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28040 then gcc_cv_as_s390_machine_machinemode
=yes
28042 elif test x
$gcc_cv_as != x
; then
28043 $as_echo ' .machinemode push
28046 .machine pop' > conftest.s
28047 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28049 (eval $ac_try) 2>&5
28051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28052 test $ac_status = 0; }; }
28054 gcc_cv_as_s390_machine_machinemode
=yes
28056 echo "configure: failed program was" >&5
28059 rm -f conftest.o conftest.s
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28063 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28064 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28066 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28071 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28072 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
28073 $as_echo_n "(cached) " >&6
28075 gcc_cv_as_s390_architecture_modifiers
=no
28076 if test $in_tree_gas = yes; then
28077 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28078 then gcc_cv_as_s390_architecture_modifiers
=yes
28080 elif test x
$gcc_cv_as != x
; then
28081 $as_echo ' .machine z13+vx ' > conftest.s
28082 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28084 (eval $ac_try) 2>&5
28086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28087 test $ac_status = 0; }; }
28089 gcc_cv_as_s390_architecture_modifiers
=yes
28091 echo "configure: failed program was" >&5
28094 rm -f conftest.o conftest.s
28097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28098 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28099 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28101 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28106 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28107 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
28108 $as_echo_n "(cached) " >&6
28110 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
28111 if test $in_tree_gas = yes; then
28112 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28113 then gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28115 elif test x
$gcc_cv_as != x
; then
28116 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28119 (eval $ac_try) 2>&5
28121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28122 test $ac_status = 0; }; }
28124 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28126 echo "configure: failed program was" >&5
28129 rm -f conftest.o conftest.s
28132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28133 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28134 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28136 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28144 # Mips and HP-UX need the GNU assembler.
28145 # Linux on IA64 might be able to use the Intel assembler.
28148 mips
*-*-* |
*-*-hpux* )
28149 if test x
$gas_flag = xyes \
28150 ||
test x
"$host" != x
"$build" \
28151 ||
test ! -x "$gcc_cv_as" \
28152 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
28155 echo "*** This configuration requires the GNU assembler" >&2
28161 # ??? Not all targets support dwarf2 debug_line, even within a version
28162 # of gas. Moreover, we need to emit a valid instruction to trigger any
28163 # info to the output file. So, as supported targets are added to gas 2.11,
28164 # add some instruction here to (also) show we expect this might work.
28165 # ??? Once 2.11 is released, probably need to add first known working
28166 # version to the per-target configury.
28167 case "$cpu_type" in
28168 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28169 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28170 | tilegx | tilepro | visium | xstormy16 | xtensa
)
28180 if test x
"$insn" != x
; then
28182 .file 1 \"conftest.s\"
28185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28186 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28187 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
28188 $as_echo_n "(cached) " >&6
28190 gcc_cv_as_dwarf2_debug_line
=no
28191 if test $in_tree_gas = yes; then
28192 if test $in_tree_gas_is_elf = yes \
28193 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28194 then gcc_cv_as_dwarf2_debug_line
=yes
28196 elif test x
$gcc_cv_as != x
; then
28197 $as_echo "$conftest_s" > conftest.s
28198 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28200 (eval $ac_try) 2>&5
28202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28203 test $ac_status = 0; }; }
28205 if test x
$gcc_cv_objdump != x \
28206 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
28207 |
grep debug_line
> /dev
/null
2>&1; then
28208 gcc_cv_as_dwarf2_debug_line
=yes
28209 elif test x
$gcc_cv_otool != x \
28210 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
28211 |
grep debug_line
> /dev
/null
2>&1; then
28212 gcc_cv_as_dwarf2_debug_line
=yes
28215 echo "configure: failed program was" >&5
28218 rm -f conftest.o conftest.s
28221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28222 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28226 # The .debug_line file table must be in the exact order that
28227 # we specified the files, since these indices are also used
28228 # by DW_AT_decl_file. Approximate this test by testing if
28229 # the assembler bitches if the same index is assigned twice.
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28231 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28232 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
28233 $as_echo_n "(cached) " >&6
28235 gcc_cv_as_dwarf2_file_buggy
=no
28236 if test x
$gcc_cv_as != x
; then
28237 $as_echo ' .file 1 "foo.s"
28238 .file 1 "bar.s"' > conftest.s
28239 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28241 (eval $ac_try) 2>&5
28243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28244 test $ac_status = 0; }; }
28246 gcc_cv_as_dwarf2_file_buggy
=yes
28248 echo "configure: failed program was" >&5
28251 rm -f conftest.o conftest.s
28254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28255 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28259 if test $gcc_cv_as_dwarf2_debug_line = yes \
28260 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
28262 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28265 if test $gcc_cv_as_leb128 = yes; then
28267 .file 1 \"conftest.s\"
28268 .loc 1 3 0 view .LVU1
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28275 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28276 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
28277 $as_echo_n "(cached) " >&6
28279 gcc_cv_as_dwarf2_debug_view
=no
28280 if test $in_tree_gas = yes; then
28281 if test $in_tree_gas_is_elf = yes \
28282 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28283 then gcc_cv_as_dwarf2_debug_view
=yes
28285 elif test x
$gcc_cv_as != x
; then
28286 $as_echo "$conftest_s" > conftest.s
28287 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28289 (eval $ac_try) 2>&5
28291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28292 test $ac_status = 0; }; }
28294 gcc_cv_as_dwarf2_debug_view
=yes
28296 echo "configure: failed program was" >&5
28299 rm -f conftest.o conftest.s
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28303 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28304 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28306 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28314 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28315 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
28316 $as_echo_n "(cached) " >&6
28318 gcc_cv_as_gdwarf2_flag
=no
28319 if test $in_tree_gas = yes; then
28320 if test $in_tree_gas_is_elf = yes \
28321 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28322 then gcc_cv_as_gdwarf2_flag
=yes
28324 elif test x
$gcc_cv_as != x
; then
28325 $as_echo "$insn" > conftest.s
28326 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28328 (eval $ac_try) 2>&5
28330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28331 test $ac_status = 0; }; }
28333 gcc_cv_as_gdwarf2_flag
=yes
28335 echo "configure: failed program was" >&5
28338 rm -f conftest.o conftest.s
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28342 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28343 if test $gcc_cv_as_gdwarf2_flag = yes; then
28345 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28351 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28352 if ${gcc_cv_as_gstabs_flag+:} false
; then :
28353 $as_echo_n "(cached) " >&6
28355 gcc_cv_as_gstabs_flag
=no
28356 if test $in_tree_gas = yes; then
28357 if test $in_tree_gas_is_elf = yes \
28358 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28359 then gcc_cv_as_gstabs_flag
=yes
28361 elif test x
$gcc_cv_as != x
; then
28362 $as_echo "$insn" > conftest.s
28363 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28365 (eval $ac_try) 2>&5
28367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28368 test $ac_status = 0; }; }
28370 gcc_cv_as_gstabs_flag
=yes
28372 echo "configure: failed program was" >&5
28375 rm -f conftest.o conftest.s
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28379 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28380 if test $gcc_cv_as_gstabs_flag = yes; then
28382 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28388 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28389 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
28390 $as_echo_n "(cached) " >&6
28392 gcc_cv_as_debug_prefix_map_flag
=no
28393 if test $in_tree_gas = yes; then
28394 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28395 then gcc_cv_as_debug_prefix_map_flag
=yes
28397 elif test x
$gcc_cv_as != x
; then
28398 $as_echo "$insn" > conftest.s
28399 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28401 (eval $ac_try) 2>&5
28403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28404 test $ac_status = 0; }; }
28406 gcc_cv_as_debug_prefix_map_flag
=yes
28408 echo "configure: failed program was" >&5
28411 rm -f conftest.o conftest.s
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28415 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28416 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28418 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28425 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28426 if ${gcc_cv_as_compress_debug+:} false
; then :
28427 $as_echo_n "(cached) " >&6
28429 gcc_cv_as_compress_debug
=no
28430 if test x
$gcc_cv_as != x
; then
28431 $as_echo '' > conftest.s
28432 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28434 (eval $ac_try) 2>&5
28436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28437 test $ac_status = 0; }; }
28439 # gas compiled without zlib cannot compress debug sections and warns
28440 # about it, but still exits successfully. So check for this, too.
28441 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
28443 gcc_cv_as_compress_debug
=0
28444 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28445 # defaulting to the ELF gABI format.
28446 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
28448 gcc_cv_as_compress_debug
=2
28449 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28450 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28451 # Before binutils 2.26, gas only supported --compress-debug-options and
28452 # emitted the traditional GNU format.
28453 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
28455 gcc_cv_as_compress_debug
=1
28456 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28457 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28459 gcc_cv_as_compress_debug
=0
28462 echo "configure: failed program was" >&5
28465 rm -f conftest.o conftest.s
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28469 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28473 cat >>confdefs.h
<<_ACEOF
28474 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28478 cat >>confdefs.h
<<_ACEOF
28479 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28483 cat >>confdefs.h
<<_ACEOF
28484 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28489 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28490 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
28491 $as_echo_n "(cached) " >&6
28493 gcc_cv_as_lcomm_with_alignment
=no
28494 if test x
$gcc_cv_as != x
; then
28495 $as_echo '.lcomm bar,4,16' > conftest.s
28496 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28498 (eval $ac_try) 2>&5
28500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28501 test $ac_status = 0; }; }
28503 gcc_cv_as_lcomm_with_alignment
=yes
28505 echo "configure: failed program was" >&5
28508 rm -f conftest.o conftest.s
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28512 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28513 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28515 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28520 if test x
$with_sysroot = x
&& test x
$host = x
$target \
28521 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28522 && test "$prefix" != "NONE"; then
28524 cat >>confdefs.h
<<_ACEOF
28525 #define PREFIX_INCLUDE_DIR "$prefix/include"
28530 # Determine the version of glibc, if any, used on the target.
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28532 $as_echo_n "checking for target glibc version... " >&6; }
28534 # Check whether --with-glibc-version was given.
28535 if test "${with_glibc_version+set}" = set; then :
28536 withval
=$with_glibc_version;
28537 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28538 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28539 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28541 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
28545 glibc_version_major
=0
28546 glibc_version_minor
=0
28547 if test -f $target_header_dir/features.h \
28548 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28549 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28550 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28551 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28556 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28558 cat >>confdefs.h
<<_ACEOF
28559 #define TARGET_GLIBC_MAJOR $glibc_version_major
28563 cat >>confdefs.h
<<_ACEOF
28564 #define TARGET_GLIBC_MINOR $glibc_version_minor
28568 # Check whether --enable-gnu-unique-object was given.
28569 if test "${enable_gnu_unique_object+set}" = set; then :
28570 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28572 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28573 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28577 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28578 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
28579 $as_echo_n "(cached) " >&6
28581 gcc_cv_as_gnu_unique_object
=no
28582 if test $in_tree_gas = yes; then
28583 if test $in_tree_gas_is_elf = yes \
28584 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28585 then gcc_cv_as_gnu_unique_object
=yes
28587 elif test x
$gcc_cv_as != x
; then
28588 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28589 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28591 (eval $ac_try) 2>&5
28593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28594 test $ac_status = 0; }; }
28596 gcc_cv_as_gnu_unique_object
=yes
28598 echo "configure: failed program was" >&5
28601 rm -f conftest.o conftest.s
28604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28605 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28606 if test $gcc_cv_as_gnu_unique_object = yes; then
28607 # We need to unquote above to to use the definition from config.gcc.
28608 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28610 if test $glibc_version_major -gt 2 \
28611 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28612 enable_gnu_unique_object
=yes
28619 if test x
$enable_gnu_unique_object = xyes
; then
28621 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28626 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28627 if ${gcc_cv_as_line_zero+:} false
; then :
28628 $as_echo_n "(cached) " >&6
28630 gcc_cv_as_line_zero
=no
28631 if test $in_tree_gas = yes; then
28632 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28633 then gcc_cv_as_line_zero
=yes
28635 elif test "x$gcc_cv_as" != x
; then
28636 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28637 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28639 (eval $ac_try) 2>&5
28641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28642 test $ac_status = 0; }; } &&
28643 test "x`cat conftest.out`" = x
28645 gcc_cv_as_line_zero
=yes
28647 echo "configure: failed program was" >&5
28649 echo "configure: error output was" >&5
28650 cat conftest.out
>&5
28652 rm -f conftest.o conftest.s conftest.out
28655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28656 $as_echo "$gcc_cv_as_line_zero" >&6; }
28657 if test "x$gcc_cv_as_line_zero" = xyes
; then
28659 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28664 $as_echo_n "checking support for thin archives... " >&6; }
28665 thin_archive_support
=no
28666 echo 'int main (void) { return 0; }' > conftest.c
28667 if ($AR --version |
sed 1q |
grep "GNU ar" \
28668 && $CC $CFLAGS -c conftest.c \
28669 && $AR rcT conftest.a conftest.o \
28670 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
28671 thin_archive_support
=yes
28673 rm -f conftest.c conftest.o conftest.a conftest
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28675 $as_echo "$thin_archive_support" >&6; }
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28679 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28680 gcc_cv_ld_eh_frame_hdr
=no
28681 if test $in_tree_ld = yes ; then
28682 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 \
28683 && test $in_tree_ld_is_elf = yes; then
28684 gcc_cv_ld_eh_frame_hdr
=yes
28686 elif test x
$gcc_cv_ld != x
; then
28687 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28688 # Check if linker supports --eh-frame-hdr option
28689 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
28690 gcc_cv_ld_eh_frame_hdr
=yes
28695 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28696 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28697 gcc_cv_ld_eh_frame_hdr
=yes
28704 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28706 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28710 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28713 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28714 gcc_cv_ld_eh_frame_ciev3
=no
28715 if test $in_tree_ld = yes ; then
28716 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 \
28717 && test $in_tree_ld_is_elf = yes; then
28718 gcc_cv_ld_eh_frame_ciev3
=yes
28720 elif test x
$gcc_cv_ld != x
; then
28721 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28722 gcc_cv_ld_eh_frame_ciev3
=yes
28723 if test 0"$ld_date" -lt 20040513; then
28724 if test -n "$ld_date"; then
28725 # If there was date string, but was earlier than 2004-05-13, fail
28726 gcc_cv_ld_eh_frame_ciev3
=no
28727 elif test "$ld_vers_major" -lt 2; then
28728 gcc_cv_ld_eh_frame_ciev3
=no
28729 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28730 gcc_cv_ld_eh_frame_ciev3
=no
28736 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28737 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28738 gcc_cv_ld_eh_frame_ciev3
=yes
28745 cat >>confdefs.h
<<_ACEOF
28746 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28750 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28753 $as_echo_n "checking linker position independent executable support... " >&6; }
28755 if test $in_tree_ld = yes ; then
28757 # Full PIE support on Solaris was only introduced in gld 2.26.
28758 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28759 *) gcc_gld_pie_min_version
=15 ;;
28761 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 \
28762 && test $in_tree_ld_is_elf = yes; then
28765 elif test x
$gcc_cv_ld != x
; then
28766 # Check if linker supports -pie option
28767 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28771 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28772 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28779 *-*-solaris2.1
[1-9]*)
28780 # Solaris 11.3 added PIE support.
28781 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28788 if test x
"$gcc_cv_ld_pie" = xyes
; then
28790 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28794 $as_echo "$gcc_cv_ld_pie" >&6; }
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28797 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28798 gcc_cv_ld_pie_copyreloc
=no
28799 if test $gcc_cv_ld_pie = yes ; then
28800 if test $in_tree_ld = yes ; then
28801 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
28802 gcc_cv_ld_pie_copyreloc
=yes
28804 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28805 # Check if linker supports -pie option with copy reloc
28807 i?
86-*-linux* | x86_64-
*-linux*)
28808 cat > conftest1.s
<<EOF
28811 .type a_glob, @object
28816 cat > conftest2.s
<<EOF
28819 .type main, @function
28821 movl %eax, a_glob(%rip)
28824 .section .data.rel,"aw",@progbits
28829 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28830 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28831 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28832 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28833 gcc_cv_ld_pie_copyreloc
=yes
28835 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28841 cat >>confdefs.h
<<_ACEOF
28842 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28846 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28849 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28850 gcc_cv_ld_eh_gc_sections
=no
28851 if test $in_tree_ld = yes ; then
28852 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 \
28853 && test $in_tree_ld_is_elf = yes; then
28854 gcc_cv_ld_eh_gc_sections
=yes
28856 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28857 cat > conftest.s
<<EOF
28860 .type _start, @function
28863 .size _start, .-_start
28864 .section .text.foo,"ax",@progbits
28865 .type foo, @function
28869 .section .gcc_except_table.foo,"a",@progbits
28872 .section .eh_frame,"a",@progbits
28875 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28876 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28877 |
grep "gc-sections option ignored" > /dev
/null
; then
28878 gcc_cv_ld_eh_gc_sections
=no
28879 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28880 |
grep gcc_except_table
> /dev
/null
; then
28881 gcc_cv_ld_eh_gc_sections
=yes
28882 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28883 if test x
$gcc_cv_as_comdat_group != xyes
; then
28884 gcc_cv_ld_eh_gc_sections
=no
28885 cat > conftest.s
<<EOF
28888 .type _start, @function
28891 .size _start, .-_start
28892 .section .gnu.linkonce.t.foo,"ax",@progbits
28893 .type foo, @function
28897 .section .gcc_except_table.foo,"a",@progbits
28900 .section .eh_frame,"a",@progbits
28903 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28904 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28905 |
grep "gc-sections option ignored" > /dev
/null
; then
28906 gcc_cv_ld_eh_gc_sections
=no
28907 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28908 |
grep gcc_except_table
> /dev
/null
; then
28909 gcc_cv_ld_eh_gc_sections
=yes
28915 rm -f conftest.s conftest.o conftest
28919 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28920 gcc_cv_ld_eh_gc_sections
=no
28923 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28925 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28929 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28932 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28933 gcc_cv_ld_eh_gc_sections_bug
=no
28934 if test $in_tree_ld = yes ; then
28935 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 \
28936 && test $in_tree_ld_is_elf = yes; then
28937 gcc_cv_ld_eh_gc_sections_bug
=yes
28939 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
28940 gcc_cv_ld_eh_gc_sections_bug
=yes
28941 cat > conftest.s
<<EOF
28944 .type _start, @function
28947 .size _start, .-_start
28948 .section .text.startup.foo,"ax",@progbits
28949 .type foo, @function
28953 .section .gcc_except_table.foo,"a",@progbits
28956 .section .eh_frame,"a",@progbits
28959 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28960 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28961 |
grep "gc-sections option ignored" > /dev
/null
; then
28963 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28964 |
grep gcc_except_table
> /dev
/null
; then
28965 gcc_cv_ld_eh_gc_sections_bug
=no
28968 rm -f conftest.s conftest.o conftest
28970 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28972 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28976 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28979 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28980 # gold/gld support compressed debug sections since binutils 2.19/2.21
28981 # In binutils 2.26, gld gained support for the ELF gABI format.
28982 if test $in_tree_ld = yes ; then
28983 gcc_cv_ld_compress_debug
=0
28984 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 \
28985 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28986 gcc_cv_ld_compress_debug
=2
28987 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28988 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 \
28989 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28990 gcc_cv_ld_compress_debug
=3
28991 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28992 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 \
28993 && test $in_tree_ld_is_elf = yes; then
28994 gcc_cv_ld_compress_debug
=1
28996 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28997 if test "$ld_vers_major" -lt 2 \
28998 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28999 gcc_cv_ld_compress_debug
=0
29000 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29001 gcc_cv_ld_compress_debug
=1
29003 gcc_cv_ld_compress_debug
=3
29004 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29006 if test $ld_is_gold = yes; then
29007 gcc_cv_ld_compress_debug
=2
29008 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29011 case "${target}" in
29013 # Introduced in Solaris 11.2.
29014 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
29015 gcc_cv_ld_compress_debug
=3
29016 gcc_cv_ld_compress_debug_option
="-z compress-sections"
29018 gcc_cv_ld_compress_debug
=0
29022 # Assume linkers other than GNU ld don't support compessed debug
29024 gcc_cv_ld_compress_debug
=0
29029 cat >>confdefs.h
<<_ACEOF
29030 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29034 cat >>confdefs.h
<<_ACEOF
29035 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29039 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29041 if test x
"$ld64_flag" = x
"yes"; then
29043 # Set defaults for possibly untestable items.
29044 gcc_cv_ld64_export_dynamic
=0
29046 if test "$build" = "$host"; then
29052 # On Darwin, because of FAT library support, it is often possible to execute
29053 # exes from compatible archs even when the host differs from the build system.
29054 case "$build","$host" in
29055 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
29056 darwin_try_test
=1;;
29060 # If the configurer specified a minimum ld64 version to be supported, then use
29061 # that to determine feature support.
29062 if test x
"${gcc_cv_ld64_version}" != x
; then
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29064 $as_echo_n "checking ld64 specified version... " >&6; }
29065 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29067 $as_echo "$gcc_cv_ld64_major" >&6; }
29068 if test "$gcc_cv_ld64_major" -ge 236; then
29069 gcc_cv_ld64_export_dynamic
=1
29071 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29072 # If the version was not specified, try to find it.
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29074 $as_echo_n "checking linker version... " >&6; }
29075 if test x
"${gcc_cv_ld64_version}" = x
; then
29076 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29079 $as_echo "$gcc_cv_ld64_version" >&6; }
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29082 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29083 gcc_cv_ld64_export_dynamic
=1
29084 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
29085 gcc_cv_ld64_export_dynamic
=0
29087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29088 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29091 if test x
"${gcc_cv_ld64_version}" != x
; then
29093 cat >>confdefs.h
<<_ACEOF
29094 #define LD64_VERSION "${gcc_cv_ld64_version}"
29100 cat >>confdefs.h
<<_ACEOF
29101 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29111 $as_echo_n "checking linker --as-needed support... " >&6; }
29112 if ${gcc_cv_ld_as_needed+:} false
; then :
29113 $as_echo_n "(cached) " >&6
29115 gcc_cv_ld_as_needed
=no
29116 gcc_cv_ld_as_needed_option
='--as-needed'
29117 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
29118 if test $in_tree_ld = yes ; then
29119 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 \
29120 && test $in_tree_ld_is_elf = yes; then
29121 gcc_cv_ld_as_needed
=yes
29122 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29123 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29124 gcc_cv_ld_no_as_needed_option
='--pop-state'
29127 elif test x
$gcc_cv_ld != x
; then
29128 # Check if linker supports --as-needed and --no-as-needed options
29129 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
29130 gcc_cv_ld_as_needed
=yes
29131 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
29132 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
29133 && echo "$ld_ver" |
grep GNU
> /dev
/null \
29134 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29135 # Use these options only when both ld.bfd and ld.gold support
29136 # --push-state/--pop-state, which unfortunately wasn't added
29137 # at the same time.
29138 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29139 gcc_cv_ld_no_as_needed_option
='--pop-state'
29142 case "$target:$gnu_ld" in
29144 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29146 gcc_cv_ld_as_needed
=yes
29147 gcc_cv_ld_as_needed_option
="-z ignore"
29148 gcc_cv_ld_no_as_needed_option
="-z record"
29152 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29153 # dl_iterate_phdr, i.e. since Solaris 11.
29155 *-*-solaris2.1
[1-9]*)
29157 i?
86-*-* | x86_64-
*-*)
29158 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29159 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29160 gcc_cv_ld_as_needed
=no
29166 gcc_cv_ld_as_needed
=no
29171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29172 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29173 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
29175 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29178 cat >>confdefs.h
<<_ACEOF
29179 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29183 cat >>confdefs.h
<<_ACEOF
29184 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29190 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29191 saved_LDFLAGS
="$LDFLAGS"
29192 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
29193 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29195 /* end confdefs.h. */
29196 int main(void) {return 0;}
29198 if ac_fn_cxx_try_link
"$LINENO"; then :
29199 gcc_cv_ld_clearcap
=yes; break
29201 gcc_cv_ld_clearcap
=no
29203 rm -f core conftest.err conftest.
$ac_objext \
29204 conftest
$ac_exeext conftest.
$ac_ext
29206 LDFLAGS
="$saved_LDFLAGS"
29207 if test "x$gcc_cv_ld_clearcap" = xyes
; then
29209 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29211 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29215 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29221 emul_name
="-melf32lppc"
29224 emul_name
="-melf32ppc"
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29228 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29229 if ${gcc_cv_ld_ppc_attr+:} false
; then :
29230 $as_echo_n "(cached) " >&6
29232 gcc_cv_ld_ppc_attr
=no
29233 if test x
"$ld_is_gold" = xyes
; then
29234 gcc_cv_ld_ppc_attr
=yes
29235 elif test $in_tree_ld = yes ; then
29236 if test "$gcc_cv_gld_major_version" -eq 2 \
29237 -a "$gcc_cv_gld_minor_version" -ge 28 \
29238 -o "$gcc_cv_gld_major_version" -gt 2; then
29239 gcc_cv_ld_ppc_attr
=yes
29241 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29242 # check that merging the long double .gnu_attribute doesn't warn
29243 cat > conftest1.s
<<EOF
29246 cat > conftest2.s
<<EOF
29249 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29250 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29251 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
29252 && test ! -s conftest.err
; then
29253 gcc_cv_ld_ppc_attr
=yes
29255 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29260 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29261 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
29263 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29269 case "$target:$tm_file" in
29270 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
29273 emul_name
="-melf64lppc"
29276 emul_name
="-melf64ppc"
29279 emul_name
="-melf64ppc_fbsd"
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29283 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29284 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
29285 $as_echo_n "(cached) " >&6
29287 gcc_cv_ld_no_dot_syms
=no
29288 if test x
"$ld_is_gold" = xyes
; then
29289 gcc_cv_ld_no_dot_syms
=yes
29290 elif test $in_tree_ld = yes ; then
29291 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
29292 gcc_cv_ld_no_dot_syms
=yes
29294 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29295 cat > conftest1.s
<<EOF
29299 cat > conftest2.s
<<EOF
29300 .section ".opd","aw"
29303 .type foo,@function
29305 .quad .LEfoo,.TOC.@tocbase,0
29311 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29312 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29313 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
29314 gcc_cv_ld_no_dot_syms
=yes
29316 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29321 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29322 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
29324 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29329 $as_echo_n "checking linker large toc support... " >&6; }
29330 if ${gcc_cv_ld_large_toc+:} false
; then :
29331 $as_echo_n "(cached) " >&6
29333 gcc_cv_ld_large_toc
=no
29334 if test x
"$ld_is_gold" = xyes
; then
29335 gcc_cv_ld_large_toc
=yes
29336 elif test $in_tree_ld = yes ; then
29337 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
29338 gcc_cv_ld_large_toc
=yes
29340 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29341 cat > conftest.s
<<EOF
29342 .section ".tbss","awT",@nobits
29348 addis 9,13,ie0@got@tprel@ha
29349 ld 9,ie0@got@tprel@l(9)
29351 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29352 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
29353 gcc_cv_ld_large_toc
=yes
29355 rm -f conftest conftest.o conftest.s
29359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29360 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29361 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29363 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29368 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29369 if ${gcc_cv_ld_toc_align+:} false
; then :
29370 $as_echo_n "(cached) " >&6
29372 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
29373 cat > conftest.s
<<EOF
29378 .section .data.rel.ro,"aw",@progbits
29383 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29384 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
29385 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)) }'`
29387 rm -f conftest conftest.o conftest.s
29391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29392 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29393 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29395 cat >>confdefs.h
<<_ACEOF
29396 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29406 $as_echo_n "checking linker large toc support... " >&6; }
29407 if ${gcc_cv_ld_large_toc+:} false
; then :
29408 $as_echo_n "(cached) " >&6
29410 gcc_cv_ld_large_toc
=no
29411 if test x
$gcc_cv_as != x
; then
29412 cat > conftest.s
<<EOF
29422 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
29423 gcc_cv_ld_large_toc
=yes
29425 rm -f conftest conftest.o conftest.s
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29430 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29431 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29433 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29440 $as_echo_n "checking linker --build-id support... " >&6; }
29441 if ${gcc_cv_ld_buildid+:} false
; then :
29442 $as_echo_n "(cached) " >&6
29444 gcc_cv_ld_buildid
=no
29445 if test $in_tree_ld = yes ; then
29446 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29447 "$gcc_cv_gld_minor_version" -ge 18 -o \
29448 "$gcc_cv_gld_major_version" -gt 2 \
29449 && test $in_tree_ld_is_elf = yes; then
29450 gcc_cv_ld_buildid
=yes
29452 elif test x
$gcc_cv_ld != x
; then
29453 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
29454 gcc_cv_ld_buildid
=yes
29458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29459 $as_echo "$gcc_cv_ld_buildid" >&6; }
29460 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29462 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29466 # Check whether --enable-linker-build-id was given.
29467 if test "${enable_linker_build_id+set}" = set; then :
29468 enableval
=$enable_linker_build_id;
29470 enable_linker_build_id
=no
29474 if test x
"$enable_linker_build_id" = xyes
; then
29475 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29477 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29481 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29485 # In binutils 2.21, GNU ld gained support for new emulations fully
29486 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29488 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29489 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
29490 $as_echo_n "(cached) " >&6
29492 gcc_cv_ld_sol2_emulation
=no
29493 if test $in_tree_ld = yes ; then
29494 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29495 "$gcc_cv_gld_minor_version" -ge 21 -o \
29496 "$gcc_cv_gld_major_version" -gt 2 \
29497 && test $in_tree_ld_is_elf = yes; then
29498 gcc_cv_ld_sol2_emulation
=yes
29500 elif test x
$gcc_cv_ld != x
; then
29501 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
29502 grep _sol2
> /dev
/null
; then
29503 gcc_cv_ld_sol2_emulation
=yes
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29508 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29509 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
29511 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29516 $as_echo_n "checking linker --sysroot support... " >&6; }
29517 if ${gcc_cv_ld_sysroot+:} false
; then :
29518 $as_echo_n "(cached) " >&6
29520 gcc_cv_ld_sysroot
=no
29521 if test $in_tree_ld = yes ; then
29522 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
29523 gcc_cv_ld_sysroot
=yes
29525 elif test x
$gcc_cv_ld != x
; then
29526 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
29527 gcc_cv_ld_sysroot
=yes
29531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29532 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29533 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
29535 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29541 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29543 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29544 if ${gcc_cv_solaris_crts+:} false
; then :
29545 $as_echo_n "(cached) " >&6
29547 gcc_cv_solaris_crts
=no
29548 if test x
$host != x
$target; then
29549 if test "x$with_sysroot" = xyes
; then
29550 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
29552 target_sysroot
="${with_sysroot}"
29555 target_libdir
="$target_sysroot/usr/lib"
29556 # At the time they were added, gcrt1.o became a symlink for backwards
29557 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29559 i?
86-*-solaris2* | x86_64-
*-solaris2*)
29560 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
29562 sparc
*-*-solaris2*)
29563 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29568 $as_echo "$gcc_cv_solaris_crts" >&6; }
29571 if test x
$gcc_cv_solaris_crts = xyes
; then
29573 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29577 # Check whether --enable-libssp was given.
29578 if test "${enable_libssp+set}" = set; then :
29579 enableval
=$enable_libssp; case "${enableval}" in
29583 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
29589 # Test for stack protector support in target C library.
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29591 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29592 if ${gcc_cv_libc_provides_ssp+:} false
; then :
29593 $as_echo_n "(cached) " >&6
29595 gcc_cv_libc_provides_ssp
=no
29596 if test "x$enable_libssp" = "xno"; then
29597 gcc_cv_libc_provides_ssp
=yes
29598 elif test "x$enable_libssp" = "xyes"; then
29599 gcc_cv_libc_provides_ssp
=no
29603 # All versions of musl provide stack protector
29604 gcc_cv_libc_provides_ssp
=yes;;
29605 *-*-linux* |
*-*-kfreebsd*-gnu)
29606 # glibc 2.4 and later provides __stack_chk_fail and
29607 # either __stack_chk_guard, or TLS access to stack guard canary.
29609 if test $glibc_version_major -gt 2 \
29610 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29611 gcc_cv_libc_provides_ssp
=yes
29614 if test -f $target_header_dir/features.h \
29615 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29616 $target_header_dir/features.h
> /dev
/null
; then
29617 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29618 $target_header_dir/features.h
> /dev
/null
&& \
29619 test -f $target_header_dir/bits
/uClibc_config.h
&& \
29620 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29621 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
29622 gcc_cv_libc_provides_ssp
=yes
29624 # all versions of Bionic support stack protector
29625 elif test -f $target_header_dir/sys
/cdefs.h \
29626 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29627 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
29628 gcc_cv_libc_provides_ssp
=yes
29633 # Avoid complicated tests (see
29634 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29635 # simply assert that glibc does provide this, which is true for all
29636 # realistically usable GNU/Hurd configurations.
29637 # All supported versions of musl provide it as well
29638 gcc_cv_libc_provides_ssp
=yes;;
29639 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
29640 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29641 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
29642 gcc_cv_libc_provides_ssp
=yes
29644 echo "no __stack_chk_fail on this target"
29648 *) gcc_cv_libc_provides_ssp
=no
;;
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29653 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29655 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29657 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29661 # Check whether --enable-default-ssp was given.
29662 # Check whether --enable-default-ssp was given.
29663 if test "${enable_default_ssp+set}" = set; then :
29664 enableval
=$enable_default_ssp;
29665 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29667 ia64
*-*-*) enable_default_ssp
=no
;;
29668 *) enable_default_ssp
=$enableval ;;
29671 enable_default_ssp
=no
29674 enable_default_ssp
=no
29677 if test x
$enable_default_ssp = xyes
; then
29679 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29684 # Test for <sys/sdt.h> on the target.
29686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29687 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29689 if test -f $target_header_dir/sys
/sdt.h
; then
29692 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29696 $as_echo "$have_sys_sdt_h" >&6; }
29698 # Check if TFmode long double should be used by default or not.
29699 # Some glibc targets used DFmode long double, but with glibc 2.4
29700 # and later they can use TFmode.
29702 powerpc
*-*-linux* | \
29703 sparc
*-*-linux* | \
29707 # Check whether --with-long-double-128 was given.
29708 if test "${with_long_double_128+set}" = set; then :
29709 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29713 s390
*-*-linux-musl*)
29714 gcc_cv_target_ldbl128
=yes
29716 powerpc
*-*-linux-musl*)
29717 gcc_cv_target_ldbl128
=no
29721 if test $glibc_version_major -gt 2 \
29722 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29723 gcc_cv_target_ldbl128
=yes
29726 gcc_cv_target_ldbl128
=no
29727 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29728 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29729 && gcc_cv_target_ldbl128
=yes
29740 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29742 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29746 # Check if TFmode long double target should use the IBM extended double or IEEE
29747 # 128-bit floating point formats if long doubles are 128-bits long. The long
29748 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29749 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29752 # Check whether --with-long-double-format was given.
29753 if test "${with_long_double_format+set}" = set; then :
29754 withval
=$with_long_double_format;
29755 case "$target:$with_long_double_format" in
29756 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
29759 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
29760 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29761 case "$with_cpu" in
29762 power7 | power8 | power9 | power1
*)
29766 as_fn_error $?
"Configuration option --with-long-double-format is only \
29767 supported if the default cpu is power7 or newer" "$LINENO" 5
29768 with_long_double_format
=""
29772 xpowerpc64
*-*-linux*:*)
29773 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29774 with_long_double_format
=""
29777 as_fn_error $?
"Configure option --with-long-double-format is only supported \
29778 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29779 with_long_double_format
=""
29785 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29786 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29787 gcc_cv_libc_provides_hwcap_in_tcb
=no
29791 if test $glibc_version_major -gt 2 \
29792 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29793 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29797 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29799 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29803 # Check if the target LIBC handles PT_GNU_STACK.
29804 gcc_cv_libc_gnustack
=unknown
29808 if test $glibc_version_major -gt 2 \
29809 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
29810 gcc_cv_libc_gnustack
=yes
29814 if test x
$gcc_cv_libc_gnustack = xyes
; then
29816 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
29820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29821 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29822 gcc_cv_target_dl_iterate_phdr
=unknown
29825 # <link.h> needs both a dl_iterate_phdr declaration and support for
29826 # compilation with largefile support.
29827 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29828 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29829 gcc_cv_target_dl_iterate_phdr
=yes
29831 gcc_cv_target_dl_iterate_phdr
=no
29834 *-*-dragonfly* |
*-*-freebsd*)
29835 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29836 gcc_cv_target_dl_iterate_phdr
=yes
29838 gcc_cv_target_dl_iterate_phdr
=no
29842 gcc_cv_target_dl_iterate_phdr
=yes
29846 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29848 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29852 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29854 # We no longer support different GC mechanisms. Emit an error if
29855 # the user configures with --with-gc.
29857 # Check whether --with-gc was given.
29858 if test "${with_gc+set}" = set; then :
29859 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29863 # Libraries to use on the host. This will normally be set by the top
29864 # level Makefile. Here we simply capture the value for our Makefile.
29865 if test -z "${HOST_LIBS+set}"; then
29870 # Use the system's zlib library.
29872 # Use the system's zlib library.
29873 zlibdir
="-L\$(top_builddir)/../zlib"
29874 zlibinc
="-I\$(top_srcdir)/../zlib"
29876 # Check whether --with-system-zlib was given.
29877 if test "${with_system_zlib+set}" = set; then :
29878 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29891 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29892 # Check whether --enable-maintainer-mode was given.
29893 if test "${enable_maintainer_mode+set}" = set; then :
29894 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29901 $as_echo "$maintainer_mode" >&6; }
29903 if test "$maintainer_mode" = "yes"; then
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29911 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29912 # Check whether --enable-link-mutex was given.
29913 if test "${enable_link_mutex+set}" = set; then :
29914 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29920 $as_echo "$do_link_mutex" >&6; }
29922 if test "$do_link_mutex" = "yes"; then
29925 DO_LINK_MUTEX
=false
29933 # Make empty files to contain the specs and options for each language.
29934 # Then add #include lines to for a compiler that has specs and/or options.
29940 # These (without "all_") are set in each config-lang.in.
29941 # `language' must be a single word so is spelled singularly.
29944 all_outputs
='Makefile'
29945 # List of language configure and makefile fragments.
29946 all_lang_configurefrags
=
29947 all_lang_makefrags
=
29948 # Additional files for gengtype
29949 all_gtfiles
="$target_gtfiles"
29951 # These are the languages that are set in --enable-languages,
29952 # and are available in the GCC tree.
29953 all_selected_languages
=
29955 # Add the language fragments.
29956 # Languages are added via two mechanisms. Some information must be
29957 # recorded in makefile variables, these are defined in config-lang.in.
29958 # We accumulate them and plug them into the main Makefile.
29959 # The other mechanism is a set of hooks for each of the main targets
29960 # like `clean', `install', etc.
29962 language_hooks
="Make-hooks"
29964 for lang
in ${srcdir}/*/config-lang.
in
29966 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29968 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29969 if test "x$lang_alias" = x
29971 echo "$lang doesn't set \$language." 1>&2
29974 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29975 subdirs
="$subdirs $subdir"
29977 # $gcc_subdir is where the gcc integration files are to be found
29978 # for a language, both for internal compiler purposes (compiler
29979 # sources implementing front-end to GCC tree converters), and for
29980 # build infrastructure purposes (Make-lang.in, etc.)
29982 # This will be <subdir> (relative to $srcdir) if a line like
29983 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29984 # is found in <langdir>/config-lang.in, and will remain <langdir>
29987 # Except for the language alias (fetched above), the regular
29988 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29989 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29990 # only this and the language alias.
29992 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29993 if [ "$gcc_subdir" = "" ]; then
29994 gcc_subdir
="$subdir"
29997 case ",$enable_languages," in
29999 all_selected_languages
="$all_selected_languages $lang_alias"
30000 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
30001 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30012 .
${srcdir}/$gcc_subdir/config-lang.
in
30013 if test "x$language" = x
30015 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30020 case ",$enable_languages," in
30021 *,$lang_alias,*) ;;
30023 for i
in $subdir_requires; do
30024 test -f "${srcdir}/$i/config-lang.in" && continue
30032 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30033 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30034 if test -f $srcdir/$gcc_subdir/lang.opt
; then
30035 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30036 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30038 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
30039 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30041 all_languages
="$all_languages $language"
30042 all_compilers
="$all_compilers $compilers"
30043 all_outputs
="$all_outputs $outputs"
30044 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
30045 case ",$enable_languages," in
30048 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30058 for language
in $all_selected_languages
30060 check_languages
="$check_languages check-$language"
30063 selftest_languages
=
30064 for language
in $all_selected_languages
30066 selftest_languages
="$selftest_languages selftest-$language"
30069 # We link each language in with a set of hooks, reached indirectly via
30070 # lang.${target}. Only do so for selected languages.
30074 target_list
="all.cross start.encap rest.encap tags \
30075 install-common install-man install-info install-pdf install-html dvi \
30076 pdf html uninstall info man srcextra srcman srcinfo \
30077 mostlyclean clean distclean maintainer-clean install-plugin"
30079 for t
in $target_list
30082 for lang
in $all_selected_languages
30086 echo "lang.$t: $x" >> Make-hooks
30090 # Option include files
30093 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
30094 option_includes
="option-includes.mk"
30103 echo "dir ." > .gdbinit
30104 echo "dir ${srcdir}" >> .gdbinit
30105 if test x
$gdb_needs_out_file_path = xyes
30107 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30109 if test "x$subdirs" != x
; then
30112 echo "dir ${srcdir}/$s" >> .gdbinit
30115 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30116 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30118 # Put a breakpoint on __asan_report_error to help with debugging buffer
30121 *-fsanitize=address
*)
30122 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30126 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30130 # Find a directory in which to install a shared libgcc.
30132 # Check whether --enable-version-specific-runtime-libs was given.
30133 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30134 enableval
=$enable_version_specific_runtime_libs;
30138 # Substitute configuration variables
30207 if test x
${build} = x
${host} ; then
30208 if test x
${host} = x
${target} ; then
30209 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30211 echo "Links are now set up to build a cross-compiler" 1>&2
30212 echo " from ${host} to ${target}." 1>&2
30215 if test x
${host} = x
${target} ; then
30216 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30217 echo " for ${target}." 1>&2
30219 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30220 echo " from ${host} to ${target}." 1>&2
30229 if test "x${ISLLIBS}" != "x" ; then
30231 $as_echo "#define HAVE_isl 1" >>confdefs.h
30235 # Check for plugin support
30236 # Check whether --enable-plugin was given.
30237 if test "${enable_plugin+set}" = set; then :
30238 enableval
=$enable_plugin; enable_plugin
=$enableval
30240 enable_plugin
=yes; default_plugin
=yes
30249 # Since plugin support under MinGW is not as straightforward as on
30250 # other platforms (e.g., we have to link import library, etc), we
30251 # only enable it if explicitly requested.
30252 if test x
"$default_plugin" = x
"yes"; then
30254 elif test x
"$enable_plugin" = x
"yes"; then
30255 # Use make's target variable to derive import library name.
30256 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30261 if test x
$build = x
$host; then
30262 export_sym_check
="nm${exeext} -g"
30263 elif test x
$host = x
$target; then
30264 export_sym_check
="$gcc_cv_nm -g"
30270 if test x
$build = x
$host; then
30271 export_sym_check
="objdump${exeext} -T"
30272 elif test x
$host = x
$target; then
30273 export_sym_check
="$gcc_cv_objdump -T"
30280 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30283 $as_echo_n "checking for exported symbols... " >&6; }
30284 if test "x$export_sym_check" != x
; then
30285 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30286 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30287 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30288 : # No need to use a flag
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30290 $as_echo "yes" >&6; }
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30293 $as_echo "yes" >&6; }
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30295 $as_echo_n "checking for -rdynamic... " >&6; }
30296 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30297 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30298 plugin_rdynamic
=yes
30299 pluginlibs
="-rdynamic"
30304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30305 $as_echo "$plugin_rdynamic" >&6; }
30308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30309 $as_echo "unable to check" >&6; }
30314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30315 $as_echo_n "checking for library containing dlopen... " >&6; }
30316 if ${ac_cv_search_dlopen+:} false
; then :
30317 $as_echo_n "(cached) " >&6
30319 ac_func_search_save_LIBS
=$LIBS
30320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30321 /* end confdefs.h. */
30323 /* Override any GCC internal prototype to avoid an error.
30324 Use char because int might match the return type of a GCC
30325 builtin and then its argument prototype would still apply. */
30338 for ac_lib
in '' dl
; do
30339 if test -z "$ac_lib"; then
30340 ac_res
="none required"
30343 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
30345 if ac_fn_cxx_try_link
"$LINENO"; then :
30346 ac_cv_search_dlopen
=$ac_res
30348 rm -f core conftest.err conftest.
$ac_objext \
30350 if ${ac_cv_search_dlopen+:} false
; then :
30354 if ${ac_cv_search_dlopen+:} false
; then :
30357 ac_cv_search_dlopen
=no
30359 rm conftest.
$ac_ext
30360 LIBS
=$ac_func_search_save_LIBS
30362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30363 $as_echo "$ac_cv_search_dlopen" >&6; }
30364 ac_res
=$ac_cv_search_dlopen
30365 if test "$ac_res" != no
; then :
30366 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
30370 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
30371 pluginlibs
="$pluginlibs -ldl"
30375 # Check that we can build shared objects with -fPIC -shared
30376 saved_LDFLAGS
="$LDFLAGS"
30377 saved_CFLAGS
="$CFLAGS"
30380 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30381 CFLAGS
="$CFLAGS -fPIC"
30382 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
30385 CFLAGS
="$CFLAGS -fPIC"
30386 LDFLAGS
="$LDFLAGS -fPIC -shared"
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30390 $as_echo_n "checking for -fPIC -shared... " >&6; }
30391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30392 /* end confdefs.h. */
30402 if ac_fn_cxx_try_link
"$LINENO"; then :
30403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30404 $as_echo "yes" >&6; }; have_pic_shared
=yes
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30407 $as_echo "no" >&6; }; have_pic_shared
=no
30409 rm -f core conftest.err conftest.
$ac_objext \
30410 conftest
$ac_exeext conftest.
$ac_ext
30411 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
30415 LDFLAGS
="$saved_LDFLAGS"
30416 CFLAGS
="$saved_CFLAGS"
30418 # If plugin support had been requested but not available, fail.
30419 if test x
"$enable_plugin" = x
"no" ; then
30420 if test x
"$default_plugin" != x
"yes"; then
30422 Building GCC with plugin support requires a host that supports
30423 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30430 if test x
"$enable_plugin" = x
"yes"; then
30432 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30437 # Enable --enable-host-shared
30438 # Check whether --enable-host-shared was given.
30439 if test "${enable_host_shared+set}" = set; then :
30440 enableval
=$enable_host_shared; PICFLAG
=-fPIC
30449 # Check whether --enable-libquadmath-support was given.
30450 if test "${enable_libquadmath_support+set}" = set; then :
30451 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
30453 ENABLE_LIBQUADMATH_SUPPORT
=yes
30456 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30458 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30463 # Specify what hash style to use by default.
30465 # Check whether --with-linker-hash-style was given.
30466 if test "${with_linker_hash_style+set}" = set; then :
30467 withval
=$with_linker_hash_style; case x
"$withval" in
30469 LINKER_HASH_STYLE
=sysv
30472 LINKER_HASH_STYLE
=gnu
30475 LINKER_HASH_STYLE
=both
30478 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30482 LINKER_HASH_STYLE
=''
30485 if test x
"${LINKER_HASH_STYLE}" != x
; then
30487 cat >>confdefs.h
<<_ACEOF
30488 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30493 # Specify what should be the default of -fdiagnostics-color option.
30495 # Check whether --with-diagnostics-color was given.
30496 if test "${with_diagnostics_color+set}" = set; then :
30497 withval
=$with_diagnostics_color; case x
"$withval" in
30499 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
30502 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30505 DIAGNOSTICS_COLOR_DEFAULT
=-1
30508 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
30511 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30515 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30519 cat >>confdefs.h
<<_ACEOF
30520 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30524 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30525 # of jit/jit-playback.c.
30526 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30527 echo "gcc_driver_version: ${gcc_driver_version}"
30528 cat > gcc-driver-name.h
<<EOF
30529 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30532 # Check whether --enable-default-pie was given.
30533 # Check whether --enable-default-pie was given.
30534 if test "${enable_default_pie+set}" = set; then :
30535 enableval
=$enable_default_pie; enable_default_pie
=$enableval
30537 enable_default_pie
=no
30540 if test x
$enable_default_pie = xyes
; then
30542 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30547 # Check if -fno-PIE works.
30548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30549 $as_echo_n "checking for -fno-PIE option... " >&6; }
30550 if ${gcc_cv_c_no_fpie+:} false
; then :
30551 $as_echo_n "(cached) " >&6
30553 saved_CXXFLAGS
="$CXXFLAGS"
30554 CXXFLAGS
="$CXXFLAGS -fno-PIE"
30555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30556 /* end confdefs.h. */
30557 int main(void) {return 0;}
30559 if ac_fn_cxx_try_compile
"$LINENO"; then :
30560 gcc_cv_c_no_fpie
=yes
30562 gcc_cv_c_no_fpie
=no
30564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30565 CXXFLAGS
="$saved_CXXFLAGS"
30567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30568 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30569 if test "$gcc_cv_c_no_fpie" = "yes"; then
30570 NO_PIE_CFLAGS
="-fno-PIE"
30574 # Check if -no-pie works.
30575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30576 $as_echo_n "checking for -no-pie option... " >&6; }
30577 if ${gcc_cv_no_pie+:} false
; then :
30578 $as_echo_n "(cached) " >&6
30580 saved_LDFLAGS
="$LDFLAGS"
30581 LDFLAGS
="$LDFLAGS -no-pie"
30582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30583 /* end confdefs.h. */
30584 int main(void) {return 0;}
30586 if ac_fn_cxx_try_link
"$LINENO"; then :
30591 rm -f core conftest.err conftest.
$ac_objext \
30592 conftest
$ac_exeext conftest.
$ac_ext
30593 LDFLAGS
="$saved_LDFLAGS"
30595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30596 $as_echo "$gcc_cv_no_pie" >&6; }
30597 if test "$gcc_cv_no_pie" = "yes"; then
30598 NO_PIE_FLAG
="-no-pie"
30602 # Check linker supports '-z bndplt'
30603 ld_bndplt_support
=no
30604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30605 $as_echo_n "checking linker -z bndplt option... " >&6; }
30606 if test x
"$ld_is_gold" = xno
; then
30607 if test $in_tree_ld = yes ; then
30608 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
30609 ld_bndplt_support
=yes
30611 elif test x
$gcc_cv_ld != x
; then
30612 # Check if linker supports -a bndplt option
30613 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
30614 ld_bndplt_support
=yes
30618 if test x
"$ld_bndplt_support" = xyes
; then
30620 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30624 $as_echo "$ld_bndplt_support" >&6; }
30626 # Check linker supports '--push-state'/'--pop-state'
30627 ld_pushpopstate_support
=no
30628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30629 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30630 if test x
"$ld_is_gold" = xno
; then
30631 if test $in_tree_ld = yes ; then
30632 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
30633 ld_pushpopstate_support
=yes
30635 elif test x
$gcc_cv_ld != x
; then
30636 # Check if linker supports --push-state/--pop-state options
30637 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
30638 ld_pushpopstate_support
=yes
30642 if test x
"$ld_pushpopstate_support" = xyes
; then
30644 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30648 $as_echo "$ld_pushpopstate_support" >&6; }
30650 # Configure the subdirectories
30651 # AC_CONFIG_SUBDIRS($subdirs)
30653 # Create the Makefile
30654 # and configure language subdirectories
30655 ac_config_files
="$ac_config_files $all_outputs"
30658 ac_config_commands
="$ac_config_commands default"
30660 cat >confcache
<<\_ACEOF
30661 # This file is a shell script that caches the results of configure
30662 # tests run on this system so they can be shared between configure
30663 # scripts and configure runs, see configure's option --config-cache.
30664 # It is not useful on other systems. If it contains results you don't
30665 # want to keep, you may remove or edit it.
30667 # config.status only pays attention to the cache file if you give it
30668 # the --recheck option to rerun configure.
30670 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30672 # following values.
30676 # The following way of writing the cache mishandles newlines in values,
30677 # but we know of no workaround that is simple, portable, and efficient.
30678 # So, we kill variables containing newlines.
30679 # Ultrix sh set writes to stderr and can't be redirected directly,
30680 # and sets the high bit in the cache file unless we assign to the vars.
30682 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30683 eval ac_val
=\$
$ac_var
30687 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30688 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30691 _ | IFS | as_nl
) ;; #(
30692 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30693 *) { eval $ac_var=; unset $ac_var;} ;;
30699 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30700 *${as_nl}ac_space
=\
*)
30701 # `set' does not quote correctly, so add quotes: double-quote
30702 # substitution turns \\\\ into \\, and sed turns \\ into \.
30705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30708 # `set' quotes correctly as required by POSIX, so do not add quotes.
30709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30718 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30720 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30722 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30723 if test -w "$cache_file"; then
30724 if test "x$cache_file" != "x/dev/null"; then
30725 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30726 $as_echo "$as_me: updating cache $cache_file" >&6;}
30727 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
30728 cat confcache
>"$cache_file"
30730 case $cache_file in #(
30732 mv -f confcache
"$cache_file"$$
&&
30733 mv -f "$cache_file"$$
"$cache_file" ;; #(
30735 mv -f confcache
"$cache_file" ;;
30740 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30741 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30746 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30747 # Let make expand exec_prefix.
30748 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30750 DEFS
=-DHAVE_CONFIG_H
30755 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30756 # 1. Remove the extension, and $U if already installed.
30757 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30758 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30760 # will be set to the directory where LIBOBJS objects are built.
30761 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30762 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30764 LIBOBJS
=$ac_libobjs
30766 LTLIBOBJS
=$ac_ltlibobjs
30771 : "${CONFIG_STATUS=./config.status}"
30773 ac_clean_files_save
=$ac_clean_files
30774 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30776 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30778 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30780 # Generated by $as_me.
30781 # Run this file to recreate the current configuration.
30782 # Compiler output produced by configure, useful for debugging
30783 # configure, is in config.log if it exists.
30786 ac_cs_recheck=false
30789 SHELL=\${CONFIG_SHELL-$SHELL}
30792 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30793 ## -------------------- ##
30794 ## M4sh Initialization. ##
30795 ## -------------------- ##
30797 # Be more Bourne compatible
30798 DUALCASE
=1; export DUALCASE
# for MKS sh
30799 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30802 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30803 # is contrary to our usage. Disable this feature.
30804 alias -g '${1+"$@"}'='"$@"'
30805 setopt NO_GLOB_SUBST
30807 case `(set -o) 2>/dev/null` in #(
30819 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30820 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30821 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30822 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30823 # Prefer a ksh shell builtin over an external printf program on Solaris,
30824 # but without wasting forks for bash or zsh.
30825 if test -z "$BASH_VERSION$ZSH_VERSION" \
30826 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30827 as_echo='print
-r --'
30828 as_echo_n='print
-rn --'
30829 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30830 as_echo='printf %s
\n'
30831 as_echo_n='printf %s
'
30833 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30834 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30835 as_echo_n='/usr
/ucb
/echo -n'
30837 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30838 as_echo_n_body='eval
30842 expr "X$arg" : "X\\(.*\\)$as_nl";
30843 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30845 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30847 export as_echo_n_body
30848 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30850 export as_echo_body
30851 as_echo='sh
-c $as_echo_body as_echo
'
30854 # The user is always right.
30855 if test "${PATH_SEPARATOR+set}" != set; then
30857 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30858 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30865 # We need space, tab and new line, in precisely that order. Quoting is
30866 # there to prevent editors from complaining about space-tab.
30867 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30868 # splitting by setting IFS to empty value.)
30871 # Find who we are. Look in the path if we contain no directory separator.
30874 *[\\/]* ) as_myself=$0 ;;
30875 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30876 for as_dir in $PATH
30879 test -z "$as_dir" && as_dir=.
30880 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30886 # We did not find ourselves, most probably we were run as `sh COMMAND'
30887 # in which case we are not to be found in the path.
30888 if test "x$as_myself" = x
; then
30891 if test ! -f "$as_myself"; then
30892 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30896 # Unset variables that we do not need and which cause bugs (e.g. in
30897 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30898 # suppresses any "Segmentation fault" message there. '((' could
30899 # trigger a bug in pdksh 5.2.14.
30900 for as_var
in BASH_ENV ENV MAIL MAILPATH
30901 do eval test x\
${$as_var+set} = xset \
30902 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30915 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30918 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30919 # ----------------------------------------
30920 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30921 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30922 # script with STATUS, using 1 if that was 0.
30925 as_status
=$1; test $as_status -eq 0 && as_status
=1
30927 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30928 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30930 $as_echo "$as_me: error: $2" >&2
30931 as_fn_exit
$as_status
30935 # as_fn_set_status STATUS
30936 # -----------------------
30937 # Set $? to STATUS, without forking.
30938 as_fn_set_status
()
30941 } # as_fn_set_status
30943 # as_fn_exit STATUS
30944 # -----------------
30945 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30949 as_fn_set_status
$1
30955 # Portably unset VAR.
30958 { eval $1=; unset $1;}
30960 as_unset
=as_fn_unset
30961 # as_fn_append VAR VALUE
30962 # ----------------------
30963 # Append the text in VALUE to the end of the definition contained in VAR. Take
30964 # advantage of any shell optimizations that allow amortized linear growth over
30965 # repeated appends, instead of the typical quadratic growth present in naive
30967 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30968 eval 'as_fn_append ()
30979 # as_fn_arith ARG...
30980 # ------------------
30981 # Perform arithmetic evaluation on the ARGs, and store the result in the
30982 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30983 # must be portable across $(()) and expr.
30984 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30985 eval 'as_fn_arith ()
30992 as_val
=`expr "$@" || test $? -eq 1`
30997 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30998 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31004 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31005 as_basename
=basename
31010 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31016 as_me
=`$as_basename -- "$0" ||
31017 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31018 X"$0" : 'X\(//\)$' \| \
31019 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31021 sed '/^.*\/\([^/][^/]*\)\/*$/{
31035 # Avoid depending upon Character Ranges.
31036 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31037 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31038 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31039 as_cr_digits
='0123456789'
31040 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31042 ECHO_C
= ECHO_N
= ECHO_T
=
31043 case `echo -n x` in #(((((
31045 case `echo 'xy\c'` in
31046 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31048 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
31055 rm -f conf$$ conf$$.exe conf$$.
file
31056 if test -d conf$$.dir
; then
31057 rm -f conf$$.dir
/conf$$.
file
31060 mkdir conf$$.dir
2>/dev
/null
31062 if (echo >conf$$.
file) 2>/dev
/null
; then
31063 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31065 # ... but there are two gotchas:
31066 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31067 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31068 # In both cases, we have to default to `cp -pR'.
31069 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31071 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31079 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31080 rmdir conf$$.dir
2>/dev
/null
31085 # Create "$as_dir" as a directory, including parents if necessary.
31090 -*) as_dir
=.
/$as_dir;;
31092 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
31096 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31097 *) as_qdir
=$as_dir;;
31099 as_dirs
="'$as_qdir' $as_dirs"
31100 as_dir
=`$as_dirname -- "$as_dir" ||
31101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31102 X"$as_dir" : 'X\(//\)[^/]' \| \
31103 X"$as_dir" : 'X\(//\)$' \| \
31104 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31105 $as_echo X"$as_dir" |
31106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31110 /^X\(\/\/\)[^/].*/{
31123 test -d "$as_dir" && break
31125 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31126 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
31130 if mkdir
-p .
2>/dev
/null
; then
31131 as_mkdir_p
='mkdir -p "$as_dir"'
31133 test -d .
/-p && rmdir .
/-p
31138 # as_fn_executable_p FILE
31139 # -----------------------
31140 # Test if FILE is an executable regular file.
31141 as_fn_executable_p
()
31143 test -f "$1" && test -x "$1"
31144 } # as_fn_executable_p
31145 as_test_x
='test -x'
31146 as_executable_p
=as_fn_executable_p
31148 # Sed expression to map a string onto a valid CPP name.
31149 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31151 # Sed expression to map a string onto a valid variable name.
31152 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31156 ## ----------------------------------- ##
31157 ## Main body of $CONFIG_STATUS script. ##
31158 ## ----------------------------------- ##
31160 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
31162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31163 # Save the log message, to keep $0 and so on meaningful, and to
31164 # report actual input values of CONFIG_FILES etc. instead of their
31165 # values after options handling.
31167 This file was extended by $as_me, which was
31168 generated by GNU Autoconf 2.69. Invocation command line was
31170 CONFIG_FILES = $CONFIG_FILES
31171 CONFIG_HEADERS = $CONFIG_HEADERS
31172 CONFIG_LINKS = $CONFIG_LINKS
31173 CONFIG_COMMANDS = $CONFIG_COMMANDS
31176 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31181 case $ac_config_files in *"
31182 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31185 case $ac_config_headers in *"
31186 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31191 # Files that config.status was made for.
31192 config_files="$ac_config_files"
31193 config_headers="$ac_config_headers"
31194 config_links="$ac_config_links"
31195 config_commands="$ac_config_commands"
31199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31201 \`$as_me' instantiates files and other configuration actions
31202 from templates according to the current configuration. Unless the files
31203 and actions are specified as TAGs, all are instantiated by default.
31205 Usage: $0 [OPTION]... [TAG]...
31207 -h, --help print this help, then exit
31208 -V, --version print version number and configuration settings, then exit
31209 --config print configuration, then exit
31210 -q, --quiet, --silent
31211 do not print progress messages
31212 -d, --debug don't remove temporary files
31213 --recheck update $as_me by reconfiguring in the same conditions
31214 --file=FILE[:TEMPLATE]
31215 instantiate the configuration file FILE
31216 --header=FILE[:TEMPLATE]
31217 instantiate the configuration header FILE
31219 Configuration files:
31222 Configuration headers:
31225 Configuration links:
31228 Configuration commands:
31231 Report bugs to the package provider."
31234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31235 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31238 configured by $0, generated by GNU Autoconf 2.69,
31239 with options \\"\$ac_cs_config\\"
31241 Copyright (C) 2012 Free Software Foundation, Inc.
31242 This config.status script is free software; the Free Software Foundation
31243 gives unlimited permission to copy, distribute and modify it."
31248 test -n "\$AWK" || AWK=awk
31251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31252 # The default lists apply if the user does not specify any file.
31258 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31259 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31263 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31275 # Handling of the options.
31276 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31278 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31279 $as_echo "$ac_cs_version"; exit ;;
31280 --config |
--confi |
--conf |
--con |
--co |
--c )
31281 $as_echo "$ac_cs_config"; exit ;;
31282 --debug |
--debu |
--deb |
--de |
--d |
-d )
31284 --file |
--fil |
--fi |
--f )
31287 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31288 '') as_fn_error $?
"missing file argument" ;;
31290 as_fn_append CONFIG_FILES
" '$ac_optarg'"
31291 ac_need_defaults
=false
;;
31292 --header |
--heade |
--head |
--hea )
31295 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31297 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
31298 ac_need_defaults
=false
;;
31300 # Conflict between --help and --header
31301 as_fn_error $?
"ambiguous option: \`$1'
31302 Try \`$0 --help' for more information.";;
31303 --help |
--hel |
-h )
31304 $as_echo "$ac_cs_usage"; exit ;;
31305 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31306 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31309 # This is an error.
31310 -*) as_fn_error $?
"unrecognized option: \`$1'
31311 Try \`$0 --help' for more information." ;;
31313 *) as_fn_append ac_config_targets
" $1"
31314 ac_need_defaults
=false
;;
31320 ac_configure_extra_args
=
31322 if $ac_cs_silent; then
31324 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31329 if \$ac_cs_recheck; then
31330 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31332 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31333 CONFIG_SHELL='$SHELL'
31334 export CONFIG_SHELL
31339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31343 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31344 ## Running $as_me. ##
31350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31354 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31355 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31362 # Handling of arguments.
31363 for ac_config_target
in $ac_config_targets
31365 case $ac_config_target in
31366 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
31367 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
31368 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
31369 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
31370 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31371 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
31372 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31373 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
31374 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
31376 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31381 # If the user did not use the arguments to specify the items to instantiate,
31382 # then the envvar interface is used. Set only those that are not.
31383 # We use the long form for the default assignment because of an extremely
31384 # bizarre bug on SunOS 4.1.3.
31385 if $ac_need_defaults; then
31386 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
31387 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
31388 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
31389 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
31392 # Have a temporary directory for convenience. Make it in the build tree
31393 # simply because there is no reason against having it here, and in addition,
31394 # creating and moving files from /tmp can sometimes cause problems.
31395 # Hook for its removal unless debugging.
31396 # Note that there is a small window in which the directory will not be cleaned:
31397 # after its creation but before its name has been assigned to `$tmp'.
31401 trap 'exit_status=$?
31402 : "${ac_tmp:=$tmp}"
31403 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31405 trap 'as_fn_exit 1' 1 2 13 15
31407 # Create a (secure) tmp directory for tmp files.
31410 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31414 tmp
=.
/conf$$
-$RANDOM
31415 (umask 077 && mkdir
"$tmp")
31416 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
31419 # Set up the scripts for CONFIG_FILES section.
31420 # No need to generate them if there are no CONFIG_FILES.
31421 # This happens for instance with `./config.status config.h'.
31422 if test -n "$CONFIG_FILES"; then
31424 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
31425 ac_cs_awk_getline
=:
31426 ac_cs_awk_pipe_init
=
31427 ac_cs_awk_read_file
='
31428 while ((getline aline < (F[key])) > 0)
31431 ac_cs_awk_pipe_fini
=
31433 ac_cs_awk_getline
=false
31434 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
31435 ac_cs_awk_read_file
='
31437 print "cat " F[key] " &&"
31438 '$ac_cs_awk_pipe_init
31439 # The final `:' finishes the AND list.
31440 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
31442 ac_cr
=`echo X | tr X '\015'`
31443 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31444 # But we know of no other shell where ac_cr would be empty at this
31445 # point, so we can use a bashism as a fallback.
31446 if test "x$ac_cr" = x
; then
31447 eval ac_cr
=\$
\'\\r
\'
31449 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31450 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31453 ac_cs_awk_cr
=$ac_cr
31456 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31459 # Create commands to substitute file output variables.
31461 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31462 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31463 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
31466 } >conf$
$files.sh
&&
31467 . .
/conf$
$files.sh ||
31468 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
31469 rm -f conf$
$files.sh
31472 echo "cat >conf$$subs.awk <<_ACEOF" &&
31473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31475 } >conf$$subs.sh ||
31476 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31477 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31479 for ac_last_try in false false false false false :; do
31480 . ./conf$$subs.sh ||
31481 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31483 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
31484 if test $ac_delim_n = $ac_delim_num; then
31486 elif $ac_last_try; then
31487 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31489 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31492 rm -f conf$$subs.sh
31494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31495 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
31499 s/^/S["/; s
/!.
*/"]=/
31509 s/\(.\{148\}\)..*/\1/
31511 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31516 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31523 s/\(.\{148\}\)..*/\1/
31525 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31529 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31534 ' <conf$$subs.awk | sed '
31539 ' >>$CONFIG_STATUS || ac_write_fail=1
31540 rm -f conf$$subs.awk
31541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31543 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
31544 for (key in S) S_is_set[key] = 1
31546 \$ac_cs_awk_pipe_init
31550 nfields = split(line, field, "@
")
31552 len = length(field[1])
31553 for (i = 2; i < nfields; i++) {
31555 keylen = length(key)
31556 if (S_is_set[key]) {
31558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31559 len += length(value) + length(field[++i])
31564 if (nfields == 3 && !substed) {
31566 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31567 \$ac_cs_awk_read_file
31573 \$ac_cs_awk_pipe_fini
31576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31577 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31578 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31581 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
31582 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
31585 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31586 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
31587 # trailing colons and then remove the whole line if VPATH becomes empty
31588 # (actually we leave an empty line to preserve line numbers).
31589 if test "x
$srcdir" = x.; then
31590 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31609 fi # test -n "$CONFIG_FILES"
31611 # Set up the scripts for CONFIG_HEADERS section.
31612 # No need to generate them if there are no CONFIG_HEADERS.
31613 # This happens for instance with `./config.status Makefile'.
31614 if test -n "$CONFIG_HEADERS"; then
31615 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
31619 # Transform confdefs.h into an awk script `defines.awk', embedded as
31620 # here-document in config.status, that substitutes the proper values into
31621 # config.h.in to produce config.h.
31623 # Create a delimiter string that does not exist in confdefs.h, to ease
31624 # handling of long lines.
31626 for ac_last_try in false false :; do
31627 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
31628 if test -z "$ac_tt"; then
31630 elif $ac_last_try; then
31631 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
31633 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31637 # For the awk script, D is an array of macro values keyed by name,
31638 # likewise P contains macro parameters if any. Preserve backslash
31639 # newline sequences.
31641 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31643 s/.\{148\}/&'"$ac_delim"'/g
31646 s/^[ ]*#[ ]*define[ ][ ]*/ /
31653 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31655 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31659 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31660 D["\
1"]=" \
3\\\\\\n
"\\/p
31662 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31667 s/.\{148\}/&'"$ac_delim"'/g
31672 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31675 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31677 ' <confdefs.h | sed '
31678 s/'"$ac_delim"'/"\\\
31679 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31682 for (key in D) D_is_set[key] = 1
31685 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31687 split(line, arg, " ")
31688 if (arg[1] == "#") {
31692 defundef
= substr
(arg
[1], 2)
31695 split(mac1
, mac2
, "(") #)
31697 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31698 if (D_is_set
[macro
]) {
31699 # Preserve the white space surrounding the "#".
31700 print prefix
"define", macro P
[macro
] D
[macro
]
31703 # Replace #undef with comments. This is necessary, for example,
31704 # in the case of _POSIX_SOURCE, which is predefined and required
31705 # on some systems where configure will not decide to define it.
31706 if (defundef
== "undef") {
31707 print
"/*", prefix defundef
, macro
, "*/"
31715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31716 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
31717 fi # test -n "$CONFIG_HEADERS"
31720 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31725 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31727 case $ac_mode$ac_tag in
31729 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31730 :[FH
]-) ac_tag
=-:-;;
31731 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31748 -) ac_f
="$ac_tmp/stdin";;
31749 *) # Look for the file first in the build tree, then in the source tree
31750 # (if the path is not absolute). The absolute path cannot be DOS-style,
31751 # because $ac_f cannot contain `:'.
31755 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31757 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31759 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31760 as_fn_append ac_file_inputs
" '$ac_f'"
31763 # Let's still pretend it is `configure' which instantiates (i.e., don't
31764 # use $as_me), people would be surprised to read:
31765 # /* config.h. Generated by config.status. */
31766 configure_input
='Generated from '`
31767 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31769 if test x
"$ac_file" != x-
; then
31770 configure_input
="$ac_file. $configure_input"
31771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31772 $as_echo "$as_me: creating $ac_file" >&6;}
31774 # Neutralize special characters interpreted by sed in replacement strings.
31775 case $configure_input in #(
31776 *\
&* |
*\|
* |
*\\* )
31777 ac_sed_conf_input
=`$as_echo "$configure_input" |
31778 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31779 *) ac_sed_conf_input
=$configure_input;;
31783 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
31784 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
31789 ac_dir
=`$as_dirname -- "$ac_file" ||
31790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31791 X"$ac_file" : 'X\(//\)[^/]' \| \
31792 X"$ac_file" : 'X\(//\)$' \| \
31793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31794 $as_echo X"$ac_file" |
31795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31799 /^X\(\/\/\)[^/].*/{
31812 as_dir
="$ac_dir"; as_fn_mkdir_p
31816 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31818 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31819 # A ".." for each directory in $ac_dir_suffix.
31820 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31821 case $ac_top_builddir_sub in
31822 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31823 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31826 ac_abs_top_builddir
=$ac_pwd
31827 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31828 # for backward compatibility:
31829 ac_top_builddir
=$ac_top_build_prefix
31832 .
) # We are building in place.
31834 ac_top_srcdir
=$ac_top_builddir_sub
31835 ac_abs_top_srcdir
=$ac_pwd ;;
31836 [\\/]* | ?
:[\\/]* ) # Absolute name.
31837 ac_srcdir
=$srcdir$ac_dir_suffix;
31838 ac_top_srcdir
=$srcdir
31839 ac_abs_top_srcdir
=$srcdir ;;
31840 *) # Relative name.
31841 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31842 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31843 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31845 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31857 # If the template does not know about datarootdir, expand it.
31858 # FIXME: This hack should be removed a few years after 2.60.
31859 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31870 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31871 *datarootdir
*) ac_datarootdir_seen
=yes;;
31872 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31874 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31877 ac_datarootdir_hack='
31878 s&@datadir@&$datadir&g
31879 s&@docdir@&$docdir&g
31880 s&@infodir@&$infodir&g
31881 s&@localedir@&$localedir&g
31882 s&@mandir@&$mandir&g
31883 s&\\\${datarootdir}&$datarootdir&g' ;;
31887 # Neutralize VPATH when `$srcdir' = `.'.
31888 # Shell code in configure.ac might set extrasub.
31889 # FIXME: do we really want to maintain this feature?
31890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31891 ac_sed_extra="$ac_vpsub
31894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31896 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31897 s|@configure_input@|
$ac_sed_conf_input|
;t t
31898 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31899 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31900 s
&@srcdir@
&$ac_srcdir&;t t
31901 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31902 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31903 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31904 s
&@builddir@
&$ac_builddir&;t t
31905 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31906 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31907 $ac_datarootdir_hack
31909 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31910 if $ac_cs_awk_getline; then
31911 $AWK -f "$ac_tmp/subs.
awk"
31913 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
31915 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
31917 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31918 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
31919 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31920 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
31921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31922 which seems to be undefined. Please make sure it is defined" >&5
31923 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31924 which seems to be undefined. Please make sure it is defined" >&2;}
31926 rm -f "$ac_tmp/stdin"
31928 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31929 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31931 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31937 if test x"$ac_file" != x-; then
31939 $as_echo "/* $configure_input */" \
31940 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31941 } >"$ac_tmp/config.h" \
31942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31943 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31944 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31945 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31948 mv "$ac_tmp/config.h" "$ac_file" \
31949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31952 $as_echo "/* $configure_input */" \
31953 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31954 || as_fn_error $? "could not create -" "$LINENO" 5
31962 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31965 # Prefer the file from the source tree if names are identical.
31966 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31967 ac_source=$srcdir/$ac_source
31970 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31971 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31973 if test ! -r "$ac_source"; then
31974 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31978 # Try a relative symlink, then a hard link, then a copy.
31980 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31981 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31983 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31984 ln "$ac_source" "$ac_file" 2>/dev/null ||
31985 cp -p "$ac_source" "$ac_file" ||
31986 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31989 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31990 $as_echo "$as_me: executing $ac_file commands" >&6;}
31995 case $ac_file$ac_mode in
31996 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31998 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31999 for lang in $subdirs c-family common analyzer
32001 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32003 "as":F) chmod +x as ;;
32004 "collect-ld":F) chmod +x collect-ld ;;
32005 "nm":F) chmod +x nm ;;
32007 case ${CONFIG_HEADERS} in
32008 *auto-host.h:config.in*)
32011 # Make sure all the subdirs exist.
32012 for d in $subdirs doc build common c-family
32014 test -d $d || mkdir $d
32024 ac_clean_files=$ac_clean_files_save
32026 test $ac_write_fail = 0 ||
32027 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32030 # configure is writing to config.log, and then calls config.status.
32031 # config.status does its own redirection, appending to config.log.
32032 # Unfortunately, on DOS this fails, as config.log is still kept open
32033 # by configure, so config.status won't be able to
write to it
; its
32034 # output is simply discarded. So we exec the FD to /dev/null,
32035 # effectively closing config.log, so it can be properly (re)opened and
32036 # appended to by config.status. When coming back to configure, we
32037 # need to make the FD available again.
32038 if test "$no_create" != yes; then
32040 ac_config_status_args
=
32041 test "$silent" = yes &&
32042 ac_config_status_args
="$ac_config_status_args --quiet"
32044 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
32046 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32047 # would make configure fail if this is the last instruction.
32048 $ac_cs_success || as_fn_exit
1
32050 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
32051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32052 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}