2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
627 common_out_object_file
643 gcc_gxx_include_dir_add_sysroot
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
653 TM_MULTILIB_EXCEPTIONS_CONFIG
663 build_xm_include_list
665 build_install_headers_dir
667 all_selected_languages
685 ld_version_script_option
689 ORIGINAL_NM_FOR_TARGET
691 ORIGINAL_LD_GOLD_FOR_TARGET
692 ORIGINAL_LD_BFD_FOR_TARGET
693 ORIGINAL_LD_FOR_TARGET
694 ORIGINAL_PLUGIN_LD_FOR_TARGET
696 ORIGINAL_AS_FOR_TARGET
714 NO_PIE_FLAG_FOR_BUILD
715 NO_PIE_CFLAGS_FOR_BUILD
725 BUILD_SYSTEM_HEADER_DIR
744 NATIVE_SYSTEM_HEADER_DIR
777 real_target_noncanonical
778 enable_as_accelerator
793 valgrind_path_defines
823 CROSS_SYSTEM_HEADER_DIR
824 TARGET_SYSTEM_ROOT_DEFINE
826 SYSROOT_CFLAGS_FOR_TARGET
872 program_transform_name
883 ac_subst_files
='option_includes
886 enable_option_checking
889 with_native_system_header_dir
894 enable_generated_files_in_srcdir
901 enable_build_format_warnings
905 enable_gather_detailed_mem_stats
906 enable_valgrind_annotations
910 with_stack_clash_protection_guard_size
928 enable_sjlj_exceptions
929 with_gcc_major_version_only
931 enable_mingw_wildcard
932 enable_large_address_aware
933 enable_leading_mingw64_underscores
936 enable_win32_registry
944 enable_gnu_indirect_function
945 enable_initfini_array
947 enable_fix_cortex_a53_835769
948 enable_fix_cortex_a53_843419
950 enable_gnu_unique_object
951 enable_linker_build_id
955 with_long_double_format
958 enable_maintainer_mode
960 enable_version_specific_runtime_libs
963 enable_libquadmath_support
964 with_linker_hash_style
965 with_diagnostics_color
968 ac_precious_vars
='build_alias
987 # Initialize some variables set by options.
989 ac_init_version
=false
990 ac_unrecognized_opts
=
992 # The variables have the same names as the options, with
993 # dashes changed to underlines.
1001 program_transform_name
=s
,x
,x
,
1009 # Installation directory options.
1010 # These are left unexpanded so users can "make install exec_prefix=/foo"
1011 # and all the variables that are supposed to be based on exec_prefix
1012 # by default will actually change.
1013 # Use braces instead of parens because sh, perl, etc. also accept them.
1014 # (The list follows the same order as the GNU Coding Standards.)
1015 bindir
='${exec_prefix}/bin'
1016 sbindir
='${exec_prefix}/sbin'
1017 libexecdir
='${exec_prefix}/libexec'
1018 datarootdir
='${prefix}/share'
1019 datadir
='${datarootdir}'
1020 sysconfdir
='${prefix}/etc'
1021 sharedstatedir
='${prefix}/com'
1022 localstatedir
='${prefix}/var'
1023 includedir
='${prefix}/include'
1024 oldincludedir
='/usr/include'
1025 docdir
='${datarootdir}/doc/${PACKAGE}'
1026 infodir
='${datarootdir}/info'
1031 libdir
='${exec_prefix}/lib'
1032 localedir
='${datarootdir}/locale'
1033 mandir
='${datarootdir}/man'
1039 # If the previous option needs an argument, assign it.
1040 if test -n "$ac_prev"; then
1041 eval $ac_prev=\
$ac_option
1047 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1051 # Accept the important Cygnus configure options, so we can diagnose typos.
1053 case $ac_dashdash$ac_option in
1057 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1059 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1060 bindir
=$ac_optarg ;;
1062 -build |
--build |
--buil |
--bui |
--bu)
1063 ac_prev
=build_alias
;;
1064 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1065 build_alias
=$ac_optarg ;;
1067 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1068 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1069 ac_prev
=cache_file
;;
1070 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1071 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1072 cache_file
=$ac_optarg ;;
1074 --config-cache |
-C)
1075 cache_file
=config.cache
;;
1077 -datadir |
--datadir |
--datadi |
--datad)
1079 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1080 datadir
=$ac_optarg ;;
1082 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1083 |
--dataroo |
--dataro |
--datar)
1084 ac_prev
=datarootdir
;;
1085 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1086 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1087 datarootdir
=$ac_optarg ;;
1089 -disable-* |
--disable-*)
1090 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1093 as_fn_error
"invalid feature name: $ac_useropt"
1094 ac_useropt_orig
=$ac_useropt
1095 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1098 "enable_
$ac_useropt"
1100 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1101 ac_unrecognized_sep
=', ';;
1103 eval enable_
$ac_useropt=no
;;
1105 -docdir |
--docdir |
--docdi |
--doc |
--do)
1107 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1108 docdir
=$ac_optarg ;;
1110 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1112 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1113 dvidir
=$ac_optarg ;;
1115 -enable-* |
--enable-*)
1116 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1119 as_fn_error
"invalid feature name: $ac_useropt"
1120 ac_useropt_orig
=$ac_useropt
1121 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1124 "enable_
$ac_useropt"
1126 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1127 ac_unrecognized_sep
=', ';;
1129 eval enable_
$ac_useropt=\
$ac_optarg ;;
1131 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1132 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1133 |
--exec |
--exe |
--ex)
1134 ac_prev
=exec_prefix
;;
1135 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1136 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1137 |
--exec=* |
--exe=* |
--ex=*)
1138 exec_prefix
=$ac_optarg ;;
1140 -gas |
--gas |
--ga |
--g)
1141 # Obsolete; use --with-gas.
1144 -help |
--help |
--hel |
--he |
-h)
1145 ac_init_help
=long
;;
1146 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1147 ac_init_help
=recursive
;;
1148 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1149 ac_init_help
=short
;;
1151 -host |
--host |
--hos |
--ho)
1152 ac_prev
=host_alias
;;
1153 -host=* |
--host=* |
--hos=* |
--ho=*)
1154 host_alias
=$ac_optarg ;;
1156 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1158 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1160 htmldir
=$ac_optarg ;;
1162 -includedir |
--includedir |
--includedi |
--included |
--include \
1163 |
--includ |
--inclu |
--incl |
--inc)
1164 ac_prev
=includedir
;;
1165 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1166 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1167 includedir
=$ac_optarg ;;
1169 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1171 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1172 infodir
=$ac_optarg ;;
1174 -libdir |
--libdir |
--libdi |
--libd)
1176 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1177 libdir
=$ac_optarg ;;
1179 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1180 |
--libexe |
--libex |
--libe)
1181 ac_prev
=libexecdir
;;
1182 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1183 |
--libexe=* |
--libex=* |
--libe=*)
1184 libexecdir
=$ac_optarg ;;
1186 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1187 ac_prev
=localedir
;;
1188 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1189 localedir
=$ac_optarg ;;
1191 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1192 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1193 ac_prev
=localstatedir
;;
1194 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1195 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1196 localstatedir
=$ac_optarg ;;
1198 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1200 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1201 mandir
=$ac_optarg ;;
1203 -nfp |
--nfp |
--nf)
1204 # Obsolete; use --without-fp.
1207 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1208 |
--no-cr |
--no-c |
-n)
1211 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1212 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1215 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1216 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1217 |
--oldin |
--oldi |
--old |
--ol |
--o)
1218 ac_prev
=oldincludedir
;;
1219 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1220 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1221 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1222 oldincludedir
=$ac_optarg ;;
1224 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1226 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1227 prefix
=$ac_optarg ;;
1229 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1230 |
--program-pre |
--program-pr |
--program-p)
1231 ac_prev
=program_prefix
;;
1232 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1233 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1234 program_prefix
=$ac_optarg ;;
1236 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1237 |
--program-suf |
--program-su |
--program-s)
1238 ac_prev
=program_suffix
;;
1239 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1240 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1241 program_suffix
=$ac_optarg ;;
1243 -program-transform-name |
--program-transform-name \
1244 |
--program-transform-nam |
--program-transform-na \
1245 |
--program-transform-n |
--program-transform- \
1246 |
--program-transform |
--program-transfor \
1247 |
--program-transfo |
--program-transf \
1248 |
--program-trans |
--program-tran \
1249 |
--progr-tra |
--program-tr |
--program-t)
1250 ac_prev
=program_transform_name
;;
1251 -program-transform-name=* |
--program-transform-name=* \
1252 |
--program-transform-nam=* |
--program-transform-na=* \
1253 |
--program-transform-n=* |
--program-transform-=* \
1254 |
--program-transform=* |
--program-transfor=* \
1255 |
--program-transfo=* |
--program-transf=* \
1256 |
--program-trans=* |
--program-tran=* \
1257 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1258 program_transform_name
=$ac_optarg ;;
1260 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1262 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1263 pdfdir
=$ac_optarg ;;
1265 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1267 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1270 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1271 |
-silent |
--silent |
--silen |
--sile |
--sil)
1274 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1276 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1278 sbindir
=$ac_optarg ;;
1280 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1281 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1282 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1284 ac_prev
=sharedstatedir
;;
1285 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1286 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1287 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1289 sharedstatedir
=$ac_optarg ;;
1291 -site |
--site |
--sit)
1293 -site=* |
--site=* |
--sit=*)
1296 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1298 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1299 srcdir
=$ac_optarg ;;
1301 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1302 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1303 ac_prev
=sysconfdir
;;
1304 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1305 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1306 sysconfdir
=$ac_optarg ;;
1308 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1309 ac_prev
=target_alias
;;
1310 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1311 target_alias
=$ac_optarg ;;
1313 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1316 -version |
--version |
--versio |
--versi |
--vers |
-V)
1317 ac_init_version
=: ;;
1320 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1323 as_fn_error
"invalid package name: $ac_useropt"
1324 ac_useropt_orig
=$ac_useropt
1325 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1330 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1331 ac_unrecognized_sep
=', ';;
1333 eval with_
$ac_useropt=\
$ac_optarg ;;
1335 -without-* |
--without-*)
1336 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1339 as_fn_error
"invalid package name: $ac_useropt"
1340 ac_useropt_orig
=$ac_useropt
1341 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1346 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1347 ac_unrecognized_sep
=', ';;
1349 eval with_
$ac_useropt=no
;;
1352 # Obsolete; use --with-x.
1355 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1356 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1357 ac_prev
=x_includes
;;
1358 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1359 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1360 x_includes
=$ac_optarg ;;
1362 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1363 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1364 ac_prev
=x_libraries
;;
1365 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1366 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1367 x_libraries
=$ac_optarg ;;
1369 -*) as_fn_error
"unrecognized option: \`$ac_option'
1370 Try \`$0 --help' for more information."
1374 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1375 # Reject names that are not valid shell variable names.
1376 case $ac_envvar in #(
1377 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1378 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1380 eval $ac_envvar=\
$ac_optarg
1381 export $ac_envvar ;;
1384 # FIXME: should be removed in autoconf 3.0.
1385 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1386 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1387 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1388 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1394 if test -n "$ac_prev"; then
1395 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1396 as_fn_error
"missing argument to $ac_option"
1399 if test -n "$ac_unrecognized_opts"; then
1400 case $enable_option_checking in
1402 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1403 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1407 # Check all directory arguments for consistency.
1408 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1409 datadir sysconfdir sharedstatedir localstatedir includedir \
1410 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1411 libdir localedir mandir
1413 eval ac_val
=\$
$ac_var
1414 # Remove trailing slashes.
1417 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1418 eval $ac_var=\
$ac_val;;
1420 # Be sure to have absolute directory names.
1422 [\\/$
]* | ?
:[\\/]* ) continue;;
1423 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1425 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1428 # There might be people who depend on the old broken behavior: `$host'
1429 # used to hold the argument of --host etc.
1430 # FIXME: To remove some day.
1433 target
=$target_alias
1435 # FIXME: To remove some day.
1436 if test "x$host_alias" != x
; then
1437 if test "x$build_alias" = x
; then
1438 cross_compiling
=maybe
1439 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1440 If a cross compiler is detected then cross compile mode will be used." >&2
1441 elif test "x$build_alias" != "x$host_alias"; then
1447 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1449 test "$silent" = yes && exec 6>/dev
/null
1452 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1453 ac_ls_di
=`ls -di .` &&
1454 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1455 as_fn_error
"working directory cannot be determined"
1456 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1457 as_fn_error
"pwd does not report name of working directory"
1460 # Find the source files, if location was not specified.
1461 if test -z "$srcdir"; then
1462 ac_srcdir_defaulted
=yes
1463 # Try the directory containing this script, then the parent directory.
1464 ac_confdir
=`$as_dirname -- "$as_myself" ||
1465 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1466 X"$as_myself" : 'X\(//\)[^/]' \| \
1467 X"$as_myself" : 'X\(//\)$' \| \
1468 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1469 $as_echo X"$as_myself" |
1470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1488 if test ! -r "$srcdir/$ac_unique_file"; then
1492 ac_srcdir_defaulted
=no
1494 if test ! -r "$srcdir/$ac_unique_file"; then
1495 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1496 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1498 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1500 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1502 # When building in place, set srcdir=.
1503 if test "$ac_abs_confdir" = "$ac_pwd"; then
1506 # Remove unnecessary trailing slashes from srcdir.
1507 # Double slashes in file names in object file debugging info
1508 # mess up M-x gdb in Emacs.
1510 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1512 for ac_var
in $ac_precious_vars; do
1513 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1514 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1515 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1516 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1520 # Report the --help message.
1522 if test "$ac_init_help" = "long"; then
1523 # Omit some internal or obsolete options to make the list less imposing.
1524 # This message is too long to be a string in the A/UX 3.1 sh.
1526 \`configure' configures this package to adapt to many kinds of systems.
1528 Usage: $0 [OPTION]... [VAR=VALUE]...
1530 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1531 VAR=VALUE. See below for descriptions of some of the useful variables.
1533 Defaults for the options are specified in brackets.
1536 -h, --help display this help and exit
1537 --help=short display options specific to this package
1538 --help=recursive display the short help of all the included packages
1539 -V, --version display version information and exit
1540 -q, --quiet, --silent do not print \`checking...' messages
1541 --cache-file=FILE cache test results in FILE [disabled]
1542 -C, --config-cache alias for \`--cache-file=config.cache'
1543 -n, --no-create do not create output files
1544 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1546 Installation directories:
1547 --prefix=PREFIX install architecture-independent files in PREFIX
1548 [$ac_default_prefix]
1549 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1552 By default, \`make install' will install all the files in
1553 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1554 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1555 for instance \`--prefix=\$HOME'.
1557 For better control, use the options below.
1559 Fine tuning of the installation directories:
1560 --bindir=DIR user executables [EPREFIX/bin]
1561 --sbindir=DIR system admin executables [EPREFIX/sbin]
1562 --libexecdir=DIR program executables [EPREFIX/libexec]
1563 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1564 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1565 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1566 --libdir=DIR object code libraries [EPREFIX/lib]
1567 --includedir=DIR C header files [PREFIX/include]
1568 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1569 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1570 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1571 --infodir=DIR info documentation [DATAROOTDIR/info]
1572 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1573 --mandir=DIR man documentation [DATAROOTDIR/man]
1574 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1575 --htmldir=DIR html documentation [DOCDIR]
1576 --dvidir=DIR dvi documentation [DOCDIR]
1577 --pdfdir=DIR pdf documentation [DOCDIR]
1578 --psdir=DIR ps documentation [DOCDIR]
1584 --program-prefix=PREFIX prepend PREFIX to installed program names
1585 --program-suffix=SUFFIX append SUFFIX to installed program names
1586 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1589 --build=BUILD configure
for building on BUILD
[guessed
]
1590 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1591 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1595 if test -n "$ac_init_help"; then
1600 --disable-option-checking ignore unrecognized
--enable/--with options
1601 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1602 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1603 --enable-generated-files-in-srcdir
1604 put copies of generated files
in source dir intended
1605 for creating
source tarballs
for users without
1606 texinfo bison or flex
1607 --disable-largefile omit support
for large files
1608 --disable-build-format-warnings
1609 don
't use -Wformat while building GCC
1610 --enable-werror-always enable -Werror despite compiler version
1611 --enable-checking[=LIST]
1612 enable expensive run-time checks. With LIST, enable
1613 only specific categories of checks. Categories are:
1614 yes,no,all,none,release. Flags are:
1615 assert,df,extra,fold,gc,gcac,gimple,misc,
1616 rtlflag,rtl,runtime,tree,valgrind,types
1617 --enable-coverage[=LEVEL]
1618 enable compiler's code coverage collection. Use to
1619 measure compiler performance and
locate unused parts
1620 of the compiler. With LEVEL
, specify optimization.
1621 Values are opt
, noopt
, default is noopt
1622 --enable-gather-detailed-mem-stats
1623 enable detailed memory allocation stats gathering
1624 --enable-valgrind-annotations
1625 enable valgrind runtime interaction
1626 --enable-multilib enable library support
for multiple ABIs
1627 --enable-multiarch enable support
for multiarch paths
1628 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1629 --enable-decimal-float={no
,yes,bid
,dpd
}
1630 enable decimal float extension to C. Selecting
'bid'
1631 or
'dpd' choses
which decimal floating point format
1633 --enable-fixed-point enable fixed-point arithmetic extension to C
1634 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1636 --enable-tls enable or disable generation of tls code overriding
1637 the assembler check
for tls support
1638 --enable-vtable-verify enable vtable verification feature
1639 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1640 GNU Objective-C runtime
1641 --disable-shared don't provide a shared libgcc
1642 --disable-gcov don
't provide libgcov and related host tools
1643 --enable-languages=LIST specify which front-ends to build
1644 --disable-rpath do not hardcode runtime library paths
1645 --enable-sjlj-exceptions
1646 arrange to use setjmp/longjmp exception handling
1647 --enable-secureplt enable -msecure-plt by default for PowerPC
1648 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1649 Default to platform configuration
1650 --enable-large-address-aware
1651 Link mingw executables with --large-address-aware
1652 --enable-leading-mingw64-underscores
1653 enable leading underscores on 64 bit mingw targets
1654 --enable-cld enable -mcld by default for 32bit x86
1655 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1657 --disable-win32-registry
1658 disable lookup of installation paths in the Registry
1660 --enable-win32-registry enable registry lookup (default)
1661 --enable-win32-registry=KEY
1662 use KEY instead of GCC version as the last portion
1664 --enable-shared[=PKGS] build shared libraries [default=yes]
1665 --enable-static[=PKGS] build static libraries [default=yes]
1666 --enable-fast-install[=PKGS]
1667 optimize for fast installation [default=yes]
1668 --disable-libtool-lock avoid locking (might break parallel builds)
1669 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1670 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1671 --enable-gnu-indirect-function
1672 enable the use of the @gnu_indirect_function to
1674 --enable-initfini-array use .init_array/.fini_array sections
1675 --enable-comdat enable COMDAT group support
1677 --enable-fix-cortex-a53-835769
1678 enable workaround for AArch64 Cortex-A53 erratum
1680 --disable-fix-cortex-a53-835769
1681 disable workaround for AArch64 Cortex-A53 erratum
1685 --enable-fix-cortex-a53-843419
1686 enable workaround for AArch64 Cortex-A53 erratum
1688 --disable-fix-cortex-a53-843419
1689 disable workaround for AArch64 Cortex-A53 erratum
1692 --enable-gnu-unique-object
1693 enable the use of the @gnu_unique_object ELF
1694 extension on glibc systems
1695 --enable-linker-build-id
1696 compiler will always pass --build-id to linker
1697 --enable-libssp enable linking against libssp
1698 --enable-default-ssp enable Stack Smashing Protection as default
1699 --enable-maintainer-mode
1700 enable make rules and dependencies not useful (and
1701 sometimes confusing) to the casual installer
1702 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1703 thrashing on the build machine
1704 --enable-version-specific-runtime-libs
1705 specify that runtime libraries should be installed
1706 in a compiler-specific directory
1707 --enable-plugin enable plugin support
1708 --enable-host-shared build host code as shared libraries
1709 --disable-libquadmath-support
1710 disable libquadmath support for Fortran
1711 --enable-default-pie enable Position Independent Executable as default
1714 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1715 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1716 --with-build-libsubdir=DIR Directory where to find libraries for build system
1717 --with-local-prefix=DIR specifies directory to put local include
1718 --with-native-system-header-dir=dir
1719 use dir as the directory to look for standard
1720 system header files in. Defaults to /usr/include.
1721 --with-build-sysroot=sysroot
1722 use sysroot as the system root during the build
1723 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1724 --with-gxx-include-dir=DIR
1725 specifies directory to put g++ header files
1726 --with-cpp-install-dir=DIR
1727 install the user visible C preprocessor in DIR
1728 (relative to PREFIX) as well as PREFIX/bin
1729 --with-gnu-ld arrange to work with GNU ld
1730 --with-ld arrange to use the specified ld (full pathname)
1731 --with-demangler-in-ld try to use demangler in GNU ld
1732 --with-gnu-as arrange to work with GNU as
1733 --with-as arrange to use the specified as (full pathname)
1734 --with-stabs arrange to use stabs instead of host debug format
1735 --with-stack-clash-protection-guard-size=size
1736 Set the default stack clash protection guard size
1737 for specific targets as a power of two in bytes.
1738 --with-dwarf2 force the default debug format to be DWARF 2
1739 --with-specs=SPECS add SPECS to driver command-line processing
1740 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1741 --with-bugurl=URL Direct users to URL to report a bug
1742 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1743 --with-gnu-ld assume the C compiler uses GNU ld default=no
1744 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1745 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1746 --with-gcc-major-version-only
1747 use only GCC major number
in filesystem paths
1748 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1750 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1751 --with-plugin-ld=[ARG
] specify the plugin linker
1752 --with-glibc-version=M.N
1753 assume GCC used with glibc version M.N or later
1754 --with-long-double-128 use
128-bit long double by default
1755 --with-long-double-format={ieee
,ibm
}
1756 Specify whether PowerPC long double uses IEEE or IBM format
1758 --with-gc={page
,zone
} this option is not supported anymore. It used to
1759 choose the garbage collection mechanism to use with
1761 --with-system-zlib use installed libz
1762 --with-linker-hash-style={sysv
,gnu
,both
}
1763 specify the linker
hash style
1764 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1765 specify the default of
-fdiagnostics-color option
1766 auto-if-env stands
for -fdiagnostics-color=auto
if
1767 GCC_COLOR environment variable is present and
1768 -fdiagnostics-color=never otherwise
1770 Some influential environment variables
:
1771 CC C compiler
command
1772 CFLAGS C compiler flags
1773 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1774 nonstandard directory
<lib dir
>
1775 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1776 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1777 you have headers
in a nonstandard directory
<include dir
>
1778 CXX C
++ compiler
command
1779 CXXFLAGS C
++ compiler flags
1780 CXXCPP C
++ preprocessor
1782 GMPLIBS How to link GMP
1783 GMPINC How to
find GMP include files
1784 ISLLIBS How to link isl
1785 ISLINC How to
find isl include files
1787 Use these variables to override the choices made by
`configure' or to help
1788 it to find libraries and programs with nonstandard names/locations.
1790 Report bugs to the package provider.
1795 if test "$ac_init_help" = "recursive"; then
1796 # If there are subdirs, report their specific --help.
1797 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1798 test -d "$ac_dir" ||
1799 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1806 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1807 # A ".." for each directory in $ac_dir_suffix.
1808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1809 case $ac_top_builddir_sub in
1810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1814 ac_abs_top_builddir=$ac_pwd
1815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1816 # for backward compatibility:
1817 ac_top_builddir=$ac_top_build_prefix
1820 .) # We are building in place.
1822 ac_top_srcdir=$ac_top_builddir_sub
1823 ac_abs_top_srcdir=$ac_pwd ;;
1824 [\\/]* | ?:[\\/]* ) # Absolute name.
1825 ac_srcdir=$srcdir$ac_dir_suffix;
1826 ac_top_srcdir=$srcdir
1827 ac_abs_top_srcdir=$srcdir ;;
1829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1830 ac_top_srcdir=$ac_top_build_prefix$srcdir
1831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1835 cd "$ac_dir" || { ac_status=$?; continue; }
1836 # Check for guested configure.
1837 if test -f "$ac_srcdir/configure.gnu"; then
1839 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1840 elif test -f "$ac_srcdir/configure"; then
1842 $SHELL "$ac_srcdir/configure" --help=recursive
1844 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1846 cd "$ac_pwd" || { ac_status=$?; break; }
1850 test -n "$ac_init_help" && exit $ac_status
1851 if $ac_init_version; then
1854 generated by GNU Autoconf 2.64
1856 Copyright (C) 2009 Free Software Foundation, Inc.
1857 This configure script is free software; the Free Software Foundation
1858 gives unlimited permission to copy, distribute and modify it.
1863 ## ------------------------ ##
1864 ## Autoconf initialization. ##
1865 ## ------------------------ ##
1867 # ac_fn_c_try_compile LINENO
1868 # --------------------------
1869 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_c_try_compile ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext
1874 if { { ac_try="$ac_compile"
1876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1877 *) ac_try_echo
=$ac_try;;
1879 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_compile") 2>conftest.err
1883 if test -s conftest.err
; then
1884 grep -v '^ *+' conftest.err
>conftest.er1
1885 cat conftest.er1
>&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest.
$ac_objext; then :
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.
$ac_ext >&5
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1903 } # ac_fn_c_try_compile
1905 # ac_fn_cxx_try_compile LINENO
1906 # ----------------------------
1907 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1908 ac_fn_cxx_try_compile
()
1910 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1911 rm -f conftest.
$ac_objext
1912 if { { ac_try
="$ac_compile"
1914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_compile") 2>conftest.err
1921 if test -s conftest.err; then
1922 grep -v '^ *+' conftest.err >conftest.er1
1923 cat conftest.er1 >&5
1924 mv -f conftest.er1 conftest.err
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } && {
1928 test -z "$ac_cxx_werror_flag" ||
1929 test ! -s conftest.err
1930 } && test -s conftest.$ac_objext; then :
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941 } # ac_fn_cxx_try_compile
1943 # ac_fn_cxx_try_cpp LINENO
1944 # ------------------------
1945 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_cxx_try_cpp ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_cpp conftest.$ac_ext"
1951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1952 *) ac_try_echo
=$ac_try;;
1954 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1958 if test -s conftest.err
; then
1959 grep -v '^ *+' conftest.err
>conftest.er1
1960 cat conftest.er1
>&5
1961 mv -f conftest.er1 conftest.err
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } >/dev
/null
&& {
1965 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1966 test ! -s conftest.err
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.
$ac_ext >&5
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1978 } # ac_fn_cxx_try_cpp
1980 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1981 # ---------------------------------------------------------
1982 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1983 # the include files in INCLUDES and setting the cache variable VAR
1985 ac_fn_cxx_check_header_mongrel
()
1987 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1988 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1992 $as_echo_n "(cached) " >&6
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1998 # Is the header compilable?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2000 $as_echo_n "checking $2 usability... " >&6; }
2001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2006 if ac_fn_cxx_try_compile
"$LINENO"; then :
2007 ac_header_compiler
=yes
2009 ac_header_compiler
=no
2011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2013 $as_echo "$ac_header_compiler" >&6; }
2015 # Is the header present?
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2017 $as_echo_n "checking $2 presence... " >&6; }
2018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2022 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2023 ac_header_preproc
=yes
2025 ac_header_preproc
=no
2027 rm -f conftest.err conftest.
$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2029 $as_echo "$ac_header_preproc" >&6; }
2031 # So? What about this header?
2032 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2035 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2037 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2041 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2043 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2045 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2047 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2055 $as_echo_n "(cached) " >&6
2057 eval "$3=\$ac_header_compiler"
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2065 } # ac_fn_cxx_check_header_mongrel
2067 # ac_fn_cxx_try_run LINENO
2068 # ------------------------
2069 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2070 # that executables *can* be run.
2071 ac_fn_cxx_try_run
()
2073 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2074 if { { ac_try
="$ac_link"
2076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2077 *) ac_try_echo=$ac_try;;
2079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2080 $as_echo "$ac_try_echo"; } >&5
2081 (eval "$ac_link") 2>&5
2083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2085 { { case "(($ac_try" in
2086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2087 *) ac_try_echo
=$ac_try;;
2089 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 $as_echo "$ac_try_echo"; } >&5
2091 (eval "$ac_try") 2>&5
2093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094 test $ac_status = 0; }; }; then :
2097 $as_echo "$as_me: program exited with status $ac_status" >&5
2098 $as_echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.
$ac_ext >&5
2101 ac_retval
=$ac_status
2103 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2107 } # ac_fn_cxx_try_run
2109 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2110 # ---------------------------------------------------------
2111 # Tests whether HEADER exists and can be compiled using the include files in
2112 # INCLUDES, setting the cache variable VAR accordingly.
2113 ac_fn_cxx_check_header_compile
()
2115 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117 $as_echo_n "checking for $2... " >&6; }
2118 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2119 $as_echo_n "(cached) " >&6
2121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2126 if ac_fn_cxx_try_compile
"$LINENO"; then :
2131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2138 } # ac_fn_cxx_check_header_compile
2140 # ac_fn_c_try_cpp LINENO
2141 # ----------------------
2142 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2145 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2146 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2152 $as_echo "$ac_try_echo"; } >&5
2153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2155 if test -s conftest.err; then
2156 grep -v '^ *+' conftest.err >conftest.er1
2157 cat conftest.er1 >&5
2158 mv -f conftest.er1 conftest.err
2160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2161 test $ac_status = 0; } >/dev/null && {
2162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2163 test ! -s conftest.err
2167 $as_echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2172 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2177 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2178 # ----------------------------------------------
2179 # Tries to find the compile-time value of EXPR in a program that includes
2180 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2182 ac_fn_cxx_compute_int ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if test "$cross_compiling" = yes; then
2186 # Depending upon the size, compute the lo and hi bounds.
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2193 static int test_array [1 - 2 * !(($2) >= 0)];
2200 if ac_fn_cxx_try_compile "$LINENO"; then :
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2209 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2216 if ac_fn_cxx_try_compile "$LINENO"; then :
2217 ac_hi=$ac_mid; break
2219 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2220 if test $ac_lo -le $ac_mid; then
2224 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2235 static int test_array [1 - 2 * !(($2) < 0)];
2242 if ac_fn_cxx_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2251 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2258 if ac_fn_cxx_try_compile "$LINENO"; then :
2259 ac_lo=$ac_mid; break
2261 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2262 if test $ac_mid -le $ac_hi; then
2266 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 # Binary search between lo and hi bounds.
2277 while test "x$ac_lo" != "x$ac_hi"; do
2278 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2285 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2292 if ac_fn_cxx_try_compile "$LINENO"; then :
2295 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2307 static long int longval () { return $2; }
2308 static unsigned long int ulongval () { return $2; }
2315 FILE *f = fopen ("conftest.val", "w");
2320 long int i = longval ();
2323 fprintf (f, "%ld", i);
2327 unsigned long int i = ulongval ();
2330 fprintf (f, "%lu", i);
2332 /* Do not output a trailing newline, as this causes \r\n confusion
2333 on some platforms. */
2334 return ferror (f) || fclose (f) != 0;
2340 if ac_fn_cxx_try_run "$LINENO"; then :
2341 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2346 conftest.$ac_objext conftest.beam conftest.$ac_ext
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2353 } # ac_fn_cxx_compute_int
2355 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2356 # ---------------------------------------------
2357 # Tests whether TYPE exists after having included INCLUDES, setting cache
2358 # variable VAR accordingly.
2359 ac_fn_cxx_check_type ()
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2363 $as_echo_n "checking for $2... " >&6; }
2364 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2365 $as_echo_n "(cached) " >&6
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2380 if ac_fn_cxx_try_compile "$LINENO"; then :
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2393 if ac_fn_cxx_try_compile "$LINENO"; then :
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2407 } # ac_fn_cxx_check_type
2409 # ac_fn_c_find_intX_t LINENO BITS VAR
2410 # -----------------------------------
2411 # Finds a signed integer type with width BITS, setting cache variable VAR
2413 ac_fn_c_find_intX_t ()
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2417 $as_echo_n "checking for int$2_t... " >&6; }
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 $as_echo_n "(cached) " >&6
2422 for ac_type in int$2_t 'int' 'long int' \
2423 'long long int' 'short int' 'signed char'; do
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2426 $ac_includes_default
2430 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2437 if ac_fn_cxx_try_compile "$LINENO"; then :
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2440 $ac_includes_default
2444 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2445 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2452 if ac_fn_cxx_try_compile "$LINENO"; then :
2459 eval "$3=\$ac_type" ;;
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 if test "x$as_val" = x""no; then :
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475 $as_echo "$ac_res" >&6; }
2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2478 } # ac_fn_c_find_intX_t
2480 # ac_fn_cxx_try_link LINENO
2481 # -------------------------
2482 # Try to link conftest.$ac_ext, and return whether this succeeded.
2483 ac_fn_cxx_try_link ()
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 rm -f conftest.$ac_objext conftest$ac_exeext
2487 if { { ac_try="$ac_link"
2489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2490 *) ac_try_echo
=$ac_try;;
2492 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2493 $as_echo "$ac_try_echo"; } >&5
2494 (eval "$ac_link") 2>conftest.err
2496 if test -s conftest.err
; then
2497 grep -v '^ *+' conftest.err
>conftest.er1
2498 cat conftest.er1
>&5
2499 mv -f conftest.er1 conftest.err
2501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2502 test $ac_status = 0; } && {
2503 test -z "$ac_cxx_werror_flag" ||
2504 test ! -s conftest.err
2505 } && test -s conftest
$ac_exeext && {
2506 test "$cross_compiling" = yes ||
2507 $as_test_x conftest
$ac_exeext
2511 $as_echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.
$ac_ext >&5
2516 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2517 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2518 # interfere with the next link command; also delete a directory that is
2519 # left behind by Apple's compiler. We do this before executing the actions.
2520 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2521 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2524 } # ac_fn_cxx_try_link
2526 # ac_fn_c_find_uintX_t LINENO BITS VAR
2527 # ------------------------------------
2528 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2530 ac_fn_c_find_uintX_t
()
2532 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2534 $as_echo_n "checking for uint$2_t... " >&6; }
2535 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2536 $as_echo_n "(cached) " >&6
2539 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2540 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2543 $ac_includes_default
2547 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2554 if ac_fn_cxx_try_compile
"$LINENO"; then :
2559 eval "$3=\$ac_type" ;;
2562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2564 if test "x$as_val" = x
""no
; then :
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2573 $as_echo "$ac_res" >&6; }
2574 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2576 } # ac_fn_c_find_uintX_t
2578 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2579 # ------------------------------------------------
2580 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2581 ac_fn_cxx_check_header_preproc
()
2583 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2585 $as_echo_n "checking for $2... " >&6; }
2586 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2587 $as_echo_n "(cached) " >&6
2589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2593 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2598 rm -f conftest.err conftest.
$ac_ext
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2602 $as_echo "$ac_res" >&6; }
2603 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2605 } # ac_fn_cxx_check_header_preproc
2607 # ac_fn_cxx_check_func LINENO FUNC VAR
2608 # ------------------------------------
2609 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2610 ac_fn_cxx_check_func
()
2612 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2614 $as_echo_n "checking for $2... " >&6; }
2615 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2616 $as_echo_n "(cached) " >&6
2618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h. */
2620 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2622 #define $2 innocuous_$2
2624 /* System header to define __stub macros and hopefully few prototypes,
2625 which can conflict with char $2 (); below.
2626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2627 <limits.h> exists even on freestanding compilers. */
2630 # include <limits.h>
2632 # include <assert.h>
2637 /* Override any GCC internal prototype to avoid an error.
2638 Use char because int might match the return type of a GCC
2639 builtin and then its argument prototype would still apply. */
2644 /* The GNU C library defines this for functions which it implements
2645 to always fail with ENOSYS. Some functions are actually named
2646 something starting with __ and the normal name is an alias. */
2647 #if defined __stub_$2 || defined __stub___$2
2659 if ac_fn_cxx_try_link
"$LINENO"; then :
2664 rm -f core conftest.err conftest.
$ac_objext \
2665 conftest
$ac_exeext conftest.
$ac_ext
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669 $as_echo "$ac_res" >&6; }
2670 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2672 } # ac_fn_cxx_check_func
2674 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2675 # --------------------------------------
2676 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2677 ac_fn_cxx_check_decl
()
2679 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2680 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2681 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2683 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2684 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2685 $as_echo_n "(cached) " >&6
2687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2693 #ifndef $as_decl_name
2695 (void) $as_decl_use;
2697 (void) $as_decl_name;
2705 if ac_fn_cxx_try_compile
"$LINENO"; then :
2710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2714 $as_echo "$ac_res" >&6; }
2715 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2717 } # ac_fn_cxx_check_decl
2719 # ac_fn_c_try_link LINENO
2720 # -----------------------
2721 # Try to link conftest.$ac_ext, and return whether this succeeded.
2724 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2725 rm -f conftest.
$ac_objext conftest
$ac_exeext
2726 if { { ac_try
="$ac_link"
2728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2732 $as_echo "$ac_try_echo"; } >&5
2733 (eval "$ac_link") 2>conftest.err
2735 if test -s conftest.err; then
2736 grep -v '^ *+' conftest.err >conftest.er1
2737 cat conftest.er1 >&5
2738 mv -f conftest.er1 conftest.err
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; } && {
2742 test -z "$ac_c_werror_flag" ||
2743 test ! -s conftest.err
2744 } && test -s conftest$ac_exeext && {
2745 test "$cross_compiling" = yes ||
2746 $as_test_x conftest$ac_exeext
2750 $as_echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2757 # interfere with the next link command; also delete a directory that is
2758 # left behind by Apple's compiler. We do this before executing the actions.
2759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2763 } # ac_fn_c_try_link
2765 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2766 # ----------------------------------------------
2767 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2768 ac_fn_c_check_header_preproc ()
2770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2772 $as_echo_n "checking for $2... " >&6; }
2773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2774 $as_echo_n "(cached) " >&6
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2780 if ac_fn_c_try_cpp "$LINENO"; then :
2785 rm -f conftest.err conftest.$ac_ext
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2789 $as_echo "$ac_res" >&6; }
2790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2792 } # ac_fn_c_check_header_preproc
2794 # ac_fn_c_check_func LINENO FUNC VAR
2795 # ----------------------------------
2796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2797 ac_fn_c_check_func ()
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2801 $as_echo_n "checking for $2... " >&6; }
2802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2803 $as_echo_n "(cached) " >&6
2805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h. */
2807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2809 #define $2 innocuous_$2
2811 /* System header to define __stub macros and hopefully few prototypes,
2812 which can conflict with char $2 (); below.
2813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2814 <limits.h> exists even on freestanding compilers. */
2817 # include <limits.h>
2819 # include <assert.h>
2824 /* Override any GCC internal prototype to avoid an error.
2825 Use char because int might match the return type of a GCC
2826 builtin and then its argument prototype would still apply. */
2831 /* The GNU C library defines this for functions which it implements
2832 to always fail with ENOSYS. Some functions are actually named
2833 something starting with __ and the normal name is an alias. */
2834 #if defined __stub_$2 || defined __stub___$2
2846 if ac_fn_c_try_link "$LINENO"; then :
2851 rm -f core conftest.err conftest.$ac_objext \
2852 conftest$ac_exeext conftest.$ac_ext
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2856 $as_echo "$ac_res" >&6; }
2857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2859 } # ac_fn_c_check_func
2860 cat >config.log <<_ACEOF
2861 This file contains any messages produced by compilers while
2862 running configure, to aid debugging if configure makes a mistake.
2864 It was created by $as_me, which was
2865 generated by GNU Autoconf 2.64. Invocation command line was
2877 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2878 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2879 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2880 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2881 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2883 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2884 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2886 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2887 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2888 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2889 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2890 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2891 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2892 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir=.
2901 $as_echo "PATH: $as_dir"
2917 # Keep a trace of the command line.
2918 # Strip out --no-create and --no-recursion so they do not pile up.
2919 # Strip out --silent because we don't want to record it for future runs.
2920 # Also quote any args containing shell meta-characters.
2921 # Make two passes to allow for proper duplicate-argument suppression.
2925 ac_must_keep_next=false
2931 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2933 | -silent | --silent | --silen | --sile | --sil)
2936 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2939 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2941 as_fn_append ac_configure_args1 " '$ac_arg'"
2942 if test $ac_must_keep_next = true; then
2943 ac_must_keep_next=false # Got value, back to normal.
2946 *=* | --config-cache | -C | -disable-* | --disable-* \
2947 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2948 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2949 | -with-* | --with-* | -without-* | --without-* | --x)
2950 case "$ac_configure_args0 " in
2951 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2954 -* ) ac_must_keep_next=true ;;
2957 as_fn_append ac_configure_args " '$ac_arg'"
2962 { ac_configure_args0=; unset ac_configure_args0;}
2963 { ac_configure_args1=; unset ac_configure_args1;}
2965 # When interrupted or exit'd, cleanup temporary files, and complete
2966 # config.log. We remove comments because anyway the quotes in there
2967 # would cause problems or look ugly.
2968 # WARNING: Use '\'' to represent an apostrophe within the trap.
2969 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2970 trap 'exit_status=$?
2971 # Save into config.log some information that might help in debugging.
2976 ## ---------------- ##
2977 ## Cache variables. ##
2978 ## ---------------- ##
2981 # The following way of writing the cache mishandles newlines in values,
2983 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2984 eval ac_val=\$$ac_var
2988 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2989 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2992 _ | IFS | as_nl) ;; #(
2993 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2994 *) { eval $ac_var=; unset $ac_var;} ;;
2999 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3000 *${as_nl}ac_space=\ *)
3002 "s/'\''/'\''\\\\'\'''\''/g;
3003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3014 ## ----------------- ##
3015 ## Output variables. ##
3016 ## ----------------- ##
3019 for ac_var in $ac_subst_vars
3021 eval ac_val=\$$ac_var
3023 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3025 $as_echo "$ac_var='\''$ac_val'\''"
3029 if test -n "$ac_subst_files"; then
3031 ## ------------------- ##
3032 ## File substitutions. ##
3033 ## ------------------- ##
3036 for ac_var in $ac_subst_files
3038 eval ac_val=\$$ac_var
3040 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3042 $as_echo "$ac_var='\''$ac_val'\''"
3047 if test -s confdefs.h; then
3057 test "$ac_signal" != 0 &&
3058 $as_echo "$as_me: caught signal $ac_signal"
3059 $as_echo "$as_me: exit $exit_status"
3061 rm -f core *.core core.conftest.* &&
3062 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3065 for ac_signal in 1 2 13 15; do
3066 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3070 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3071 rm -f -r conftest* confdefs.h
3073 $as_echo "/* confdefs.h */" > confdefs.h
3075 # Predefined preprocessor variables.
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE_NAME "$PACKAGE_NAME"
3081 cat >>confdefs.h <<_ACEOF
3082 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3085 cat >>confdefs.h <<_ACEOF
3086 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3089 cat >>confdefs.h <<_ACEOF
3090 #define PACKAGE_STRING "$PACKAGE_STRING"
3093 cat >>confdefs.h <<_ACEOF
3094 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3097 cat >>confdefs.h <<_ACEOF
3098 #define PACKAGE_URL "$PACKAGE_URL"
3102 # Let the site file select an alternate cache file if it wants to.
3103 # Prefer an explicitly selected file to automatically selected ones.
3106 if test -n "$CONFIG_SITE"; then
3107 ac_site_file1=$CONFIG_SITE
3108 elif test "x$prefix" != xNONE; then
3109 ac_site_file1=$prefix/share/config.site
3110 ac_site_file2=$prefix/etc/config.site
3112 ac_site_file1=$ac_default_prefix/share/config.site
3113 ac_site_file2=$ac_default_prefix/etc/config.site
3115 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3117 test "x$ac_site_file" = xNONE && continue
3118 if test -r "$ac_site_file"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3120 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3121 sed 's/^/| /' "$ac_site_file" >&5
3126 if test -r "$cache_file"; then
3127 # Some versions of bash will fail to source /dev/null (special
3128 # files actually), so we avoid doing that.
3129 if test -f "$cache_file"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3131 $as_echo "$as_me: loading cache $cache_file" >&6;}
3133 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3134 *) . "./$cache_file";;
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3139 $as_echo "$as_me: creating cache $cache_file" >&6;}
3143 # Check that the precious variables saved in the cache have kept the same
3145 ac_cache_corrupted=false
3146 for ac_var in $ac_precious_vars; do
3147 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3148 eval ac_new_set=\$ac_env_${ac_var}_set
3149 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3150 eval ac_new_val=\$ac_env_${ac_var}_value
3151 case $ac_old_set,$ac_new_set in
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3154 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3155 ac_cache_corrupted=: ;;
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3158 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3159 ac_cache_corrupted=: ;;
3162 if test "x$ac_old_val" != "x$ac_new_val"; then
3163 # differences in whitespace do not lead to failure.
3164 ac_old_val_w=`echo x
$ac_old_val`
3165 ac_new_val_w=`echo x
$ac_new_val`
3166 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3168 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3169 ac_cache_corrupted=:
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3172 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3173 eval $ac_var=\$ac_old_val
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3176 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3178 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3181 # Pass precious variables to config.status.
3182 if test "$ac_new_set" = set; then
3184 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3185 *) ac_arg=$ac_var=$ac_new_val ;;
3187 case " $ac_configure_args " in
3188 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3189 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3193 if $ac_cache_corrupted; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3197 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3198 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3200 ## -------------------- ##
3201 ## Main body of script. ##
3202 ## -------------------- ##
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3218 gcc_version=`cat $srcdir/BASE-VER
`
3220 # Determine the host, build, and target systems
3222 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3223 for ac_t in install-sh install.sh shtool; do
3224 if test -f "$ac_dir/$ac_t"; then
3226 ac_install_sh="$ac_aux_dir/$ac_t -c"
3231 if test -z "$ac_aux_dir"; then
3232 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3235 # These three variables are undocumented and unsupported,
3236 # and are intended to be withdrawn in a future Autoconf release.
3237 # They can cause serious problems if a builder's source tree is in a directory
3238 # whose full name contains unusual characters.
3239 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3240 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3241 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3244 # Make sure we can run config.sub.
3245 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3246 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3249 $as_echo_n "checking build system type... " >&6; }
3250 if test "${ac_cv_build+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
3253 ac_build_alias=$build_alias
3254 test "x$ac_build_alias" = x &&
3255 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3256 test "x$ac_build_alias" = x &&
3257 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3258 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3259 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3263 $as_echo "$ac_cv_build" >&6; }
3264 case $ac_cv_build in
3266 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3269 ac_save_IFS=$IFS; IFS='-'
3275 # Remember, the first character of IFS is used to create $*,
3276 # except with old shells:
3279 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3283 $as_echo_n "checking host system type... " >&6; }
3284 if test "${ac_cv_host+set}" = set; then :
3285 $as_echo_n "(cached) " >&6
3287 if test "x$host_alias" = x; then
3288 ac_cv_host=$ac_cv_build
3290 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3291 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3296 $as_echo "$ac_cv_host" >&6; }
3299 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3302 ac_save_IFS=$IFS; IFS='-'
3308 # Remember, the first character of IFS is used to create $*,
3309 # except with old shells:
3312 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3316 $as_echo_n "checking target system type... " >&6; }
3317 if test "${ac_cv_target+set}" = set; then :
3318 $as_echo_n "(cached) " >&6
3320 if test "x$target_alias" = x; then
3321 ac_cv_target=$ac_cv_host
3323 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3324 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3329 $as_echo "$ac_cv_target" >&6; }
3330 case $ac_cv_target in
3332 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3334 target=$ac_cv_target
3335 ac_save_IFS=$IFS; IFS='-'
3341 # Remember, the first character of IFS is used to create $*,
3342 # except with old shells:
3345 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3348 # The aliases save the names the user supplied, while $host etc.
3349 # will get canonicalized.
3350 test -n "$target_alias" &&
3351 test "$program_prefix$program_suffix$program_transform_name" = \
3353 program_prefix=${target_alias}-
3355 # Determine the noncanonical host name, for Ada.
3356 case ${build_alias} in
3357 "") build_noncanonical=${build} ;;
3358 *) build_noncanonical=${build_alias} ;;
3361 case ${host_alias} in
3362 "") host_noncanonical=${build_noncanonical} ;;
3363 *) host_noncanonical=${host_alias} ;;
3369 # Determine the noncanonical target name, for directory use.
3370 case ${target_alias} in
3371 "") target_noncanonical=${host_noncanonical} ;;
3372 *) target_noncanonical=${target_alias} ;;
3378 # Used for constructing correct paths for offload compilers.
3379 real_target_noncanonical=${target_noncanonical}
3382 # Determine the target- and build-specific subdirectories
3384 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3385 # have matching libraries, they should use host libraries: Makefile.tpl
3386 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3387 # However, they still use the build modules, because the corresponding
3388 # host modules (e.g. bison) are only built for the host when bootstrap
3390 # - build_subdir is where we find build modules, and never changes.
3391 # - build_libsubdir is where we find build libraries, and can be overridden.
3393 # Prefix 'build-' so this never conflicts with target_subdir.
3394 build_subdir="build-${build_noncanonical}"
3396 # Check whether --with-build-libsubdir was given.
3397 if test "${with_build_libsubdir+set}" = set; then :
3398 withval=$with_build_libsubdir; build_libsubdir="$withval"
3400 build_libsubdir="$build_subdir"
3403 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3404 if ( test $srcdir = . && test -d gcc ) \
3405 || test -d $srcdir/../host-${host_noncanonical}; then
3406 host_subdir="host-${host_noncanonical}"
3411 target_subdir=${target_noncanonical}
3414 # Set program_transform_name
3415 test "$program_prefix" != NONE &&
3416 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3417 # Use a double $ so make ignores it.
3418 test "$program_suffix" != NONE &&
3419 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3420 # Double any \ or $.
3421 # By default was `s
,x
,x
', remove it if useless.
3422 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3423 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3426 # Check for bogus environment variables.
3427 # Test if LIBRARY_PATH contains the notation for the current directory
3428 # since this would lead to problems installing/building glibc.
3429 # LIBRARY_PATH contains the current directory if one of the following
3431 # - one of the terminals (":" and ";") is the first or last sign
3432 # - two terminals occur directly after each other
3433 # - the path contains an element with a dot in it
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3435 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3436 case ${LIBRARY_PATH} in
3437 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3438 library_path_setting="contains current directory"
3441 library_path_setting="ok"
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3445 $as_echo "$library_path_setting" >&6; }
3446 if test "$library_path_setting" != "ok"; then
3448 *** LIBRARY_PATH shouldn't contain the current directory when
3449 *** building gcc. Please change the environment variable
3450 *** and run configure again.
" "$LINENO" 5
3453 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3454 # since this would lead to problems installing/building glibc.
3455 # GCC_EXEC_PREFIX contains the current directory if one of the following
3457 # - one of the terminals (":" and ";") is the first or last sign
3458 # - two terminals occur directly after each other
3459 # - the path contains an element with a dot in it
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3461 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3462 case ${GCC_EXEC_PREFIX} in
3463 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3464 gcc_exec_prefix_setting="contains current directory
"
3467 gcc_exec_prefix_setting="ok
"
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3471 $as_echo "$gcc_exec_prefix_setting" >&6; }
3472 if test "$gcc_exec_prefix_setting" != "ok
"; then
3474 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3475 *** building gcc. Please change the environment variable
3476 *** and run configure again." "$LINENO" 5
3483 # Specify the local prefix
3486 # Check whether --with-local-prefix was given.
3487 if test "${with_local_prefix+set}" = set; then :
3488 withval=$with_local_prefix; case "${withval}" in
3489 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3491 *) local_prefix=$with_local_prefix ;;
3496 # Default local prefix if it is empty
3497 if test x$local_prefix = x; then
3498 local_prefix=/usr/local
3502 # Check whether --with-native-system-header-dir was given.
3503 if test "${with_native_system_header_dir+set}" = set; then :
3504 withval=$with_native_system_header_dir;
3505 case ${with_native_system_header_dir} in
3506 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3507 /* | [A-Za-z]:[\\/]*) ;;
3508 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3510 configured_native_system_header_dir="${withval}"
3513 configured_native_system_header_dir=
3518 # Check whether --with-build-sysroot was given.
3519 if test "${with_build_sysroot+set}" = set; then :
3520 withval=$with_build_sysroot; if test x"$withval" != x ; then
3521 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3524 SYSROOT_CFLAGS_FOR_TARGET=
3529 if test "x$prefix" = xNONE; then
3530 test_prefix=/usr/local
3534 if test "x$exec_prefix" = xNONE; then
3535 test_exec_prefix=$test_prefix
3537 test_exec_prefix=$exec_prefix
3541 # Check whether --with-sysroot was given.
3542 if test "${with_sysroot+set}" = set; then :
3543 withval=$with_sysroot;
3544 case ${with_sysroot} in
3546 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3548 case ${with_sysroot} in
3549 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3550 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3553 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3554 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3556 case ${TARGET_SYSTEM_ROOT} in
3557 "${test_prefix}"|"${test_prefix}/"*|\
3558 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3559 '${prefix}'|'${prefix}/'*|\
3560 '${exec_prefix}'|'${exec_prefix}/'*)
3561 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3562 TARGET_SYSTEM_ROOT_DEFINE="$t"
3569 TARGET_SYSTEM_ROOT_DEFINE=
3570 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3578 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3579 # passed in by the toplevel make and thus we'd get different behavior
3580 # depending on where we built the sources.
3581 gcc_gxx_include_dir
=
3582 # Specify the g++ header file directory
3584 # Check whether --with-gxx-include-dir was given.
3585 if test "${with_gxx_include_dir+set}" = set; then :
3586 withval
=$with_gxx_include_dir; case "${withval}" in
3587 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3589 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3594 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3595 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3596 # relative to the sysroot.
3597 gcc_gxx_include_dir_add_sysroot
=0
3599 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3600 if test x
${gcc_gxx_include_dir} = x
; then
3601 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3602 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3604 libstdcxx_incdir
='include/c++/$(version)'
3605 if test x
$host != x
$target; then
3606 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3608 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3610 elif test "${with_sysroot+set}" = set; then
3611 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3612 if test "${gcc_gxx_without_sysroot}"; then
3613 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3614 gcc_gxx_include_dir_add_sysroot
=1
3619 # Check whether --with-cpp_install_dir was given.
3620 if test "${with_cpp_install_dir+set}" = set; then :
3621 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3622 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3623 elif test x
$withval != xno
; then
3624 cpp_install_dir
=$withval
3629 # We would like to our source tree to be readonly. However when releases or
3630 # pre-releases are generated, the flex/bison generated files as well as the
3631 # various formats of manuals need to be included along with the rest of the
3632 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3636 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3637 # Check whether --enable-generated-files-in-srcdir was given.
3638 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3639 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3641 generated_files_in_srcdir
=no
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3646 $as_echo "$generated_files_in_srcdir" >&6; }
3648 if test "$generated_files_in_srcdir" = "yes"; then
3655 # -------------------
3656 # Find default linker
3657 # -------------------
3661 # Check whether --with-gnu-ld was given.
3662 if test "${with_gnu_ld+set}" = set; then :
3663 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3670 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3674 # With pre-defined ld
3676 # Check whether --with-ld was given.
3677 if test "${with_ld+set}" = set; then :
3678 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3681 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3682 if test ! -x "$DEFAULT_LINKER"; then
3683 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3684 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3686 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3690 cat >>confdefs.h
<<_ACEOF
3691 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3697 $as_echo_n "checking whether a default linker was specified... " >&6; }
3698 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3699 if test x
"$gnu_ld_flag" = x
"no"; then
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3701 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3704 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3711 # With demangler in GNU ld
3713 # Check whether --with-demangler-in-ld was given.
3714 if test "${with_demangler_in_ld+set}" = set; then :
3715 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3721 # ----------------------
3722 # Find default assembler
3723 # ----------------------
3727 # Check whether --with-gnu-as was given.
3728 if test "${with_gnu_as+set}" = set; then :
3729 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3736 # Check whether --with-as was given.
3737 if test "${with_as+set}" = set; then :
3738 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3741 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3742 if test ! -x "$DEFAULT_ASSEMBLER"; then
3743 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3744 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3748 cat >>confdefs.h
<<_ACEOF
3749 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3755 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3756 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3757 if test x
"$gas_flag" = x
"no"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3759 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3762 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3773 # If a non-executable a.out is present (e.g. created by GNU as above even if
3774 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3775 # file, even when creating an executable, so an execution test fails.
3776 # Remove possible default executable files to avoid this.
3778 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3779 # Autoconf includes it.
3780 rm -f a.out a.exe b.out
3782 # Find the native compiler
3784 ac_cpp
='$CPP $CPPFLAGS'
3785 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3788 if test -n "$ac_tool_prefix"; then
3789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3790 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if test "${ac_cv_prog_CC+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3796 if test -n "$CC"; then
3797 ac_cv_prog_CC
="$CC" # Let the user override the test.
3799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3803 test -z "$as_dir" && as_dir
=.
3804 for ac_exec_ext
in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 if test -n "$CC"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3819 $as_echo "$CC" >&6; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3827 if test -z "$ac_cv_prog_CC"; then
3829 # Extract the first word of "gcc", so it can be a program name with args.
3830 set dummy gcc
; ac_word
=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3834 $as_echo_n "(cached) " >&6
3836 if test -n "$ac_ct_CC"; then
3837 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3843 test -z "$as_dir" && as_dir
=.
3844 for ac_exec_ext
in '' $ac_executable_extensions; do
3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3846 ac_cv_prog_ac_ct_CC
="gcc"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3857 if test -n "$ac_ct_CC"; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3859 $as_echo "$ac_ct_CC" >&6; }
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3865 if test "x$ac_ct_CC" = x
; then
3868 case $cross_compiling:$ac_tool_warned in
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3872 ac_tool_warned
=yes ;;
3880 if test -z "$CC"; then
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3883 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if test "${ac_cv_prog_CC+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3889 if test -n "$CC"; then
3890 ac_cv_prog_CC
="$CC" # Let the user override the test.
3892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3896 test -z "$as_dir" && as_dir
=.
3897 for ac_exec_ext
in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3899 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 if test -n "$CC"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3912 $as_echo "$CC" >&6; }
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3921 if test -z "$CC"; then
3922 # Extract the first word of "cc", so it can be a program name with args.
3923 set dummy cc
; ac_word
=$2
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925 $as_echo_n "checking for $ac_word... " >&6; }
3926 if test "${ac_cv_prog_CC+set}" = set; then :
3927 $as_echo_n "(cached) " >&6
3929 if test -n "$CC"; then
3930 ac_cv_prog_CC
="$CC" # Let the user override the test.
3933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3937 test -z "$as_dir" && as_dir
=.
3938 for ac_exec_ext
in '' $ac_executable_extensions; do
3939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3940 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3941 ac_prog_rejected
=yes
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 if test $ac_prog_rejected = yes; then
3953 # We found a bogon in the path, so make sure we never use it.
3954 set dummy
$ac_cv_prog_CC
3956 if test $# != 0; then
3957 # We chose a different compiler from the bogus one.
3958 # However, it has the same basename, so the bogon will be chosen
3959 # first if we set CC to just the basename; use the full file name.
3961 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3967 if test -n "$CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969 $as_echo "$CC" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3977 if test -z "$CC"; then
3978 if test -n "$ac_tool_prefix"; then
3979 for ac_prog
in cl.exe
3981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3982 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if test "${ac_cv_prog_CC+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3988 if test -n "$CC"; then
3989 ac_cv_prog_CC
="$CC" # Let the user override the test.
3991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir
=.
3996 for ac_exec_ext
in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 if test -n "$CC"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4011 $as_echo "$CC" >&6; }
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4018 test -n "$CC" && break
4021 if test -z "$CC"; then
4023 for ac_prog
in cl.exe
4025 # Extract the first word of "$ac_prog", so it can be a program name with args.
4026 set dummy
$ac_prog; ac_word
=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4032 if test -n "$ac_ct_CC"; then
4033 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4039 test -z "$as_dir" && as_dir
=.
4040 for ac_exec_ext
in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4042 ac_cv_prog_ac_ct_CC
="$ac_prog"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4053 if test -n "$ac_ct_CC"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4055 $as_echo "$ac_ct_CC" >&6; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4062 test -n "$ac_ct_CC" && break
4065 if test "x$ac_ct_CC" = x
; then
4068 case $cross_compiling:$ac_tool_warned in
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4072 ac_tool_warned
=yes ;;
4081 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4083 as_fn_error
"no acceptable C compiler found in \$PATH
4084 See \`config.log' for more details." "$LINENO" 5; }
4086 # Provide some information about the compiler.
4087 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4090 for ac_option
in --version -v -V -qversion; do
4091 { { ac_try
="$ac_compiler $ac_option >&5"
4093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097 $as_echo "$ac_try_echo"; } >&5
4098 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4100 if test -s conftest.err; then
4102 ... rest of stderr output deleted ...
4103 10q' conftest.err >conftest.er1
4104 cat conftest.er1 >&5
4105 rm -f conftest.er1 conftest.err
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4122 ac_clean_files_save=$ac_clean_files
4123 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4124 # Try to create an executable without -o first, disregard a.out.
4125 # It will help us diagnose broken compilers, and finding out an intuition
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4128 $as_echo_n "checking for C compiler default output file name... " >&6; }
4129 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4131 # The possible output files:
4132 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4135 for ac_file in $ac_files
4138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4139 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4144 if { { ac_try="$ac_link_default"
4146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4147 *) ac_try_echo
=$ac_try;;
4149 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_link_default") 2>&5
4153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154 test $ac_status = 0; }; then :
4155 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4156 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4157 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4158 # so that the user can short-circuit this test for compilers unknown to
4160 for ac_file
in $ac_files ''
4162 test -f "$ac_file" ||
continue
4164 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4167 # We found the default executable, but exeext='' is most
4171 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4173 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4175 # We set ac_cv_exeext here because the later test for it is not
4176 # safe: cross compilers may not add the suffix if given an `-o'
4177 # argument, so we may need to know it at that point already.
4178 # Even if this section looks crufty: it has the advantage of
4185 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4191 $as_echo "$ac_file" >&6; }
4192 if test -z "$ac_file"; then :
4193 $as_echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.
$ac_ext >&5
4196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198 { as_fn_set_status
77
4199 as_fn_error
"C compiler cannot create executables
4200 See \`config.log' for more details." "$LINENO" 5; }; }
4202 ac_exeext
=$ac_cv_exeext
4204 # Check that the compiler produces executables we can run. If not, either
4205 # the compiler is broken, or we cross compile.
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4207 $as_echo_n "checking whether the C compiler works... " >&6; }
4208 # If not cross compiling, check that we can run a simple program.
4209 if test "$cross_compiling" != yes; then
4210 if { ac_try
='./$ac_file'
4211 { { case "(($ac_try" in
4212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4216 $as_echo "$ac_try_echo"; } >&5
4217 (eval "$ac_try") 2>&5
4219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220 test $ac_status = 0; }; }; then
4223 if test "$cross_compiling" = maybe; then
4226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 as_fn_error "cannot run C compiled programs.
4229 If you meant to cross compile
, use \
`--host'.
4230 See \`config.log
' for more details." "$LINENO" 5; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4235 $as_echo "yes" >&6; }
4237 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4238 ac_clean_files=$ac_clean_files_save
4239 # Check that the compiler produces executables we can run. If not, either
4240 # the compiler is broken, or we cross compile.
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4242 $as_echo_n "checking whether we are cross compiling... " >&6; }
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4244 $as_echo "$cross_compiling" >&6; }
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4247 $as_echo_n "checking for suffix of executables... " >&6; }
4248 if { { ac_try="$ac_link"
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254 $as_echo "$ac_try_echo"; } >&5
4255 (eval "$ac_link") 2>&5
4257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258 test $ac_status = 0; }; then :
4259 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4260 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4261 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4263 for ac_file
in conftest.exe conftest conftest.
*; do
4264 test -f "$ac_file" ||
continue
4266 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4267 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4275 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4276 See \`config.log' for more details." "$LINENO" 5; }
4278 rm -f conftest
$ac_cv_exeext
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4280 $as_echo "$ac_cv_exeext" >&6; }
4282 rm -f conftest.
$ac_ext
4283 EXEEXT
=$ac_cv_exeext
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4286 $as_echo_n "checking for suffix of object files... " >&6; }
4287 if test "${ac_cv_objext+set}" = set; then :
4288 $as_echo_n "(cached) " >&6
4290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4301 rm -f conftest.o conftest.obj
4302 if { { ac_try
="$ac_compile"
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_compile") 2>&5
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }; then :
4313 for ac_file in conftest.o conftest.obj conftest.*; do
4314 test -f "$ac_file" || continue;
4316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4317 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4322 $as_echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4327 as_fn_error "cannot compute suffix of object files
: cannot compile
4328 See \
`config.log' for more details." "$LINENO" 5; }
4330 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4333 $as_echo "$ac_cv_objext" >&6; }
4334 OBJEXT=$ac_cv_objext
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4337 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4338 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4339 $as_echo_n "(cached) " >&6
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4355 if ac_fn_c_try_compile "$LINENO"; then :
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4365 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4366 if test $ac_compiler_gnu = yes; then
4371 ac_test_CFLAGS=${CFLAGS+set}
4372 ac_save_CFLAGS=$CFLAGS
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4374 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4375 if test "${ac_cv_prog_cc_g+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4378 ac_save_c_werror_flag=$ac_c_werror_flag
4379 ac_c_werror_flag=yes
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4393 if ac_fn_c_try_compile "$LINENO"; then :
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4408 if ac_fn_c_try_compile "$LINENO"; then :
4411 ac_c_werror_flag=$ac_save_c_werror_flag
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4424 if ac_fn_c_try_compile "$LINENO"; then :
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 ac_c_werror_flag=$ac_save_c_werror_flag
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4435 $as_echo "$ac_cv_prog_cc_g" >&6; }
4436 if test "$ac_test_CFLAGS" = set; then
4437 CFLAGS=$ac_save_CFLAGS
4438 elif test $ac_cv_prog_cc_g = yes; then
4439 if test "$GCC" = yes; then
4445 if test "$GCC" = yes; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4452 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4453 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
4456 ac_cv_prog_cc_c89=no
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4462 #include <sys/types.h>
4463 #include <sys/stat.h>
4464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4465 struct buf { int x; };
4466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4467 static char *e (p, i)
4473 static char *f (char * (*g) (char **, int), char **p, ...)
4478 s = g (p, va_arg (v,int));
4483 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4484 function prototypes and stuff, but not '\xHH' hex character constants.
4485 These don't provoke an error unfortunately, instead are silently treated
4486 as 'x'. The following induces an error, until -std is added to get
4487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4488 array size at least. It's necessary to write '\x00'==0 to get something
4489 that's true only with -std. */
4490 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4492 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4493 inside strings and character constants. */
4495 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4497 int test (int i, double x);
4498 struct s1 {int (*f) (int a);};
4499 struct s2 {int (*f) (double a);};
4500 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4506 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4511 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4514 CC="$ac_save_CC $ac_arg"
4515 if ac_fn_c_try_compile "$LINENO"; then :
4516 ac_cv_prog_cc_c89=$ac_arg
4518 rm -f core conftest.err conftest.$ac_objext
4519 test "x$ac_cv_prog_cc_c89" != "xno" && break
4521 rm -f conftest.$ac_ext
4526 case "x$ac_cv_prog_cc_c89" in
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4529 $as_echo "none needed" >&6; } ;;
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4532 $as_echo "unsupported" >&6; } ;;
4534 CC="$CC $ac_cv_prog_cc_c89"
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4536 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4538 if test "x$ac_cv_prog_cc_c89" != xno; then :
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549 ac_cpp='$CXXCPP $CPPFLAGS'
4550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4553 if test -z "$CXX"; then
4554 if test -n "$CCC"; then
4557 if test -n "$ac_tool_prefix"; then
4558 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_CXX+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 if test -n "$CXX"; then
4568 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 if test -n "$CXX"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4590 $as_echo "$CXX" >&6; }
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4597 test -n "$CXX" && break
4600 if test -z "$CXX"; then
4602 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4604 # Extract the first word of "$ac_prog", so it can be a program name with args.
4605 set dummy $ac_prog; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4611 if test -n "$ac_ct_CXX"; then
4612 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_ac_ct_CXX="$ac_prog"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4632 if test -n "$ac_ct_CXX"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4634 $as_echo "$ac_ct_CXX" >&6; }
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4641 test -n "$ac_ct_CXX" && break
4644 if test "x$ac_ct_CXX" = x; then
4647 case $cross_compiling:$ac_tool_warned in
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4651 ac_tool_warned=yes ;;
4659 # Provide some information about the compiler.
4660 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4663 for ac_option in --version -v -V -qversion; do
4664 { { ac_try="$ac_compiler $ac_option >&5"
4666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4667 *) ac_try_echo
=$ac_try;;
4669 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4670 $as_echo "$ac_try_echo"; } >&5
4671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4673 if test -s conftest.err
; then
4675 ... rest of stderr output deleted ...
4676 10q' conftest.err
>conftest.er1
4677 cat conftest.er1
>&5
4678 rm -f conftest.er1 conftest.err
4680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4681 test $ac_status = 0; }
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4685 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4686 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4703 if ac_fn_cxx_try_compile
"$LINENO"; then :
4708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4709 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4713 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4714 if test $ac_compiler_gnu = yes; then
4719 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4720 ac_save_CXXFLAGS
=$CXXFLAGS
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4722 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4723 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4726 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4727 ac_cxx_werror_flag
=yes
4730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4741 if ac_fn_cxx_try_compile
"$LINENO"; then :
4742 ac_cv_prog_cxx_g
=yes
4745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4756 if ac_fn_cxx_try_compile
"$LINENO"; then :
4759 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4772 if ac_fn_cxx_try_compile
"$LINENO"; then :
4773 ac_cv_prog_cxx_g
=yes
4775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4780 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4783 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4784 if test "$ac_test_CXXFLAGS" = set; then
4785 CXXFLAGS
=$ac_save_CXXFLAGS
4786 elif test $ac_cv_prog_cxx_g = yes; then
4787 if test "$GXX" = yes; then
4793 if test "$GXX" = yes; then
4800 ac_cpp
='$CPP $CPPFLAGS'
4801 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4808 if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4810 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4816 if test -n "$GNATBIND"; then
4817 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir
=.
4824 for ac_exec_ext
in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 GNATBIND
=$ac_cv_prog_GNATBIND
4837 if test -n "$GNATBIND"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4839 $as_echo "$GNATBIND" >&6; }
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4847 if test -z "$ac_cv_prog_GNATBIND"; then
4848 ac_ct_GNATBIND
=$GNATBIND
4849 # Extract the first word of "gnatbind", so it can be a program name with args.
4850 set dummy gnatbind
; ac_word
=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4856 if test -n "$ac_ct_GNATBIND"; then
4857 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir
=.
4864 for ac_exec_ext
in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4877 if test -n "$ac_ct_GNATBIND"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4879 $as_echo "$ac_ct_GNATBIND" >&6; }
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4885 if test "x$ac_ct_GNATBIND" = x
; then
4888 case $cross_compiling:$ac_tool_warned in
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892 ac_tool_warned
=yes ;;
4894 GNATBIND
=$ac_ct_GNATBIND
4897 GNATBIND
="$ac_cv_prog_GNATBIND"
4900 if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4902 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4906 $as_echo_n "(cached) " >&6
4908 if test -n "$GNATMAKE"; then
4909 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir
=.
4916 for ac_exec_ext
in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 GNATMAKE
=$ac_cv_prog_GNATMAKE
4929 if test -n "$GNATMAKE"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4931 $as_echo "$GNATMAKE" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4939 if test -z "$ac_cv_prog_GNATMAKE"; then
4940 ac_ct_GNATMAKE
=$GNATMAKE
4941 # Extract the first word of "gnatmake", so it can be a program name with args.
4942 set dummy gnatmake
; ac_word
=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4948 if test -n "$ac_ct_GNATMAKE"; then
4949 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir
=.
4956 for ac_exec_ext
in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4969 if test -n "$ac_ct_GNATMAKE"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4971 $as_echo "$ac_ct_GNATMAKE" >&6; }
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4977 if test "x$ac_ct_GNATMAKE" = x
; then
4980 case $cross_compiling:$ac_tool_warned in
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4984 ac_tool_warned
=yes ;;
4986 GNATMAKE
=$ac_ct_GNATMAKE
4989 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4993 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4994 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4997 cat >conftest.adb
<<EOF
4998 procedure conftest is begin null; end conftest;
5000 acx_cv_cc_gcc_supports_ada
=no
5001 # There is a bug in old released versions of GCC which causes the
5002 # driver to exit successfully when the appropriate language module
5003 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5004 # Therefore we must check for the error message as well as an
5005 # unsuccessful exit.
5006 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5007 # given a .adb file, but produce no object file. So we must check
5008 # if an object file was really produced to guard against this.
5009 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5010 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5011 acx_cv_cc_gcc_supports_ada
=yes
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5016 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5018 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5025 # Do configure tests with the C++ compiler, since that's what we build with.
5027 ac_cpp
='$CXXCPP $CPPFLAGS'
5028 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5033 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5034 # optimizations to be activated explicitly by the toplevel.
5036 */prev-gcc
/xgcc
*) ;;
5037 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5038 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5043 # Determine PICFLAG for target gnatlib.
5049 # PIC is the default on some targets or must not be used.
5051 # For darwin, common symbols are not allowed in MH_DYLIB files
5053 # If we are using a compiler supporting mdynamic-no-pic
5054 # and the option has been tested as safe to add, then cancel
5055 # it here, since the code generated is incompatible with shared
5057 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5058 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5062 # PIC is the default.
5065 # PIC is the default for 64-bit PA HP-UX.
5067 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5069 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5071 i
[34567]86-*-interix[3-9]*)
5072 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5073 # Instead, we relocate shared libraries at runtime.
5075 i
[34567]86-*-nto-qnx*)
5076 # QNX uses GNU C++, but need to define -shared option too, otherwise
5078 PICFLAG_FOR_TARGET
='-fPIC -shared'
5080 i
[34567]86-pc-msdosdjgpp*)
5081 # DJGPP does not support shared libraries at all.
5084 # On IA64 HP-UX, PIC is the default but the pic flag
5085 # sets the default TLS model and affects inlining.
5086 PICFLAG_FOR_TARGET
=-fPIC
5089 # PIC is the default.
5091 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5092 # All AIX code is PIC.
5095 # Some targets support both -fPIC and -fpic, but prefer the latter.
5097 i
[34567]86-*-* | x86_64-
*-*)
5098 PICFLAG_FOR_TARGET
=-fpic
5100 # FIXME: Override -fPIC default in libgcc only?
5101 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5102 PICFLAG_FOR_TARGET
=-fpic
5104 # FIXME: Simplify to sh*-*-netbsd*?
5105 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5106 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5107 PICFLAG_FOR_TARGET
=-fpic
5109 # Default to -fPIC unless specified otherwise.
5111 PICFLAG_FOR_TARGET
=-fPIC
5115 # If the user explicitly uses -fpic/-fPIC, keep that.
5116 case "${CFLAGS_FOR_TARGET}" in
5118 PICFLAG_FOR_TARGET
=-fpic
5121 PICFLAG_FOR_TARGET
=-fPIC
5127 # -------------------------
5128 # Check C compiler features
5129 # -------------------------
5133 ac_cpp
='$CXXCPP $CPPFLAGS'
5134 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5138 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5139 if test -z "$CXXCPP"; then
5140 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5143 # Double quotes because CXXCPP needs to be expanded
5144 for CXXCPP
in "$CXX -E" "/lib/cpp"
5147 for ac_cxx_preproc_warn_flag
in '' yes
5149 # Use a header file that comes with gcc, so configuring glibc
5150 # with a fresh cross-compiler works.
5151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5152 # <limits.h> exists even on freestanding compilers.
5153 # On the NeXT, cc -E runs the code through the compiler's parser,
5154 # not just through cpp. "Syntax error" is here to catch this case.
5155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5158 # include <limits.h>
5160 # include <assert.h>
5164 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5167 # Broken: fails on valid input.
5170 rm -f conftest.err conftest.
$ac_ext
5172 # OK, works on sane cases. Now check whether nonexistent headers
5173 # can be detected and how.
5174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 #include <ac_nonexistent.h>
5178 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5179 # Broken: success on invalid input.
5182 # Passes both tests.
5186 rm -f conftest.err conftest.
$ac_ext
5189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5190 rm -f conftest.err conftest.
$ac_ext
5191 if $ac_preproc_ok; then :
5196 ac_cv_prog_CXXCPP
=$CXXCPP
5199 CXXCPP
=$ac_cv_prog_CXXCPP
5201 ac_cv_prog_CXXCPP
=$CXXCPP
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5204 $as_echo "$CXXCPP" >&6; }
5206 for ac_cxx_preproc_warn_flag
in '' yes
5208 # Use a header file that comes with gcc, so configuring glibc
5209 # with a fresh cross-compiler works.
5210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5211 # <limits.h> exists even on freestanding compilers.
5212 # On the NeXT, cc -E runs the code through the compiler's parser,
5213 # not just through cpp. "Syntax error" is here to catch this case.
5214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5217 # include <limits.h>
5219 # include <assert.h>
5223 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5226 # Broken: fails on valid input.
5229 rm -f conftest.err conftest.
$ac_ext
5231 # OK, works on sane cases. Now check whether nonexistent headers
5232 # can be detected and how.
5233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 #include <ac_nonexistent.h>
5237 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5238 # Broken: success on invalid input.
5241 # Passes both tests.
5245 rm -f conftest.err conftest.
$ac_ext
5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249 rm -f conftest.err conftest.
$ac_ext
5250 if $ac_preproc_ok; then :
5253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5255 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5256 See \`config.log' for more details." "$LINENO" 5; }
5260 ac_cpp
='$CXXCPP $CPPFLAGS'
5261 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5267 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5268 if test "${ac_cv_path_GREP+set}" = set; then :
5269 $as_echo_n "(cached) " >&6
5271 if test -z "$GREP"; then
5272 ac_path_GREP_found
=false
5273 # Loop through the user's path and test for each of PROGNAME-LIST
5274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5275 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5278 test -z "$as_dir" && as_dir
=.
5279 for ac_prog
in grep ggrep
; do
5280 for ac_exec_ext
in '' $ac_executable_extensions; do
5281 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5282 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5283 # Check for GNU ac_path_GREP and select it if it is found.
5284 # Check for GNU $ac_path_GREP
5285 case `"$ac_path_GREP" --version 2>&1` in
5287 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5290 $as_echo_n 0123456789 >"conftest.in"
5293 cat "conftest.in" "conftest.in" >"conftest.tmp"
5294 mv "conftest.tmp" "conftest.in"
5295 cp "conftest.in" "conftest.nl"
5296 $as_echo 'GREP' >> "conftest.nl"
5297 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5298 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5299 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5300 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5301 # Best one so far, save it but keep looking for a better one
5302 ac_cv_path_GREP
="$ac_path_GREP"
5303 ac_path_GREP_max
=$ac_count
5305 # 10*(2^10) chars as input seems more than enough
5306 test $ac_count -gt 10 && break
5308 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5311 $ac_path_GREP_found && break 3
5316 if test -z "$ac_cv_path_GREP"; then
5317 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5320 ac_cv_path_GREP
=$GREP
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5325 $as_echo "$ac_cv_path_GREP" >&6; }
5326 GREP
="$ac_cv_path_GREP"
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5330 $as_echo_n "checking for egrep... " >&6; }
5331 if test "${ac_cv_path_EGREP+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5334 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5335 then ac_cv_path_EGREP
="$GREP -E"
5337 if test -z "$EGREP"; then
5338 ac_path_EGREP_found
=false
5339 # Loop through the user's path and test for each of PROGNAME-LIST
5340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5341 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5344 test -z "$as_dir" && as_dir
=.
5345 for ac_prog
in egrep; do
5346 for ac_exec_ext
in '' $ac_executable_extensions; do
5347 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5348 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5349 # Check for GNU ac_path_EGREP and select it if it is found.
5350 # Check for GNU $ac_path_EGREP
5351 case `"$ac_path_EGREP" --version 2>&1` in
5353 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5356 $as_echo_n 0123456789 >"conftest.in"
5359 cat "conftest.in" "conftest.in" >"conftest.tmp"
5360 mv "conftest.tmp" "conftest.in"
5361 cp "conftest.in" "conftest.nl"
5362 $as_echo 'EGREP' >> "conftest.nl"
5363 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5364 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5365 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5366 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5367 # Best one so far, save it but keep looking for a better one
5368 ac_cv_path_EGREP
="$ac_path_EGREP"
5369 ac_path_EGREP_max
=$ac_count
5371 # 10*(2^10) chars as input seems more than enough
5372 test $ac_count -gt 10 && break
5374 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5377 $ac_path_EGREP_found && break 3
5382 if test -z "$ac_cv_path_EGREP"; then
5383 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5386 ac_cv_path_EGREP
=$EGREP
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5392 $as_echo "$ac_cv_path_EGREP" >&6; }
5393 EGREP
="$ac_cv_path_EGREP"
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5397 $as_echo_n "checking for ANSI C header files... " >&6; }
5398 if test "${ac_cv_header_stdc+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5416 if ac_fn_cxx_try_compile
"$LINENO"; then :
5417 ac_cv_header_stdc
=yes
5419 ac_cv_header_stdc
=no
5421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5423 if test $ac_cv_header_stdc = yes; then
5424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5431 $EGREP "memchr" >/dev
/null
2>&1; then :
5434 ac_cv_header_stdc
=no
5440 if test $ac_cv_header_stdc = yes; then
5441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5448 $EGREP "free" >/dev
/null
2>&1; then :
5451 ac_cv_header_stdc
=no
5457 if test $ac_cv_header_stdc = yes; then
5458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5459 if test "$cross_compiling" = yes; then :
5462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5466 #if ((' ' & 0x0FF) == 0x020)
5467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5470 # define ISLOWER(c) \
5471 (('a' <= (c) && (c) <= 'i') \
5472 || ('j' <= (c) && (c) <= 'r') \
5473 || ('s' <= (c) && (c) <= 'z'))
5474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5482 for (i = 0; i < 256; i++)
5483 if (XOR (islower (i), ISLOWER (i))
5484 || toupper (i) != TOUPPER (i))
5489 if ac_fn_cxx_try_run
"$LINENO"; then :
5492 ac_cv_header_stdc
=no
5494 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5495 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5501 $as_echo "$ac_cv_header_stdc" >&6; }
5502 if test $ac_cv_header_stdc = yes; then
5504 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5509 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5510 inttypes.h stdint.h unistd.h
5512 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5513 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5515 eval as_val
=\$
$as_ac_Header
5516 if test "x$as_val" = x
""yes; then :
5517 cat >>confdefs.h
<<_ACEOF
5518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5527 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5528 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5535 if test "$MINIX" = yes; then
5537 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5540 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5543 $as_echo "#define _MINIX 1" >>confdefs.h
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5549 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5550 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5556 # define __EXTENSIONS__ 1
5557 $ac_includes_default
5566 if ac_fn_cxx_try_compile
"$LINENO"; then :
5567 ac_cv_safe_to_define___extensions__
=yes
5569 ac_cv_safe_to_define___extensions__
=no
5571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5574 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5575 test $ac_cv_safe_to_define___extensions__ = yes &&
5576 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5578 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5580 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5582 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5584 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5588 ac_cpp
='$CPP $CPPFLAGS'
5589 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5590 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5593 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5594 # On Suns, sometimes $CPP names a directory.
5595 if test -n "$CPP" && test -d "$CPP"; then
5598 if test -z "$CPP"; then
5599 if test "${ac_cv_prog_CPP+set}" = set; then :
5600 $as_echo_n "(cached) " >&6
5602 # Double quotes because CPP needs to be expanded
5603 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5606 for ac_c_preproc_warn_flag
in '' yes
5608 # Use a header file that comes with gcc, so configuring glibc
5609 # with a fresh cross-compiler works.
5610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5611 # <limits.h> exists even on freestanding compilers.
5612 # On the NeXT, cc -E runs the code through the compiler's parser,
5613 # not just through cpp. "Syntax error" is here to catch this case.
5614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5617 # include <limits.h>
5619 # include <assert.h>
5623 if ac_fn_c_try_cpp
"$LINENO"; then :
5626 # Broken: fails on valid input.
5629 rm -f conftest.err conftest.
$ac_ext
5631 # OK, works on sane cases. Now check whether nonexistent headers
5632 # can be detected and how.
5633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include <ac_nonexistent.h>
5637 if ac_fn_c_try_cpp
"$LINENO"; then :
5638 # Broken: success on invalid input.
5641 # Passes both tests.
5645 rm -f conftest.err conftest.
$ac_ext
5648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5649 rm -f conftest.err conftest.
$ac_ext
5650 if $ac_preproc_ok; then :
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5663 $as_echo "$CPP" >&6; }
5665 for ac_c_preproc_warn_flag
in '' yes
5667 # Use a header file that comes with gcc, so configuring glibc
5668 # with a fresh cross-compiler works.
5669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5670 # <limits.h> exists even on freestanding compilers.
5671 # On the NeXT, cc -E runs the code through the compiler's parser,
5672 # not just through cpp. "Syntax error" is here to catch this case.
5673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5676 # include <limits.h>
5678 # include <assert.h>
5682 if ac_fn_c_try_cpp
"$LINENO"; then :
5685 # Broken: fails on valid input.
5688 rm -f conftest.err conftest.
$ac_ext
5690 # OK, works on sane cases. Now check whether nonexistent headers
5691 # can be detected and how.
5692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #include <ac_nonexistent.h>
5696 if ac_fn_c_try_cpp
"$LINENO"; then :
5697 # Broken: success on invalid input.
5700 # Passes both tests.
5704 rm -f conftest.err conftest.
$ac_ext
5707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5708 rm -f conftest.err conftest.
$ac_ext
5709 if $ac_preproc_ok; then :
5712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5714 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5715 See \`config.log' for more details." "$LINENO" 5; }
5719 ac_cpp
='$CXXCPP $CPPFLAGS'
5720 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5725 $as_echo_n "checking for inline... " >&6; }
5726 if test "${ac_cv_c_inline+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5730 for ac_kw
in inline __inline__ __inline
; do
5731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5735 static $ac_kw foo_t static_foo () {return 0; }
5736 $ac_kw foo_t foo () {return 0; }
5740 if ac_fn_cxx_try_compile
"$LINENO"; then :
5741 ac_cv_c_inline
=$ac_kw
5743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5744 test "$ac_cv_c_inline" != no
&& break
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5749 $as_echo "$ac_cv_c_inline" >&6; }
5751 case $ac_cv_c_inline in
5754 case $ac_cv_c_inline in
5756 *) ac_val
=$ac_cv_c_inline;;
5758 cat >>confdefs.h
<<_ACEOF
5760 #define inline $ac_val
5767 # Check whether --enable-largefile was given.
5768 if test "${enable_largefile+set}" = set; then :
5769 enableval
=$enable_largefile;
5772 if test "$enable_largefile" != no
; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5775 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5776 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5779 ac_cv_sys_largefile_CC
=no
5780 if test "$GCC" != yes; then
5783 # IRIX 6.2 and later do not support large files by default,
5784 # so use the C compiler's -n32 option if that helps.
5785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 #include <sys/types.h>
5788 /* Check that off_t can represent 2**63 - 1 correctly.
5789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5790 since some C++ compilers masquerading as C compilers
5791 incorrectly reject 9223372036854775807. */
5792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5794 && LARGE_OFF_T % 2147483647 == 1)
5804 if ac_fn_cxx_try_compile
"$LINENO"; then :
5807 rm -f core conftest.err conftest.
$ac_objext
5809 if ac_fn_cxx_try_compile
"$LINENO"; then :
5810 ac_cv_sys_largefile_CC
=' -n32'; break
5812 rm -f core conftest.err conftest.
$ac_objext
5816 rm -f conftest.
$ac_ext
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5820 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5821 if test "$ac_cv_sys_largefile_CC" != no
; then
5822 CC
=$CC$ac_cv_sys_largefile_CC
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5826 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5827 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5828 $as_echo_n "(cached) " >&6
5831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 #include <sys/types.h>
5834 /* Check that off_t can represent 2**63 - 1 correctly.
5835 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5836 since some C++ compilers masquerading as C compilers
5837 incorrectly reject 9223372036854775807. */
5838 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5839 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5840 && LARGE_OFF_T % 2147483647 == 1)
5850 if ac_fn_cxx_try_compile
"$LINENO"; then :
5851 ac_cv_sys_file_offset_bits
=no
; break
5853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 #define _FILE_OFFSET_BITS 64
5857 #include <sys/types.h>
5858 /* Check that off_t can represent 2**63 - 1 correctly.
5859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5860 since some C++ compilers masquerading as C compilers
5861 incorrectly reject 9223372036854775807. */
5862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5864 && LARGE_OFF_T % 2147483647 == 1)
5874 if ac_fn_cxx_try_compile
"$LINENO"; then :
5875 ac_cv_sys_file_offset_bits
=64; break
5877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5878 ac_cv_sys_file_offset_bits
=unknown
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5883 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5884 case $ac_cv_sys_file_offset_bits in #(
5887 cat >>confdefs.h
<<_ACEOF
5888 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5893 if test $ac_cv_sys_file_offset_bits = unknown
; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5895 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5896 if test "${ac_cv_sys_large_files+set}" = set; then :
5897 $as_echo_n "(cached) " >&6
5900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5902 #include <sys/types.h>
5903 /* Check that off_t can represent 2**63 - 1 correctly.
5904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5905 since some C++ compilers masquerading as C compilers
5906 incorrectly reject 9223372036854775807. */
5907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5909 && LARGE_OFF_T % 2147483647 == 1)
5919 if ac_fn_cxx_try_compile
"$LINENO"; then :
5920 ac_cv_sys_large_files
=no
; break
5922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 #define _LARGE_FILES 1
5926 #include <sys/types.h>
5927 /* Check that off_t can represent 2**63 - 1 correctly.
5928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5929 since some C++ compilers masquerading as C compilers
5930 incorrectly reject 9223372036854775807. */
5931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5933 && LARGE_OFF_T % 2147483647 == 1)
5943 if ac_fn_cxx_try_compile
"$LINENO"; then :
5944 ac_cv_sys_large_files
=1; break
5946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5947 ac_cv_sys_large_files
=unknown
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5952 $as_echo "$ac_cv_sys_large_files" >&6; }
5953 case $ac_cv_sys_large_files in #(
5956 cat >>confdefs.h
<<_ACEOF
5957 #define _LARGE_FILES $ac_cv_sys_large_files
5966 # sizeof(char) is 1 by definition.
5967 # The cast to long int works around a bug in the HP C Compiler
5968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5970 # This bug is HP SR number 8606223364.
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5972 $as_echo_n "checking size of void *... " >&6; }
5973 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5976 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5979 if test "$ac_cv_type_void_p" = yes; then
5980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5982 { as_fn_set_status
77
5983 as_fn_error
"cannot compute sizeof (void *)
5984 See \`config.log' for more details." "$LINENO" 5; }; }
5986 ac_cv_sizeof_void_p
=0
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5992 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5996 cat >>confdefs.h
<<_ACEOF
5997 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6001 # The cast to long int works around a bug in the HP C Compiler
6002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6004 # This bug is HP SR number 8606223364.
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6006 $as_echo_n "checking size of short... " >&6; }
6007 if test "${ac_cv_sizeof_short+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6010 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6013 if test "$ac_cv_type_short" = yes; then
6014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6016 { as_fn_set_status
77
6017 as_fn_error
"cannot compute sizeof (short)
6018 See \`config.log' for more details." "$LINENO" 5; }; }
6020 ac_cv_sizeof_short
=0
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6026 $as_echo "$ac_cv_sizeof_short" >&6; }
6030 cat >>confdefs.h
<<_ACEOF
6031 #define SIZEOF_SHORT $ac_cv_sizeof_short
6035 # The cast to long int works around a bug in the HP C Compiler
6036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6038 # This bug is HP SR number 8606223364.
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6040 $as_echo_n "checking size of int... " >&6; }
6041 if test "${ac_cv_sizeof_int+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6044 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6047 if test "$ac_cv_type_int" = yes; then
6048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6050 { as_fn_set_status
77
6051 as_fn_error
"cannot compute sizeof (int)
6052 See \`config.log' for more details." "$LINENO" 5; }; }
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6060 $as_echo "$ac_cv_sizeof_int" >&6; }
6064 cat >>confdefs.h
<<_ACEOF
6065 #define SIZEOF_INT $ac_cv_sizeof_int
6069 # The cast to long int works around a bug in the HP C Compiler
6070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6072 # This bug is HP SR number 8606223364.
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6074 $as_echo_n "checking size of long... " >&6; }
6075 if test "${ac_cv_sizeof_long+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6078 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6081 if test "$ac_cv_type_long" = yes; then
6082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6084 { as_fn_set_status
77
6085 as_fn_error
"cannot compute sizeof (long)
6086 See \`config.log' for more details." "$LINENO" 5; }; }
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6094 $as_echo "$ac_cv_sizeof_long" >&6; }
6098 cat >>confdefs.h
<<_ACEOF
6099 #define SIZEOF_LONG $ac_cv_sizeof_long
6103 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6104 if test "x$ac_cv_type_long_long" = x
""yes; then :
6106 cat >>confdefs.h
<<_ACEOF
6107 #define HAVE_LONG_LONG 1
6110 # The cast to long int works around a bug in the HP C Compiler
6111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6113 # This bug is HP SR number 8606223364.
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6115 $as_echo_n "checking size of long long... " >&6; }
6116 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6117 $as_echo_n "(cached) " >&6
6119 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6122 if test "$ac_cv_type_long_long" = yes; then
6123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6125 { as_fn_set_status
77
6126 as_fn_error
"cannot compute sizeof (long long)
6127 See \`config.log' for more details." "$LINENO" 5; }; }
6129 ac_cv_sizeof_long_long
=0
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6135 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6139 cat >>confdefs.h
<<_ACEOF
6140 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6146 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6147 case $ac_cv_c_int8_t in #(
6151 cat >>confdefs.h
<<_ACEOF
6152 #define int8_t $ac_cv_c_int8_t
6157 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6158 case $ac_cv_c_int16_t in #(
6162 cat >>confdefs.h
<<_ACEOF
6163 #define int16_t $ac_cv_c_int16_t
6168 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6169 case $ac_cv_c_int32_t in #(
6173 cat >>confdefs.h
<<_ACEOF
6174 #define int32_t $ac_cv_c_int32_t
6179 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6180 case $ac_cv_c_int64_t in #(
6184 cat >>confdefs.h
<<_ACEOF
6185 #define int64_t $ac_cv_c_int64_t
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6192 $as_echo_n "checking for long long int... " >&6; }
6193 if test "${ac_cv_type_long_long_int+set}" = set; then :
6194 $as_echo_n "(cached) " >&6
6196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6199 /* For now, do not test the preprocessor; as of 2007 there are too many
6200 implementations with broken preprocessors. Perhaps this can
6201 be revisited in 2012. In the meantime, code should not expect
6202 #if to work with literals wider than 32 bits. */
6203 /* Test literals. */
6204 long long int ll = 9223372036854775807ll;
6205 long long int nll = -9223372036854775807LL;
6206 unsigned long long int ull = 18446744073709551615ULL;
6207 /* Test constant expressions. */
6208 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6210 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6216 /* Test availability of runtime routines for shift and division. */
6217 long long int llmax = 9223372036854775807ll;
6218 unsigned long long int ullmax = 18446744073709551615ull;
6219 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6220 | (llmax / ll) | (llmax % ll)
6221 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6222 | (ullmax / ull) | (ullmax % ull));
6228 if ac_fn_cxx_try_link
"$LINENO"; then :
6229 if test "$cross_compiling" = yes; then :
6230 ac_cv_type_long_long_int
=yes
6232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6237 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6238 # define LLONG_MAX (HALF - 1 + HALF)
6243 long long int n = 1;
6247 long long int m = n << i;
6250 if (LLONG_MAX / 2 < m)
6258 if ac_fn_cxx_try_run
"$LINENO"; then :
6259 ac_cv_type_long_long_int
=yes
6261 ac_cv_type_long_long_int
=no
6263 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6264 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6268 ac_cv_type_long_long_int
=no
6270 rm -f core conftest.err conftest.
$ac_objext \
6271 conftest
$ac_exeext conftest.
$ac_ext
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6274 $as_echo "$ac_cv_type_long_long_int" >&6; }
6275 if test $ac_cv_type_long_long_int = yes; then
6277 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6283 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6284 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6286 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6289 test $ac_cv_type_long_long_int = yes \
6290 && ac_type
='long long int' \
6291 || ac_type
='long int'
6293 cat >>confdefs.h
<<_ACEOF
6294 #define intmax_t $ac_type
6301 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6302 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6304 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6307 for ac_type
in 'int' 'long int' 'long long int'; do
6308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 $ac_includes_default
6314 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6321 if ac_fn_cxx_try_compile
"$LINENO"; then :
6323 cat >>confdefs.h
<<_ACEOF
6324 #define intptr_t $ac_type
6329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6330 test -z "$ac_type" && break
6335 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6336 case $ac_cv_c_uint8_t in #(
6340 $as_echo "#define _UINT8_T 1" >>confdefs.h
6343 cat >>confdefs.h
<<_ACEOF
6344 #define uint8_t $ac_cv_c_uint8_t
6349 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6350 case $ac_cv_c_uint16_t in #(
6355 cat >>confdefs.h
<<_ACEOF
6356 #define uint16_t $ac_cv_c_uint16_t
6361 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6362 case $ac_cv_c_uint32_t in #(
6366 $as_echo "#define _UINT32_T 1" >>confdefs.h
6369 cat >>confdefs.h
<<_ACEOF
6370 #define uint32_t $ac_cv_c_uint32_t
6375 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6376 case $ac_cv_c_uint64_t in #(
6380 $as_echo "#define _UINT64_T 1" >>confdefs.h
6383 cat >>confdefs.h
<<_ACEOF
6384 #define uint64_t $ac_cv_c_uint64_t
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6391 $as_echo_n "checking for unsigned long long int... " >&6; }
6392 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
6395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6398 /* For now, do not test the preprocessor; as of 2007 there are too many
6399 implementations with broken preprocessors. Perhaps this can
6400 be revisited in 2012. In the meantime, code should not expect
6401 #if to work with literals wider than 32 bits. */
6402 /* Test literals. */
6403 long long int ll = 9223372036854775807ll;
6404 long long int nll = -9223372036854775807LL;
6405 unsigned long long int ull = 18446744073709551615ULL;
6406 /* Test constant expressions. */
6407 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6409 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6415 /* Test availability of runtime routines for shift and division. */
6416 long long int llmax = 9223372036854775807ll;
6417 unsigned long long int ullmax = 18446744073709551615ull;
6418 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6419 | (llmax / ll) | (llmax % ll)
6420 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6421 | (ullmax / ull) | (ullmax % ull));
6427 if ac_fn_cxx_try_link
"$LINENO"; then :
6428 ac_cv_type_unsigned_long_long_int
=yes
6430 ac_cv_type_unsigned_long_long_int
=no
6432 rm -f core conftest.err conftest.
$ac_objext \
6433 conftest
$ac_exeext conftest.
$ac_ext
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6436 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6437 if test $ac_cv_type_unsigned_long_long_int = yes; then
6439 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6445 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6446 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6448 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6451 test $ac_cv_type_unsigned_long_long_int = yes \
6452 && ac_type
='unsigned long long int' \
6453 || ac_type
='unsigned long int'
6455 cat >>confdefs.h
<<_ACEOF
6456 #define uintmax_t $ac_type
6463 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6464 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6466 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6469 for ac_type
in 'unsigned int' 'unsigned long int' \
6470 'unsigned long long int'; do
6471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6473 $ac_includes_default
6477 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6484 if ac_fn_cxx_try_compile
"$LINENO"; then :
6486 cat >>confdefs.h
<<_ACEOF
6487 #define uintptr_t $ac_type
6492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6493 test -z "$ac_type" && break
6510 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6511 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6514 # check what underlying integer type int64_t uses
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6516 $as_echo_n "checking for int64_t underlying type... " >&6; }
6517 if test "${ac_cv_int64_t_type+set}" = set; then :
6518 $as_echo_n "(cached) " >&6
6521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6524 #ifdef HAVE_STDINT_H
6527 template <typename T> struct X { };
6529 struct X<long> { typedef long t; };
6539 if ac_fn_cxx_try_compile
"$LINENO"; then :
6540 ac_cv_int64_t_type
=long
6542 ac_cv_int64_t_type
="long long"
6544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6547 $as_echo "$ac_cv_int64_t_type" >&6; }
6548 if test "$ac_cv_int64_t_type" = "long"; then
6550 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6556 #ifdef HAVE_STDINT_H
6559 template <typename T> struct X { };
6561 struct X<long long> { typedef long long t; };
6571 if ac_fn_cxx_try_compile
"$LINENO"; then :
6574 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6580 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6581 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6582 $as_echo_n "(cached) " >&6
6585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6593 int a, b; std::swap(a,b);
6598 if ac_fn_cxx_try_compile
"$LINENO"; then :
6599 ac_cv_std_swap_in_utility
=yes
6601 ac_cv_std_swap_in_utility
=no
6603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6606 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6607 if test $ac_cv_std_swap_in_utility = yes; then
6609 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6613 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6614 # If the host compiler is affected by the bug, and we build with optimization
6615 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6616 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6617 # Since there is no reliable feature check for the presence of this bug,
6618 # we simply use a GCC version number check. (This should never trigger for
6619 # stages 2 or 3 of a native bootstrap.)
6621 if test "$GCC" = yes; then
6622 saved_CXXFLAGS
="$CXXFLAGS"
6624 # The following test compilation will succeed if and only if $CXX accepts
6625 # -fno-strict-aliasing *and* is older than GCC 4.3.
6626 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6628 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6632 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6633 #error compiler not affected by placement new aliasing bug
6637 if ac_fn_cxx_try_compile
"$LINENO"; then :
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6639 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6646 CXXFLAGS
="$saved_CXXFLAGS"
6652 # ---------------------
6653 # Warnings and checking
6654 # ---------------------
6656 # Check $CC warning features (if it's GCC).
6657 # We want to use -pedantic, but we don't want warnings about
6660 # * overlong strings
6661 # * C++11 narrowing conversions in { }
6662 # So, we only use -pedantic if we can disable those warnings.
6664 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6665 # Check whether --enable-build-format-warnings was given.
6666 if test "${enable_build_format_warnings+set}" = set; then :
6667 enableval
=$enable_build_format_warnings;
6669 enable_build_format_warnings
=yes
6672 if test $enable_build_format_warnings = no
; then :
6678 ac_cpp
='$CXXCPP $CPPFLAGS'
6679 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6680 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6684 save_CXXFLAGS
="$CXXFLAGS"
6685 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6686 # Do the check with the no- prefix removed since gcc silently
6687 # accepts any -Wno-* option on purpose
6688 case $real_option in
6689 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6690 *) option
=$real_option ;;
6692 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6695 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6696 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6697 $as_echo_n "(cached) " >&6
6700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6711 if ac_fn_cxx_try_compile
"$LINENO"; then :
6712 eval "$as_acx_Woption=yes"
6714 eval "$as_acx_Woption=no"
6716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6719 eval ac_res
=\$
$as_acx_Woption
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6721 $as_echo "$ac_res" >&6; }
6722 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6723 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6726 CXXFLAGS
="$save_CXXFLAGS"
6728 ac_cpp
='$CXXCPP $CPPFLAGS'
6729 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6730 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6731 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6736 ac_cpp
='$CPP $CPPFLAGS'
6737 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6738 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6739 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6742 save_CFLAGS
="$CFLAGS"
6743 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6744 # Do the check with the no- prefix removed since gcc silently
6745 # accepts any -Wno-* option on purpose
6746 case $real_option in
6747 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6748 *) option
=$real_option ;;
6750 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6753 $as_echo_n "checking whether $CC supports $option... " >&6; }
6754 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6755 $as_echo_n "(cached) " >&6
6758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6769 if ac_fn_c_try_compile
"$LINENO"; then :
6770 eval "$as_acx_Woption=yes"
6772 eval "$as_acx_Woption=no"
6774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6777 eval ac_res
=\$
$as_acx_Woption
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6779 $as_echo "$ac_res" >&6; }
6780 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6781 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6784 CFLAGS
="$save_CFLAGS"
6786 ac_cpp
='$CXXCPP $CPPFLAGS'
6787 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6793 ac_cpp
='$CXXCPP $CPPFLAGS'
6794 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6799 save_CXXFLAGS
="$CXXFLAGS"
6800 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6801 # Do the check with the no- prefix removed since gcc silently
6802 # accepts any -Wno-* option on purpose
6803 case $real_option in
6804 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6805 *) option
=$real_option ;;
6807 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6810 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6811 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6812 $as_echo_n "(cached) " >&6
6815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6826 if ac_fn_cxx_try_compile
"$LINENO"; then :
6827 eval "$as_acx_Woption=yes"
6829 eval "$as_acx_Woption=no"
6831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6834 eval ac_res
=\$
$as_acx_Woption
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6836 $as_echo "$ac_res" >&6; }
6837 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6838 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6841 CXXFLAGS
="$save_CXXFLAGS"
6843 ac_cpp
='$CXXCPP $CPPFLAGS'
6844 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6850 ac_cpp
='$CPP $CPPFLAGS'
6851 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6852 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6853 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6856 save_CFLAGS
="$CFLAGS"
6857 for real_option
in -Wold-style-definition -Wc++-compat; do
6858 # Do the check with the no- prefix removed since gcc silently
6859 # accepts any -Wno-* option on purpose
6860 case $real_option in
6861 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6862 *) option
=$real_option ;;
6864 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6867 $as_echo_n "checking whether $CC supports $option... " >&6; }
6868 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6869 $as_echo_n "(cached) " >&6
6872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6883 if ac_fn_c_try_compile
"$LINENO"; then :
6884 eval "$as_acx_Woption=yes"
6886 eval "$as_acx_Woption=no"
6888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6891 eval ac_res
=\$
$as_acx_Woption
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6893 $as_echo "$ac_res" >&6; }
6894 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6895 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6898 CFLAGS
="$save_CFLAGS"
6900 ac_cpp
='$CXXCPP $CPPFLAGS'
6901 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6907 ac_cpp
='$CXXCPP $CPPFLAGS'
6908 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6912 # Do the check with the no- prefix removed from the warning options
6913 # since gcc silently accepts any -Wno-* option on purpose
6914 if test "$GXX" = yes; then :
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6916 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6917 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6920 save_CXXFLAGS
="$CXXFLAGS"
6921 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6933 if ac_fn_cxx_try_compile
"$LINENO"; then :
6934 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6936 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6939 CXXFLAGS
="$save_CXXFLAGS"
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6942 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6943 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6944 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6949 ac_cpp
='$CXXCPP $CPPFLAGS'
6950 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6956 ac_cpp
='$CXXCPP $CPPFLAGS'
6957 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6961 # Check whether --enable-werror-always was given.
6962 if test "${enable_werror_always+set}" = set; then :
6963 enableval
=$enable_werror_always;
6965 enable_werror_always
=no
6968 if test $enable_werror_always = yes; then :
6969 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6973 ac_cpp
='$CXXCPP $CPPFLAGS'
6974 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6980 # The above macros do nothing if the compiler is not GCC. However, the
6981 # Makefile has more goo to add other flags, so these variables are used
6982 # to enable warnings only for GCC.
6985 if test "x$GCC" = "xyes"; then
6986 warn_cflags
='$(GCC_WARN_CFLAGS)'
6987 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6992 # Disable exceptions and RTTI if building with g++
6994 ac_cpp
='$CPP $CPPFLAGS'
6995 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6996 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6997 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7000 save_CFLAGS
="$CFLAGS"
7001 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7002 # Do the check with the no- prefix removed since gcc silently
7003 # accepts any -Wno-* option on purpose
7004 case $real_option in
7005 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7006 *) option
=$real_option ;;
7008 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7011 $as_echo_n "checking whether $CC supports $option... " >&6; }
7012 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7013 $as_echo_n "(cached) " >&6
7016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7027 if ac_fn_c_try_compile
"$LINENO"; then :
7028 eval "$as_acx_Woption=yes"
7030 eval "$as_acx_Woption=no"
7032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7035 eval ac_res
=\$
$as_acx_Woption
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7037 $as_echo "$ac_res" >&6; }
7038 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7039 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7042 CFLAGS
="$save_CFLAGS"
7044 ac_cpp
='$CXXCPP $CPPFLAGS'
7045 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7051 # Enable expensive internal checks
7053 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7057 # Check whether --enable-checking was given.
7058 if test "${enable_checking+set}" = set; then :
7059 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7062 # Determine the default checks.
7063 if test x
$is_release = x
; then
7064 ac_checking_flags
=yes,extra
7066 ac_checking_flags
=release
7070 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7071 for check
in release
$ac_checking_flags
7074 # these set all the flags to specific states
7075 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7076 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7077 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7078 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7079 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7080 ac_types_checking
=1 ;;
7081 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7082 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7083 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7084 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7085 ac_tree_checking
= ; ac_valgrind_checking
= ;
7086 ac_types_checking
= ;;
7087 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7088 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7089 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7090 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7091 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7092 ac_types_checking
=1 ;;
7093 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7094 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7095 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7096 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7097 ac_tree_checking
= ; ac_valgrind_checking
= ;
7098 ac_types_checking
= ;;
7099 # these enable particular checks
7100 assert
) ac_assert_checking
=1 ;;
7101 df
) ac_df_checking
=1 ;;
7102 extra
) ac_extra_checking
=1 ;;
7103 fold) ac_fold_checking
=1 ;;
7104 gc
) ac_gc_checking
=1 ;;
7105 gcac
) ac_gc_always_collect
=1 ;;
7106 gimple
) ac_gimple_checking
=1 ;;
7107 misc
) ac_checking
=1 ;;
7108 rtl
) ac_rtl_checking
=1 ;;
7109 rtlflag
) ac_rtlflag_checking
=1 ;;
7110 runtime
) ac_runtime_checking
=1 ;;
7111 tree
) ac_tree_checking
=1 ;;
7112 types
) ac_types_checking
=1 ;;
7113 valgrind
) ac_valgrind_checking
=1 ;;
7114 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7120 if test x
$ac_checking != x
; then
7122 $as_echo "#define CHECKING_P 1" >>confdefs.h
7124 nocommon_flag
=-fno-common
7126 $as_echo "#define CHECKING_P 0" >>confdefs.h
7130 if test x
$ac_extra_checking != x
; then
7132 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7135 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7138 if test x
$ac_df_checking != x
; then
7140 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7143 if test x
$ac_assert_checking != x
; then
7145 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7148 if test x
$ac_gimple_checking != x
; then
7150 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7154 if test x
$ac_runtime_checking != x
; then
7156 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7159 if test x
$ac_tree_checking != x
; then
7161 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7165 if test x
$ac_types_checking != x
; then
7167 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7171 if test x
$ac_rtl_checking != x
; then
7173 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7176 if test x
$ac_rtlflag_checking != x
; then
7178 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7181 if test x
$ac_gc_checking != x
; then
7183 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7186 if test x
$ac_gc_always_collect != x
; then
7188 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7191 if test x
$ac_fold_checking != x
; then
7193 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7196 valgrind_path_defines
=
7199 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7200 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7208 # It is certainly possible that there's valgrind but no valgrind.h.
7209 # GCC relies on making annotations so we must have both.
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7211 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7214 #include <valgrind/memcheck.h>
7215 #ifndef VALGRIND_DISCARD
7216 #error VALGRIND_DISCARD not defined
7219 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7220 gcc_cv_header_valgrind_memcheck_h
=yes
7222 gcc_cv_header_valgrind_memcheck_h
=no
7224 rm -f conftest.err conftest.
$ac_ext
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7226 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7228 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7231 #include <memcheck.h>
7232 #ifndef VALGRIND_DISCARD
7233 #error VALGRIND_DISCARD not defined
7236 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7237 gcc_cv_header_memcheck_h
=yes
7239 gcc_cv_header_memcheck_h
=no
7241 rm -f conftest.err conftest.
$ac_ext
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7243 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7244 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7246 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7249 if test $gcc_cv_header_memcheck_h = yes; then
7251 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7255 if test x
$ac_valgrind_checking != x
; then
7257 # Prepare PATH_SEPARATOR.
7258 # The user is always right.
7259 if test "${PATH_SEPARATOR+set}" != set; then
7260 echo "#! /bin/sh" >conf$$.sh
7261 echo "exit 0" >>conf$$.sh
7263 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7271 # Find out how to test for executable files. Don't use a zero-byte file,
7272 # as systems may use methods other than mode bits to determine executability.
7273 cat >conf$$.
file <<_ASEOF
7277 chmod +x conf$$.
file
7278 if test -x conf$$.
file >/dev
/null
2>&1; then
7279 ac_executable_p
="test -x"
7281 ac_executable_p
="test -f"
7285 # Extract the first word of "valgrind", so it can be a program name with args.
7286 set dummy valgrind
; ac_word
=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7290 $as_echo_n "(cached) " >&6
7292 case "$valgrind_path" in
7294 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7297 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7298 for ac_dir
in $PATH; do
7300 test -z "$ac_dir" && ac_dir
=.
7301 for ac_exec_ext
in '' $ac_executable_extensions; do
7302 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7303 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7304 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7314 valgrind_path
="$ac_cv_path_valgrind_path"
7315 if test -n "$valgrind_path"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7317 $as_echo "$valgrind_path" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7323 if test "x$valgrind_path" = "x" \
7324 ||
(test $have_valgrind_h = no \
7325 && test $gcc_cv_header_memcheck_h = no \
7326 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7327 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7329 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7330 valgrind_command
="$valgrind_path -q"
7332 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7338 # Enable code coverage collection
7339 # Check whether --enable-coverage was given.
7340 if test "${enable_coverage+set}" = set; then :
7341 enableval
=$enable_coverage; case "${enableval}" in
7343 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7346 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7349 # a.k.a. --disable-coverage
7353 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7362 # Check whether --enable-gather-detailed-mem-stats was given.
7363 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7364 enableval
=$enable_gather_detailed_mem_stats;
7366 enable_gather_detailed_mem_stats
=no
7369 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7371 cat >>confdefs.h
<<_ACEOF
7372 #define GATHER_STATISTICS $gather_stats
7376 # Check whether --enable-valgrind-annotations was given.
7377 if test "${enable_valgrind_annotations+set}" = set; then :
7378 enableval
=$enable_valgrind_annotations;
7380 enable_valgrind_annotations
=no
7383 if test x
$enable_valgrind_annotations != xno \
7384 ||
test x
$ac_valgrind_checking != x
; then
7385 if (test $have_valgrind_h = no \
7386 && test $gcc_cv_header_memcheck_h = no \
7387 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7388 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7391 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7395 # -------------------------------
7396 # Miscenalleous configure options
7397 # -------------------------------
7401 # Check whether --with-stabs was given.
7402 if test "${with_stabs+set}" = set; then :
7403 withval
=$with_stabs; stabs
="$with_stabs"
7409 # Determine whether or not multilibs are enabled.
7410 # Check whether --enable-multilib was given.
7411 if test "${enable_multilib+set}" = set; then :
7412 enableval
=$enable_multilib;
7419 # Determine whether or not multiarch is enabled.
7420 # Check whether --enable-multiarch was given.
7421 if test "${enable_multiarch+set}" = set; then :
7422 enableval
=$enable_multiarch; case "${enableval}" in
7423 yes|no|auto
) enable_multiarch
=$enableval;;
7424 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7427 enable_multiarch
=auto
7430 if test x
${enable_multiarch} = xauto
; then
7431 if test x
${with_native_system_header_dir} != x
; then
7432 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7435 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7436 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7441 $as_echo_n "checking for multiarch configuration... " >&6; }
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7444 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7446 # needed for setting the multiarch name for soft-float/hard-float ABIs
7450 # default stack clash protection guard size as power of twos in bytes.
7451 # Please keep these in sync with params.def.
7455 # Keep the default value when the option is not used to 0, this allows us to
7456 # distinguish between the cases where the user specifially set a value via
7457 # configure and when the normal default value is used.
7459 # Check whether --with-stack-clash-protection-guard-size was given.
7460 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7461 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7463 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7466 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7467 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7468 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7469 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
7473 cat >>confdefs.h
<<_ACEOF
7474 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7478 # Enable __cxa_atexit for C++.
7479 # Check whether --enable-__cxa_atexit was given.
7480 if test "${enable___cxa_atexit+set}" = set; then :
7481 enableval
=$enable___cxa_atexit;
7485 # Enable C extension for decimal float if target supports it.
7487 # Check whether --enable-decimal-float was given.
7488 if test "${enable_decimal_float+set}" = set; then :
7489 enableval
=$enable_decimal_float;
7490 case $enable_decimal_float in
7491 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7492 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7493 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7499 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7500 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7501 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7502 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7503 enable_decimal_float
=yes
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7507 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7508 enable_decimal_float
=no
7515 # x86's use BID format instead of DPD
7516 case x
$enable_decimal_float in
7519 i?
86*-*-* | x86_64
*-*-*)
7520 enable_decimal_float
=bid
7523 enable_decimal_float
=dpd
7526 default_decimal_float
=$enable_decimal_float
7529 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7530 # dependency on libdecnumber.
7531 default_decimal_float
=dpd
7538 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7540 cat >>confdefs.h
<<_ACEOF
7541 #define ENABLE_DECIMAL_FLOAT $dfp
7545 # Use default_decimal_float for dependency.
7546 enable_decimal_float
=$default_decimal_float
7548 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7550 cat >>confdefs.h
<<_ACEOF
7551 #define ENABLE_DECIMAL_BID_FORMAT $bid
7555 # Enable C extension for fixed-point arithmetic.
7556 # Check whether --enable-fixed-point was given.
7557 if test "${enable_fixed_point+set}" = set; then :
7558 enableval
=$enable_fixed_point;
7563 enable_fixed_point
=yes
7567 enable_fixed_point
=yes
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7571 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7572 enable_fixed_point
=no
7580 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7582 cat >>confdefs.h
<<_ACEOF
7583 #define ENABLE_FIXED_POINT $fixedpoint
7588 # Pass with no value to take the default
7589 # Pass with a value to specify a thread package
7590 # Check whether --enable-threads was given.
7591 if test "${enable_threads+set}" = set; then :
7592 enableval
=$enable_threads;
7598 # Check whether --enable-tls was given.
7599 if test "${enable_tls+set}" = set; then :
7600 enableval
=$enable_tls;
7603 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7604 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7612 # Check whether --enable-vtable-verify was given.
7613 if test "${enable_vtable_verify+set}" = set; then :
7614 enableval
=$enable_vtable_verify;
7616 enable_vtable_verify
=no
7619 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7621 cat >>confdefs.h
<<_ACEOF
7622 #define ENABLE_VTABLE_VERIFY $vtable_verify
7626 # Check whether --enable-objc-gc was given.
7627 if test "${enable_objc_gc+set}" = set; then :
7628 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7639 # Check whether --with-dwarf2 was given.
7640 if test "${with_dwarf2+set}" = set; then :
7641 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7647 # Check whether --enable-shared was given.
7648 if test "${enable_shared+set}" = set; then :
7649 enableval
=$enable_shared;
7650 case $enable_shared in
7654 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7655 for pkg
in $enableval; do
7656 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7670 # Check whether --enable-gcov was given.
7671 if test "${enable_gcov+set}" = set; then :
7672 enableval
=$enable_gcov;
7680 # Check whether --with-specs was given.
7681 if test "${with_specs+set}" = set; then :
7682 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7692 # Check whether --with-pkgversion was given.
7693 if test "${with_pkgversion+set}" = set; then :
7694 withval
=$with_pkgversion; case "$withval" in
7695 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7697 *) PKGVERSION
="($withval) " ;;
7708 # Check whether --with-bugurl was given.
7709 if test "${with_bugurl+set}" = set; then :
7710 withval
=$with_bugurl; case "$withval" in
7711 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7714 *) BUGURL
="$withval"
7718 BUGURL
="https://gcc.gnu.org/bugs/"
7728 REPORT_BUGS_TO
="<$BUGURL>"
7729 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7736 # Sanity check enable_languages in case someone does not run the toplevel
7737 # configure # script.
7738 # Check whether --enable-languages was given.
7739 if test "${enable_languages+set}" = set; then :
7740 enableval
=$enable_languages; case ,${enable_languages}, in
7742 # go safe -- we cannot be much sure without the toplevel
7744 # analysis of which target libs are present and usable
7748 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7753 enable_languages
=c
,${enable_languages}
7761 if test x
"$enable_as_accelerator_for" != x
; then
7763 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7765 enable_as_accelerator
=yes
7768 # In this case we expect offload compiler to be built as native, so we
7769 # need to rename the driver to avoid clashes with host's drivers.
7770 program_transform_name
="s&^&${target}-&" ;;
7772 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7773 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7774 accel_dir_suffix
=/accel
/${target_noncanonical}
7775 real_target_noncanonical
=${enable_as_accelerator_for}
7781 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7782 tgt
=`echo $tgt | sed 's/=.*//'`
7784 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7790 if test x
"$offload_targets" = x
; then
7791 offload_targets
=$tgt
7793 offload_targets
="$offload_targets,$tgt"
7797 cat >>confdefs.h
<<_ACEOF
7798 #define OFFLOAD_TARGETS "$offload_targets"
7801 if test x
"$enable_offloading" != x
; then
7803 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7807 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7811 if test x
"$enable_hsa" = x1
; then
7813 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7818 # Check whether --with-multilib-list was given.
7819 if test "${with_multilib_list+set}" = set; then :
7820 withval
=$with_multilib_list; :
7822 with_multilib_list
=default
7826 # -------------------------
7827 # Checks for other programs
7828 # -------------------------
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7831 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7833 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7834 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7835 $as_echo_n "(cached) " >&6
7837 cat >conftest.
make <<\_ACEOF
7840 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7842 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7843 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7845 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7847 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7851 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7853 $as_echo "yes" >&6; }
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7858 SET_MAKE
="MAKE=${MAKE-make}"
7862 # Find some useful tools
7863 for ac_prog
in gawk mawk nawk
awk
7865 # Extract the first word of "$ac_prog", so it can be a program name with args.
7866 set dummy
$ac_prog; ac_word
=$2
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868 $as_echo_n "checking for $ac_word... " >&6; }
7869 if test "${ac_cv_prog_AWK+set}" = set; then :
7870 $as_echo_n "(cached) " >&6
7872 if test -n "$AWK"; then
7873 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7879 test -z "$as_dir" && as_dir
=.
7880 for ac_exec_ext
in '' $ac_executable_extensions; do
7881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7882 ac_cv_prog_AWK
="$ac_prog"
7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 if test -n "$AWK"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7895 $as_echo "$AWK" >&6; }
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7902 test -n "$AWK" && break
7905 # We need awk to create options.c and options.h.
7906 # Bail out if it's missing.
7908 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7912 $as_echo_n "checking whether ln -s works... " >&6; }
7913 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7916 rm -f conftestdata_t
7917 echo >conftestdata_f
7918 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7920 gcc_cv_prog_LN_S
="ln -s"
7922 if ln conftestdata_f conftestdata_t
2>/dev
/null
7926 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7928 gcc_cv_prog_LN_S
="cp -p"
7934 rm -f conftestdata_f conftestdata_t
7937 LN_S
="$gcc_cv_prog_LN_S"
7938 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7940 $as_echo "yes" >&6; }
7942 if test "$gcc_cv_prog_LN_S" = "ln"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7944 $as_echo "no, using ln" >&6; }
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7947 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7952 $as_echo_n "checking whether ln works... " >&6; }
7953 if test "${acx_cv_prog_LN+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7956 rm -f conftestdata_t
7957 echo >conftestdata_f
7958 if ln conftestdata_f conftestdata_t
2>/dev
/null
7964 rm -f conftestdata_f conftestdata_t
7967 if test $acx_cv_prog_LN = no
; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7970 $as_echo "no, using $LN" >&6; }
7972 LN
="$acx_cv_prog_LN"
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7974 $as_echo "yes" >&6; }
7977 if test -n "$ac_tool_prefix"; then
7978 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7979 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7985 if test -n "$RANLIB"; then
7986 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7992 test -z "$as_dir" && as_dir
=.
7993 for ac_exec_ext
in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 RANLIB
=$ac_cv_prog_RANLIB
8006 if test -n "$RANLIB"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8008 $as_echo "$RANLIB" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8016 if test -z "$ac_cv_prog_RANLIB"; then
8017 ac_ct_RANLIB
=$RANLIB
8018 # Extract the first word of "ranlib", so it can be a program name with args.
8019 set dummy ranlib
; ac_word
=$2
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 $as_echo_n "checking for $ac_word... " >&6; }
8022 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
8025 if test -n "$ac_ct_RANLIB"; then
8026 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8032 test -z "$as_dir" && as_dir
=.
8033 for ac_exec_ext
in '' $ac_executable_extensions; do
8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8035 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8046 if test -n "$ac_ct_RANLIB"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8048 $as_echo "$ac_ct_RANLIB" >&6; }
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8054 if test "x$ac_ct_RANLIB" = x
; then
8057 case $cross_compiling:$ac_tool_warned in
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8061 ac_tool_warned
=yes ;;
8063 RANLIB
=$ac_ct_RANLIB
8066 RANLIB
="$ac_cv_prog_RANLIB"
8072 # Find a good install program. We prefer a C program (faster),
8073 # so one script is as good as another. But avoid the broken or
8074 # incompatible versions:
8075 # SysV /etc/install, /usr/sbin/install
8076 # SunOS /usr/etc/install
8077 # IRIX /sbin/install
8079 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8080 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8081 # ./install, which can be erroneously created by make from ./install.sh.
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8083 $as_echo_n "checking for a BSD compatible install... " >&6; }
8084 if test -z "$INSTALL"; then
8085 if test "${ac_cv_path_install+set}" = set; then :
8086 $as_echo_n "(cached) " >&6
8088 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8089 for ac_dir
in $PATH; do
8090 # Account for people who put trailing slashes in PATH elements.
8092 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8094 # OSF1 and SCO ODT 3.0 have their own names for install.
8095 for ac_prog
in ginstall scoinst
install; do
8096 if test -f $ac_dir/$ac_prog; then
8097 if test $ac_prog = install &&
8098 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8099 # AIX install. It has an incompatible calling convention.
8100 # OSF/1 installbsd also uses dspmsg, but is usable.
8103 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8114 if test "${ac_cv_path_install+set}" = set; then
8115 INSTALL
="$ac_cv_path_install"
8117 # As a last resort, use the slow shell script. We don't cache a
8118 # path for INSTALL within a source directory, because that will
8119 # break other packages using the cache if that directory is
8120 # removed, or if the path is relative.
8121 INSTALL
="$ac_install_sh"
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8125 $as_echo "$INSTALL" >&6; }
8127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8128 # It thinks the first close brace ends the variable substitution.
8129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8131 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8134 # See if cmp has --ignore-initial.
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8136 $as_echo_n "checking for cmp's capabilities... " >&6; }
8137 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
8142 gcc_cv_prog_cmp_skip
=slowcompare
8143 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8144 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8147 gcc_cv_prog_cmp_skip
=gnucompare
8150 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8151 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8152 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8155 gcc_cv_prog_cmp_skip
=fastcompare
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8163 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8164 make_compare_target
=$gcc_cv_prog_cmp_skip
8168 # See if we have the mktemp command.
8169 # Extract the first word of "mktemp", so it can be a program name with args.
8170 set dummy mktemp
; ac_word
=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8176 if test -n "$have_mktemp_command"; then
8177 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8183 test -z "$as_dir" && as_dir
=.
8184 for ac_exec_ext
in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8186 ac_cv_prog_have_mktemp_command
="yes"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8197 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8198 if test -n "$have_mktemp_command"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8200 $as_echo "$have_mktemp_command" >&6; }
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8208 # See if makeinfo has been installed and is modern enough
8209 # that we can use it.
8211 # Extract the first word of "makeinfo", so it can be a program name with args.
8212 set dummy makeinfo
; ac_word
=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8218 if test -n "$MAKEINFO"; then
8219 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8225 test -z "$as_dir" && as_dir
=.
8226 for ac_exec_ext
in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228 ac_cv_prog_MAKEINFO
="makeinfo"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 MAKEINFO
=$ac_cv_prog_MAKEINFO
8239 if test -n "$MAKEINFO"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8241 $as_echo "$MAKEINFO" >&6; }
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8248 if test -n "$MAKEINFO"; then
8249 # Found it, now check the version.
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8251 $as_echo_n "checking for modern makeinfo... " >&6; }
8252 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8253 $as_echo_n "(cached) " >&6
8255 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8256 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8258 case $ac_prog_version in
8259 '') gcc_cv_prog_makeinfo_modern
=no
;;
8260 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8261 *) gcc_cv_prog_makeinfo_modern
=no
;;
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8266 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8268 gcc_cv_prog_makeinfo_modern
=no
8270 if test $gcc_cv_prog_makeinfo_modern = no
; then
8271 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8274 if test $gcc_cv_prog_makeinfo_modern = no
; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8276 *** Makeinfo is missing or too old.
8277 *** Info documentation will not be built." >&5
8278 $as_echo "$as_me: WARNING:
8279 *** Makeinfo is missing or too old.
8280 *** Info documentation will not be built." >&2;}
8287 # Is pod2man recent enough to regenerate manpages?
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8289 $as_echo_n "checking for recent Pod::Man... " >&6; }
8290 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8292 $as_echo "yes" >&6; }
8293 GENERATED_MANPAGES
=generated-manpages
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8301 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8306 # Extract the first word of "$ac_prog", so it can be a program name with args.
8307 set dummy
$ac_prog; ac_word
=$2
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309 $as_echo_n "checking for $ac_word... " >&6; }
8310 if test "${ac_cv_prog_FLEX+set}" = set; then :
8311 $as_echo_n "(cached) " >&6
8313 if test -n "$FLEX"; then
8314 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8320 test -z "$as_dir" && as_dir
=.
8321 for ac_exec_ext
in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8323 ac_cv_prog_FLEX
="$ac_prog"
8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 FLEX
=$ac_cv_prog_FLEX
8334 if test -n "$FLEX"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8336 $as_echo "$FLEX" >&6; }
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8343 test -n "$FLEX" && break
8345 test -n "$FLEX" || FLEX
="$MISSING flex"
8349 for ac_prog
in bison
8351 # Extract the first word of "$ac_prog", so it can be a program name with args.
8352 set dummy
$ac_prog; ac_word
=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if test "${ac_cv_prog_BISON+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
8358 if test -n "$BISON"; then
8359 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8365 test -z "$as_dir" && as_dir
=.
8366 for ac_exec_ext
in '' $ac_executable_extensions; do
8367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8368 ac_cv_prog_BISON
="$ac_prog"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 BISON
=$ac_cv_prog_BISON
8379 if test -n "$BISON"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8381 $as_echo "$BISON" >&6; }
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8388 test -n "$BISON" && break
8390 test -n "$BISON" || BISON
="$MISSING bison"
8393 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8394 # check for build == host before using them.
8397 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8398 && test -d ..
/binutils
; then
8399 NM
='${objdir}/../binutils/nm-new'
8401 # Extract the first word of "nm", so it can be a program name with args.
8402 set dummy nm
; ac_word
=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if test "${ac_cv_prog_NM+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
8408 if test -n "$NM"; then
8409 ac_cv_prog_NM
="$NM" # Let the user override the test.
8411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8415 test -z "$as_dir" && as_dir
=.
8416 for ac_exec_ext
in '' $ac_executable_extensions; do
8417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8430 if test -n "$NM"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8432 $as_echo "$NM" >&6; }
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8442 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8443 && test -d ..
/binutils
; then
8444 AR
='${objdir}/../binutils/ar'
8446 # Extract the first word of "ar", so it can be a program name with args.
8447 set dummy
ar; ac_word
=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if test "${ac_cv_prog_AR+set}" = set; then :
8451 $as_echo_n "(cached) " >&6
8453 if test -n "$AR"; then
8454 ac_cv_prog_AR
="$AR" # Let the user override the test.
8456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8460 test -z "$as_dir" && as_dir
=.
8461 for ac_exec_ext
in '' $ac_executable_extensions; do
8462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8475 if test -n "$AR"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8477 $as_echo "$AR" >&6; }
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8486 # The jit documentation looks better if built with sphinx, but can be
8487 # built with texinfo if sphinx is not available.
8488 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8489 # Extract the first word of "sphinx-build", so it can be a program name with args.
8490 set dummy sphinx-build
; ac_word
=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8496 if test -n "$doc_build_sys"; then
8497 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8503 test -z "$as_dir" && as_dir
=.
8504 for ac_exec_ext
in '' $ac_executable_extensions; do
8505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8506 ac_cv_prog_doc_build_sys
="sphinx"
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8517 doc_build_sys
=$ac_cv_prog_doc_build_sys
8518 if test -n "$doc_build_sys"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8520 $as_echo "$doc_build_sys" >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8528 # --------------------
8529 # Checks for C headers
8530 # --------------------
8532 # Need to reject headers which give warnings, so that the -Werror bootstrap
8533 # works later. *sigh* This needs to come before all header checks.
8535 ac_c_preproc_warn_flag
=yes
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8538 $as_echo_n "checking for ANSI C header files... " >&6; }
8539 if test "${ac_cv_header_stdc+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h. */
8557 if ac_fn_cxx_try_compile
"$LINENO"; then :
8558 ac_cv_header_stdc
=yes
8560 ac_cv_header_stdc
=no
8562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8564 if test $ac_cv_header_stdc = yes; then
8565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8572 $EGREP "memchr" >/dev
/null
2>&1; then :
8575 ac_cv_header_stdc
=no
8581 if test $ac_cv_header_stdc = yes; then
8582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8589 $EGREP "free" >/dev
/null
2>&1; then :
8592 ac_cv_header_stdc
=no
8598 if test $ac_cv_header_stdc = yes; then
8599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8600 if test "$cross_compiling" = yes; then :
8603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8607 #if ((' ' & 0x0FF) == 0x020)
8608 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8609 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8611 # define ISLOWER(c) \
8612 (('a' <= (c) && (c) <= 'i') \
8613 || ('j' <= (c) && (c) <= 'r') \
8614 || ('s' <= (c) && (c) <= 'z'))
8615 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8618 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8623 for (i = 0; i < 256; i++)
8624 if (XOR (islower (i), ISLOWER (i))
8625 || toupper (i) != TOUPPER (i))
8630 if ac_fn_cxx_try_run
"$LINENO"; then :
8633 ac_cv_header_stdc
=no
8635 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8636 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8642 $as_echo "$ac_cv_header_stdc" >&6; }
8643 if test $ac_cv_header_stdc = yes; then
8645 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8650 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8651 if test "${ac_cv_header_time+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
8654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8656 #include <sys/types.h>
8657 #include <sys/time.h>
8663 if ((struct tm *) 0)
8669 if ac_fn_cxx_try_compile
"$LINENO"; then :
8670 ac_cv_header_time
=yes
8672 ac_cv_header_time
=no
8674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8677 $as_echo "$ac_cv_header_time" >&6; }
8678 if test $ac_cv_header_time = yes; then
8680 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8685 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8686 if test "${gcc_cv_header_string+set}" = set; then :
8687 $as_echo_n "(cached) " >&6
8689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8692 #include <strings.h>
8701 if ac_fn_cxx_try_compile
"$LINENO"; then :
8702 gcc_cv_header_string
=yes
8704 gcc_cv_header_string
=no
8706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8709 $as_echo "$gcc_cv_header_string" >&6; }
8710 if test $gcc_cv_header_string = yes; then
8712 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8717 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8718 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8719 $as_echo_n "(cached) " >&6
8721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 #include <sys/types.h>
8724 #include <sys/wait.h>
8726 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8729 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8737 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8742 if ac_fn_cxx_try_compile
"$LINENO"; then :
8743 ac_cv_header_sys_wait_h
=yes
8745 ac_cv_header_sys_wait_h
=no
8747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8750 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8751 if test $ac_cv_header_sys_wait_h = yes; then
8753 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8758 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8759 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8760 $as_echo_n "(cached) " >&6
8762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8764 #include <sys/types.h>
8765 #include <termios.h>
8771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8772 $EGREP "yes" >/dev
/null
2>&1; then :
8773 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8775 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8781 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8783 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8785 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8786 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 #include <sys/types.h>
8792 #include <sys/ioctl.h>
8798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8799 $EGREP "yes" >/dev
/null
2>&1; then :
8800 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8802 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8808 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8810 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8812 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8817 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8818 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8819 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8820 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8822 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8823 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8824 eval as_val
=\$
$as_ac_Header
8825 if test "x$as_val" = x
""yes; then :
8826 cat >>confdefs.h
<<_ACEOF
8827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8834 # Check for thread headers.
8835 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8836 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8842 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8843 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8850 # These tests can't be done till we know if we have limits.h.
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8852 $as_echo_n "checking for CHAR_BIT... " >&6; }
8853 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
8856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #ifdef HAVE_LIMITS_H
8865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8866 $EGREP "found" >/dev
/null
2>&1; then :
8867 gcc_cv_decl_char_bit
=yes
8869 gcc_cv_decl_char_bit
=no
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8876 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8877 if test $gcc_cv_decl_char_bit = no
; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8879 $as_echo_n "checking number of bits in a byte... " >&6; }
8880 if test "${gcc_cv_c_nbby+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
8885 while test $i -lt 65; do
8886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8893 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8894 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8900 if ac_fn_cxx_try_compile
"$LINENO"; then :
8901 gcc_cv_c_nbby
=$i; break
8903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8906 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8910 $as_echo "$gcc_cv_c_nbby" >&6; }
8911 if test $gcc_cv_c_nbby = failed
; then
8912 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8915 cat >>confdefs.h
<<_ACEOF
8916 #define CHAR_BIT $gcc_cv_c_nbby
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8922 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8923 if test "${ac_cv_c_bigendian+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8926 ac_cv_c_bigendian
=unknown
8927 # See if we're dealing with a universal compiler.
8928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 #ifndef __APPLE_CC__
8931 not a universal capable compiler
8936 if ac_fn_cxx_try_compile
"$LINENO"; then :
8938 # Check for potential -arch flags. It is not universal unless
8939 # there are at least two -arch flags with different values.
8942 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8943 if test -n "$ac_prev"; then
8945 i?
86 | x86_64 | ppc | ppc64
)
8946 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8949 ac_cv_c_bigendian
=universal
8955 elif test "x$ac_word" = "x-arch"; then
8960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8961 if test $ac_cv_c_bigendian = unknown
; then
8962 # See if sys/param.h defines the BYTE_ORDER macro.
8963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 #include <sys/types.h>
8966 #include <sys/param.h>
8971 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8972 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8981 if ac_fn_cxx_try_compile
"$LINENO"; then :
8982 # It does; now see whether it defined to BIG_ENDIAN or not.
8983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 #include <sys/types.h>
8986 #include <sys/param.h>
8991 #if BYTE_ORDER != BIG_ENDIAN
8999 if ac_fn_cxx_try_compile
"$LINENO"; then :
9000 ac_cv_c_bigendian
=yes
9002 ac_cv_c_bigendian
=no
9004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9008 if test $ac_cv_c_bigendian = unknown
; then
9009 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9017 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9025 if ac_fn_cxx_try_compile
"$LINENO"; then :
9026 # It does; now see whether it defined to _BIG_ENDIAN or not.
9027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9042 if ac_fn_cxx_try_compile
"$LINENO"; then :
9043 ac_cv_c_bigendian
=yes
9045 ac_cv_c_bigendian
=no
9047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9051 if test $ac_cv_c_bigendian = unknown
; then
9052 # Compile a test program.
9053 if test "$cross_compiling" = yes; then :
9054 # Try to guess by grepping values from an object file.
9055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057 short int ascii_mm[] =
9058 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9059 short int ascii_ii[] =
9060 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9061 int use_ascii (int i) {
9062 return ascii_mm[i] + ascii_ii[i];
9064 short int ebcdic_ii[] =
9065 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9066 short int ebcdic_mm[] =
9067 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9068 int use_ebcdic (int i) {
9069 return ebcdic_mm[i] + ebcdic_ii[i];
9076 return use_ascii (foo) == use_ebcdic (foo);
9081 if ac_fn_cxx_try_compile
"$LINENO"; then :
9082 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9083 ac_cv_c_bigendian
=yes
9085 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9086 if test "$ac_cv_c_bigendian" = unknown
; then
9087 ac_cv_c_bigendian
=no
9089 # finding both strings is unlikely to happen, but who knows?
9090 ac_cv_c_bigendian
=unknown
9094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 $ac_includes_default
9103 /* Are we little or big endian? From Harbison&Steele. */
9107 char c[sizeof (long int)];
9110 return u.c[sizeof (long int) - 1] == 1;
9116 if ac_fn_cxx_try_run
"$LINENO"; then :
9117 ac_cv_c_bigendian
=no
9119 ac_cv_c_bigendian
=yes
9121 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9122 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9128 $as_echo "$ac_cv_c_bigendian" >&6; }
9129 case $ac_cv_c_bigendian in #(
9131 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9137 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9141 as_fn_error
"unknown endianness
9142 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9146 # ----------------------
9147 # Checks for C++ headers
9148 # ----------------------
9151 ac_cpp
='$CXXCPP $CPPFLAGS'
9152 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9153 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9154 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9156 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9157 if test -z "$CXXCPP"; then
9158 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9159 $as_echo_n "(cached) " >&6
9161 # Double quotes because CXXCPP needs to be expanded
9162 for CXXCPP
in "$CXX -E" "/lib/cpp"
9165 for ac_cxx_preproc_warn_flag
in '' yes
9167 # Use a header file that comes with gcc, so configuring glibc
9168 # with a fresh cross-compiler works.
9169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9170 # <limits.h> exists even on freestanding compilers.
9171 # On the NeXT, cc -E runs the code through the compiler's parser,
9172 # not just through cpp. "Syntax error" is here to catch this case.
9173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9176 # include <limits.h>
9178 # include <assert.h>
9182 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9185 # Broken: fails on valid input.
9188 rm -f conftest.err conftest.
$ac_ext
9190 # OK, works on sane cases. Now check whether nonexistent headers
9191 # can be detected and how.
9192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9194 #include <ac_nonexistent.h>
9196 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9197 # Broken: success on invalid input.
9200 # Passes both tests.
9204 rm -f conftest.err conftest.
$ac_ext
9207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9208 rm -f conftest.err conftest.
$ac_ext
9209 if $ac_preproc_ok; then :
9214 ac_cv_prog_CXXCPP
=$CXXCPP
9217 CXXCPP
=$ac_cv_prog_CXXCPP
9219 ac_cv_prog_CXXCPP
=$CXXCPP
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9222 $as_echo "$CXXCPP" >&6; }
9224 for ac_cxx_preproc_warn_flag
in '' yes
9226 # Use a header file that comes with gcc, so configuring glibc
9227 # with a fresh cross-compiler works.
9228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9229 # <limits.h> exists even on freestanding compilers.
9230 # On the NeXT, cc -E runs the code through the compiler's parser,
9231 # not just through cpp. "Syntax error" is here to catch this case.
9232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9235 # include <limits.h>
9237 # include <assert.h>
9241 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9244 # Broken: fails on valid input.
9247 rm -f conftest.err conftest.
$ac_ext
9249 # OK, works on sane cases. Now check whether nonexistent headers
9250 # can be detected and how.
9251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 #include <ac_nonexistent.h>
9255 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9256 # Broken: success on invalid input.
9259 # Passes both tests.
9263 rm -f conftest.err conftest.
$ac_ext
9266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9267 rm -f conftest.err conftest.
$ac_ext
9268 if $ac_preproc_ok; then :
9271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9274 See \`config.log' for more details." >&5
9275 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9276 See \`config.log' for more details." >&2;}; }
9280 ac_cpp
='$CXXCPP $CPPFLAGS'
9281 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9282 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9283 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9286 for ac_header
in unordered_map
9288 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9289 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9290 cat >>confdefs.h
<<_ACEOF
9291 #define HAVE_UNORDERED_MAP 1
9297 for ac_header
in tr1/unordered_map
9299 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9300 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9301 cat >>confdefs.h
<<_ACEOF
9302 #define HAVE_TR1_UNORDERED_MAP 1
9308 for ac_header
in ext
/hash_map
9310 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9311 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9312 cat >>confdefs.h
<<_ACEOF
9313 #define HAVE_EXT_HASH_MAP 1
9321 # Dependency checking.
9324 rm -rf .tst
2>/dev
/null
9325 mkdir .tst
2>/dev
/null
9326 if test -d .tst
; then
9331 rmdir .tst
2>/dev
/null
9333 DEPDIR
="${am__leading_dot}deps"
9335 ac_config_commands
="$ac_config_commands depdir"
9338 ac_config_commands
="$ac_config_commands gccdepdir"
9341 depcc
="$CXX" am_compiler_list
=
9343 am_depcomp
=$ac_aux_dir/depcomp
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9345 $as_echo_n "checking dependency style of $depcc... " >&6; }
9346 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9347 $as_echo_n "(cached) " >&6
9349 if test -f "$am_depcomp"; then
9350 # We make a subdir and do the tests there. Otherwise we can end up
9351 # making bogus files that we don't know about and never remove. For
9352 # instance it was reported that on HP-UX the gcc test will end up
9353 # making a dummy file named `D' -- because `-MD' means `put the output
9356 # Copy depcomp to subdir because otherwise we won't find it if we're
9357 # using a relative directory.
9358 cp "$am_depcomp" conftest.dir
9360 # We will build objects and dependencies in a subdirectory because
9361 # it helps to detect inapplicable dependency modes. For instance
9362 # both Tru64's cc and ICC support -MD to output dependencies as a
9363 # side effect of compilation, but ICC will put the dependencies in
9364 # the current directory while Tru64 will put them in the object
9368 am_cv_CXX_dependencies_compiler_type
=none
9369 if test "$am_compiler_list" = ""; then
9370 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9372 for depmode
in $am_compiler_list; do
9373 if test $depmode = none
; then break; fi
9375 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9376 # Setup a source with many dependencies, because some compilers
9377 # like to wrap large dependency lists on column 80 (with \), and
9378 # we should not choose a depcomp mode which is confused by this.
9380 # We need to recreate these files for each test, as the compiler may
9381 # overwrite some of them when testing with obscure command lines.
9382 # This happens at least with the AIX C compiler.
9384 for i
in 1 2 3 4 5 6; do
9385 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9386 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9387 # Solaris 8's {/usr,}/bin/sh.
9388 touch sub
/conftst
$i.h
9390 echo "include sub/conftest.Po" > confmf
9392 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9393 # mode. It turns out that the SunPro C++ compiler does not properly
9394 # handle `-M -o', and we need to detect this.
9395 depcmd
="depmode=$depmode \
9396 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9397 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9398 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9399 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9400 if env
$depcmd > conftest.err
2>&1 &&
9401 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9402 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9403 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9404 # icc doesn't choke on unknown options, it will just issue warnings
9405 # or remarks (even with -Werror). So we grep stderr for any message
9406 # that says an option was ignored or not supported.
9407 # When given -MP, icc 7.0 and 7.1 complain thusly:
9408 # icc: Command line warning: ignoring option '-M'; no argument required
9409 # The diagnosis changed in icc 8.0:
9410 # icc: Command line remark: option '-MP' not supported
9411 if (grep 'ignoring option' conftest.err ||
9412 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9413 am_cv_CXX_dependencies_compiler_type
=$depmode
9414 $as_echo "$as_me:$LINENO: success" >&5
9418 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9419 sed -e 's/^/| /' < conftest.err
>&5
9425 am_cv_CXX_dependencies_compiler_type
=none
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9430 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9431 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9432 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9433 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9443 # These libraries may be used by collect2.
9444 # We may need a special search path to get them linked.
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9446 $as_echo_n "checking for collect2 libraries... " >&6; }
9447 if test "${gcc_cv_collect2_libs+set}" = set; then :
9448 $as_echo_n "(cached) " >&6
9451 for libs
in '' -lld -lmld \
9452 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9453 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9459 /* Override any GCC internal prototype to avoid an error.
9460 Use char because int might match the return type of a GCC
9461 builtin and then its argument prototype would still apply. */
9474 if ac_fn_cxx_try_link
"$LINENO"; then :
9475 gcc_cv_collect2_libs
="$libs"; break
9477 rm -f core conftest.err conftest.
$ac_objext \
9478 conftest
$ac_exeext conftest.
$ac_ext
9481 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9484 $as_echo "$gcc_cv_collect2_libs" >&6; }
9485 case $gcc_cv_collect2_libs in
9487 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9491 # When building Ada code on Alpha, we need exc_resume which is usually in
9492 # -lexc. So test for it.
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9496 $as_echo_n "checking for library containing exc_resume... " >&6; }
9497 if test "${ac_cv_search_exc_resume+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9500 ac_func_search_save_LIBS
=$LIBS
9501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9504 /* Override any GCC internal prototype to avoid an error.
9505 Use char because int might match the return type of a GCC
9506 builtin and then its argument prototype would still apply. */
9514 return exc_resume ();
9519 for ac_lib
in '' exc
; do
9520 if test -z "$ac_lib"; then
9521 ac_res
="none required"
9524 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9526 if ac_fn_cxx_try_link
"$LINENO"; then :
9527 ac_cv_search_exc_resume
=$ac_res
9529 rm -f core conftest.err conftest.
$ac_objext \
9531 if test "${ac_cv_search_exc_resume+set}" = set; then :
9535 if test "${ac_cv_search_exc_resume+set}" = set; then :
9538 ac_cv_search_exc_resume
=no
9541 LIBS
=$ac_func_search_save_LIBS
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9544 $as_echo "$ac_cv_search_exc_resume" >&6; }
9545 ac_res
=$ac_cv_search_exc_resume
9546 if test "$ac_res" != no
; then :
9547 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9555 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9559 $as_echo_n "checking for library containing kstat_open... " >&6; }
9560 if test "${ac_cv_search_kstat_open+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9563 ac_func_search_save_LIBS
=$LIBS
9564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9567 /* Override any GCC internal prototype to avoid an error.
9568 Use char because int might match the return type of a GCC
9569 builtin and then its argument prototype would still apply. */
9577 return kstat_open ();
9582 for ac_lib
in '' kstat
; do
9583 if test -z "$ac_lib"; then
9584 ac_res
="none required"
9587 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9589 if ac_fn_cxx_try_link
"$LINENO"; then :
9590 ac_cv_search_kstat_open
=$ac_res
9592 rm -f core conftest.err conftest.
$ac_objext \
9594 if test "${ac_cv_search_kstat_open+set}" = set; then :
9598 if test "${ac_cv_search_kstat_open+set}" = set; then :
9601 ac_cv_search_kstat_open
=no
9604 LIBS
=$ac_func_search_save_LIBS
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9607 $as_echo "$ac_cv_search_kstat_open" >&6; }
9608 ac_res
=$ac_cv_search_kstat_open
9609 if test "$ac_res" != no
; then :
9610 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9614 EXTRA_GCC_LIBS
="$LIBS"
9618 # Some systems put ldexp and frexp in libm instead of libc; assume
9619 # they're both in the same place. jcf-dump needs them.
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9623 $as_echo_n "checking for library containing ldexp... " >&6; }
9624 if test "${ac_cv_search_ldexp+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
9627 ac_func_search_save_LIBS
=$LIBS
9628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9646 for ac_lib
in '' m
; do
9647 if test -z "$ac_lib"; then
9648 ac_res
="none required"
9651 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9653 if ac_fn_cxx_try_link
"$LINENO"; then :
9654 ac_cv_search_ldexp
=$ac_res
9656 rm -f core conftest.err conftest.
$ac_objext \
9658 if test "${ac_cv_search_ldexp+set}" = set; then :
9662 if test "${ac_cv_search_ldexp+set}" = set; then :
9665 ac_cv_search_ldexp
=no
9668 LIBS
=$ac_func_search_save_LIBS
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9671 $as_echo "$ac_cv_search_ldexp" >&6; }
9672 ac_res
=$ac_cv_search_ldexp
9673 if test "$ac_res" != no
; then :
9674 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9682 # Use <inttypes.h> only if it exists,
9683 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9686 $as_echo_n "checking for inttypes.h... " >&6; }
9687 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9688 $as_echo_n "(cached) " >&6
9690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692 #define __STDC_FORMAT_MACROS
9693 #include <sys/types.h>
9694 #include <inttypes.h>
9706 if ac_fn_cxx_try_compile
"$LINENO"; then :
9707 gcc_cv_header_inttypes_h
=yes
9709 gcc_cv_header_inttypes_h
=no
9711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9715 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9716 if test $gcc_cv_header_inttypes_h = yes; then
9718 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9724 for ac_func
in times clock kill getrlimit setrlimit atoq \
9725 popen sysconf strsignal getrusage nl_langinfo \
9726 gettimeofday mbstowcs wcswidth mmap setlocale \
9727 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
9729 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9730 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9731 eval as_val
=\$
$as_ac_var
9732 if test "x$as_val" = x
""yes; then :
9733 cat >>confdefs.h
<<_ACEOF
9734 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9741 if test x
$ac_cv_func_mbstowcs = xyes
; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9743 $as_echo_n "checking whether mbstowcs works... " >&6; }
9744 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9745 $as_echo_n "(cached) " >&6
9747 if test "$cross_compiling" = yes; then :
9748 gcc_cv_func_mbstowcs_works
=yes
9750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9759 if ac_fn_cxx_try_run
"$LINENO"; then :
9760 gcc_cv_func_mbstowcs_works
=yes
9762 gcc_cv_func_mbstowcs_works
=no
9764 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9765 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9770 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9771 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9773 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9778 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9779 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9783 cat >>confdefs.h
<<_ACEOF
9789 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9790 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9794 cat >>confdefs.h
<<_ACEOF
9795 #define caddr_t char *
9802 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9803 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9804 gcc_header_sys_mman_h
=yes
9806 gcc_header_sys_mman_h
=no
9809 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9810 if test "x$ac_cv_func_mmap" = x
""yes; then :
9816 if test "$gcc_header_sys_mman_h" != yes \
9817 ||
test "$gcc_func_mmap" != yes; then
9818 gcc_cv_func_mmap_file
=no
9819 gcc_cv_func_mmap_dev_zero
=no
9820 gcc_cv_func_mmap_anon
=no
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9823 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9824 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9825 $as_echo_n "(cached) " >&6
9827 # Add a system to this blacklist if
9828 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9829 # memory area containing the same data that you'd get if you applied
9830 # read() to the same fd. The only system known to have a problem here
9831 # is VMS, where text files have record structure.
9834 gcc_cv_func_mmap_file
=no
;;
9836 gcc_cv_func_mmap_file
=yes;;
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9840 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9842 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9843 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9844 $as_echo_n "(cached) " >&6
9846 # Add a system to this blacklist if it has mmap() but /dev/zero
9847 # does not exist, or if mmapping /dev/zero does not give anonymous
9848 # zeroed pages with both the following properties:
9849 # 1. If you map N consecutive pages in with one call, and then
9850 # unmap any subset of those pages, the pages that were not
9851 # explicitly unmapped remain accessible.
9852 # 2. If you map two adjacent blocks of memory and then unmap them
9853 # both at once, they must both go away.
9854 # Systems known to be in this category are Windows (all variants),
9857 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9858 gcc_cv_func_mmap_dev_zero
=no
;;
9860 gcc_cv_func_mmap_dev_zero
=yes;;
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9864 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9866 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9868 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9869 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9874 #include <sys/types.h>
9875 #include <sys/mman.h>
9878 #ifndef MAP_ANONYMOUS
9879 #define MAP_ANONYMOUS MAP_ANON
9885 int n = MAP_ANONYMOUS;
9890 if ac_fn_cxx_try_compile
"$LINENO"; then :
9891 gcc_cv_decl_map_anon
=yes
9893 gcc_cv_decl_map_anon
=no
9895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9898 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9900 if test $gcc_cv_decl_map_anon = no
; then
9901 gcc_cv_func_mmap_anon
=no
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9904 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9905 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9906 $as_echo_n "(cached) " >&6
9908 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9909 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9910 # doesn't give anonymous zeroed pages with the same properties listed
9911 # above for use of /dev/zero.
9912 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9914 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9915 gcc_cv_func_mmap_anon
=no
;;
9917 gcc_cv_func_mmap_anon
=yes;;
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9921 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9925 if test $gcc_cv_func_mmap_file = yes; then
9927 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9930 if test $gcc_cv_func_mmap_dev_zero = yes; then
9932 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9935 if test $gcc_cv_func_mmap_anon = yes; then
9937 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9944 # Under VMS, vfork works very differently than on Unix. The standard test
9945 # won't work, and it isn't easily adaptable. It makes more sense to
9947 ac_cv_func_vfork_works
=yes
9950 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9951 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9955 cat >>confdefs.h
<<_ACEOF
9961 for ac_header
in vfork.h
9963 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9964 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9965 cat >>confdefs.h
<<_ACEOF
9966 #define HAVE_VFORK_H 1
9972 for ac_func
in fork vfork
9974 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9975 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9976 eval as_val
=\$
$as_ac_var
9977 if test "x$as_val" = x
""yes; then :
9978 cat >>confdefs.h
<<_ACEOF
9979 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9985 if test "x$ac_cv_func_fork" = xyes
; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9987 $as_echo_n "checking for working fork... " >&6; }
9988 if test "${ac_cv_func_fork_works+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
9991 if test "$cross_compiling" = yes; then :
9992 ac_cv_func_fork_works
=cross
9994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h. */
9996 $ac_includes_default
10001 /* By Ruediger Kuhlmann. */
10002 return fork () < 0;
10008 if ac_fn_cxx_try_run
"$LINENO"; then :
10009 ac_cv_func_fork_works
=yes
10011 ac_cv_func_fork_works
=no
10013 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10014 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10019 $as_echo "$ac_cv_func_fork_works" >&6; }
10022 ac_cv_func_fork_works
=$ac_cv_func_fork
10024 if test "x$ac_cv_func_fork_works" = xcross
; then
10026 *-*-amigaos* |
*-*-msdosdjgpp*)
10027 # Override, as these systems have only a dummy fork() stub
10028 ac_cv_func_fork_works
=no
10031 ac_cv_func_fork_works
=yes
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10035 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10037 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10038 if test "x$ac_cv_func_vfork" = xyes
; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10040 $as_echo_n "checking for working vfork... " >&6; }
10041 if test "${ac_cv_func_vfork_works+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
10044 if test "$cross_compiling" = yes; then :
10045 ac_cv_func_vfork_works
=cross
10047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049 /* Thanks to Paul Eggert for this test. */
10050 $ac_includes_default
10051 #include <sys/wait.h>
10052 #ifdef HAVE_VFORK_H
10053 # include <vfork.h>
10055 /* On some sparc systems, changes by the child to local and incoming
10056 argument registers are propagated back to the parent. The compiler
10057 is told about this with #include <vfork.h>, but some compilers
10058 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10059 static variable whose address is put into a register that is
10060 clobbered by the vfork. */
10063 sparc_address_test (int arg)
10065 sparc_address_test (arg) int arg;
10068 static pid_t child;
10086 pid_t parent = getpid ();
10089 sparc_address_test (0);
10094 /* Here is another test for sparc vfork register problems. This
10095 test uses lots of local variables, at least as many local
10096 variables as main has allocated so far including compiler
10097 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10098 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10099 reuse the register of parent for one of the local variables,
10100 since it will think that parent can't possibly be used any more
10101 in this routine. Assigning to the local variable will thus
10102 munge parent in the parent process. */
10104 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10105 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10106 /* Convince the compiler that p..p7 are live; otherwise, it might
10107 use the same hardware register for all 8 local variables. */
10108 if (p != p1 || p != p2 || p != p3 || p != p4
10109 || p != p5 || p != p6 || p != p7)
10112 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10113 from child file descriptors. If the child closes a descriptor
10114 before it execs or exits, this munges the parent's descriptor
10115 as well. Test for this by closing stdout in the child. */
10116 _exit(close(fileno(stdout)) != 0);
10121 while (wait(&status) != child)
10124 /* Was there some problem with vforking? */
10127 /* Did the child fail? (This shouldn't happen.) */
10130 /* Did the vfork/compiler bug occur? */
10131 || parent != getpid()
10133 /* Did the file descriptor bug occur? */
10134 || fstat(fileno(stdout), &st) != 0
10139 if ac_fn_cxx_try_run
"$LINENO"; then :
10140 ac_cv_func_vfork_works
=yes
10142 ac_cv_func_vfork_works
=no
10144 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10145 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10150 $as_echo "$ac_cv_func_vfork_works" >&6; }
10153 if test "x$ac_cv_func_fork_works" = xcross
; then
10154 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10156 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10159 if test "x$ac_cv_func_vfork_works" = xyes
; then
10161 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10165 $as_echo "#define vfork fork" >>confdefs.h
10168 if test "x$ac_cv_func_fork_works" = xyes
; then
10170 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10176 if test "X$prefix" = "XNONE"; then
10177 acl_final_prefix
="$ac_default_prefix"
10179 acl_final_prefix
="$prefix"
10181 if test "X$exec_prefix" = "XNONE"; then
10182 acl_final_exec_prefix
='${prefix}'
10184 acl_final_exec_prefix
="$exec_prefix"
10186 acl_save_prefix
="$prefix"
10187 prefix
="$acl_final_prefix"
10188 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10189 prefix
="$acl_save_prefix"
10192 # Check whether --with-gnu-ld was given.
10193 if test "${with_gnu_ld+set}" = set; then :
10194 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10199 # Prepare PATH_SEPARATOR.
10200 # The user is always right.
10201 if test "${PATH_SEPARATOR+set}" != set; then
10202 echo "#! /bin/sh" >conf$$.sh
10203 echo "exit 0" >>conf$$.sh
10205 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10213 if test "$GCC" = yes; then
10214 # Check if gcc -print-prog-name=ld gives a path.
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10216 $as_echo_n "checking for ld used by GCC... " >&6; }
10219 # gcc leaves a trailing carriage return which upsets mingw
10220 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10222 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10225 # Accept absolute paths.
10226 [\\/]* |
[A-Za-z
]:[\\/]*)
10227 re_direlt
='/[^/][^/]*/\.\./'
10228 # Canonicalize the path of ld
10229 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10230 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10231 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10233 test -z "$LD" && LD
="$ac_prog"
10236 # If it fails, then pretend we aren't using GCC.
10240 # If it is relative, then search for the first ld in PATH.
10241 with_gnu_ld
=unknown
10244 elif test "$with_gnu_ld" = yes; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10246 $as_echo_n "checking for GNU ld... " >&6; }
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10249 $as_echo_n "checking for non-GNU ld... " >&6; }
10251 if test "${acl_cv_path_LD+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10254 if test -z "$LD"; then
10255 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10256 for ac_dir
in $PATH; do
10257 test -z "$ac_dir" && ac_dir
=.
10258 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10259 acl_cv_path_LD
="$ac_dir/$ac_prog"
10260 # Check to see if the program is GNU ld. I'd rather use --version,
10261 # but apparently some GNU ld's only accept -v.
10262 # Break only if it was the GNU/non-GNU ld that we prefer.
10263 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10264 test "$with_gnu_ld" != no
&& break
10266 test "$with_gnu_ld" != yes && break
10272 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10276 LD
="$acl_cv_path_LD"
10277 if test -n "$LD"; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10279 $as_echo "$LD" >&6; }
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10284 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10286 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10287 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10290 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10291 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10292 acl_cv_prog_gnu_ld
=yes
10294 acl_cv_prog_gnu_ld
=no
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10298 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10299 with_gnu_ld
=$acl_cv_prog_gnu_ld
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10304 $as_echo_n "checking for shared library run path origin... " >&6; }
10305 if test "${acl_cv_rpath+set}" = set; then :
10306 $as_echo_n "(cached) " >&6
10309 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10310 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10312 rm -f .
/conftest.sh
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10317 $as_echo "$acl_cv_rpath" >&6; }
10319 libext
="$acl_cv_libext"
10320 shlibext
="$acl_cv_shlibext"
10321 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10322 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10323 hardcode_direct
="$acl_cv_hardcode_direct"
10324 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10325 # Check whether --enable-rpath was given.
10326 if test "${enable_rpath+set}" = set; then :
10327 enableval
=$enable_rpath; :
10341 acl_save_prefix
="$prefix"
10342 prefix
="$acl_final_prefix"
10343 acl_save_exec_prefix
="$exec_prefix"
10344 exec_prefix
="$acl_final_exec_prefix"
10346 eval additional_includedir
=\"$includedir\"
10347 eval additional_libdir
=\"$libdir\"
10349 exec_prefix
="$acl_save_exec_prefix"
10350 prefix
="$acl_save_prefix"
10353 # Check whether --with-libiconv-prefix was given.
10354 if test "${with_libiconv_prefix+set}" = set; then :
10355 withval
=$with_libiconv_prefix;
10356 if test "X$withval" = "Xno"; then
10359 if test "X$withval" = "X"; then
10361 acl_save_prefix
="$prefix"
10362 prefix
="$acl_final_prefix"
10363 acl_save_exec_prefix
="$exec_prefix"
10364 exec_prefix
="$acl_final_exec_prefix"
10366 eval additional_includedir
=\"$includedir\"
10367 eval additional_libdir
=\"$libdir\"
10369 exec_prefix
="$acl_save_exec_prefix"
10370 prefix
="$acl_save_prefix"
10373 additional_includedir
="$withval/include"
10374 additional_libdir
="$withval/lib"
10385 names_already_handled
=
10386 names_next_round
='iconv '
10387 while test -n "$names_next_round"; do
10388 names_this_round
="$names_next_round"
10390 for name
in $names_this_round; do
10392 for n
in $names_already_handled; do
10393 if test "$n" = "$name"; then
10394 already_handled
=yes
10398 if test -z "$already_handled"; then
10399 names_already_handled
="$names_already_handled $name"
10400 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10401 eval value
=\"\
$HAVE_LIB$uppername\"
10402 if test -n "$value"; then
10403 if test "$value" = yes; then
10404 eval value
=\"\
$LIB$uppername\"
10405 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10406 eval value
=\"\
$LTLIB$uppername\"
10407 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10416 if test $use_additional = yes; then
10417 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10418 found_dir
="$additional_libdir"
10419 found_so
="$additional_libdir/lib$name.$shlibext"
10420 if test -f "$additional_libdir/lib$name.la"; then
10421 found_la
="$additional_libdir/lib$name.la"
10424 if test -f "$additional_libdir/lib$name.$libext"; then
10425 found_dir
="$additional_libdir"
10426 found_a
="$additional_libdir/lib$name.$libext"
10427 if test -f "$additional_libdir/lib$name.la"; then
10428 found_la
="$additional_libdir/lib$name.la"
10433 if test "X$found_dir" = "X"; then
10434 for x
in $LDFLAGS $LTLIBICONV; do
10436 acl_save_prefix
="$prefix"
10437 prefix
="$acl_final_prefix"
10438 acl_save_exec_prefix
="$exec_prefix"
10439 exec_prefix
="$acl_final_exec_prefix"
10441 exec_prefix
="$acl_save_exec_prefix"
10442 prefix
="$acl_save_prefix"
10446 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10447 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10449 found_so
="$dir/lib$name.$shlibext"
10450 if test -f "$dir/lib$name.la"; then
10451 found_la
="$dir/lib$name.la"
10454 if test -f "$dir/lib$name.$libext"; then
10456 found_a
="$dir/lib$name.$libext"
10457 if test -f "$dir/lib$name.la"; then
10458 found_la
="$dir/lib$name.la"
10464 if test "X$found_dir" != "X"; then
10469 if test "X$found_dir" != "X"; then
10470 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10471 if test "X$found_so" != "X"; then
10472 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10473 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10476 for x
in $ltrpathdirs; do
10477 if test "X$x" = "X$found_dir"; then
10482 if test -z "$haveit"; then
10483 ltrpathdirs
="$ltrpathdirs $found_dir"
10485 if test "$hardcode_direct" = yes; then
10486 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10488 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10489 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10491 for x
in $rpathdirs; do
10492 if test "X$x" = "X$found_dir"; then
10497 if test -z "$haveit"; then
10498 rpathdirs
="$rpathdirs $found_dir"
10502 for x
in $LDFLAGS $LIBICONV; do
10504 acl_save_prefix
="$prefix"
10505 prefix
="$acl_final_prefix"
10506 acl_save_exec_prefix
="$exec_prefix"
10507 exec_prefix
="$acl_final_exec_prefix"
10509 exec_prefix
="$acl_save_exec_prefix"
10510 prefix
="$acl_save_prefix"
10512 if test "X$x" = "X-L$found_dir"; then
10517 if test -z "$haveit"; then
10518 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10520 if test "$hardcode_minus_L" != no
; then
10521 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10523 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10529 if test "X$found_a" != "X"; then
10530 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10532 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10535 additional_includedir
=
10536 case "$found_dir" in
10538 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10539 additional_includedir
="$basedir/include"
10542 if test "X$additional_includedir" != "X"; then
10543 if test "X$additional_includedir" != "X/usr/include"; then
10545 if test "X$additional_includedir" = "X/usr/local/include"; then
10546 if test -n "$GCC"; then
10548 linux
*) haveit
=yes;;
10552 if test -z "$haveit"; then
10553 for x
in $CPPFLAGS $INCICONV; do
10555 acl_save_prefix
="$prefix"
10556 prefix
="$acl_final_prefix"
10557 acl_save_exec_prefix
="$exec_prefix"
10558 exec_prefix
="$acl_final_exec_prefix"
10560 exec_prefix
="$acl_save_exec_prefix"
10561 prefix
="$acl_save_prefix"
10563 if test "X$x" = "X-I$additional_includedir"; then
10568 if test -z "$haveit"; then
10569 if test -d "$additional_includedir"; then
10570 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10576 if test -n "$found_la"; then
10577 save_libdir
="$libdir"
10578 case "$found_la" in
10579 */* |
*\\*) .
"$found_la" ;;
10580 *) .
"./$found_la" ;;
10582 libdir
="$save_libdir"
10583 for dep
in $dependency_libs; do
10586 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10587 if test "X$additional_libdir" != "X/usr/lib"; then
10589 if test "X$additional_libdir" = "X/usr/local/lib"; then
10590 if test -n "$GCC"; then
10592 linux
*) haveit
=yes;;
10596 if test -z "$haveit"; then
10598 for x
in $LDFLAGS $LIBICONV; do
10600 acl_save_prefix
="$prefix"
10601 prefix
="$acl_final_prefix"
10602 acl_save_exec_prefix
="$exec_prefix"
10603 exec_prefix
="$acl_final_exec_prefix"
10605 exec_prefix
="$acl_save_exec_prefix"
10606 prefix
="$acl_save_prefix"
10608 if test "X$x" = "X-L$additional_libdir"; then
10613 if test -z "$haveit"; then
10614 if test -d "$additional_libdir"; then
10615 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10619 for x
in $LDFLAGS $LTLIBICONV; do
10621 acl_save_prefix
="$prefix"
10622 prefix
="$acl_final_prefix"
10623 acl_save_exec_prefix
="$exec_prefix"
10624 exec_prefix
="$acl_final_exec_prefix"
10626 exec_prefix
="$acl_save_exec_prefix"
10627 prefix
="$acl_save_prefix"
10629 if test "X$x" = "X-L$additional_libdir"; then
10634 if test -z "$haveit"; then
10635 if test -d "$additional_libdir"; then
10636 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10643 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10644 if test "$enable_rpath" != no
; then
10646 for x
in $rpathdirs; do
10647 if test "X$x" = "X$dir"; then
10652 if test -z "$haveit"; then
10653 rpathdirs
="$rpathdirs $dir"
10656 for x
in $ltrpathdirs; do
10657 if test "X$x" = "X$dir"; then
10662 if test -z "$haveit"; then
10663 ltrpathdirs
="$ltrpathdirs $dir"
10668 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10671 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10674 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10675 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10681 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10682 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10688 if test "X$rpathdirs" != "X"; then
10689 if test -n "$hardcode_libdir_separator"; then
10691 for found_dir
in $rpathdirs; do
10692 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10694 acl_save_libdir
="$libdir"
10696 eval flag
=\"$hardcode_libdir_flag_spec\"
10697 libdir
="$acl_save_libdir"
10698 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10700 for found_dir
in $rpathdirs; do
10701 acl_save_libdir
="$libdir"
10702 libdir
="$found_dir"
10703 eval flag
=\"$hardcode_libdir_flag_spec\"
10704 libdir
="$acl_save_libdir"
10705 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10709 if test "X$ltrpathdirs" != "X"; then
10710 for found_dir
in $ltrpathdirs; do
10711 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10722 $as_echo_n "checking for iconv... " >&6; }
10723 if test "${am_cv_func_iconv+set}" = set; then :
10724 $as_echo_n "(cached) " >&6
10727 am_cv_func_iconv
="no, consider installing GNU libiconv"
10729 am_save_CPPFLAGS
="$CPPFLAGS"
10730 CPPFLAGS
="$CPPFLAGS $INCICONV"
10731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 #include <stdlib.h>
10738 iconv_t cd = iconv_open("","");
10739 iconv(cd,NULL,NULL,NULL,NULL);
10745 if ac_fn_cxx_try_link
"$LINENO"; then :
10746 am_cv_func_iconv
=yes
10748 rm -f core conftest.err conftest.
$ac_objext \
10749 conftest
$ac_exeext conftest.
$ac_ext
10750 CPPFLAGS
="$am_save_CPPFLAGS"
10752 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10753 for _libs
in .libs _libs
; do
10754 am_save_CPPFLAGS
="$CPPFLAGS"
10755 am_save_LIBS
="$LIBS"
10756 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10757 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10760 #include <stdlib.h>
10765 iconv_t cd = iconv_open("","");
10766 iconv(cd,NULL,NULL,NULL,NULL);
10772 if ac_fn_cxx_try_link
"$LINENO"; then :
10773 INCICONV
="-I../libiconv/include"
10774 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10775 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10776 am_cv_lib_iconv
=yes
10777 am_cv_func_iconv
=yes
10779 rm -f core conftest.err conftest.
$ac_objext \
10780 conftest
$ac_exeext conftest.
$ac_ext
10781 CPPFLAGS
="$am_save_CPPFLAGS"
10782 LIBS
="$am_save_LIBS"
10783 if test "$am_cv_func_iconv" = "yes"; then
10789 if test "$am_cv_func_iconv" != yes; then
10790 am_save_CPPFLAGS
="$CPPFLAGS"
10791 am_save_LIBS
="$LIBS"
10792 CPPFLAGS
="$LIBS $INCICONV"
10793 LIBS
="$LIBS $LIBICONV"
10794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10796 #include <stdlib.h>
10801 iconv_t cd = iconv_open("","");
10802 iconv(cd,NULL,NULL,NULL,NULL);
10808 if ac_fn_cxx_try_link
"$LINENO"; then :
10809 am_cv_lib_iconv
=yes
10810 am_cv_func_iconv
=yes
10812 rm -f core conftest.err conftest.
$ac_objext \
10813 conftest
$ac_exeext conftest.
$ac_ext
10814 CPPFLAGS
="$am_save_CPPFLAGS"
10815 LIBS
="$am_save_LIBS"
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10820 $as_echo "$am_cv_func_iconv" >&6; }
10821 if test "$am_cv_func_iconv" = yes; then
10823 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10826 if test "$am_cv_lib_iconv" = yes; then
10828 for element
in $INCICONV; do
10830 for x
in $CPPFLAGS; do
10832 acl_save_prefix
="$prefix"
10833 prefix
="$acl_final_prefix"
10834 acl_save_exec_prefix
="$exec_prefix"
10835 exec_prefix
="$acl_final_exec_prefix"
10837 exec_prefix
="$acl_save_exec_prefix"
10838 prefix
="$acl_save_prefix"
10840 if test "X$x" = "X$element"; then
10845 if test -z "$haveit"; then
10846 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10851 $as_echo_n "checking how to link with libiconv... " >&6; }
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10853 $as_echo "$LIBICONV" >&6; }
10861 if test "$am_cv_func_iconv" = yes; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10863 $as_echo_n "checking for iconv declaration... " >&6; }
10864 if test "${am_cv_proto_iconv+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10871 #include <stdlib.h>
10877 #if defined(__STDC__) || defined(__cplusplus)
10878 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10891 if ac_fn_cxx_try_compile
"$LINENO"; then :
10892 am_cv_proto_iconv_arg1
=""
10894 am_cv_proto_iconv_arg1
="const"
10896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10897 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);"
10900 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10902 }$am_cv_proto_iconv" >&5
10904 }$am_cv_proto_iconv" >&6; }
10906 cat >>confdefs.h
<<_ACEOF
10907 #define ICONV_CONST $am_cv_proto_iconv_arg1
10913 # Until we have in-tree GNU iconv:
10915 if test -f "$LTLIBICONV"; then
10916 LIBICONV_DEP
=$LTLIBICONV
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10922 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10923 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
10926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10928 #include <locale.h>
10937 if ac_fn_cxx_try_link
"$LINENO"; then :
10938 am_cv_val_LC_MESSAGES
=yes
10940 am_cv_val_LC_MESSAGES
=no
10942 rm -f core conftest.err conftest.
$ac_objext \
10943 conftest
$ac_exeext conftest.
$ac_ext
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10946 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10947 if test $am_cv_val_LC_MESSAGES = yes; then
10949 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10956 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10957 if test "${am_cv_langinfo_codeset+set}" = set; then :
10958 $as_echo_n "(cached) " >&6
10960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10962 #include <langinfo.h>
10966 char* cs = nl_langinfo(CODESET);
10971 if ac_fn_cxx_try_link
"$LINENO"; then :
10972 am_cv_langinfo_codeset
=yes
10974 am_cv_langinfo_codeset
=no
10976 rm -f core conftest.err conftest.
$ac_objext \
10977 conftest
$ac_exeext conftest.
$ac_ext
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10981 $as_echo "$am_cv_langinfo_codeset" >&6; }
10982 if test $am_cv_langinfo_codeset = yes; then
10984 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10989 # We will need to find libiberty.h and ansidecl.h
10990 saved_CFLAGS
="$CFLAGS"
10991 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10992 saved_CXXFLAGS
="$CXXFLAGS"
10993 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10995 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10996 # normal autoconf function for these. But force definition of
10997 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10998 # basename handling in libiberty.h.
10999 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
11000 #undef HAVE_DECL_BASENAME
11001 #define HAVE_DECL_BASENAME 1
11002 #include \"ansidecl.h\"
11003 #include \"system.h\"
11005 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
11011 cat >>confdefs.h
<<_ACEOF
11012 #define HAVE_DECL_BASENAME $ac_have_decl
11014 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
11015 #undef HAVE_DECL_BASENAME
11016 #define HAVE_DECL_BASENAME 1
11017 #include \"ansidecl.h\"
11018 #include \"system.h\"
11020 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
11026 cat >>confdefs.h
<<_ACEOF
11027 #define HAVE_DECL_STRSTR $ac_have_decl
11031 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11032 madvise stpcpy strnlen strsignal strverscmp \
11033 strtol strtoul strtoll strtoull setenv unsetenv \
11034 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11035 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
11037 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11039 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11040 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11041 $as_echo_n "(cached) " >&6
11043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11046 #define $ac_tr_decl 1
11048 #include "ansidecl.h"
11049 #include "system.h"
11055 char *(*pfn) = (char *(*)) $ac_func ;
11061 if ac_fn_cxx_try_compile
"$LINENO"; then :
11062 eval "gcc_cv_have_decl_$ac_func=yes"
11064 eval "gcc_cv_have_decl_$ac_func=no"
11066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11069 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11071 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11072 #define $ac_tr_decl 1
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11078 #define $ac_tr_decl 0
11086 for ac_func
in getrlimit setrlimit getrusage
11088 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11090 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11091 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11092 $as_echo_n "(cached) " >&6
11094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11095 /* end confdefs.h. */
11097 #define $ac_tr_decl 1
11099 #include "ansidecl.h"
11100 #include "system.h"
11101 #ifdef HAVE_SYS_RESOURCE_H
11102 #include <sys/resource.h>
11110 char *(*pfn) = (char *(*)) $ac_func ;
11116 if ac_fn_cxx_try_compile
"$LINENO"; then :
11117 eval "gcc_cv_have_decl_$ac_func=yes"
11119 eval "gcc_cv_have_decl_$ac_func=no"
11121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11124 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11126 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11127 #define $ac_tr_decl 1
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11133 #define $ac_tr_decl 0
11141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11144 #include "ansidecl.h"
11145 #include "system.h"
11146 #ifdef HAVE_SYS_RESOURCE_H
11147 #include <sys/resource.h>
11158 if ac_fn_cxx_try_compile
"$LINENO"; then :
11162 $as_echo "#define rlim_t long" >>confdefs.h
11165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11167 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11168 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11169 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11170 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11171 for ac_func
in ldgetname
11173 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11175 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11176 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11177 $as_echo_n "(cached) " >&6
11179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11182 #define $ac_tr_decl 1
11184 #include "ansidecl.h"
11185 #include "system.h"
11186 #ifdef HAVE_LDFCN_H
11197 char *(*pfn) = (char *(*)) $ac_func ;
11203 if ac_fn_cxx_try_compile
"$LINENO"; then :
11204 eval "gcc_cv_have_decl_$ac_func=yes"
11206 eval "gcc_cv_have_decl_$ac_func=no"
11208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11211 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11213 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11214 #define $ac_tr_decl 1
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11220 #define $ac_tr_decl 0
11228 for ac_func
in times
11230 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11232 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11233 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11234 $as_echo_n "(cached) " >&6
11236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11239 #define $ac_tr_decl 1
11241 #include "ansidecl.h"
11242 #include "system.h"
11243 #ifdef HAVE_SYS_TIMES_H
11244 #include <sys/times.h>
11252 char *(*pfn) = (char *(*)) $ac_func ;
11258 if ac_fn_cxx_try_compile
"$LINENO"; then :
11259 eval "gcc_cv_have_decl_$ac_func=yes"
11261 eval "gcc_cv_have_decl_$ac_func=no"
11263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11266 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11268 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11269 #define $ac_tr_decl 1
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11275 #define $ac_tr_decl 0
11283 for ac_func
in sigaltstack
11285 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11287 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11288 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11289 $as_echo_n "(cached) " >&6
11291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11294 #define $ac_tr_decl 1
11296 #include "ansidecl.h"
11297 #include "system.h"
11298 #include <signal.h>
11305 char *(*pfn) = (char *(*)) $ac_func ;
11311 if ac_fn_cxx_try_compile
"$LINENO"; then :
11312 eval "gcc_cv_have_decl_$ac_func=yes"
11314 eval "gcc_cv_have_decl_$ac_func=no"
11316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11319 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11321 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11322 #define $ac_tr_decl 1
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11328 #define $ac_tr_decl 0
11336 # More time-related stuff.
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11338 $as_echo_n "checking for struct tms... " >&6; }
11339 if test "${ac_cv_struct_tms+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 #include "ansidecl.h"
11347 #include "system.h"
11348 #ifdef HAVE_SYS_TIMES_H
11349 #include <sys/times.h>
11360 if ac_fn_cxx_try_compile
"$LINENO"; then :
11361 ac_cv_struct_tms
=yes
11363 ac_cv_struct_tms
=no
11365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11368 $as_echo "$ac_cv_struct_tms" >&6; }
11369 if test $ac_cv_struct_tms = yes; then
11371 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11375 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11376 # revisit after autoconf 2.50.
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11378 $as_echo_n "checking for clock_t... " >&6; }
11379 if test "${gcc_cv_type_clock_t+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h. */
11386 #include "ansidecl.h"
11387 #include "system.h"
11397 if ac_fn_cxx_try_compile
"$LINENO"; then :
11398 gcc_cv_type_clock_t
=yes
11400 gcc_cv_type_clock_t
=no
11402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11405 $as_echo "$gcc_cv_type_clock_t" >&6; }
11406 if test $gcc_cv_type_clock_t = yes; then
11408 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11412 # Check if F_SETLKW is supported by fcntl.
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11414 $as_echo_n "checking for F_SETLKW... " >&6; }
11415 if test "${ac_cv_f_setlkw+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11432 return fcntl (1, F_SETLKW, &fl);
11437 if ac_fn_cxx_try_compile
"$LINENO"; then :
11442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11445 $as_echo "$ac_cv_f_setlkw" >&6; }
11446 if test $ac_cv_f_setlkw = yes; then
11448 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11452 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11453 CFLAGS
="$saved_CFLAGS"
11454 CXXFLAGS
="$saved_CXXFLAGS"
11456 # mkdir takes a single argument on some systems.
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11458 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11459 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11460 $as_echo_n "(cached) " >&6
11462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11465 #include <sys/types.h>
11466 #ifdef HAVE_SYS_STAT_H
11467 # include <sys/stat.h>
11469 #ifdef HAVE_UNISTD_H
11470 # include <unistd.h>
11472 #ifdef HAVE_DIRECT_H
11473 # include <direct.h>
11483 if ac_fn_cxx_try_compile
"$LINENO"; then :
11484 gcc_cv_mkdir_takes_one_arg
=no
11486 gcc_cv_mkdir_takes_one_arg
=yes
11488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11491 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11492 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11494 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11505 # With Setjmp/Longjmp based exception handling.
11506 # Check whether --enable-sjlj-exceptions was given.
11507 if test "${enable_sjlj_exceptions+set}" = set; then :
11508 enableval
=$enable_sjlj_exceptions; case $target in
11510 if test $enableval != yes; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11512 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11517 force_sjlj_exceptions
=yes
11521 force_sjlj_exceptions
=yes
11525 force_sjlj_exceptions
=yes
11529 force_sjlj_exceptions
=no
11534 if test $force_sjlj_exceptions = yes; then
11535 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11537 cat >>confdefs.h
<<_ACEOF
11538 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11543 # --------------------------------------------------------
11544 # Build, host, and target specific configuration fragments
11545 # --------------------------------------------------------
11547 # Collect build-machine-specific information.
11548 .
${srcdir}/config.build ||
exit 1
11550 # Collect host-machine-specific information.
11551 .
${srcdir}/config.
host ||
exit 1
11555 # Collect target-machine-specific information.
11556 .
${srcdir}/config.gcc ||
exit 1
11558 extra_objs
="${host_extra_objs} ${extra_objs}"
11559 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11561 # Default the target-machine variables that were not explicitly set.
11562 if test x
"$tm_file" = x
11563 then tm_file
=$cpu_type/$cpu_type.h
; fi
11565 if test x
"$extra_headers" = x
11566 then extra_headers
=; fi
11568 if test x
$md_file = x
11569 then md_file
=$cpu_type/$cpu_type.md
; fi
11571 if test x
$out_file = x
11572 then out_file
=$cpu_type/$cpu_type.c
; fi
11574 if test x
"$tmake_file" = x
11575 then tmake_file
=$cpu_type/t-
$cpu_type
11578 # Support --enable-initfini-array.
11579 if test x
$enable_initfini_array != xno
; then
11580 tm_file
="${tm_file} initfini-array.h"
11583 if test x
"$dwarf2" = xyes
11584 then tm_file
="$tm_file tm-dwarf2.h"
11587 # Say what files are being used for the output code and MD file.
11588 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11589 echo "Using \`$srcdir/config/$md_file' as machine description file."
11591 # If any of the xm_file variables contain nonexistent files, warn
11592 # about them and drop them.
11595 for x
in $build_xm_file; do
11596 if test -f $srcdir/config
/$x
11598 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11599 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11602 build_xm_file
="$bx"
11605 for x
in $host_xm_file; do
11606 if test -f $srcdir/config
/$x
11608 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11609 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11615 for x
in $xm_file; do
11616 if test -f $srcdir/config
/$x
11618 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11619 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11625 for f
in $tm_file; do
11628 if test $count = ax
; then
11629 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11631 echo "Using the following target machine macro files:"
11632 for f
in $tm_file; do
11633 echo " $srcdir/config/$f"
11637 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11639 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11643 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11645 cat >>confdefs.h
<<_ACEOF
11646 #define HAVE_GNU_LD $gnu_ld_bool
11650 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11652 cat >>confdefs.h
<<_ACEOF
11653 #define HAVE_GNU_AS $gnu_as_bool
11658 for f
in $host_xm_file; do
11661 if test $count = a
; then
11663 elif test $count = ax
; then
11664 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11666 echo "Using the following host machine macro files:"
11667 for f
in $host_xm_file; do
11668 echo " $srcdir/config/$f"
11671 echo "Using ${out_host_hook_obj} for host machine hooks."
11673 if test "$host_xm_file" != "$build_xm_file"; then
11675 for f
in $build_xm_file; do
11678 if test $count = a
; then
11680 elif test $count = ax
; then
11681 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11683 echo "Using the following build machine macro files:"
11684 for f
in $build_xm_file; do
11685 echo " $srcdir/config/$f"
11690 if test -n "$configured_native_system_header_dir"; then
11691 native_system_header_dir
=$configured_native_system_header_dir
11693 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11697 powerpc
*-*-darwin*)
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11699 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11700 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11701 $as_echo_n "(cached) " >&6
11703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11704 /* end confdefs.h. */
11706 #include <sys/cdefs.h>
11707 #include <sys/signal.h>
11708 #include <ucontext.h>
11709 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11712 if ac_fn_cxx_try_compile
"$LINENO"; then :
11713 gcc_cv_mcontext_underscores
=no
11715 gcc_cv_mcontext_underscores
=yes
11717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11720 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11721 if test $gcc_cv_mcontext_underscores = yes; then
11723 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11733 # Check if a valid thread package
11734 case ${enable_threads} in
11737 target_thread_file
='single'
11741 target_thread_file
='single'
11743 aix | dce | lynx | mipssde | posix | rtems | \
11744 single | tpf | vxworks | win32
)
11745 target_thread_file
=${enable_threads}
11748 echo "${enable_threads} is an unknown thread package" 1>&2
11753 if test x
${thread_file} = x
; then
11754 # No thread file set by target-specific clauses in config.gcc,
11755 # so use file chosen by default logic above
11756 thread_file
=${target_thread_file}
11764 if test x
$enable___cxa_atexit = xyes || \
11765 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11766 if test x
$host = x
$target; then
11768 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11769 # keyed to flag_use_cxa_atexit
11777 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11778 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11781 echo "__cxa_atexit can't be enabled on this target"
11787 # We can't check for __cxa_atexit when building a cross, so assume
11791 if test x
$use_cxa_atexit = xyes
; then
11793 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11798 # Look for a file containing extra machine modes.
11799 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11800 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11803 cat >>confdefs.h
<<_ACEOF
11804 #define EXTRA_MODES_FILE "config/$extra_modes"
11809 # Convert extra_options into a form suitable for Makefile use.
11812 for f
in $extra_options; do
11813 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11814 all_opt_files
="$all_opt_files $srcdir/config/$f"
11818 # auto-host.h is the file containing items generated by autoconf and is
11819 # the first file included by config.h.
11820 # If host=build, it is correct to have bconfig include auto-host.h
11821 # as well. If host!=build, we are in error and need to do more
11822 # work to find out the build config parameters.
11823 if test x
$host = x
$build
11825 build_auto
=auto-host.h
11827 # We create a subdir, then run autoconf in the subdir.
11828 # To prevent recursion we set host and build for the new
11829 # invocation of configure to the build for this invocation
11836 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11837 *) realsrcdir
=..
/${srcdir};;
11839 # Clearing GMPINC is necessary to prevent host headers being
11840 # used by the build compiler. Defining GENERATOR_FILE stops
11841 # system.h from including gmp.h.
11842 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11843 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11844 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11845 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11846 ${realsrcdir}/configure \
11847 --enable-languages=${enable_languages-all} \
11848 --target=$target_alias --host=$build_alias --build=$build_alias
11850 # We just finished tests for the build machine, so rename
11851 # the file auto-build.h in the gcc directory.
11852 mv auto-host.h ..
/auto-build.h
11855 build_auto
=auto-build.h
11859 tm_file
="${tm_file} defaults.h"
11860 tm_p_file
="${tm_p_file} tm-preds.h"
11861 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11862 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11863 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11864 # put this back in temporarily.
11865 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11871 # Compile in configure arguments.
11872 if test -f configargs.h
; then
11873 # Being re-configured.
11874 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11875 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11876 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11877 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11880 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11883 # Double all backslashes and backslash all quotes to turn
11884 # gcc_config_arguments into a C string.
11885 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11886 $gcc_config_arguments
11888 gcc_config_arguments_str
=`cat conftest.out`
11891 cat > configargs.h
<<EOF
11892 /* Generated automatically. */
11893 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11894 static const char thread_model[] = "$thread_file";
11896 static const struct {
11897 const char *name, *value;
11898 } configure_default_options[] = $configure_default_options;
11901 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11902 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11903 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11904 if test -f $srcdir/REVISION
; then
11905 gcc_REVISION
=`cat $srcdir/REVISION`
11909 cat > plugin-version.h
<<EOF
11910 #include "configargs.h"
11912 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11913 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11914 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11915 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11917 static char basever[] = "$gcc_BASEVER";
11918 static char datestamp[] = "$gcc_DATESTAMP";
11919 static char devphase[] = "$gcc_DEVPHASE";
11920 static char revision[] = "$gcc_REVISION";
11922 /* FIXME plugins: We should make the version information more precise.
11923 One way to do is to add a checksum. */
11925 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11926 devphase, revision,
11927 configuration_arguments};
11930 # Determine what GCC version number to use in filesystem paths.
11932 get_gcc_base_ver
="cat"
11934 # Check whether --with-gcc-major-version-only was given.
11935 if test "${with_gcc_major_version_only+set}" = set; then :
11936 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
11937 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
11945 # Internationalization
11946 # If we haven't got the data from the intl directory,
11947 # assume NLS is disabled.
11956 if test -f ..
/intl
/config.intl
; then
11957 . ..
/intl
/config.intl
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11960 $as_echo_n "checking whether NLS is requested... " >&6; }
11961 if test x
"$USE_NLS" != xyes
; then
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966 $as_echo "yes" >&6; }
11968 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11972 $as_echo_n "checking for catalogs to be installed... " >&6; }
11973 # Look for .po and .gmo files in the source directory.
11976 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11977 # If there aren't any .gmo files the shell will give us the
11978 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11980 case "$cat" in *\
**)
11983 # The quadruple backslash is collapsed to a double backslash
11984 # by the backticks, then collapsed again by the double quotes,
11985 # leaving us with one backslash in the sed expression (right
11986 # before the dot that mustn't act as a wildcard).
11987 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11988 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11989 # The user is allowed to set LINGUAS to a list of languages to
11990 # install catalogs for. If it's empty that means "all of them."
11991 if test "x$LINGUAS" = x
; then
11992 CATALOGS
="$CATALOGS $cat"
11993 XLINGUAS
="$XLINGUAS $lang"
11995 case "$LINGUAS" in *$lang*)
11996 CATALOGS
="$CATALOGS $cat"
11997 XLINGUAS
="$XLINGUAS $lang"
12002 LINGUAS
="$XLINGUAS"
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12004 $as_echo "$LINGUAS" >&6; }
12017 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12018 # -liconv on the link line twice.
12019 case "$LIBINTL" in *$LIBICONV*)
12023 # Check whether --enable-secureplt was given.
12024 if test "${enable_secureplt+set}" = set; then :
12025 enableval
=$enable_secureplt;
12029 # Check whether --enable-mingw-wildcard was given.
12030 if test "${enable_mingw_wildcard+set}" = set; then :
12031 enableval
=$enable_mingw_wildcard;
12033 enable_mingw_wildcard
=platform
12036 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12038 cat >>confdefs.h
<<_ACEOF
12039 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12044 # Check whether --enable-large-address-aware was given.
12045 if test "${enable_large_address_aware+set}" = set; then :
12046 enableval
=$enable_large_address_aware;
12049 if test x
"$enable_large_address_aware" = xyes
; then :
12051 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12055 # Check whether --enable-leading-mingw64-underscores was given.
12056 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12057 enableval
=$enable_leading_mingw64_underscores;
12060 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12062 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12066 # Check whether --enable-cld was given.
12067 if test "${enable_cld+set}" = set; then :
12068 enableval
=$enable_cld;
12074 # Check whether --enable-frame-pointer was given.
12075 if test "${enable_frame_pointer+set}" = set; then :
12076 enableval
=$enable_frame_pointer;
12080 linux
* | darwin
[8912]*)
12081 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12083 enable_frame_pointer
=no
12086 enable_frame_pointer
=yes
12093 # Windows32 Registry support for specifying GCC installation paths.
12094 # Check whether --enable-win32-registry was given.
12095 if test "${enable_win32_registry+set}" = set; then :
12096 enableval
=$enable_win32_registry;
12101 win32 | pe | cygwin
* | mingw32
*)
12102 if test "x$enable_win32_registry" != xno
; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12104 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12105 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12106 $as_echo_n "(cached) " >&6
12108 ac_func_search_save_LIBS
=$LIBS
12109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12112 /* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12118 char RegOpenKeyExA ();
12122 return RegOpenKeyExA ();
12127 for ac_lib
in '' advapi32
; do
12128 if test -z "$ac_lib"; then
12129 ac_res
="none required"
12132 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12134 if ac_fn_cxx_try_link
"$LINENO"; then :
12135 ac_cv_search_RegOpenKeyExA
=$ac_res
12137 rm -f core conftest.err conftest.
$ac_objext \
12139 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12143 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12146 ac_cv_search_RegOpenKeyExA
=no
12148 rm conftest.
$ac_ext
12149 LIBS
=$ac_func_search_save_LIBS
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12152 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12153 ac_res
=$ac_cv_search_RegOpenKeyExA
12154 if test "$ac_res" != no
; then :
12155 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12158 enable_win32_registry
=no
12163 if test "x$enable_win32_registry" != xno
; then
12165 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12168 if test "x$enable_win32_registry" != xyes \
12169 && test "x$enable_win32_registry" != x
; then
12171 cat >>confdefs.h
<<_ACEOF
12172 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12180 # Get an absolute path to the GCC top-level source directory
12181 holddir
=`${PWDCMD-pwd}`
12183 topdir
=`${PWDCMD-pwd}`
12186 # Conditionalize the makefile for this host machine.
12188 for f
in ${host_xmake_file}
12190 if test -f ${srcdir}/config
/$f
12192 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12196 # Conditionalize the makefile for this target machine.
12198 for f
in ${tmake_file}
12200 if test -f ${srcdir}/config
/$f
12202 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12205 tmake_file
="${tmake_file_}"
12207 out_object_file
=`basename $out_file .c`.o
12208 common_out_object_file
=`basename $common_out_file .c`.o
12210 tm_file_list
="options.h"
12211 tm_include_list
="options.h insn-constants.h"
12212 for f
in $tm_file; do
12215 f
=`echo $f | sed 's/^..//'`
12216 tm_file_list
="${tm_file_list} $f"
12217 tm_include_list
="${tm_include_list} $f"
12220 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12221 tm_include_list
="${tm_include_list} $f"
12224 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12225 tm_include_list
="${tm_include_list} config/$f"
12232 for f
in $tm_p_file; do
12235 tm_p_file_list
="${tm_p_file_list} $f"
12236 tm_p_include_list
="${tm_p_include_list} $f"
12239 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12240 tm_p_include_list
="${tm_p_include_list} config/$f"
12246 for f
in $xm_file; do
12249 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12250 xm_include_list
="${xm_include_list} $f"
12253 xm_file_list
="${xm_file_list} $f"
12254 xm_include_list
="${xm_include_list} $f"
12257 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12258 xm_include_list
="${xm_include_list} config/$f"
12264 host_xm_include_list
=
12265 for f
in $host_xm_file; do
12268 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12269 host_xm_include_list
="${host_xm_include_list} $f"
12272 host_xm_file_list
="${host_xm_file_list} $f"
12273 host_xm_include_list
="${host_xm_include_list} $f"
12276 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12277 host_xm_include_list
="${host_xm_include_list} config/$f"
12282 build_xm_file_list
=
12283 for f
in $build_xm_file; do
12286 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12287 build_xm_include_list
="${build_xm_include_list} $f"
12289 auto-build.h | auto-host.h
)
12290 build_xm_file_list
="${build_xm_file_list} $f"
12291 build_xm_include_list
="${build_xm_include_list} $f"
12294 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12295 build_xm_include_list
="${build_xm_include_list} config/$f"
12300 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12301 # cross-compiler which does not use the native headers and libraries.
12302 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12305 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12306 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12308 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12309 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12310 if test "x$with_build_sysroot" != x
; then
12311 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12313 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12316 if test x
$host != x
$target
12318 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12320 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12321 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12322 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12325 if test "x$with_build_sysroot" != "x"; then
12326 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12327 elif test "x$with_sysroot" = x
; then
12328 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12329 elif test "x$with_sysroot" = xyes
; then
12330 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12332 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12335 target_header_dir
=${native_system_header_dir}
12338 # If this is a cross-compiler that does not
12339 # have its own set of headers then define
12342 # If this is using newlib, without having the headers available now,
12343 # then define inhibit_libc in LIBGCC2_CFLAGS.
12344 # This prevents libgcc2 from containing any code which requires libc
12346 : ${inhibit_libc=false}
12347 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12348 test x
$with_newlib = xyes
; } &&
12349 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12354 # When building gcc with a cross-compiler, we need to adjust things so
12355 # that the generator programs are still built with the native compiler.
12356 # Also, we cannot run fixincludes.
12358 # These are the normal (build=host) settings:
12359 CC_FOR_BUILD
='$(CC)'
12360 CXX_FOR_BUILD
='$(CXX)'
12361 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12362 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12363 BUILD_LDFLAGS
='$(LDFLAGS)'
12364 STMP_FIXINC
=stmp-fixinc
12366 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12367 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12369 # And these apply if build != host, or we are generating coverage data
12370 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12372 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12373 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12374 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12376 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12377 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12378 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12379 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12384 # Expand extra_headers to include complete path.
12385 # This substitutes for lots of t-* files.
12386 extra_headers_list
=
12387 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12388 for file in ${extra_headers} ; do
12389 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12392 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12393 if test x
"$use_gcc_tgmath" = xyes
12394 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12397 # Define collect2 in Makefile.
12398 case $host_can_use_collect2 in
12400 *) collect2
='collect2$(exeext)' ;;
12404 # Add a definition of USE_COLLECT2 if system wants one.
12405 case $use_collect2 in
12406 no
) use_collect2
= ;;
12409 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12410 xm_defines
="${xm_defines} USE_COLLECT2"
12411 case $host_can_use_collect2 in
12413 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12420 cat >>confdefs.h
<<_ACEOF
12421 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12425 # ---------------------------
12426 # Assembler & linker features
12427 # ---------------------------
12429 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12430 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12431 # However when ld-new is first executed from the build tree, libtool will
12432 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12433 # to the build tree. While doing this we need to use the previous-stage
12434 # linker, or we have an infinite loop. The presence of a shell script as
12435 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12436 # the gcc/collect-ld script. So we need to know how libtool works, or
12437 # exec-tool will fail.
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12443 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12448 macro_version
='2.2.7a'
12449 macro_revision
='1.3134'
12463 ltmain
="$ac_aux_dir/ltmain.sh"
12465 # Backslashify metacharacters that are still active within
12466 # double-quoted strings.
12467 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12469 # Same as above, but do not quote variable references.
12470 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12472 # Sed substitution to delay expansion of an escaped shell variable in a
12473 # double_quote_subst'ed string.
12474 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12476 # Sed substitution to delay expansion of an escaped single quote.
12477 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12479 # Sed substitution to avoid accidental globbing in evaled expressions
12480 no_glob_subst
='s/\*/\\\*/g'
12482 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12483 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12484 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12487 $as_echo_n "checking how to print strings... " >&6; }
12488 # Test print first, because it will be a builtin if present.
12489 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12490 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12492 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12495 # Use this function as a fallback that always works.
12496 func_fallback_echo ()
12498 eval 'cat <<_LTECHO_EOF
12502 ECHO='func_fallback_echo
'
12505 # func_echo_all arg...
12506 # Invoke $ECHO with all args, space-separated.
12513 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12514 $as_echo "printf" >&6; } ;;
12515 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12516 $as_echo "print -r" >&6; } ;;
12517 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12518 $as_echo "cat" >&6; } ;;
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12535 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12536 if test "${ac_cv_path_SED+set}" = set; then :
12537 $as_echo_n "(cached) " >&6
12539 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12540 for ac_i in 1 2 3 4 5 6 7; do
12541 ac_script="$ac_script$as_nl$ac_script"
12543 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12544 { ac_script=; unset ac_script;}
12545 if test -z "$SED"; then
12546 ac_path_SED_found=false
12547 # Loop through the user's path and
test for each of PROGNAME-LIST
12548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12549 for as_dir
in $PATH
12552 test -z "$as_dir" && as_dir
=.
12553 for ac_prog
in sed gsed
; do
12554 for ac_exec_ext
in '' $ac_executable_extensions; do
12555 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12556 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12557 # Check for GNU ac_path_SED and select it if it is found.
12558 # Check for GNU $ac_path_SED
12559 case `"$ac_path_SED" --version 2>&1` in
12561 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12564 $as_echo_n 0123456789 >"conftest.in"
12567 cat "conftest.in" "conftest.in" >"conftest.tmp"
12568 mv "conftest.tmp" "conftest.in"
12569 cp "conftest.in" "conftest.nl"
12570 $as_echo '' >> "conftest.nl"
12571 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12572 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12573 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12574 if test $ac_count -gt ${ac_path_SED_max-0}; then
12575 # Best one so far, save it but keep looking for a better one
12576 ac_cv_path_SED
="$ac_path_SED"
12577 ac_path_SED_max
=$ac_count
12579 # 10*(2^10) chars as input seems more than enough
12580 test $ac_count -gt 10 && break
12582 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12585 $ac_path_SED_found && break 3
12590 if test -z "$ac_cv_path_SED"; then
12591 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12594 ac_cv_path_SED
=$SED
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12599 $as_echo "$ac_cv_path_SED" >&6; }
12600 SED
="$ac_cv_path_SED"
12603 test -z "$SED" && SED
=sed
12604 Xsed
="$SED -e 1s/^X//"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12617 $as_echo_n "checking for fgrep... " >&6; }
12618 if test "${ac_cv_path_FGREP+set}" = set; then :
12619 $as_echo_n "(cached) " >&6
12621 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12622 then ac_cv_path_FGREP
="$GREP -F"
12624 if test -z "$FGREP"; then
12625 ac_path_FGREP_found
=false
12626 # Loop through the user's path and test for each of PROGNAME-LIST
12627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12628 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12631 test -z "$as_dir" && as_dir
=.
12632 for ac_prog
in fgrep
; do
12633 for ac_exec_ext
in '' $ac_executable_extensions; do
12634 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12635 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12636 # Check for GNU ac_path_FGREP and select it if it is found.
12637 # Check for GNU $ac_path_FGREP
12638 case `"$ac_path_FGREP" --version 2>&1` in
12640 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12643 $as_echo_n 0123456789 >"conftest.in"
12646 cat "conftest.in" "conftest.in" >"conftest.tmp"
12647 mv "conftest.tmp" "conftest.in"
12648 cp "conftest.in" "conftest.nl"
12649 $as_echo 'FGREP' >> "conftest.nl"
12650 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12651 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12652 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12653 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12654 # Best one so far, save it but keep looking for a better one
12655 ac_cv_path_FGREP
="$ac_path_FGREP"
12656 ac_path_FGREP_max
=$ac_count
12658 # 10*(2^10) chars as input seems more than enough
12659 test $ac_count -gt 10 && break
12661 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12664 $ac_path_FGREP_found && break 3
12669 if test -z "$ac_cv_path_FGREP"; then
12670 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12673 ac_cv_path_FGREP
=$FGREP
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12679 $as_echo "$ac_cv_path_FGREP" >&6; }
12680 FGREP
="$ac_cv_path_FGREP"
12683 test -z "$GREP" && GREP
=grep
12703 # Check whether --with-gnu-ld was given.
12704 if test "${with_gnu_ld+set}" = set; then :
12705 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12711 if test "$GCC" = yes; then
12712 # Check if gcc -print-prog-name=ld gives a path.
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12714 $as_echo_n "checking for ld used by $CC... " >&6; }
12717 # gcc leaves a trailing carriage return which upsets mingw
12718 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12720 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12723 # Accept absolute paths.
12725 re_direlt
='/[^/][^/]*/\.\./'
12726 # Canonicalize the pathname of ld
12727 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12728 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12729 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12731 test -z "$LD" && LD
="$ac_prog"
12734 # If it fails, then pretend we aren't using GCC.
12738 # If it is relative, then search for the first ld in PATH.
12739 with_gnu_ld
=unknown
12742 elif test "$with_gnu_ld" = yes; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12744 $as_echo_n "checking for GNU ld... " >&6; }
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12747 $as_echo_n "checking for non-GNU ld... " >&6; }
12749 if test "${lt_cv_path_LD+set}" = set; then :
12750 $as_echo_n "(cached) " >&6
12752 if test -z "$LD"; then
12753 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12754 for ac_dir
in $PATH; do
12756 test -z "$ac_dir" && ac_dir
=.
12757 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12758 lt_cv_path_LD
="$ac_dir/$ac_prog"
12759 # Check to see if the program is GNU ld. I'd rather use --version,
12760 # but apparently some variants of GNU ld only accept -v.
12761 # Break only if it was the GNU/non-GNU ld that we prefer.
12762 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12763 *GNU
* |
*'with BFD'*)
12764 test "$with_gnu_ld" != no
&& break
12767 test "$with_gnu_ld" != yes && break
12774 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12778 LD
="$lt_cv_path_LD"
12779 if test -n "$LD"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12781 $as_echo "$LD" >&6; }
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12786 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12788 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12789 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12790 $as_echo_n "(cached) " >&6
12792 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12793 case `$LD -v 2>&1 </dev/null` in
12794 *GNU
* |
*'with BFD'*)
12795 lt_cv_prog_gnu_ld
=yes
12798 lt_cv_prog_gnu_ld
=no
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12803 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12804 with_gnu_ld
=$lt_cv_prog_gnu_ld
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12815 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12816 if test "${lt_cv_path_NM+set}" = set; then :
12817 $as_echo_n "(cached) " >&6
12819 if test -n "$NM"; then
12820 # Let the user override the test.
12821 lt_cv_path_NM
="$NM"
12823 lt_nm_to_check
="${ac_tool_prefix}nm"
12824 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12825 lt_nm_to_check
="$lt_nm_to_check nm"
12827 for lt_tmp_nm
in $lt_nm_to_check; do
12828 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12829 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12831 test -z "$ac_dir" && ac_dir
=.
12832 tmp_nm
="$ac_dir/$lt_tmp_nm"
12833 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12834 # Check to see if the nm accepts a BSD-compat flag.
12835 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12836 # nm: unknown option "B" ignored
12837 # Tru64's nm complains that /dev/null is an invalid object file
12838 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12839 */dev
/null
* |
*'Invalid file or object type'*)
12840 lt_cv_path_NM
="$tmp_nm -B"
12844 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12846 lt_cv_path_NM
="$tmp_nm -p"
12850 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12851 continue # so that we can try to find one that supports BSD flags
12860 : ${lt_cv_path_NM=no}
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12864 $as_echo "$lt_cv_path_NM" >&6; }
12865 if test "$lt_cv_path_NM" != "no"; then
12866 NM
="$lt_cv_path_NM"
12868 # Didn't find any BSD compatible name lister, look for dumpbin.
12869 if test -n "$DUMPBIN"; then :
12870 # Let the user override the test.
12872 if test -n "$ac_tool_prefix"; then
12873 for ac_prog
in dumpbin
"link -dump"
12875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12876 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878 $as_echo_n "checking for $ac_word... " >&6; }
12879 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12880 $as_echo_n "(cached) " >&6
12882 if test -n "$DUMPBIN"; then
12883 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12886 for as_dir
in $PATH
12889 test -z "$as_dir" && as_dir
=.
12890 for ac_exec_ext
in '' $ac_executable_extensions; do
12891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12892 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12902 DUMPBIN
=$ac_cv_prog_DUMPBIN
12903 if test -n "$DUMPBIN"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12905 $as_echo "$DUMPBIN" >&6; }
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 $as_echo "no" >&6; }
12912 test -n "$DUMPBIN" && break
12915 if test -z "$DUMPBIN"; then
12916 ac_ct_DUMPBIN
=$DUMPBIN
12917 for ac_prog
in dumpbin
"link -dump"
12919 # Extract the first word of "$ac_prog", so it can be a program name with args.
12920 set dummy
$ac_prog; ac_word
=$2
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12922 $as_echo_n "checking for $ac_word... " >&6; }
12923 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12924 $as_echo_n "(cached) " >&6
12926 if test -n "$ac_ct_DUMPBIN"; then
12927 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12930 for as_dir
in $PATH
12933 test -z "$as_dir" && as_dir
=.
12934 for ac_exec_ext
in '' $ac_executable_extensions; do
12935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12936 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12946 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12947 if test -n "$ac_ct_DUMPBIN"; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12949 $as_echo "$ac_ct_DUMPBIN" >&6; }
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952 $as_echo "no" >&6; }
12956 test -n "$ac_ct_DUMPBIN" && break
12959 if test "x$ac_ct_DUMPBIN" = x
; then
12962 case $cross_compiling:$ac_tool_warned in
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12966 ac_tool_warned
=yes ;;
12968 DUMPBIN
=$ac_ct_DUMPBIN
12972 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12974 DUMPBIN
="$DUMPBIN -symbols"
12982 if test "$DUMPBIN" != ":"; then
12986 test -z "$NM" && NM
=nm
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12994 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12995 if test "${lt_cv_nm_interface+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
12998 lt_cv_nm_interface
="BSD nm"
12999 echo "int some_variable = 0;" > conftest.
$ac_ext
13000 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13001 (eval "$ac_compile" 2>conftest.err
)
13002 cat conftest.err
>&5
13003 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13004 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13005 cat conftest.err
>&5
13006 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13007 cat conftest.out
>&5
13008 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13009 lt_cv_nm_interface
="MS dumpbin"
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13014 $as_echo "$lt_cv_nm_interface" >&6; }
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13017 $as_echo_n "checking whether ln -s works... " >&6; }
13019 if test "$LN_S" = "ln -s"; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13021 $as_echo "yes" >&6; }
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13024 $as_echo "no, using $LN_S" >&6; }
13027 # find the maximum length of command line arguments
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13029 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13030 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
13031 $as_echo_n "(cached) " >&6
13038 # On DJGPP, this test can blow up pretty badly due to problems in libc
13039 # (any single argument exceeding 2000 bytes causes a buffer overrun
13040 # during glob expansion). Even if it were fixed, the result of this
13041 # check would be larger than it should be.
13042 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13046 # Under GNU Hurd, this test is not required because there is
13047 # no limit to the length of command line arguments.
13048 # Libtool will interpret -1 as no limit whatsoever
13049 lt_cv_sys_max_cmd_len
=-1;
13052 cygwin
* | mingw
* | cegcc
*)
13053 # On Win9x/ME, this test blows up -- it succeeds, but takes
13054 # about 5 minutes as the teststring grows exponentially.
13055 # Worse, since 9x/ME are not pre-emptively multitasking,
13056 # you end up with a "frozen" computer, even though with patience
13057 # the test eventually succeeds (with a max line length of 256k).
13058 # Instead, let's just punt: use the minimum linelength reported by
13059 # all of the supported platforms: 8192 (on NT/2K/XP).
13060 lt_cv_sys_max_cmd_len
=8192;
13064 # On MiNT this can take a long time and run out of memory.
13065 lt_cv_sys_max_cmd_len
=8192;
13069 # On AmigaOS with pdksh, this test takes hours, literally.
13070 # So we just punt and use a minimum line length of 8192.
13071 lt_cv_sys_max_cmd_len
=8192;
13074 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13075 # This has been around since 386BSD, at least. Likely further.
13076 if test -x /sbin
/sysctl
; then
13077 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13078 elif test -x /usr
/sbin
/sysctl
; then
13079 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13081 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13083 # And add a safety zone
13084 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13085 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13089 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13090 lt_cv_sys_max_cmd_len
=196608
13094 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13095 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13096 # nice to cause kernel panics so lets avoid the loop below.
13097 # First set a reasonable default.
13098 lt_cv_sys_max_cmd_len
=16384
13100 if test -x /sbin
/sysconfig
; then
13101 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13102 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13107 lt_cv_sys_max_cmd_len
=102400
13109 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13110 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13111 if test -n "$kargmax"; then
13112 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13114 lt_cv_sys_max_cmd_len
=32768
13118 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13119 if test -n "$lt_cv_sys_max_cmd_len"; then
13120 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13121 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13123 # Make teststring a little bigger before we do anything with it.
13124 # a 1K string should be a reasonable start.
13125 for i
in 1 2 3 4 5 6 7 8 ; do
13126 teststring
=$teststring$teststring
13128 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13129 # If test is not a shell built-in, we'll probably end up computing a
13130 # maximum length that is only half of the actual maximum length, but
13132 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13133 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13134 test $i != 17 # 1/2 MB should be enough
13137 teststring
=$teststring$teststring
13139 # Only check the string length outside the loop.
13140 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13142 # Add a significant safety factor because C++ compilers can tack on
13143 # massive amounts of additional arguments before passing them to the
13144 # linker. It appears as though 1/2 is a usable value.
13145 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13152 if test -n $lt_cv_sys_max_cmd_len ; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13154 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13157 $as_echo "none" >&6; }
13159 max_cmd_len
=$lt_cv_sys_max_cmd_len
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13171 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13172 # Try some XSI features
13174 ( _lt_dummy
="a/b/c"
13175 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13177 && eval 'test $(( 1 + 1 )) -eq 2 \
13178 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13181 $as_echo "$xsi_shell" >&6; }
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13185 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13187 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13189 && lt_shell_append=yes
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13191 $as_echo "$lt_shell_append" >&6; }
13194 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13204 # test EBCDIC or ASCII
13205 case `echo X|tr X '\101'` in
13206 A) # ASCII based system
13207 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13208 lt_SP2NL='tr \040 \012'
13209 lt_NL2SP='tr \015\012 \040\040'
13211 *) # EBCDIC based system
13212 lt_SP2NL='tr \100 \n'
13213 lt_NL2SP='tr \r\n \100\100'
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13226 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13227 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13228 $as_echo_n "(cached
) " >&6
13230 lt_cv_ld_reload_flag='-r'
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13233 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13234 reload_flag=$lt_cv_ld_reload_flag
13235 case $reload_flag in
13237 *) reload_flag=" $reload_flag" ;;
13239 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13242 if test "$GCC" = yes; then
13243 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13258 if test -n "$ac_tool_prefix"; then
13259 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13260 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13262 $as_echo_n "checking
for $ac_word...
" >&6; }
13263 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13264 $as_echo_n "(cached
) " >&6
13266 if test -n "$OBJDUMP"; then
13267 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270 for as_dir in $PATH
13273 test -z "$as_dir" && as_dir=.
13274 for ac_exec_ext in '' $ac_executable_extensions; do
13275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13276 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13277 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13286 OBJDUMP=$ac_cv_prog_OBJDUMP
13287 if test -n "$OBJDUMP"; then
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13289 $as_echo "$OBJDUMP" >&6; }
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13292 $as_echo "no
" >&6; }
13297 if test -z "$ac_cv_prog_OBJDUMP"; then
13298 ac_ct_OBJDUMP=$OBJDUMP
13299 # Extract the first word of "objdump
", so it can be a program name with args.
13300 set dummy objdump; ac_word=$2
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13302 $as_echo_n "checking
for $ac_word...
" >&6; }
13303 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13304 $as_echo_n "(cached
) " >&6
13306 if test -n "$ac_ct_OBJDUMP"; then
13307 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $PATH
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
13315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13316 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13317 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13326 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13327 if test -n "$ac_ct_OBJDUMP"; then
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13329 $as_echo "$ac_ct_OBJDUMP" >&6; }
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13332 $as_echo "no
" >&6; }
13335 if test "x
$ac_ct_OBJDUMP" = x; then
13338 case $cross_compiling:$ac_tool_warned in
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13341 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13342 ac_tool_warned=yes ;;
13344 OBJDUMP=$ac_ct_OBJDUMP
13347 OBJDUMP="$ac_cv_prog_OBJDUMP"
13350 test -z "$OBJDUMP" && OBJDUMP=objdump
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13361 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13362 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13363 $as_echo_n "(cached
) " >&6
13365 lt_cv_file_magic_cmd='$MAGIC_CMD'
13366 lt_cv_file_magic_test_file=
13367 lt_cv_deplibs_check_method='unknown'
13368 # Need to set the preceding variable on all platforms that support
13369 # interlibrary dependencies.
13370 # 'none' -- dependencies not supported.
13371 # `unknown' -- same as none, but documents that we really don't know.
13372 # 'pass_all' -- all dependencies passed with no checks.
13373 # 'test_compile' -- check by making test program.
13374 # 'file_magic [[regex]]' -- check by looking for files in library path
13375 # which responds to the $file_magic_cmd with a given extended regex.
13376 # If you have `file' or equivalent on your system and you're not sure
13377 # whether `pass_all' will *always* work, you probably want this one.
13381 lt_cv_deplibs_check_method=pass_all
13385 lt_cv_deplibs_check_method=pass_all
13389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13390 lt_cv_file_magic_cmd='/usr/bin/file -L'
13391 lt_cv_file_magic_test_file=/shlib/libc.so
13395 # func_win32_libid is a shell function defined in ltmain.sh
13396 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13397 lt_cv_file_magic_cmd='func_win32_libid'
13401 # Base MSYS/MinGW do not provide the 'file' command needed by
13402 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13403 # unless we find 'file', for example because we are cross-compiling.
13404 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13405 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13406 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13407 lt_cv_file_magic_cmd='func_win32_libid'
13409 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13410 lt_cv_file_magic_cmd='$OBJDUMP -f'
13415 # use the weaker test based on 'objdump'. See mingw*.
13416 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13417 lt_cv_file_magic_cmd='$OBJDUMP -f'
13420 darwin* | rhapsody*)
13421 lt_cv_deplibs_check_method=pass_all
13424 freebsd* | dragonfly*)
13425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13428 # Not sure whether the presence of OpenBSD here was a mistake.
13429 # Let's accept both of them until this is cleared up.
13430 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13431 lt_cv_file_magic_cmd=/usr/bin/file
13432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13436 lt_cv_deplibs_check_method=pass_all
13441 lt_cv_deplibs_check_method=pass_all
13445 lt_cv_deplibs_check_method=pass_all
13448 hpux10.20* | hpux11*)
13449 lt_cv_file_magic_cmd=/usr/bin/file
13452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13453 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13456 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]'
13457 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13461 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13467 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13471 irix5* | irix6* | nonstopux*)
13473 *-32|*"-32 ") libmagic=32-bit;;
13474 *-n32|*"-n32 ") libmagic=N32;;
13475 *-64|*"-64 ") libmagic=64-bit;;
13476 *) libmagic=never-match;;
13478 lt_cv_deplibs_check_method=pass_all
13481 # This must be Linux ELF.
13482 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13483 lt_cv_deplibs_check_method=pass_all
13487 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13496 lt_cv_file_magic_cmd=/usr/bin/file
13497 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13501 lt_cv_deplibs_check_method=pass_all
13505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13512 osf3* | osf4* | osf5*)
13513 lt_cv_deplibs_check_method=pass_all
13517 lt_cv_deplibs_check_method=pass_all
13521 lt_cv_deplibs_check_method=pass_all
13524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13525 lt_cv_deplibs_check_method=pass_all
13529 case $host_vendor in
13531 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]'
13532 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13535 lt_cv_deplibs_check_method=pass_all
13538 lt_cv_file_magic_cmd='/bin/file'
13539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13542 lt_cv_file_magic_cmd='/bin/file'
13543 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13544 lt_cv_file_magic_test_file=/lib/libc.so
13547 lt_cv_deplibs_check_method=pass_all
13550 lt_cv_deplibs_check_method=pass_all
13556 lt_cv_deplibs_check_method=pass_all
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13562 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13563 file_magic_cmd=$lt_cv_file_magic_cmd
13564 deplibs_check_method=$lt_cv_deplibs_check_method
13565 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13578 if test -n "$ac_tool_prefix"; then
13579 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13580 set dummy ${ac_tool_prefix}ar; ac_word=$2
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13582 $as_echo_n "checking
for $ac_word...
" >&6; }
13583 if test "${ac_cv_prog_AR+set}" = set; then :
13584 $as_echo_n "(cached
) " >&6
13586 if test -n "$AR"; then
13587 ac_cv_prog_AR="$AR" # Let the user override the test.
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 for as_dir in $PATH
13593 test -z "$as_dir" && as_dir=.
13594 for ac_exec_ext in '' $ac_executable_extensions; do
13595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13596 ac_cv_prog_AR="${ac_tool_prefix}ar"
13597 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13607 if test -n "$AR"; then
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13609 $as_echo "$AR" >&6; }
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13612 $as_echo "no
" >&6; }
13617 if test -z "$ac_cv_prog_AR"; then
13619 # Extract the first word of "ar", so it can be a program name with args.
13620 set dummy ar; ac_word=$2
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13622 $as_echo_n "checking
for $ac_word...
" >&6; }
13623 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13624 $as_echo_n "(cached
) " >&6
13626 if test -n "$ac_ct_AR"; then
13627 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 for as_dir in $PATH
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
13635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13636 ac_cv_prog_ac_ct_AR="ar"
13637 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13646 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13647 if test -n "$ac_ct_AR"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13649 $as_echo "$ac_ct_AR" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13652 $as_echo "no
" >&6; }
13655 if test "x
$ac_ct_AR" = x; then
13658 case $cross_compiling:$ac_tool_warned in
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13661 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13662 ac_tool_warned=yes ;;
13667 AR="$ac_cv_prog_AR"
13670 test -z "$AR" && AR=ar
13671 test -z "$AR_FLAGS" && AR_FLAGS=cru
13683 if test -n "$ac_tool_prefix"; then
13684 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13685 set dummy ${ac_tool_prefix}strip; ac_word=$2
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13687 $as_echo_n "checking
for $ac_word...
" >&6; }
13688 if test "${ac_cv_prog_STRIP+set}" = set; then :
13689 $as_echo_n "(cached
) " >&6
13691 if test -n "$STRIP"; then
13692 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13695 for as_dir in $PATH
13698 test -z "$as_dir" && as_dir=.
13699 for ac_exec_ext in '' $ac_executable_extensions; do
13700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13701 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13702 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13711 STRIP=$ac_cv_prog_STRIP
13712 if test -n "$STRIP"; then
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13714 $as_echo "$STRIP" >&6; }
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13717 $as_echo "no
" >&6; }
13722 if test -z "$ac_cv_prog_STRIP"; then
13724 # Extract the first word of "strip
", so it can be a program name with args.
13725 set dummy strip; ac_word=$2
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13727 $as_echo_n "checking
for $ac_word...
" >&6; }
13728 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13729 $as_echo_n "(cached
) " >&6
13731 if test -n "$ac_ct_STRIP"; then
13732 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13735 for as_dir in $PATH
13738 test -z "$as_dir" && as_dir=.
13739 for ac_exec_ext in '' $ac_executable_extensions; do
13740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13741 ac_cv_prog_ac_ct_STRIP="strip
"
13742 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13751 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13752 if test -n "$ac_ct_STRIP"; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13754 $as_echo "$ac_ct_STRIP" >&6; }
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13757 $as_echo "no
" >&6; }
13760 if test "x
$ac_ct_STRIP" = x; then
13763 case $cross_compiling:$ac_tool_warned in
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13766 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13767 ac_tool_warned=yes ;;
13772 STRIP="$ac_cv_prog_STRIP"
13775 test -z "$STRIP" && STRIP=:
13782 if test -n "$ac_tool_prefix"; then
13783 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13786 $as_echo_n "checking
for $ac_word...
" >&6; }
13787 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13788 $as_echo_n "(cached
) " >&6
13790 if test -n "$RANLIB"; then
13791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13794 for as_dir in $PATH
13797 test -z "$as_dir" && as_dir=.
13798 for ac_exec_ext in '' $ac_executable_extensions; do
13799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13800 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13801 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13810 RANLIB=$ac_cv_prog_RANLIB
13811 if test -n "$RANLIB"; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13813 $as_echo "$RANLIB" >&6; }
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13816 $as_echo "no
" >&6; }
13821 if test -z "$ac_cv_prog_RANLIB"; then
13822 ac_ct_RANLIB=$RANLIB
13823 # Extract the first word of "ranlib
", so it can be a program name with args.
13824 set dummy ranlib; ac_word=$2
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13826 $as_echo_n "checking
for $ac_word...
" >&6; }
13827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13828 $as_echo_n "(cached
) " >&6
13830 if test -n "$ac_ct_RANLIB"; then
13831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13834 for as_dir in $PATH
13837 test -z "$as_dir" && as_dir=.
13838 for ac_exec_ext in '' $ac_executable_extensions; do
13839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13840 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13841 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13851 if test -n "$ac_ct_RANLIB"; then
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13853 $as_echo "$ac_ct_RANLIB" >&6; }
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13856 $as_echo "no
" >&6; }
13859 if test "x
$ac_ct_RANLIB" = x; then
13862 case $cross_compiling:$ac_tool_warned in
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13865 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13866 ac_tool_warned=yes ;;
13868 RANLIB=$ac_ct_RANLIB
13871 RANLIB="$ac_cv_prog_RANLIB"
13874 test -z "$RANLIB" && RANLIB=:
13881 # Determine commands to create old-style static archives.
13882 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13883 old_postinstall_cmds='chmod 644 $oldlib'
13884 old_postuninstall_cmds=
13886 if test -n "$RANLIB"; then
13889 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13892 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13895 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13900 lock_old_archive_extraction=yes ;;
13902 lock_old_archive_extraction=no ;;
13943 # If no C compiler was specified, use CC.
13946 # If no C compiler flags were specified, use CFLAGS.
13947 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13949 # Allow CC to be a program name with arguments.
13953 # Check for command to grab the raw symbol name followed by C symbol from nm.
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13955 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13956 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13957 $as_echo_n "(cached
) " >&6
13960 # These are sane defaults that work on at least a few old systems.
13961 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13963 # Character class describing NM global symbol codes.
13964 symcode='[BCDEGRST]'
13966 # Regexp to match symbols that can be accessed directly from C.
13967 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13969 # Define system-specific variables.
13974 cygwin* | mingw* | pw32* | cegcc*)
13975 symcode='[ABCDGISTW]'
13978 if test "$host_cpu" = ia64; then
13979 symcode='[ABCDEGRST]'
13982 irix* | nonstopux*)
13983 symcode='[BCDEGRST]'
13986 symcode='[BCDEGQRST]'
13997 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14005 # If we're using GNU nm, then use its standard symbol codes.
14006 case `$NM -V 2>&1` in
14007 *GNU* | *'with BFD'*)
14008 symcode='[ABCDGIRSTW]' ;;
14011 # Transform an extracted symbol line into a proper C declaration.
14012 # Some systems (esp. on ia64) link data and code symbols differently,
14013 # so use this general approach.
14014 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14016 # Transform an extracted symbol line into symbol name and symbol address
14017 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14018 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'"
14020 # Handle CRLF in mingw tool chain
14024 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14028 # Try without a prefix underscore, then with it.
14029 for ac_symprfx in "" "_
"; do
14031 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14032 symxfrm="\\1 $ac_symprfx\\2 \\2"
14034 # Write the raw and C identifiers.
14035 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14036 # Fake it for dumpbin and say T for any non-static function
14037 # and D for any global variable.
14038 # Also find C++ and __fastcall symbols from MSVC++,
14039 # which start with @ or ?.
14040 lt_cv_sys_global_symbol_pipe="$AWK '"\
14041 " {last_section=section; section=\$ 3};"\
14042 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14043 " \$ 0!~/External *\|/{next};"\
14044 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14045 " {if(hide[section]) next};"\
14046 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14047 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14048 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14049 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14050 " ' prfx
=^
$ac_symprfx"
14052 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14055 # Check to see that the pipe works correctly.
14059 cat > conftest.$ac_ext <<_LT_EOF
14064 void nm_test_func(void);
14065 void nm_test_func(void){}
14069 int main(){nm_test_var='a';nm_test_func();return(0);}
14072 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14073 (eval $ac_compile) 2>&5
14075 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14076 test $ac_status = 0; }; then
14077 # Now try to grab the symbols.
14079 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14080 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14082 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14083 test $ac_status = 0; } && test -s "$nlist"; then
14084 # Try sorting and uniquifying the output.
14085 if sort "$nlist" | uniq > "$nlist"T; then
14086 mv -f "$nlist"T "$nlist"
14091 # Make sure that we snagged all the symbols we need.
14092 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14093 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14094 cat <<_LT_EOF > conftest.$ac_ext
14100 # Now generate the symbol file.
14101 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14103 cat <<_LT_EOF >> conftest.$ac_ext
14105 /* The mapping between symbol names and symbols. */
14110 lt__PROGRAM__LTX_preloaded_symbols[] =
14112 { "@PROGRAM@
", (void *) 0 },
14114 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14115 cat <<\_LT_EOF >> conftest.$ac_ext
14119 /* This works around a problem in FreeBSD linker */
14120 #ifdef FREEBSD_WORKAROUND
14121 static const void *lt_preloaded_setup() {
14122 return lt__PROGRAM__LTX_preloaded_symbols;
14130 # Now try linking the two files.
14131 mv conftest.$ac_objext conftstm.$ac_objext
14132 lt_save_LIBS="$LIBS"
14133 lt_save_CFLAGS="$CFLAGS"
14134 LIBS="conftstm.
$ac_objext"
14135 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14136 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14137 (eval $ac_link) 2>&5
14139 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14140 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14143 LIBS="$lt_save_LIBS"
14144 CFLAGS="$lt_save_CFLAGS"
14146 echo "cannot
find nm_test_func
in $nlist" >&5
14149 echo "cannot
find nm_test_var
in $nlist" >&5
14152 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14155 echo "$progname: failed program was
:" >&5
14156 cat conftest.$ac_ext >&5
14158 rm -rf conftest* conftst*
14160 # Do not use the global_symbol_pipe unless it works.
14161 if test "$pipe_works" = yes; then
14164 lt_cv_sys_global_symbol_pipe=
14170 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14171 lt_cv_sys_global_symbol_to_cdecl=
14173 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14175 $as_echo "failed
" >&6; }
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14178 $as_echo "ok
" >&6; }
14202 # Check whether --enable-libtool-lock was given.
14203 if test "${enable_libtool_lock+set}" = set; then :
14204 enableval=$enable_libtool_lock;
14207 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14209 # Some flags need to be propagated to the compiler or linker for good
14213 # Find out which ABI we are using.
14214 echo 'int i;' > conftest.$ac_ext
14215 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14216 (eval $ac_compile) 2>&5
14218 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14219 test $ac_status = 0; }; then
14220 case `/usr/bin/file conftest.$ac_objext` in
14222 HPUX_IA64_MODE="32"
14225 HPUX_IA64_MODE="64"
14232 # Find out which ABI we are using.
14233 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14234 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14235 (eval $ac_compile) 2>&5
14237 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14238 test $ac_status = 0; }; then
14239 if test "$lt_cv_prog_gnu_ld" = yes; then
14240 case `/usr/bin/file conftest.$ac_objext` in
14242 LD="${LD-ld} -melf32bsmip"
14245 LD="${LD-ld} -melf32bmipn32"
14248 LD="${LD-ld} -melf64bmip"
14252 case `/usr/bin/file conftest.$ac_objext` in
14268 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14269 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14270 # Find out which ABI we are using.
14271 echo 'int i;' > conftest.$ac_ext
14272 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14273 (eval $ac_compile) 2>&5
14275 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14276 test $ac_status = 0; }; then
14277 case `/usr/bin/file conftest.o` in
14280 x86_64-*kfreebsd*-gnu)
14281 LD="${LD-ld} -m elf_i386_fbsd
"
14284 case `/usr/bin/file conftest.o` in
14286 LD="${LD-ld} -m elf32_x86_64
"
14289 LD="${LD-ld} -m elf_i386
"
14293 powerpc64le-*linux*)
14294 LD="${LD-ld} -m elf32lppclinux
"
14297 LD="${LD-ld} -m elf32ppclinux
"
14300 LD="${LD-ld} -m elf_s390
"
14303 LD="${LD-ld} -m elf32_sparc
"
14309 x86_64-*kfreebsd*-gnu)
14310 LD="${LD-ld} -m elf_x86_64_fbsd
"
14313 LD="${LD-ld} -m elf_x86_64
"
14316 LD="${LD-ld} -m elf64lppc
"
14319 LD="${LD-ld} -m elf64ppc
"
14321 s390*-*linux*|s390*-*tpf*)
14322 LD="${LD-ld} -m elf64_s390
"
14325 LD="${LD-ld} -m elf64_sparc
"
14335 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14336 SAVE_CFLAGS="$CFLAGS"
14337 CFLAGS="$CFLAGS -belf"
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14339 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14340 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14341 $as_echo_n "(cached
) " >&6
14344 ac_cpp='$CPP $CPPFLAGS'
14345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14360 if ac_fn_c_try_link "$LINENO"; then :
14361 lt_cv_cc_needs_belf=yes
14363 lt_cv_cc_needs_belf=no
14365 rm -f core conftest.err conftest.$ac_objext \
14366 conftest$ac_exeext conftest.$ac_ext
14368 ac_cpp='$CPP $CPPFLAGS'
14369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14375 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14376 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14377 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14378 CFLAGS="$SAVE_CFLAGS"
14382 # Find out which ABI we are using.
14383 echo 'int i;' > conftest.$ac_ext
14384 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14385 (eval $ac_compile) 2>&5
14387 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14388 test $ac_status = 0; }; then
14389 case `/usr/bin/file conftest.o` in
14391 case $lt_cv_prog_gnu_ld in
14392 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14394 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14406 need_locks="$enable_libtool_lock"
14410 rhapsody* | darwin*)
14411 if test -n "$ac_tool_prefix"; then
14412 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14413 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14415 $as_echo_n "checking
for $ac_word...
" >&6; }
14416 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14417 $as_echo_n "(cached
) " >&6
14419 if test -n "$DSYMUTIL"; then
14420 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14423 for as_dir in $PATH
14426 test -z "$as_dir" && as_dir=.
14427 for ac_exec_ext in '' $ac_executable_extensions; do
14428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14429 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14430 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14439 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14440 if test -n "$DSYMUTIL"; then
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14442 $as_echo "$DSYMUTIL" >&6; }
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14445 $as_echo "no
" >&6; }
14450 if test -z "$ac_cv_prog_DSYMUTIL"; then
14451 ac_ct_DSYMUTIL=$DSYMUTIL
14452 # Extract the first word of "dsymutil
", so it can be a program name with args.
14453 set dummy dsymutil; ac_word=$2
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14455 $as_echo_n "checking
for $ac_word...
" >&6; }
14456 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14457 $as_echo_n "(cached
) " >&6
14459 if test -n "$ac_ct_DSYMUTIL"; then
14460 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14463 for as_dir in $PATH
14466 test -z "$as_dir" && as_dir=.
14467 for ac_exec_ext in '' $ac_executable_extensions; do
14468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14469 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14470 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14479 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14480 if test -n "$ac_ct_DSYMUTIL"; then
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14482 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14485 $as_echo "no
" >&6; }
14488 if test "x
$ac_ct_DSYMUTIL" = x; then
14491 case $cross_compiling:$ac_tool_warned in
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14494 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14495 ac_tool_warned=yes ;;
14497 DSYMUTIL=$ac_ct_DSYMUTIL
14500 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14503 if test -n "$ac_tool_prefix"; then
14504 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14505 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14507 $as_echo_n "checking
for $ac_word...
" >&6; }
14508 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14509 $as_echo_n "(cached
) " >&6
14511 if test -n "$NMEDIT"; then
14512 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14515 for as_dir in $PATH
14518 test -z "$as_dir" && as_dir=.
14519 for ac_exec_ext in '' $ac_executable_extensions; do
14520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14521 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14522 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14531 NMEDIT=$ac_cv_prog_NMEDIT
14532 if test -n "$NMEDIT"; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14534 $as_echo "$NMEDIT" >&6; }
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14537 $as_echo "no
" >&6; }
14542 if test -z "$ac_cv_prog_NMEDIT"; then
14543 ac_ct_NMEDIT=$NMEDIT
14544 # Extract the first word of "nmedit
", so it can be a program name with args.
14545 set dummy nmedit; ac_word=$2
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14547 $as_echo_n "checking
for $ac_word...
" >&6; }
14548 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14549 $as_echo_n "(cached
) " >&6
14551 if test -n "$ac_ct_NMEDIT"; then
14552 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555 for as_dir in $PATH
14558 test -z "$as_dir" && as_dir=.
14559 for ac_exec_ext in '' $ac_executable_extensions; do
14560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14561 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14562 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14571 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14572 if test -n "$ac_ct_NMEDIT"; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14574 $as_echo "$ac_ct_NMEDIT" >&6; }
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14577 $as_echo "no
" >&6; }
14580 if test "x
$ac_ct_NMEDIT" = x; then
14583 case $cross_compiling:$ac_tool_warned in
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14586 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14587 ac_tool_warned=yes ;;
14589 NMEDIT=$ac_ct_NMEDIT
14592 NMEDIT="$ac_cv_prog_NMEDIT"
14595 if test -n "$ac_tool_prefix"; then
14596 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14597 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14599 $as_echo_n "checking
for $ac_word...
" >&6; }
14600 if test "${ac_cv_prog_LIPO+set}" = set; then :
14601 $as_echo_n "(cached
) " >&6
14603 if test -n "$LIPO"; then
14604 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14607 for as_dir in $PATH
14610 test -z "$as_dir" && as_dir=.
14611 for ac_exec_ext in '' $ac_executable_extensions; do
14612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14613 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14614 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14623 LIPO=$ac_cv_prog_LIPO
14624 if test -n "$LIPO"; then
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14626 $as_echo "$LIPO" >&6; }
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14629 $as_echo "no
" >&6; }
14634 if test -z "$ac_cv_prog_LIPO"; then
14636 # Extract the first word of "lipo
", so it can be a program name with args.
14637 set dummy lipo; ac_word=$2
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14639 $as_echo_n "checking
for $ac_word...
" >&6; }
14640 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14641 $as_echo_n "(cached
) " >&6
14643 if test -n "$ac_ct_LIPO"; then
14644 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14647 for as_dir in $PATH
14650 test -z "$as_dir" && as_dir=.
14651 for ac_exec_ext in '' $ac_executable_extensions; do
14652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14653 ac_cv_prog_ac_ct_LIPO="lipo
"
14654 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14663 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14664 if test -n "$ac_ct_LIPO"; then
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14666 $as_echo "$ac_ct_LIPO" >&6; }
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14669 $as_echo "no
" >&6; }
14672 if test "x
$ac_ct_LIPO" = x; then
14675 case $cross_compiling:$ac_tool_warned in
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14678 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14679 ac_tool_warned=yes ;;
14684 LIPO="$ac_cv_prog_LIPO"
14687 if test -n "$ac_tool_prefix"; then
14688 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14689 set dummy ${ac_tool_prefix}otool; ac_word=$2
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14691 $as_echo_n "checking
for $ac_word...
" >&6; }
14692 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14693 $as_echo_n "(cached
) " >&6
14695 if test -n "$OTOOL"; then
14696 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14699 for as_dir in $PATH
14702 test -z "$as_dir" && as_dir=.
14703 for ac_exec_ext in '' $ac_executable_extensions; do
14704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14705 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14706 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14715 OTOOL=$ac_cv_prog_OTOOL
14716 if test -n "$OTOOL"; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14718 $as_echo "$OTOOL" >&6; }
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14721 $as_echo "no
" >&6; }
14726 if test -z "$ac_cv_prog_OTOOL"; then
14728 # Extract the first word of "otool
", so it can be a program name with args.
14729 set dummy otool; ac_word=$2
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14731 $as_echo_n "checking
for $ac_word...
" >&6; }
14732 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14733 $as_echo_n "(cached
) " >&6
14735 if test -n "$ac_ct_OTOOL"; then
14736 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14739 for as_dir in $PATH
14742 test -z "$as_dir" && as_dir=.
14743 for ac_exec_ext in '' $ac_executable_extensions; do
14744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14745 ac_cv_prog_ac_ct_OTOOL="otool
"
14746 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14755 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14756 if test -n "$ac_ct_OTOOL"; then
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14758 $as_echo "$ac_ct_OTOOL" >&6; }
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14761 $as_echo "no
" >&6; }
14764 if test "x
$ac_ct_OTOOL" = x; then
14767 case $cross_compiling:$ac_tool_warned in
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14770 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14771 ac_tool_warned=yes ;;
14776 OTOOL="$ac_cv_prog_OTOOL"
14779 if test -n "$ac_tool_prefix"; then
14780 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14781 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14783 $as_echo_n "checking
for $ac_word...
" >&6; }
14784 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14785 $as_echo_n "(cached
) " >&6
14787 if test -n "$OTOOL64"; then
14788 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14791 for as_dir in $PATH
14794 test -z "$as_dir" && as_dir=.
14795 for ac_exec_ext in '' $ac_executable_extensions; do
14796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14797 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14798 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14807 OTOOL64=$ac_cv_prog_OTOOL64
14808 if test -n "$OTOOL64"; then
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14810 $as_echo "$OTOOL64" >&6; }
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14813 $as_echo "no
" >&6; }
14818 if test -z "$ac_cv_prog_OTOOL64"; then
14819 ac_ct_OTOOL64=$OTOOL64
14820 # Extract the first word of "otool64
", so it can be a program name with args.
14821 set dummy otool64; ac_word=$2
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14823 $as_echo_n "checking
for $ac_word...
" >&6; }
14824 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14825 $as_echo_n "(cached
) " >&6
14827 if test -n "$ac_ct_OTOOL64"; then
14828 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14831 for as_dir in $PATH
14834 test -z "$as_dir" && as_dir=.
14835 for ac_exec_ext in '' $ac_executable_extensions; do
14836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14837 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14838 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14847 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14848 if test -n "$ac_ct_OTOOL64"; then
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14850 $as_echo "$ac_ct_OTOOL64" >&6; }
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14853 $as_echo "no
" >&6; }
14856 if test "x
$ac_ct_OTOOL64" = x; then
14859 case $cross_compiling:$ac_tool_warned in
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14862 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14863 ac_tool_warned=yes ;;
14865 OTOOL64=$ac_ct_OTOOL64
14868 OTOOL64="$ac_cv_prog_OTOOL64"
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14898 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14899 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14900 $as_echo_n "(cached
) " >&6
14902 lt_cv_apple_cc_single_mod=no
14903 if test -z "${LT_MULTI_MODULE}"; then
14904 # By default we will add the -single_module flag. You can override
14905 # by either setting the environment variable LT_MULTI_MODULE
14906 # non-empty at configure time, or by adding -multi_module to the
14908 rm -rf libconftest.dylib*
14909 echo "int foo
(void
){return 1;}" > conftest.c
14910 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14911 -dynamiclib -Wl,-single_module conftest.c
" >&5
14912 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14913 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14915 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14916 lt_cv_apple_cc_single_mod=yes
14918 cat conftest.err >&5
14920 rm -rf libconftest.dylib*
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14925 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14927 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14928 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14929 $as_echo_n "(cached
) " >&6
14931 lt_cv_ld_exported_symbols_list=no
14932 save_LDFLAGS=$LDFLAGS
14933 echo "_main
" > conftest.sym
14934 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14946 if ac_fn_c_try_link "$LINENO"; then :
14947 lt_cv_ld_exported_symbols_list=yes
14949 lt_cv_ld_exported_symbols_list=no
14951 rm -f core conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext conftest.$ac_ext
14953 LDFLAGS="$save_LDFLAGS"
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14957 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14959 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14960 if test "${lt_cv_ld_force_load+set}" = set; then :
14961 $as_echo_n "(cached
) " >&6
14963 lt_cv_ld_force_load=no
14964 cat > conftest.c << _LT_EOF
14965 int forced_loaded() { return 2;}
14967 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14968 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14969 echo "$AR cru libconftest.a conftest.o
" >&5
14970 $AR cru libconftest.a conftest.o 2>&5
14971 cat > conftest.c << _LT_EOF
14972 int main() { return 0;}
14974 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14975 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14977 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14978 lt_cv_ld_force_load=yes
14980 cat conftest.err >&5
14982 rm -f conftest.err libconftest.a conftest conftest.c
14983 rm -rf conftest.dSYM
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14987 $as_echo "$lt_cv_ld_force_load" >&6; }
14989 rhapsody* | darwin1.[012])
14990 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14992 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14993 darwin*) # darwin 5.x on
14994 # if running on 10.5 or later, the deployment target defaults
14995 # to the OS version, if on x86, and 10.4, the deployment
14996 # target defaults to 10.4. Don't you love it?
14997 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14998 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14999 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15001 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15003 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15007 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15008 _lt_dar_single_mod='$single_module'
15010 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15011 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15013 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15015 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15016 _lt_dsymutil='~$DSYMUTIL $lib || :'
15024 for ac_header in dlfcn.h
15026 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15027 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
15028 cat >>confdefs.h <<_ACEOF
15029 #define HAVE_DLFCN_H 1
15046 enable_win32_dll=no
15049 # Check whether --enable-shared was given.
15050 if test "${enable_shared+set}" = set; then :
15051 enableval=$enable_shared; p=${PACKAGE-default}
15053 yes) enable_shared=yes ;;
15054 no) enable_shared=no ;;
15057 # Look at the argument we got. We use all the common list separators.
15058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15059 for pkg in $enableval; do
15061 if test "X
$pkg" = "X
$p"; then
15080 # Check whether --enable-static was given.
15081 if test "${enable_static+set}" = set; then :
15082 enableval=$enable_static; p=${PACKAGE-default}
15084 yes) enable_static=yes ;;
15085 no) enable_static=no ;;
15088 # Look at the argument we got. We use all the common list separators.
15089 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15090 for pkg in $enableval; do
15092 if test "X
$pkg" = "X
$p"; then
15112 # Check whether --with-pic was given.
15113 if test "${with_pic+set}" = set; then :
15114 withval=$with_pic; pic_mode="$withval"
15120 test -z "$pic_mode" && pic_mode=default
15128 # Check whether --enable-fast-install was given.
15129 if test "${enable_fast_install+set}" = set; then :
15130 enableval=$enable_fast_install; p=${PACKAGE-default}
15132 yes) enable_fast_install=yes ;;
15133 no) enable_fast_install=no ;;
15135 enable_fast_install=no
15136 # Look at the argument we got. We use all the common list separators.
15137 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15138 for pkg in $enableval; do
15140 if test "X
$pkg" = "X
$p"; then
15141 enable_fast_install=yes
15148 enable_fast_install=yes
15161 # This can be used to rebuild libtool when needed
15162 LIBTOOL_DEPS="$ltmain"
15164 # Always use our own libtool.
15165 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15192 test -z "$LN_S" && LN_S="ln -s"
15207 if test -n "${ZSH_VERSION+set}" ; then
15208 setopt NO_GLOB_SUBST
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15212 $as_echo_n "checking
for objdir...
" >&6; }
15213 if test "${lt_cv_objdir+set}" = set; then :
15214 $as_echo_n "(cached
) " >&6
15216 rm -f .libs 2>/dev/null
15217 mkdir .libs 2>/dev/null
15218 if test -d .libs; then
15221 # MS-DOS does not allow filenames that begin with a dot.
15224 rmdir .libs 2>/dev/null
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15227 $as_echo "$lt_cv_objdir" >&6; }
15228 objdir=$lt_cv_objdir
15234 cat >>confdefs.h <<_ACEOF
15235 #define LT_OBJDIR "$lt_cv_objdir/"
15243 # AIX sometimes has problems with the GCC collect2 program. For some
15244 # reason, if we set the COLLECT_NAMES environment variable, the problems
15245 # vanish in a puff of smoke.
15246 if test "X
${COLLECT_NAMES+set}" != Xset; then
15248 export COLLECT_NAMES
15253 # Global variables:
15255 can_build_shared=yes
15257 # All known linkers require a `.a' archive for static linking (except MSVC,
15258 # which needs '.lib').
15261 with_gnu_ld="$lt_cv_prog_gnu_ld"
15264 old_CFLAGS="$CFLAGS"
15266 # Set sane defaults for various variables
15267 test -z "$CC" && CC=cc
15268 test -z "$LTCC" && LTCC=$CC
15269 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15270 test -z "$LD" && LD=ld
15271 test -z "$ac_objext" && ac_objext=o
15273 for cc_temp in $compiler""; do
15275 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15276 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15281 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15284 # Only perform the check for file, if the check method requires it
15285 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15286 case $deplibs_check_method in
15288 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15290 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15291 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15292 $as_echo_n "(cached
) " >&6
15296 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15299 lt_save_MAGIC_CMD="$MAGIC_CMD"
15300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15301 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15302 for ac_dir in $ac_dummy; do
15304 test -z "$ac_dir" && ac_dir=.
15305 if test -f $ac_dir/${ac_tool_prefix}file; then
15306 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15307 if test -n "$file_magic_test_file"; then
15308 case $deplibs_check_method in
15310 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15313 $EGREP "$file_magic_regex" > /dev/null; then
15318 *** Warning: the command libtool uses to detect shared libraries,
15319 *** $file_magic_cmd, produces output that libtool cannot recognize.
15320 *** The result is that libtool may fail to recognize shared libraries
15321 *** as such. This will affect the creation of libtool libraries that
15322 *** depend on shared libraries, but programs linked with such libtool
15323 *** libraries will work regardless of this problem. Nevertheless, you
15324 *** may want to report the problem to your system manager and/or to
15325 *** bug-libtool@gnu.org
15335 MAGIC_CMD="$lt_save_MAGIC_CMD"
15340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15341 if test -n "$MAGIC_CMD"; then
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15343 $as_echo "$MAGIC_CMD" >&6; }
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15346 $as_echo "no
" >&6; }
15353 if test -z "$lt_cv_path_MAGIC_CMD"; then
15354 if test -n "$ac_tool_prefix"; then
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15356 $as_echo_n "checking
for file...
" >&6; }
15357 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15358 $as_echo_n "(cached
) " >&6
15362 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15365 lt_save_MAGIC_CMD="$MAGIC_CMD"
15366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15367 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15368 for ac_dir in $ac_dummy; do
15370 test -z "$ac_dir" && ac_dir=.
15371 if test -f $ac_dir/file; then
15372 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15373 if test -n "$file_magic_test_file"; then
15374 case $deplibs_check_method in
15376 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15379 $EGREP "$file_magic_regex" > /dev/null; then
15384 *** Warning: the command libtool uses to detect shared libraries,
15385 *** $file_magic_cmd, produces output that libtool cannot recognize.
15386 *** The result is that libtool may fail to recognize shared libraries
15387 *** as such. This will affect the creation of libtool libraries that
15388 *** depend on shared libraries, but programs linked with such libtool
15389 *** libraries will work regardless of this problem. Nevertheless, you
15390 *** may want to report the problem to your system manager and/or to
15391 *** bug-libtool@gnu.org
15401 MAGIC_CMD="$lt_save_MAGIC_CMD"
15406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15407 if test -n "$MAGIC_CMD"; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15409 $as_echo "$MAGIC_CMD" >&6; }
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15412 $as_echo "no
" >&6; }
15425 # Use C for the default configuration in the libtool script
15429 ac_cpp='$CPP $CPPFLAGS'
15430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15435 # Source file extension for C test sources.
15438 # Object file extension for compiled C test sources.
15442 # Code to be used in simple compile tests
15443 lt_simple_compile_test_code="int some_variable
= 0;"
15445 # Code to be used in simple link tests
15446 lt_simple_link_test_code='int main(){return(0);}'
15454 # If no C compiler was specified, use CC.
15457 # If no C compiler flags were specified, use CFLAGS.
15458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15460 # Allow CC to be a program name with arguments.
15463 # Save the default compiler, since it gets overwritten when the other
15464 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15465 compiler_DEFAULT=$CC
15467 # save warnings/boilerplate of simple test code
15468 ac_outfile=conftest.$ac_objext
15469 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15471 _lt_compiler_boilerplate=`cat conftest.err`
15474 ac_outfile=conftest.$ac_objext
15475 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15477 _lt_linker_boilerplate=`cat conftest.err`
15482 ## There is no encapsulation within the following macros, do not change
15483 ## the running order or otherwise move them around unless you know exactly
15484 ## what you are doing...
15485 if test -n "$compiler"; then
15487 lt_prog_compiler_no_builtin_flag=
15489 if test "$GCC" = yes; then
15490 case $cc_basename in
15492 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15494 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15498 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15499 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15500 $as_echo_n "(cached
) " >&6
15502 lt_cv_prog_compiler_rtti_exceptions=no
15503 ac_outfile=conftest.$ac_objext
15504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15505 lt_compiler_flag="-fno-rtti -fno-exceptions"
15506 # Insert the option either (1) after the last *FLAGS variable, or
15507 # (2) before a word containing "conftest.
", or (3) at the end.
15508 # Note that $ac_compile itself does not contain backslashes and begins
15509 # with a dollar sign (not a hyphen), so the echo should work correctly.
15510 # The option is referenced via a variable to avoid confusing sed.
15511 lt_compile=`echo "$ac_compile" | $SED \
15512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15514 -e 's:$: $lt_compiler_flag:'`
15515 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15516 (eval "$lt_compile" 2>conftest.err)
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15520 if (exit $ac_status) && test -s "$ac_outfile"; then
15521 # The compiler can only warn and ignore the option if not recognized
15522 # So say no if there are warnings other than the usual output.
15523 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15525 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15526 lt_cv_prog_compiler_rtti_exceptions=yes
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15533 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15535 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15536 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15548 lt_prog_compiler_wl=
15549 lt_prog_compiler_pic=
15550 lt_prog_compiler_static=
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15553 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15555 if test "$GCC" = yes; then
15556 lt_prog_compiler_wl='-Wl,'
15557 lt_prog_compiler_static='-static'
15561 # All AIX code is PIC.
15562 if test "$host_cpu" = ia64; then
15563 # AIX 5 now supports IA64 processor
15564 lt_prog_compiler_static='-Bstatic'
15566 lt_prog_compiler_pic='-fPIC'
15572 # see comment about AmigaOS4 .so support
15573 lt_prog_compiler_pic='-fPIC'
15576 # FIXME: we need at least 68020 code to build shared libraries, but
15577 # adding the `-m68020' flag to GCC prevents building anything better,
15579 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15584 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15585 # PIC is the default for these OSes.
15588 mingw* | cygwin* | pw32* | os2* | cegcc*)
15589 # This hack is so that the source file can tell whether it is being
15590 # built for inclusion in a dll (and should export symbols for example).
15591 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15592 # (--disable-auto-import) libraries
15593 lt_prog_compiler_pic='-DDLL_EXPORT'
15596 darwin* | rhapsody*)
15597 # PIC is the default on this platform
15598 # Common symbols not allowed in MH_DYLIB files
15599 lt_prog_compiler_pic='-fno-common'
15603 # PIC is the default for Haiku.
15604 # The "-static" flag exists, but is broken.
15605 lt_prog_compiler_static=
15609 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15610 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15611 # sets the default TLS model and affects inlining.
15617 lt_prog_compiler_pic='-fPIC'
15623 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15624 # Instead, we relocate shared libraries at runtime.
15628 # Just because we use GCC doesn't mean we suddenly get shared libraries
15629 # on systems that don't support them.
15630 lt_prog_compiler_can_build_shared=no
15635 # QNX uses GNU C++, but need to define -shared option too, otherwise
15636 # it will coredump.
15637 lt_prog_compiler_pic='-fPIC -shared'
15641 if test -d /usr/nec; then
15642 lt_prog_compiler_pic=-Kconform_pic
15647 lt_prog_compiler_pic='-fPIC'
15651 case $cc_basename in
15652 nvcc*) # Cuda Compiler Driver 2.2
15653 lt_prog_compiler_wl='-Xlinker '
15654 lt_prog_compiler_pic='-Xcompiler -fPIC'
15658 # PORTME Check for flag to pass linker flags through the system compiler.
15661 lt_prog_compiler_wl='-Wl,'
15662 if test "$host_cpu" = ia64; then
15663 # AIX 5 now supports IA64 processor
15664 lt_prog_compiler_static='-Bstatic'
15666 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15670 mingw* | cygwin* | pw32* | os2* | cegcc*)
15671 # This hack is so that the source file can tell whether it is being
15672 # built for inclusion in a dll (and should export symbols for example).
15673 lt_prog_compiler_pic='-DDLL_EXPORT'
15676 hpux9* | hpux10* | hpux11*)
15677 lt_prog_compiler_wl='-Wl,'
15678 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15679 # not for PA HP-UX.
15685 lt_prog_compiler_pic='+Z'
15688 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15689 lt_prog_compiler_static='${wl}-a ${wl}archive'
15692 irix5* | irix6* | nonstopux*)
15693 lt_prog_compiler_wl='-Wl,'
15694 # PIC (with -KPIC) is the default.
15695 lt_prog_compiler_static='-non_shared'
15698 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15699 case $cc_basename in
15700 # old Intel for x86_64 which still supported -KPIC.
15702 lt_prog_compiler_wl='-Wl,'
15703 lt_prog_compiler_pic='-KPIC'
15704 lt_prog_compiler_static='-static'
15706 # icc used to be incompatible with GCC.
15707 # ICC 10 doesn't accept -KPIC any more.
15709 lt_prog_compiler_wl='-Wl,'
15710 lt_prog_compiler_pic='-fPIC'
15711 lt_prog_compiler_static='-static'
15713 # Lahey Fortran 8.1.
15715 lt_prog_compiler_wl='-Wl,'
15716 lt_prog_compiler_pic='--shared'
15717 lt_prog_compiler_static='--static'
15719 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15720 # Portland Group compilers (*not* the Pentium gcc compiler,
15721 # which looks to be a dead project)
15722 lt_prog_compiler_wl='-Wl,'
15723 lt_prog_compiler_pic='-fpic'
15724 lt_prog_compiler_static='-Bstatic'
15727 lt_prog_compiler_wl='-Wl,'
15728 # All Alpha code is PIC.
15729 lt_prog_compiler_static='-non_shared'
15731 xl* | bgxl* | bgf* | mpixl*)
15732 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15733 lt_prog_compiler_wl='-Wl,'
15734 lt_prog_compiler_pic='-qpic'
15735 lt_prog_compiler_static='-qstaticlink'
15738 case `$CC -V 2>&1 | sed 5q` in
15739 *Sun\ F* | *Sun*Fortran*)
15740 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15741 lt_prog_compiler_pic='-KPIC'
15742 lt_prog_compiler_static='-Bstatic'
15743 lt_prog_compiler_wl=''
15747 lt_prog_compiler_pic='-KPIC'
15748 lt_prog_compiler_static='-Bstatic'
15749 lt_prog_compiler_wl='-Wl,'
15757 lt_prog_compiler_pic='-KPIC'
15758 lt_prog_compiler_static='-Bstatic'
15762 # QNX uses GNU C++, but need to define -shared option too, otherwise
15763 # it will coredump.
15764 lt_prog_compiler_pic='-fPIC -shared'
15767 osf3* | osf4* | osf5*)
15768 lt_prog_compiler_wl='-Wl,'
15769 # All OSF/1 code is PIC.
15770 lt_prog_compiler_static='-non_shared'
15774 lt_prog_compiler_static='-non_shared'
15778 lt_prog_compiler_pic='-KPIC'
15779 lt_prog_compiler_static='-Bstatic'
15780 case $cc_basename in
15781 f77* | f90* | f95*)
15782 lt_prog_compiler_wl='-Qoption ld ';;
15784 lt_prog_compiler_wl='-Wl,';;
15789 lt_prog_compiler_wl='-Qoption ld '
15790 lt_prog_compiler_pic='-PIC'
15791 lt_prog_compiler_static='-Bstatic'
15794 sysv4 | sysv4.2uw2* | sysv4.3*)
15795 lt_prog_compiler_wl='-Wl,'
15796 lt_prog_compiler_pic='-KPIC'
15797 lt_prog_compiler_static='-Bstatic'
15801 if test -d /usr/nec ;then
15802 lt_prog_compiler_pic='-Kconform_pic'
15803 lt_prog_compiler_static='-Bstatic'
15807 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15808 lt_prog_compiler_wl='-Wl,'
15809 lt_prog_compiler_pic='-KPIC'
15810 lt_prog_compiler_static='-Bstatic'
15814 lt_prog_compiler_wl='-Wl,'
15815 lt_prog_compiler_can_build_shared=no
15819 lt_prog_compiler_pic='-pic'
15820 lt_prog_compiler_static='-Bstatic'
15824 lt_prog_compiler_can_build_shared=no
15830 # For platforms which do not support PIC, -DPIC is meaningless:
15832 lt_prog_compiler_pic=
15835 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15839 $as_echo "$lt_prog_compiler_pic" >&6; }
15847 # Check to make sure the PIC flag actually works.
15849 if test -n "$lt_prog_compiler_pic"; then
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15851 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15852 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15853 $as_echo_n "(cached
) " >&6
15855 lt_cv_prog_compiler_pic_works=no
15856 ac_outfile=conftest.$ac_objext
15857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15858 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15859 # Insert the option either (1) after the last *FLAGS variable, or
15860 # (2) before a word containing "conftest.
", or (3) at the end.
15861 # Note that $ac_compile itself does not contain backslashes and begins
15862 # with a dollar sign (not a hyphen), so the echo should work correctly.
15863 # The option is referenced via a variable to avoid confusing sed.
15864 lt_compile=`echo "$ac_compile" | $SED \
15865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15867 -e 's:$: $lt_compiler_flag:'`
15868 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15869 (eval "$lt_compile" 2>conftest.err)
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15873 if (exit $ac_status) && test -s "$ac_outfile"; then
15874 # The compiler can only warn and ignore the option if not recognized
15875 # So say no if there are warnings other than the usual output.
15876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15878 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15879 lt_cv_prog_compiler_pic_works=yes
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15886 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15888 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15889 case $lt_prog_compiler_pic in
15891 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15894 lt_prog_compiler_pic=
15895 lt_prog_compiler_can_build_shared=no
15906 # Check to make sure the static flag actually works.
15908 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15910 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15911 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15912 $as_echo_n "(cached
) " >&6
15914 lt_cv_prog_compiler_static_works=no
15915 save_LDFLAGS="$LDFLAGS"
15916 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15917 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15918 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15919 # The linker can only warn and ignore the option if not recognized
15920 # So say no if there are warnings
15921 if test -s conftest.err; then
15922 # Append any errors to the config.log.
15923 cat conftest.err 1>&5
15924 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15926 if diff conftest.exp conftest.er2 >/dev/null; then
15927 lt_cv_prog_compiler_static_works=yes
15930 lt_cv_prog_compiler_static_works=yes
15934 LDFLAGS="$save_LDFLAGS"
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15938 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15940 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15943 lt_prog_compiler_static=
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15953 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15954 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15955 $as_echo_n "(cached
) " >&6
15957 lt_cv_prog_compiler_c_o=no
15958 $RM -r conftest 2>/dev/null
15962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15964 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15965 # Insert the option either (1) after the last *FLAGS variable, or
15966 # (2) before a word containing "conftest.
", or (3) at the end.
15967 # Note that $ac_compile itself does not contain backslashes and begins
15968 # with a dollar sign (not a hyphen), so the echo should work correctly.
15969 lt_compile=`echo "$ac_compile" | $SED \
15970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15972 -e 's:$: $lt_compiler_flag:'`
15973 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15974 (eval "$lt_compile" 2>out/conftest.err)
15976 cat out/conftest.err >&5
15977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15978 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15980 # The compiler can only warn and ignore the option if not recognized
15981 # So say no if there are warnings
15982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15983 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15984 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15985 lt_cv_prog_compiler_c_o=yes
15990 # SGI C++ compiler will create directory out/ii_files/ for
15991 # template instantiation
15992 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15993 $RM out/* && rmdir out
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16000 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16008 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16009 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
16010 $as_echo_n "(cached
) " >&6
16012 lt_cv_prog_compiler_c_o=no
16013 $RM -r conftest 2>/dev/null
16017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16019 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16020 # Insert the option either (1) after the last *FLAGS variable, or
16021 # (2) before a word containing "conftest.
", or (3) at the end.
16022 # Note that $ac_compile itself does not contain backslashes and begins
16023 # with a dollar sign (not a hyphen), so the echo should work correctly.
16024 lt_compile=`echo "$ac_compile" | $SED \
16025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16027 -e 's:$: $lt_compiler_flag:'`
16028 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16029 (eval "$lt_compile" 2>out/conftest.err)
16031 cat out/conftest.err >&5
16032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16033 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16035 # The compiler can only warn and ignore the option if not recognized
16036 # So say no if there are warnings
16037 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16038 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16039 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16040 lt_cv_prog_compiler_c_o=yes
16045 # SGI C++ compiler will create directory out/ii_files/ for
16046 # template instantiation
16047 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16048 $RM out/* && rmdir out
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16055 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16060 hard_links="nottested
"
16061 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16062 # do not overwrite the value of need_locks provided by the user
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16064 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16067 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16069 ln conftest.a conftest.b 2>&5 || hard_links=no
16070 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16072 $as_echo "$hard_links" >&6; }
16073 if test "$hard_links" = no; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16075 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16088 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16091 allow_undefined_flag=
16092 always_export_symbols=no
16094 archive_expsym_cmds=
16095 compiler_needs_object=no
16096 enable_shared_with_static_runtimes=no
16097 export_dynamic_flag_spec=
16098 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16099 hardcode_automatic=no
16101 hardcode_direct_absolute=no
16102 hardcode_libdir_flag_spec=
16103 hardcode_libdir_flag_spec_ld=
16104 hardcode_libdir_separator=
16105 hardcode_minus_L=no
16106 hardcode_shlibpath_var=unsupported
16108 link_all_deplibs=unknown
16110 module_expsym_cmds=
16111 old_archive_from_new_cmds=
16112 old_archive_from_expsyms_cmds=
16113 thread_safe_flag_spec=
16114 whole_archive_flag_spec=
16115 # include_expsyms should be a list of space-separated symbols to be *always*
16116 # included in the symbol list
16118 # exclude_expsyms can be an extended regexp of symbols to exclude
16119 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16120 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16121 # as well as any symbol that contains `d'.
16122 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16123 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16124 # platforms (ab)use it in PIC code, but their linkers get confused if
16125 # the symbol is explicitly referenced. Since portable code cannot
16126 # rely on this symbol name, it's probably fine to never include it in
16127 # preloaded symbol tables.
16128 # Exclude shared library initialization/finalization symbols.
16129 extract_expsyms_cmds=
16132 cygwin* | mingw* | pw32* | cegcc*)
16133 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16134 # When not using gcc, we currently assume that we are using
16135 # Microsoft Visual C++.
16136 if test "$GCC" != yes; then
16141 # we just hope/assume this is gcc and not c89 (= MSVC++)
16151 # On some targets, GNU ld is compatible enough with the native linker
16152 # that we're better off using the native interface for both.
16153 lt_use_gnu_ld_interface=no
16154 if test "$with_gnu_ld" = yes; then
16157 # The AIX port of GNU ld has always aspired to compatibility
16158 # with the native linker. However, as the warning in the GNU ld
16159 # block says, versions before 2.19.5* couldn't really create working
16160 # shared libraries, regardless of the interface used.
16161 case `$LD -v 2>&1` in
16162 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16163 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16164 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16166 lt_use_gnu_ld_interface=yes
16171 lt_use_gnu_ld_interface=yes
16176 if test "$lt_use_gnu_ld_interface" = yes; then
16177 # If archive_cmds runs LD, not CC, wlarc should be empty
16180 # Set some defaults for GNU ld with shared library support. These
16181 # are reset later if shared libraries are not supported. Putting them
16182 # here allows them to be overridden if necessary.
16183 runpath_var=LD_RUN_PATH
16184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16185 export_dynamic_flag_spec='${wl}--export-dynamic'
16186 # ancient GNU ld didn't support --whole-archive et. al.
16187 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16188 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16190 whole_archive_flag_spec=
16192 supports_anon_versioning=no
16193 case `$LD -v 2>&1` in
16194 *GNU\ gold*) supports_anon_versioning=yes ;;
16195 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16196 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16197 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16198 *\ 2.11.*) ;; # other 2.11 versions
16199 *) supports_anon_versioning=yes ;;
16202 # See if GNU ld supports shared libraries.
16205 # On AIX/PPC, the GNU linker is very broken
16206 if test "$host_cpu" != ia64; then
16210 *** Warning: the GNU linker, at least up to release 2.19, is reported
16211 *** to be unable to reliably create shared libraries on AIX.
16212 *** Therefore, libtool is disabling shared libraries support. If you
16213 *** really care for shared libraries, you may want to install binutils
16214 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16215 *** You will then need to restart the configuration process.
16224 # see comment about AmigaOS4 .so support
16225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16226 archive_expsym_cmds=''
16229 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)'
16230 hardcode_libdir_flag_spec
='-L$libdir'
16231 hardcode_minus_L
=yes
16237 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16238 allow_undefined_flag
=unsupported
16239 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16240 # support --undefined. This deserves some investigation. FIXME
16241 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16247 cygwin
* | mingw
* | pw32
* | cegcc
*)
16248 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16249 # as there is no search path for DLLs.
16250 hardcode_libdir_flag_spec
='-L$libdir'
16251 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16252 allow_undefined_flag
=unsupported
16253 always_export_symbols
=no
16254 enable_shared_with_static_runtimes
=yes
16255 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16257 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16258 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16259 # If the export-symbols file already is a .def file (1st line
16260 # is EXPORTS), use it as is; otherwise, prepend...
16261 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16262 cp $export_symbols $output_objdir/$soname.def;
16264 echo EXPORTS > $output_objdir/$soname.def;
16265 cat $export_symbols >> $output_objdir/$soname.def;
16267 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16274 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16275 link_all_deplibs
=yes
16280 hardcode_shlibpath_var
=no
16281 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16282 export_dynamic_flag_spec
='${wl}-E'
16283 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16284 # Instead, shared libraries are loaded at an image base (0x10000000 by
16285 # default) and relocated if they conflict, which is a slow very memory
16286 # consuming and fragmenting process. To avoid this, we pick a random,
16287 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16288 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16289 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16290 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'
16293 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16295 if test "$host_os" = linux-dietlibc
; then
16296 case $cc_basename in
16297 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16300 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16301 && test "$tmp_diet" = no
16303 tmp_addflag
=' $pic_flag'
16304 tmp_sharedflag
='-shared'
16305 case $cc_basename,$host_cpu in
16306 pgcc
*) # Portland Group C compiler
16307 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'
16308 tmp_addflag
=' $pic_flag'
16310 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16311 # Portland Group f77 and f90 compilers
16312 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'
16313 tmp_addflag
=' $pic_flag -Mnomain' ;;
16314 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16315 tmp_addflag
=' -i_dynamic' ;;
16316 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16317 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16318 ifc
* | ifort
*) # Intel Fortran compiler
16319 tmp_addflag
=' -nofor_main' ;;
16320 lf95
*) # Lahey Fortran 8.1
16321 whole_archive_flag_spec
=
16322 tmp_sharedflag
='--shared' ;;
16323 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16324 tmp_sharedflag
='-qmkshrobj'
16326 nvcc
*) # Cuda Compiler Driver 2.2
16327 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'
16328 compiler_needs_object
=yes
16331 case `$CC -V 2>&1 | sed 5q` in
16332 *Sun\ C
*) # Sun C 5.9
16333 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'
16334 compiler_needs_object
=yes
16335 tmp_sharedflag
='-G' ;;
16336 *Sun\ F
*) # Sun Fortran 8.3
16337 tmp_sharedflag
='-G' ;;
16339 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16341 if test "x$supports_anon_versioning" = xyes
; then
16342 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16344 echo "local: *; };" >> $output_objdir/$libname.ver~
16345 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16348 case $cc_basename in
16349 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16350 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16351 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16352 hardcode_libdir_flag_spec
=
16353 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16354 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16355 if test "x$supports_anon_versioning" = xyes
; then
16356 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16357 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16358 echo "local: *; };" >> $output_objdir/$libname.ver~
16359 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16369 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16370 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16373 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16374 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16379 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16383 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16384 *** create shared libraries on Solaris systems. Therefore, libtool
16385 *** is disabling shared libraries support. We urge you to upgrade GNU
16386 *** binutils to release 2.9.1 or newer. Another option is to modify
16387 *** your PATH or compiler configuration so that the native linker is
16388 *** used, and then restart.
16391 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16392 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16393 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16399 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16400 case `$LD -v 2>&1` in
16401 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16405 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16406 *** reliably create shared libraries on SCO systems. Therefore, libtool
16407 *** is disabling shared libraries support. We urge you to upgrade GNU
16408 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16409 *** your PATH or compiler configuration so that the native linker is
16410 *** used, and then restart.
16415 # For security reasons, it is highly recommended that you always
16416 # use absolute paths for naming shared libraries, and exclude the
16417 # DT_RUNPATH tag from executables and libraries. But doing so
16418 # requires that you compile everything twice, which is a pain.
16419 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16420 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16421 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16422 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16431 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16433 hardcode_direct
=yes
16434 hardcode_shlibpath_var
=no
16438 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16439 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16440 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16447 if test "$ld_shlibs" = no
; then
16449 hardcode_libdir_flag_spec
=
16450 export_dynamic_flag_spec
=
16451 whole_archive_flag_spec
=
16454 # PORTME fill in a description of your system's linker (not GNU ld)
16457 allow_undefined_flag
=unsupported
16458 always_export_symbols
=yes
16459 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'
16460 # Note: this linker hardcodes the directories in LIBPATH if there
16461 # are no directories specified by -L.
16462 hardcode_minus_L
=yes
16463 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16464 # Neither direct hardcoding nor static linking is supported with a
16466 hardcode_direct
=unsupported
16471 if test "$host_cpu" = ia64
; then
16472 # On IA64, the linker does run time linking by default, so we don't
16473 # have to do anything special.
16474 aix_use_runtimelinking
=no
16475 exp_sym_flag
='-Bexport'
16478 # If we're using GNU nm, then we don't want the "-C" option.
16479 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16480 # Also, AIX nm treats weak defined symbols like other global
16481 # defined symbols, whereas GNU nm marks them as "W".
16482 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16483 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'
16485 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'
16487 aix_use_runtimelinking
=no
16489 # Test if we are trying to use run time linking or normal
16490 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16491 # need to do runtime linking.
16492 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16493 for ld_flag
in $LDFLAGS; do
16494 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16495 aix_use_runtimelinking
=yes
16502 exp_sym_flag
='-bexport'
16503 no_entry_flag
='-bnoentry'
16506 # When large executables or shared objects are built, AIX ld can
16507 # have problems creating the table of contents. If linking a library
16508 # or program results in "error TOC overflow" add -mminimal-toc to
16509 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16510 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16513 hardcode_direct
=yes
16514 hardcode_direct_absolute
=yes
16515 hardcode_libdir_separator
=':'
16516 link_all_deplibs
=yes
16517 file_list_spec
='${wl}-f,'
16519 if test "$GCC" = yes; then
16520 case $host_os in aix4.
[012]|aix4.
[012].
*)
16521 # We only want to do this on AIX 4.2 and lower, the check
16522 # below for broken collect2 doesn't work under 4.3+
16523 collect2name
=`${CC} -print-prog-name=collect2`
16524 if test -f "$collect2name" &&
16525 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16527 # We have reworked collect2
16530 # We have old collect2
16531 hardcode_direct
=unsupported
16532 # It fails to find uninstalled libraries when the uninstalled
16533 # path is not listed in the libpath. Setting hardcode_minus_L
16534 # to unsupported forces relinking
16535 hardcode_minus_L
=yes
16536 hardcode_libdir_flag_spec
='-L$libdir'
16537 hardcode_libdir_separator
=
16541 shared_flag
='-shared'
16542 if test "$aix_use_runtimelinking" = yes; then
16543 shared_flag
="$shared_flag "'${wl}-G'
16547 if test "$host_cpu" = ia64
; then
16548 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16549 # chokes on -Wl,-G. The following line is correct:
16552 if test "$aix_use_runtimelinking" = yes; then
16553 shared_flag
='${wl}-G'
16555 shared_flag
='${wl}-bM:SRE'
16560 export_dynamic_flag_spec
='${wl}-bexpall'
16561 # It seems that -bexpall does not export symbols beginning with
16562 # underscore (_), so it is better to generate a list of symbols to export.
16563 always_export_symbols
=yes
16564 if test "$aix_use_runtimelinking" = yes; then
16565 # Warning - without using the other runtime loading flags (-brtl),
16566 # -berok will link without error, but may produce a broken library.
16567 allow_undefined_flag
='-berok'
16568 # Determine the default libpath from the value encoded in an
16569 # empty executable.
16570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h. */
16581 if ac_fn_c_try_link
"$LINENO"; then :
16583 lt_aix_libpath_sed
='
16584 /Import File Strings/,/^$/ {
16590 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16591 # Check for a 64-bit object if we didn't find anything.
16592 if test -z "$aix_libpath"; then
16593 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16596 rm -f core conftest.err conftest.
$ac_objext \
16597 conftest
$ac_exeext conftest.
$ac_ext
16598 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16600 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16601 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"
16603 if test "$host_cpu" = ia64
; then
16604 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16605 allow_undefined_flag
="-z nodefs"
16606 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"
16608 # Determine the default libpath from the value encoded in an
16609 # empty executable.
16610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16621 if ac_fn_c_try_link
"$LINENO"; then :
16623 lt_aix_libpath_sed
='
16624 /Import File Strings/,/^$/ {
16630 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16631 # Check for a 64-bit object if we didn't find anything.
16632 if test -z "$aix_libpath"; then
16633 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16636 rm -f core conftest.err conftest.
$ac_objext \
16637 conftest
$ac_exeext conftest.
$ac_ext
16638 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16640 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16641 # Warning - without using the other run time loading flags,
16642 # -berok will link without error, but may produce a broken library.
16643 no_undefined_flag
=' ${wl}-bernotok'
16644 allow_undefined_flag
=' ${wl}-berok'
16645 if test "$with_gnu_ld" = yes; then
16646 # We only use this code for GNU lds that support --whole-archive.
16647 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16649 # Exported symbols can be pulled into shared objects from archives
16650 whole_archive_flag_spec
='$convenience'
16652 archive_cmds_need_lc
=yes
16653 # This is similar to how AIX traditionally builds its shared libraries.
16654 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'
16662 # see comment about AmigaOS4 .so support
16663 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16664 archive_expsym_cmds
=''
16667 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)'
16668 hardcode_libdir_flag_spec
='-L$libdir'
16669 hardcode_minus_L
=yes
16675 export_dynamic_flag_spec
=-rdynamic
16678 cygwin
* | mingw
* | pw32
* | cegcc
*)
16679 # When not using gcc, we currently assume that we are using
16680 # Microsoft Visual C++.
16681 # hardcode_libdir_flag_spec is actually meaningless, as there is
16682 # no search path for DLLs.
16683 hardcode_libdir_flag_spec
=' '
16684 allow_undefined_flag
=unsupported
16685 # Tell ltmain to make .lib files, not .a files.
16687 # Tell ltmain to make .dll files, not .so files.
16689 # FIXME: Setting linknames here is a bad hack.
16690 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16691 # The linker will automatically build a .lib file if we build a DLL.
16692 old_archive_from_new_cmds
='true'
16693 # FIXME: Should let the user specify the lib program.
16694 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16695 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16696 enable_shared_with_static_runtimes
=yes
16699 darwin
* | rhapsody
*)
16702 archive_cmds_need_lc
=no
16704 hardcode_automatic
=yes
16705 hardcode_shlibpath_var
=unsupported
16706 if test "$lt_cv_ld_force_load" = "yes"; then
16707 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\"`'
16709 whole_archive_flag_spec
=''
16711 link_all_deplibs
=yes
16712 allow_undefined_flag
="$_lt_dar_allow_undefined"
16713 case $cc_basename in
16714 ifort
*) _lt_dar_can_shared
=yes ;;
16715 *) _lt_dar_can_shared
=$GCC ;;
16717 if test "$_lt_dar_can_shared" = "yes"; then
16718 output_verbose_link_cmd
=func_echo_all
16719 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16720 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16721 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}"
16722 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}"
16731 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16732 hardcode_libdir_flag_spec
='-L$libdir'
16733 hardcode_shlibpath_var
=no
16736 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16737 # support. Future versions do this automatically, but an explicit c++rt0.o
16738 # does not break anything, and helps significantly (at the cost of a little
16741 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16742 hardcode_libdir_flag_spec
='-R$libdir'
16743 hardcode_direct
=yes
16744 hardcode_shlibpath_var
=no
16747 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16749 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16750 hardcode_direct
=yes
16751 hardcode_minus_L
=yes
16752 hardcode_shlibpath_var
=no
16755 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16756 freebsd
* | dragonfly
*)
16757 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16758 hardcode_libdir_flag_spec
='-R$libdir'
16759 hardcode_direct
=yes
16760 hardcode_shlibpath_var
=no
16764 if test "$GCC" = yes; then
16765 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'
16767 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'
16769 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16770 hardcode_libdir_separator
=:
16771 hardcode_direct
=yes
16773 # hardcode_minus_L: Not really in the search PATH,
16774 # but as the default location of the library.
16775 hardcode_minus_L
=yes
16776 export_dynamic_flag_spec
='${wl}-E'
16780 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16781 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16783 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16785 if test "$with_gnu_ld" = no
; then
16786 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16787 hardcode_libdir_flag_spec_ld
='+b $libdir'
16788 hardcode_libdir_separator
=:
16789 hardcode_direct
=yes
16790 hardcode_direct_absolute
=yes
16791 export_dynamic_flag_spec
='${wl}-E'
16792 # hardcode_minus_L: Not really in the search PATH,
16793 # but as the default location of the library.
16794 hardcode_minus_L
=yes
16799 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16802 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16805 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16808 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16814 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16817 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16821 # Older versions of the 11.00 compiler do not understand -b yet
16822 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16824 $as_echo_n "checking if $CC understands -b... " >&6; }
16825 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16826 $as_echo_n "(cached) " >&6
16828 lt_cv_prog_compiler__b
=no
16829 save_LDFLAGS
="$LDFLAGS"
16830 LDFLAGS
="$LDFLAGS -b"
16831 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16832 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16833 # The linker can only warn and ignore the option if not recognized
16834 # So say no if there are warnings
16835 if test -s conftest.err
; then
16836 # Append any errors to the config.log.
16837 cat conftest.err
1>&5
16838 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16839 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16840 if diff conftest.exp conftest.er2
>/dev
/null
; then
16841 lt_cv_prog_compiler__b
=yes
16844 lt_cv_prog_compiler__b
=yes
16848 LDFLAGS
="$save_LDFLAGS"
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16852 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16854 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16855 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16857 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16863 if test "$with_gnu_ld" = no
; then
16864 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16865 hardcode_libdir_separator
=:
16870 hardcode_shlibpath_var
=no
16873 hardcode_direct
=yes
16874 hardcode_direct_absolute
=yes
16875 export_dynamic_flag_spec
='${wl}-E'
16877 # hardcode_minus_L: Not really in the search PATH,
16878 # but as the default location of the library.
16879 hardcode_minus_L
=yes
16885 irix5
* | irix6
* | nonstopux
*)
16886 if test "$GCC" = yes; then
16887 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'
16888 # Try to use the -exported_symbol ld option, if it does not
16889 # work, assume that -exports_file does not work either and
16890 # implicitly export all symbols.
16891 save_LDFLAGS
="$LDFLAGS"
16892 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16894 /* end confdefs.h. */
16897 if ac_fn_c_try_link
"$LINENO"; then :
16898 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'
16901 rm -f core conftest.err conftest.
$ac_objext \
16902 conftest
$ac_exeext conftest.
$ac_ext
16903 LDFLAGS
="$save_LDFLAGS"
16905 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'
16906 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'
16908 archive_cmds_need_lc
='no'
16909 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16910 hardcode_libdir_separator
=:
16912 link_all_deplibs
=yes
16916 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16917 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16919 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16921 hardcode_libdir_flag_spec
='-R$libdir'
16922 hardcode_direct
=yes
16923 hardcode_shlibpath_var
=no
16927 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16928 hardcode_direct
=yes
16929 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16930 hardcode_libdir_separator
=:
16931 hardcode_shlibpath_var
=no
16938 if test -f /usr
/libexec
/ld.so
; then
16939 hardcode_direct
=yes
16940 hardcode_shlibpath_var
=no
16941 hardcode_direct_absolute
=yes
16942 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16943 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16945 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16946 export_dynamic_flag_spec
='${wl}-E'
16949 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16950 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16951 hardcode_libdir_flag_spec
='-R$libdir'
16954 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16955 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16965 hardcode_libdir_flag_spec
='-L$libdir'
16966 hardcode_minus_L
=yes
16967 allow_undefined_flag
=unsupported
16968 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'
16969 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16973 if test "$GCC" = yes; then
16974 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16975 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'
16977 allow_undefined_flag
=' -expect_unresolved \*'
16978 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'
16980 archive_cmds_need_lc
='no'
16981 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16982 hardcode_libdir_separator
=:
16985 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16986 if test "$GCC" = yes; then
16987 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16988 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'
16989 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16991 allow_undefined_flag
=' -expect_unresolved \*'
16992 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'
16993 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~
16994 $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'
16996 # Both c and cxx compiler support -rpath directly
16997 hardcode_libdir_flag_spec
='-rpath $libdir'
16999 archive_cmds_need_lc
='no'
17000 hardcode_libdir_separator
=:
17004 no_undefined_flag
=' -z defs'
17005 if test "$GCC" = yes; then
17007 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17008 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17009 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17011 case `$CC -V 2>&1` in
17014 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17016 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17020 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17021 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17022 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17026 hardcode_libdir_flag_spec
='-R$libdir'
17027 hardcode_shlibpath_var
=no
17029 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17031 # The compiler driver will combine and reorder linker options,
17032 # but understands `-z linker_flag'. GCC discards it without `$wl',
17033 # but is careful enough not to reorder.
17034 # Supported since Solaris 2.6 (maybe 2.5.1?)
17035 if test "$GCC" = yes; then
17036 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17038 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17042 link_all_deplibs
=yes
17046 if test "x$host_vendor" = xsequent
; then
17047 # Use $CC to link under sequent, because it throws in some extra .o
17048 # files that make .init and .fini sections work.
17049 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17051 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17053 hardcode_libdir_flag_spec
='-L$libdir'
17054 hardcode_direct
=yes
17055 hardcode_minus_L
=yes
17056 hardcode_shlibpath_var
=no
17060 case $host_vendor in
17062 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17063 hardcode_direct
=yes # is this really true???
17066 ## LD is ld it makes a PLAMLIB
17067 ## CC just makes a GrossModule.
17068 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17069 reload_cmds
='$CC -r -o $output$reload_objs'
17073 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17074 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17077 runpath_var
='LD_RUN_PATH'
17078 hardcode_shlibpath_var
=no
17082 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17083 hardcode_shlibpath_var
=no
17084 export_dynamic_flag_spec
='-Bexport'
17088 if test -d /usr
/nec
; then
17089 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17090 hardcode_shlibpath_var
=no
17091 runpath_var
=LD_RUN_PATH
17092 hardcode_runpath_var
=yes
17097 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17098 no_undefined_flag
='${wl}-z,text'
17099 archive_cmds_need_lc
=no
17100 hardcode_shlibpath_var
=no
17101 runpath_var
='LD_RUN_PATH'
17103 if test "$GCC" = yes; then
17104 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17105 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17107 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17108 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17112 sysv5
* | sco3.2v5
* | sco5v6
*)
17113 # Note: We can NOT use -z defs as we might desire, because we do not
17114 # link with -lc, and that would cause any symbols used from libc to
17115 # always be unresolved, which means just about no library would
17116 # ever link correctly. If we're not using GNU ld we use -z text
17117 # though, which does catch some bad symbols but isn't as heavy-handed
17119 no_undefined_flag
='${wl}-z,text'
17120 allow_undefined_flag
='${wl}-z,nodefs'
17121 archive_cmds_need_lc
=no
17122 hardcode_shlibpath_var
=no
17123 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17124 hardcode_libdir_separator
=':'
17125 link_all_deplibs
=yes
17126 export_dynamic_flag_spec
='${wl}-Bexport'
17127 runpath_var
='LD_RUN_PATH'
17129 if test "$GCC" = yes; then
17130 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17131 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17133 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17134 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17139 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17140 hardcode_libdir_flag_spec
='-L$libdir'
17141 hardcode_shlibpath_var
=no
17149 if test x
$host_vendor = xsni
; then
17151 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17152 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17159 $as_echo "$ld_shlibs" >&6; }
17160 test "$ld_shlibs" = no
&& can_build_shared
=no
17162 with_gnu_ld
=$with_gnu_ld
17179 # Do we need to explicitly link libc?
17181 case "x$archive_cmds_need_lc" in
17183 # Assume -lc should be added
17184 archive_cmds_need_lc
=yes
17186 if test "$enable_shared" = yes && test "$GCC" = yes; then
17187 case $archive_cmds in
17189 # FIXME: we may have to deal with multi-command sequences.
17192 # Test whether the compiler implicitly links with -lc since on some
17193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17194 # to ld, don't add -lc before -lgcc.
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17196 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17197 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17198 $as_echo_n "(cached) " >&6
17201 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17204 (eval $ac_compile) 2>&5
17206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17207 test $ac_status = 0; } 2>conftest.err
; then
17210 libobjs
=conftest.
$ac_objext
17212 wl
=$lt_prog_compiler_wl
17213 pic_flag
=$lt_prog_compiler_pic
17219 lt_save_allow_undefined_flag
=$allow_undefined_flag
17220 allow_undefined_flag
=
17221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17222 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17225 test $ac_status = 0; }
17227 lt_cv_archive_cmds_need_lc
=no
17229 lt_cv_archive_cmds_need_lc
=yes
17231 allow_undefined_flag
=$lt_save_allow_undefined_flag
17233 cat conftest.err
1>&5
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17239 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17240 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17404 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17406 if test "$GCC" = yes; then
17408 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17409 *) lt_awk_arg
="/^libraries:/" ;;
17412 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17413 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17415 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17416 case $lt_search_path_spec in
17418 # if the path contains ";" then we assume it to be the separator
17419 # otherwise default to the standard path separator (i.e. ":") - it is
17420 # assumed that no part of a normal pathname contains ";" but that should
17421 # okay in the real world where ";" in dirpaths is itself problematic.
17422 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17425 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17428 # Ok, now we have the path, separated by spaces, we can step through it
17429 # and add multilib dir if necessary.
17430 lt_tmp_lt_search_path_spec
=
17431 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17432 for lt_sys_path
in $lt_search_path_spec; do
17433 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17434 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17436 test -d "$lt_sys_path" && \
17437 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17440 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17441 BEGIN {RS=" "; FS="/|\n";} {
17444 for (lt_i = NF; lt_i > 0; lt_i--) {
17445 if ($lt_i != "" && $lt_i != ".") {
17446 if ($lt_i == "..") {
17449 if (lt_count == 0) {
17450 lt_foo="/" $lt_i lt_foo;
17457 if (lt_foo != "") { lt_freq[lt_foo]++; }
17458 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17460 # AWK program above erroneously prepends '/' to C:/dos/paths
17463 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17464 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17466 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17468 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17470 library_names_spec
=
17471 libname_spec
='lib$name'
17475 postuninstall_cmds
=
17479 shlibpath_overrides_runpath
=unknown
17481 dynamic_linker
="$host_os ld.so"
17482 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17483 need_lib_prefix
=unknown
17484 hardcode_into_libs
=no
17486 # when you set need_version to no, make sure it does not cause -set_version
17487 # flags to be left without arguments
17488 need_version
=unknown
17493 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17494 shlibpath_var
=LIBPATH
17496 # AIX 3 has no versioning support, so we append a major version to the name.
17497 soname_spec
='${libname}${release}${shared_ext}$major'
17504 hardcode_into_libs
=yes
17505 if test "$host_cpu" = ia64
; then
17506 # AIX 5 supports IA64
17507 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17508 shlibpath_var
=LD_LIBRARY_PATH
17510 # With GCC up to 2.95.x, collect2 would create an import file
17511 # for dependence libraries. The import file would start with
17512 # the line `#! .'. This would cause the generated library to
17513 # depend on `.', always an invalid library. This was fixed in
17514 # development snapshots of GCC prior to 3.0.
17516 aix4 | aix4.
[01] | aix4.
[01].
*)
17517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17519 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17522 can_build_shared
=no
17526 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17527 # soname into executable. Probably we can add versioning support to
17528 # collect2, so additional links can be useful in future.
17529 if test "$aix_use_runtimelinking" = yes; then
17530 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17531 # instead of lib<name>.a to let people know that these are not
17532 # typical AIX shared libraries.
17533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535 # We preserve .a as extension for shared libraries through AIX4.2
17536 # and later when we are not doing run time linking.
17537 library_names_spec
='${libname}${release}.a $libname.a'
17538 soname_spec
='${libname}${release}${shared_ext}$major'
17540 shlibpath_var
=LIBPATH
17547 # Since July 2007 AmigaOS4 officially supports .so libraries.
17548 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17549 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 library_names_spec
='$libname.ixlibrary $libname.a'
17553 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17554 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'
17560 library_names_spec
='${libname}${shared_ext}'
17561 dynamic_linker
="$host_os ld.so"
17562 shlibpath_var
=LIBRARY_PATH
17568 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569 soname_spec
='${libname}${release}${shared_ext}$major'
17570 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17571 shlibpath_var
=LD_LIBRARY_PATH
17572 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17573 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17574 # the default ld.so.conf also contains /usr/contrib/lib and
17575 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17576 # libtool to hard-code these into programs
17579 cygwin
* | mingw
* | pw32
* | cegcc
*)
17580 version_type
=windows
17585 case $GCC,$host_os in
17586 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17587 library_names_spec
='$libname.dll.a'
17588 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17589 postinstall_cmds
='base_file=`basename \${file}`~
17590 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17591 dldir=$destdir/`dirname \$dlpath`~
17592 test -d \$dldir || mkdir -p \$dldir~
17593 $install_prog $dir/$dlname \$dldir/$dlname~
17594 chmod a+x \$dldir/$dlname~
17595 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17596 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17598 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17599 dlpath=$dir/\$dldll~
17601 shlibpath_overrides_runpath
=yes
17605 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17606 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17608 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17611 # MinGW DLLs use traditional 'lib' prefix
17612 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17615 # pw32 DLLs use 'pw' prefix rather than 'lib'
17616 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17622 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17625 dynamic_linker
='Win32 ld.exe'
17626 # FIXME: first we should search . and the directory the executable is in
17630 darwin
* | rhapsody
*)
17631 dynamic_linker
="$host_os dyld"
17632 version_type
=darwin
17635 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17636 soname_spec
='${libname}${release}${major}$shared_ext'
17637 shlibpath_overrides_runpath
=yes
17638 shlibpath_var
=DYLD_LIBRARY_PATH
17639 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17641 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17642 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17650 soname_spec
='${libname}${release}${shared_ext}$major'
17651 shlibpath_var
=LD_LIBRARY_PATH
17654 freebsd
* | dragonfly
*)
17655 # DragonFly does not have aout. When/if they implement a new
17656 # versioning mechanism, adjust this.
17657 if test -x /usr
/bin
/objformat
; then
17658 objformat
=`/usr/bin/objformat`
17661 freebsd
[23].
*) objformat
=aout
;;
17662 *) objformat
=elf
;;
17665 version_type
=freebsd-
$objformat
17666 case $version_type in
17668 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17673 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17677 shlibpath_var
=LD_LIBRARY_PATH
17680 shlibpath_overrides_runpath
=yes
17682 freebsd3.
[01]* | freebsdelf3.
[01]*)
17683 shlibpath_overrides_runpath
=yes
17684 hardcode_into_libs
=yes
17686 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17687 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17688 shlibpath_overrides_runpath
=no
17689 hardcode_into_libs
=yes
17691 *) # from 4.6 on, and DragonFly
17692 shlibpath_overrides_runpath
=yes
17693 hardcode_into_libs
=yes
17702 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17703 soname_spec
='${libname}${release}${shared_ext}$major'
17704 shlibpath_var
=LD_LIBRARY_PATH
17705 hardcode_into_libs
=yes
17712 dynamic_linker
="$host_os runtime_loader"
17713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17714 soname_spec
='${libname}${release}${shared_ext}$major'
17715 shlibpath_var
=LIBRARY_PATH
17716 shlibpath_overrides_runpath
=yes
17717 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17718 hardcode_into_libs
=yes
17721 hpux9
* | hpux10
* | hpux11
*)
17722 # Give a soname corresponding to the major version so that dld.sl refuses to
17723 # link against other versions.
17730 hardcode_into_libs
=yes
17731 dynamic_linker
="$host_os dld.so"
17732 shlibpath_var
=LD_LIBRARY_PATH
17733 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17734 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17735 soname_spec
='${libname}${release}${shared_ext}$major'
17736 if test "X$HPUX_IA64_MODE" = X32
; then
17737 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17739 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17741 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17745 hardcode_into_libs
=yes
17746 dynamic_linker
="$host_os dld.sl"
17747 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17748 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17749 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17750 soname_spec
='${libname}${release}${shared_ext}$major'
17751 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17752 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17756 dynamic_linker
="$host_os dld.sl"
17757 shlibpath_var
=SHLIB_PATH
17758 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17759 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17760 soname_spec
='${libname}${release}${shared_ext}$major'
17763 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17764 postinstall_cmds
='chmod 555 $lib'
17765 # or fails outright, so override atomically:
17766 install_override_mode
=555
17773 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17774 soname_spec
='${libname}${release}${shared_ext}$major'
17775 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17776 shlibpath_var
=LD_LIBRARY_PATH
17777 shlibpath_overrides_runpath
=no
17778 hardcode_into_libs
=yes
17781 irix5
* | irix6
* | nonstopux
*)
17783 nonstopux
*) version_type
=nonstopux
;;
17785 if test "$lt_cv_prog_gnu_ld" = yes; then
17793 soname_spec
='${libname}${release}${shared_ext}$major'
17794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17796 irix5
* | nonstopux
*)
17797 libsuff
= shlibsuff
=
17800 case $LD in # libtool.m4 will add one of these switches to LD
17801 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17802 libsuff
= shlibsuff
= libmagic
=32-bit;;
17803 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17804 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17805 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17806 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17807 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17811 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17812 shlibpath_overrides_runpath
=no
17813 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17814 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17815 hardcode_into_libs
=yes
17818 # No shared lib support for Linux oldld, aout, or coff.
17819 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17823 # This must be Linux ELF.
17824 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17829 soname_spec
='${libname}${release}${shared_ext}$major'
17830 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17831 shlibpath_var
=LD_LIBRARY_PATH
17832 shlibpath_overrides_runpath
=no
17834 # Some binutils ld are patched to set DT_RUNPATH
17835 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17836 $as_echo_n "(cached) " >&6
17838 lt_cv_shlibpath_overrides_runpath
=no
17839 save_LDFLAGS
=$LDFLAGS
17840 save_libdir
=$libdir
17841 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17842 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h. */
17854 if ac_fn_c_try_link
"$LINENO"; then :
17855 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17856 lt_cv_shlibpath_overrides_runpath
=yes
17859 rm -f core conftest.err conftest.
$ac_objext \
17860 conftest
$ac_exeext conftest.
$ac_ext
17861 LDFLAGS
=$save_LDFLAGS
17862 libdir
=$save_libdir
17866 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17868 # This implies no fast_install, which is unacceptable.
17869 # Some rework will be needed to allow for fast_install
17870 # before this can be enabled.
17871 hardcode_into_libs
=yes
17873 # Append ld.so.conf contents to the search path
17874 if test -f /etc
/ld.so.conf
; then
17875 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' ' '`
17876 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17879 # We used to test for /lib/ld.so.1 and disable shared libraries on
17880 # powerpc, because MkLinux only supported shared libraries with the
17881 # GNU dynamic linker. Since this was broken with cross compilers,
17882 # most powerpc-linux boxes support dynamic linking these days and
17883 # people can always --disable-shared, the test was removed, and we
17884 # assume the GNU/Linux dynamic linker is in use.
17885 dynamic_linker
='GNU/Linux ld.so'
17892 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17894 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17895 dynamic_linker
='NetBSD (a.out) ld.so'
17897 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17898 soname_spec
='${libname}${release}${shared_ext}$major'
17899 dynamic_linker
='NetBSD ld.elf_so'
17901 shlibpath_var
=LD_LIBRARY_PATH
17902 shlibpath_overrides_runpath
=yes
17903 hardcode_into_libs
=yes
17908 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17909 shlibpath_var
=LD_LIBRARY_PATH
17910 shlibpath_overrides_runpath
=yes
17917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17918 soname_spec
='${libname}${release}${shared_ext}$major'
17919 shlibpath_var
=LD_LIBRARY_PATH
17920 shlibpath_overrides_runpath
=no
17921 hardcode_into_libs
=yes
17922 dynamic_linker
='ldqnx.so'
17927 sys_lib_dlsearch_path_spec
="/usr/lib"
17929 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17931 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17932 *) need_version
=no
;;
17934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17935 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17936 shlibpath_var
=LD_LIBRARY_PATH
17937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17939 openbsd2.
[89] | openbsd2.
[89].
*)
17940 shlibpath_overrides_runpath
=no
17943 shlibpath_overrides_runpath
=yes
17947 shlibpath_overrides_runpath
=yes
17952 libname_spec
='$name'
17955 library_names_spec
='$libname${shared_ext} $libname.a'
17956 dynamic_linker
='OS/2 ld.exe'
17957 shlibpath_var
=LIBPATH
17960 osf3
* | osf4
* | osf5
*)
17964 soname_spec
='${libname}${release}${shared_ext}$major'
17965 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966 shlibpath_var
=LD_LIBRARY_PATH
17967 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17968 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980 soname_spec
='${libname}${release}${shared_ext}$major'
17981 shlibpath_var
=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath
=yes
17983 hardcode_into_libs
=yes
17984 # ldd complains unless libraries are executable
17985 postinstall_cmds
='chmod +x $lib'
17990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17991 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17992 shlibpath_var
=LD_LIBRARY_PATH
17993 shlibpath_overrides_runpath
=yes
17994 if test "$with_gnu_ld" = yes; then
18002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003 soname_spec
='${libname}${release}${shared_ext}$major'
18004 shlibpath_var
=LD_LIBRARY_PATH
18005 case $host_vendor in
18007 shlibpath_overrides_runpath
=no
18009 runpath_var
=LD_RUN_PATH
18017 shlibpath_overrides_runpath
=no
18018 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18024 if test -d /usr
/nec
;then
18026 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18027 soname_spec
='$libname${shared_ext}.$major'
18028 shlibpath_var
=LD_LIBRARY_PATH
18032 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18033 version_type
=freebsd-elf
18036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18037 soname_spec
='${libname}${release}${shared_ext}$major'
18038 shlibpath_var
=LD_LIBRARY_PATH
18039 shlibpath_overrides_runpath
=yes
18040 hardcode_into_libs
=yes
18041 if test "$with_gnu_ld" = yes; then
18042 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18044 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18047 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18051 sys_lib_dlsearch_path_spec
='/usr/lib'
18055 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18059 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18060 shlibpath_var
=LD_LIBRARY_PATH
18061 shlibpath_overrides_runpath
=no
18062 hardcode_into_libs
=yes
18067 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18068 soname_spec
='${libname}${release}${shared_ext}$major'
18069 shlibpath_var
=LD_LIBRARY_PATH
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18077 $as_echo "$dynamic_linker" >&6; }
18078 test "$dynamic_linker" = no
&& can_build_shared
=no
18080 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18081 if test "$GCC" = yes; then
18082 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18085 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18086 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18088 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18089 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18184 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18186 if test -n "$hardcode_libdir_flag_spec" ||
18187 test -n "$runpath_var" ||
18188 test "X$hardcode_automatic" = "Xyes" ; then
18190 # We can hardcode non-existent directories.
18191 if test "$hardcode_direct" != no
&&
18192 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18193 # have to relink, otherwise we might link with an installed library
18194 # when we should be linking with a yet-to-be-installed one
18195 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18196 test "$hardcode_minus_L" != no
; then
18197 # Linking always hardcodes the temporary library directory.
18198 hardcode_action
=relink
18200 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18201 hardcode_action
=immediate
18204 # We cannot hardcode anything, or else we can only hardcode existing
18206 hardcode_action
=unsupported
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18209 $as_echo "$hardcode_action" >&6; }
18211 if test "$hardcode_action" = relink ||
18212 test "$inherit_rpath" = yes; then
18213 # Fast installation is not supported
18214 enable_fast_install
=no
18215 elif test "$shlibpath_overrides_runpath" = yes ||
18216 test "$enable_shared" = no
; then
18217 # Fast installation is not necessary
18218 enable_fast_install
=needless
18226 if test "x$enable_dlopen" != xyes
; then
18227 enable_dlopen
=unknown
18228 enable_dlopen_self
=unknown
18229 enable_dlopen_self_static
=unknown
18236 lt_cv_dlopen
="load_add_on"
18238 lt_cv_dlopen_self
=yes
18241 mingw
* | pw32
* | cegcc
*)
18242 lt_cv_dlopen
="LoadLibrary"
18247 lt_cv_dlopen
="dlopen"
18252 # if libdl is installed we need to link against it
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18255 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18256 $as_echo_n "(cached) " >&6
18258 ac_check_lib_save_LIBS
=$LIBS
18260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18261 /* end confdefs.h. */
18263 /* Override any GCC internal prototype to avoid an error.
18264 Use char because int might match the return type of a GCC
18265 builtin and then its argument prototype would still apply. */
18278 if ac_fn_c_try_link
"$LINENO"; then :
18279 ac_cv_lib_dl_dlopen
=yes
18281 ac_cv_lib_dl_dlopen
=no
18283 rm -f core conftest.err conftest.
$ac_objext \
18284 conftest
$ac_exeext conftest.
$ac_ext
18285 LIBS
=$ac_check_lib_save_LIBS
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18288 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18289 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18290 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18293 lt_cv_dlopen
="dyld"
18295 lt_cv_dlopen_self
=yes
18302 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18303 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18304 lt_cv_dlopen
="shl_load"
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18307 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18308 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18309 $as_echo_n "(cached) " >&6
18311 ac_check_lib_save_LIBS
=$LIBS
18313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18316 /* Override any GCC internal prototype to avoid an error.
18317 Use char because int might match the return type of a GCC
18318 builtin and then its argument prototype would still apply. */
18326 return shl_load ();
18331 if ac_fn_c_try_link
"$LINENO"; then :
18332 ac_cv_lib_dld_shl_load
=yes
18334 ac_cv_lib_dld_shl_load
=no
18336 rm -f core conftest.err conftest.
$ac_objext \
18337 conftest
$ac_exeext conftest.
$ac_ext
18338 LIBS
=$ac_check_lib_save_LIBS
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18341 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18342 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18343 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18345 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18346 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18347 lt_cv_dlopen
="dlopen"
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18350 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18351 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18352 $as_echo_n "(cached) " >&6
18354 ac_check_lib_save_LIBS
=$LIBS
18356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h. */
18359 /* Override any GCC internal prototype to avoid an error.
18360 Use char because int might match the return type of a GCC
18361 builtin and then its argument prototype would still apply. */
18374 if ac_fn_c_try_link
"$LINENO"; then :
18375 ac_cv_lib_dl_dlopen
=yes
18377 ac_cv_lib_dl_dlopen
=no
18379 rm -f core conftest.err conftest.
$ac_objext \
18380 conftest
$ac_exeext conftest.
$ac_ext
18381 LIBS
=$ac_check_lib_save_LIBS
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18384 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18385 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18386 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18389 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18390 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18391 $as_echo_n "(cached) " >&6
18393 ac_check_lib_save_LIBS
=$LIBS
18394 LIBS
="-lsvld $LIBS"
18395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18396 /* end confdefs.h. */
18398 /* Override any GCC internal prototype to avoid an error.
18399 Use char because int might match the return type of a GCC
18400 builtin and then its argument prototype would still apply. */
18413 if ac_fn_c_try_link
"$LINENO"; then :
18414 ac_cv_lib_svld_dlopen
=yes
18416 ac_cv_lib_svld_dlopen
=no
18418 rm -f core conftest.err conftest.
$ac_objext \
18419 conftest
$ac_exeext conftest.
$ac_ext
18420 LIBS
=$ac_check_lib_save_LIBS
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18423 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18424 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18425 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18428 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18429 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18430 $as_echo_n "(cached) " >&6
18432 ac_check_lib_save_LIBS
=$LIBS
18434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18435 /* end confdefs.h. */
18437 /* Override any GCC internal prototype to avoid an error.
18438 Use char because int might match the return type of a GCC
18439 builtin and then its argument prototype would still apply. */
18447 return dld_link ();
18452 if ac_fn_c_try_link
"$LINENO"; then :
18453 ac_cv_lib_dld_dld_link
=yes
18455 ac_cv_lib_dld_dld_link
=no
18457 rm -f core conftest.err conftest.
$ac_objext \
18458 conftest
$ac_exeext conftest.
$ac_ext
18459 LIBS
=$ac_check_lib_save_LIBS
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18462 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18463 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18464 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18485 if test "x$lt_cv_dlopen" != xno
; then
18491 case $lt_cv_dlopen in
18493 save_CPPFLAGS
="$CPPFLAGS"
18494 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18496 save_LDFLAGS
="$LDFLAGS"
18497 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18500 LIBS
="$lt_cv_dlopen_libs $LIBS"
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18503 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18504 if test "${lt_cv_dlopen_self+set}" = set; then :
18505 $as_echo_n "(cached) " >&6
18507 if test "$cross_compiling" = yes; then :
18508 lt_cv_dlopen_self
=cross
18510 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18511 lt_status
=$lt_dlunknown
18512 cat > conftest.
$ac_ext <<_LT_EOF
18513 #line 18513 "configure"
18514 #include "confdefs.h"
18523 # define LT_DLGLOBAL RTLD_GLOBAL
18526 # define LT_DLGLOBAL DL_GLOBAL
18528 # define LT_DLGLOBAL 0
18532 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18533 find out it does not work in some platform. */
18534 #ifndef LT_DLLAZY_OR_NOW
18536 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18539 # define LT_DLLAZY_OR_NOW DL_LAZY
18542 # define LT_DLLAZY_OR_NOW RTLD_NOW
18545 # define LT_DLLAZY_OR_NOW DL_NOW
18547 # define LT_DLLAZY_OR_NOW 0
18554 /* When -fvisbility=hidden is used, assume the code has been annotated
18555 correspondingly for the symbols needed. */
18556 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18557 void fnord () __attribute__((visibility("default")));
18560 void fnord () { int i=42; }
18563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18564 int status = $lt_dlunknown;
18568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18571 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18572 else puts (dlerror ());
18574 /* dlclose (self); */
18582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18583 (eval $ac_link) 2>&5
18585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18586 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18587 (.
/conftest
; exit; ) >&5 2>/dev
/null
18589 case x
$lt_status in
18590 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18591 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18592 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18595 # compilation failed
18596 lt_cv_dlopen_self
=no
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18604 $as_echo "$lt_cv_dlopen_self" >&6; }
18606 if test "x$lt_cv_dlopen_self" = xyes
; then
18607 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18609 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18610 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18611 $as_echo_n "(cached) " >&6
18613 if test "$cross_compiling" = yes; then :
18614 lt_cv_dlopen_self_static
=cross
18616 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18617 lt_status
=$lt_dlunknown
18618 cat > conftest.
$ac_ext <<_LT_EOF
18619 #line 18619 "configure"
18620 #include "confdefs.h"
18629 # define LT_DLGLOBAL RTLD_GLOBAL
18632 # define LT_DLGLOBAL DL_GLOBAL
18634 # define LT_DLGLOBAL 0
18638 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18639 find out it does not work in some platform. */
18640 #ifndef LT_DLLAZY_OR_NOW
18642 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18645 # define LT_DLLAZY_OR_NOW DL_LAZY
18648 # define LT_DLLAZY_OR_NOW RTLD_NOW
18651 # define LT_DLLAZY_OR_NOW DL_NOW
18653 # define LT_DLLAZY_OR_NOW 0
18660 /* When -fvisbility=hidden is used, assume the code has been annotated
18661 correspondingly for the symbols needed. */
18662 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18663 void fnord () __attribute__((visibility("default")));
18666 void fnord () { int i=42; }
18669 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18670 int status = $lt_dlunknown;
18674 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18677 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18678 else puts (dlerror ());
18680 /* dlclose (self); */
18688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18689 (eval $ac_link) 2>&5
18691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18692 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18693 (.
/conftest
; exit; ) >&5 2>/dev
/null
18695 case x
$lt_status in
18696 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18697 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18698 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18701 # compilation failed
18702 lt_cv_dlopen_self_static
=no
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18710 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18713 CPPFLAGS
="$save_CPPFLAGS"
18714 LDFLAGS
="$save_LDFLAGS"
18719 case $lt_cv_dlopen_self in
18720 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18721 *) enable_dlopen_self
=unknown
;;
18724 case $lt_cv_dlopen_self_static in
18725 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18726 *) enable_dlopen_self_static
=unknown
;;
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18749 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18750 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18751 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18752 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18754 $as_echo "yes" >&6; }
18756 # FIXME - insert some real tests, host_os isn't really good enough
18759 if test -n "$STRIP" ; then
18760 striplib
="$STRIP -x"
18761 old_striplib
="$STRIP -S"
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18763 $as_echo "yes" >&6; }
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18766 $as_echo "no" >&6; }
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18771 $as_echo "no" >&6; }
18787 # Report which library types will actually be built
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18789 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18791 $as_echo "$can_build_shared" >&6; }
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18794 $as_echo_n "checking whether to build shared libraries... " >&6; }
18795 test "$can_build_shared" = "no" && enable_shared
=no
18797 # On AIX, shared libraries and static libraries use the same namespace, and
18798 # are all built from PIC.
18801 test "$enable_shared" = yes && enable_static
=no
18802 if test -n "$RANLIB"; then
18803 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18804 postinstall_cmds
='$RANLIB $lib'
18809 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18810 test "$enable_shared" = yes && enable_static
=no
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18815 $as_echo "$enable_shared" >&6; }
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18818 $as_echo_n "checking whether to build static libraries... " >&6; }
18819 # Make sure either enable_shared or enable_static is yes.
18820 test "$enable_shared" = yes || enable_static
=yes
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18822 $as_echo "$enable_static" >&6; }
18829 ac_cpp
='$CXXCPP $CPPFLAGS'
18830 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18831 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18832 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18836 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18837 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18838 (test "X$CXX" != "Xg++"))) ; then
18840 ac_cpp
='$CXXCPP $CPPFLAGS'
18841 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18842 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18843 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18845 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18846 if test -z "$CXXCPP"; then
18847 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18848 $as_echo_n "(cached) " >&6
18850 # Double quotes because CXXCPP needs to be expanded
18851 for CXXCPP
in "$CXX -E" "/lib/cpp"
18853 ac_preproc_ok
=false
18854 for ac_cxx_preproc_warn_flag
in '' yes
18856 # Use a header file that comes with gcc, so configuring glibc
18857 # with a fresh cross-compiler works.
18858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18859 # <limits.h> exists even on freestanding compilers.
18860 # On the NeXT, cc -E runs the code through the compiler's parser,
18861 # not just through cpp. "Syntax error" is here to catch this case.
18862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18863 /* end confdefs.h. */
18865 # include <limits.h>
18867 # include <assert.h>
18871 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18874 # Broken: fails on valid input.
18877 rm -f conftest.err conftest.
$ac_ext
18879 # OK, works on sane cases. Now check whether nonexistent headers
18880 # can be detected and how.
18881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18882 /* end confdefs.h. */
18883 #include <ac_nonexistent.h>
18885 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18886 # Broken: success on invalid input.
18889 # Passes both tests.
18893 rm -f conftest.err conftest.
$ac_ext
18896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18897 rm -f conftest.err conftest.
$ac_ext
18898 if $ac_preproc_ok; then :
18903 ac_cv_prog_CXXCPP
=$CXXCPP
18906 CXXCPP
=$ac_cv_prog_CXXCPP
18908 ac_cv_prog_CXXCPP
=$CXXCPP
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18911 $as_echo "$CXXCPP" >&6; }
18912 ac_preproc_ok
=false
18913 for ac_cxx_preproc_warn_flag
in '' yes
18915 # Use a header file that comes with gcc, so configuring glibc
18916 # with a fresh cross-compiler works.
18917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18918 # <limits.h> exists even on freestanding compilers.
18919 # On the NeXT, cc -E runs the code through the compiler's parser,
18920 # not just through cpp. "Syntax error" is here to catch this case.
18921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18922 /* end confdefs.h. */
18924 # include <limits.h>
18926 # include <assert.h>
18930 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18933 # Broken: fails on valid input.
18936 rm -f conftest.err conftest.
$ac_ext
18938 # OK, works on sane cases. Now check whether nonexistent headers
18939 # can be detected and how.
18940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h. */
18942 #include <ac_nonexistent.h>
18944 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18945 # Broken: success on invalid input.
18948 # Passes both tests.
18952 rm -f conftest.err conftest.
$ac_ext
18955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18956 rm -f conftest.err conftest.
$ac_ext
18957 if $ac_preproc_ok; then :
18960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18962 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18963 See \`config.log' for more details." "$LINENO" 5; }
18967 ac_cpp
='$CXXCPP $CPPFLAGS'
18968 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18969 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18970 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18973 _lt_caught_CXX_error
=yes
18977 ac_cpp
='$CXXCPP $CPPFLAGS'
18978 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18979 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18980 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18982 archive_cmds_need_lc_CXX
=no
18983 allow_undefined_flag_CXX
=
18984 always_export_symbols_CXX
=no
18985 archive_expsym_cmds_CXX
=
18986 compiler_needs_object_CXX
=no
18987 export_dynamic_flag_spec_CXX
=
18988 hardcode_direct_CXX
=no
18989 hardcode_direct_absolute_CXX
=no
18990 hardcode_libdir_flag_spec_CXX
=
18991 hardcode_libdir_flag_spec_ld_CXX
=
18992 hardcode_libdir_separator_CXX
=
18993 hardcode_minus_L_CXX
=no
18994 hardcode_shlibpath_var_CXX
=unsupported
18995 hardcode_automatic_CXX
=no
18996 inherit_rpath_CXX
=no
18998 module_expsym_cmds_CXX
=
18999 link_all_deplibs_CXX
=unknown
19000 old_archive_cmds_CXX
=$old_archive_cmds
19001 reload_flag_CXX
=$reload_flag
19002 reload_cmds_CXX
=$reload_cmds
19003 no_undefined_flag_CXX
=
19004 whole_archive_flag_spec_CXX
=
19005 enable_shared_with_static_runtimes_CXX
=no
19007 # Source file extension for C++ test sources.
19010 # Object file extension for compiled C++ test sources.
19014 # No sense in running all these tests if we already determined that
19015 # the CXX compiler isn't working. Some variables (like enable_shared)
19016 # are currently assumed to apply to all compilers on this platform,
19017 # and will be corrupted by setting them based on a non-working compiler.
19018 if test "$_lt_caught_CXX_error" != yes; then
19019 # Code to be used in simple compile tests
19020 lt_simple_compile_test_code
="int some_variable = 0;"
19022 # Code to be used in simple link tests
19023 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19025 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19032 # If no C compiler was specified, use CC.
19035 # If no C compiler flags were specified, use CFLAGS.
19036 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19038 # Allow CC to be a program name with arguments.
19042 # save warnings/boilerplate of simple test code
19043 ac_outfile
=conftest.
$ac_objext
19044 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19045 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19046 _lt_compiler_boilerplate
=`cat conftest.err`
19049 ac_outfile
=conftest.
$ac_objext
19050 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19051 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19052 _lt_linker_boilerplate
=`cat conftest.err`
19056 # Allow CC to be a program name with arguments.
19061 lt_save_with_gnu_ld
=$with_gnu_ld
19062 lt_save_path_LD
=$lt_cv_path_LD
19063 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19064 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19066 $as_unset lt_cv_prog_gnu_ld
19068 if test -n "${lt_cv_path_LDCXX+set}"; then
19069 lt_cv_path_LD
=$lt_cv_path_LDCXX
19071 $as_unset lt_cv_path_LD
19073 test -z "${LDCXX+set}" || LD
=$LDCXX
19077 for cc_temp
in $compiler""; do
19079 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19080 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19085 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19088 if test -n "$compiler"; then
19089 # We don't want -fno-exception when compiling C++ code, so set the
19090 # no_builtin_flag separately
19091 if test "$GXX" = yes; then
19092 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19094 lt_prog_compiler_no_builtin_flag_CXX
=
19097 if test "$GXX" = yes; then
19098 # Set up default GNU C++ configuration
19102 # Check whether --with-gnu-ld was given.
19103 if test "${with_gnu_ld+set}" = set; then :
19104 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19110 if test "$GCC" = yes; then
19111 # Check if gcc -print-prog-name=ld gives a path.
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19113 $as_echo_n "checking for ld used by $CC... " >&6; }
19116 # gcc leaves a trailing carriage return which upsets mingw
19117 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19119 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19122 # Accept absolute paths.
19124 re_direlt
='/[^/][^/]*/\.\./'
19125 # Canonicalize the pathname of ld
19126 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19127 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19128 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19130 test -z "$LD" && LD
="$ac_prog"
19133 # If it fails, then pretend we aren't using GCC.
19137 # If it is relative, then search for the first ld in PATH.
19138 with_gnu_ld
=unknown
19141 elif test "$with_gnu_ld" = yes; then
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19143 $as_echo_n "checking for GNU ld... " >&6; }
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19146 $as_echo_n "checking for non-GNU ld... " >&6; }
19148 if test "${lt_cv_path_LD+set}" = set; then :
19149 $as_echo_n "(cached) " >&6
19151 if test -z "$LD"; then
19152 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19153 for ac_dir
in $PATH; do
19155 test -z "$ac_dir" && ac_dir
=.
19156 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19157 lt_cv_path_LD
="$ac_dir/$ac_prog"
19158 # Check to see if the program is GNU ld. I'd rather use --version,
19159 # but apparently some variants of GNU ld only accept -v.
19160 # Break only if it was the GNU/non-GNU ld that we prefer.
19161 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19162 *GNU
* |
*'with BFD'*)
19163 test "$with_gnu_ld" != no
&& break
19166 test "$with_gnu_ld" != yes && break
19173 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19177 LD
="$lt_cv_path_LD"
19178 if test -n "$LD"; then
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19180 $as_echo "$LD" >&6; }
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19183 $as_echo "no" >&6; }
19185 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19187 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19188 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19189 $as_echo_n "(cached) " >&6
19191 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19192 case `$LD -v 2>&1 </dev/null` in
19193 *GNU
* |
*'with BFD'*)
19194 lt_cv_prog_gnu_ld
=yes
19197 lt_cv_prog_gnu_ld
=no
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19202 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19203 with_gnu_ld
=$lt_cv_prog_gnu_ld
19211 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19212 # archiving commands below assume that GNU ld is being used.
19213 if test "$with_gnu_ld" = yes; then
19214 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19215 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'
19217 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19218 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19220 # If archive_cmds runs LD, not CC, wlarc should be empty
19221 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19222 # investigate it a little bit more. (MM)
19225 # ancient GNU ld didn't support --whole-archive et. al.
19226 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19227 $GREP 'no-whole-archive' > /dev
/null
; then
19228 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19230 whole_archive_flag_spec_CXX
=
19236 # A generic and very simple default shared library creation
19237 # command for GNU C++ for the case where it uses the native
19238 # linker, instead of GNU ld. If possible, this setting should
19239 # overridden to take advantage of the native linker features on
19240 # the platform it is being used on.
19241 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19244 # Commands to make compiler produce verbose output that lists
19245 # what "hidden" libraries, object files and flags are used when
19246 # linking a shared library.
19247 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19255 # PORTME: fill in a description of your system's C++ link characteristics
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19257 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19261 # FIXME: insert proper C++ library support
19265 if test "$host_cpu" = ia64
; then
19266 # On IA64, the linker does run time linking by default, so we don't
19267 # have to do anything special.
19268 aix_use_runtimelinking
=no
19269 exp_sym_flag
='-Bexport'
19272 aix_use_runtimelinking
=no
19274 # Test if we are trying to use run time linking or normal
19275 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19276 # need to do runtime linking.
19277 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19278 for ld_flag
in $LDFLAGS; do
19281 aix_use_runtimelinking
=yes
19289 exp_sym_flag
='-bexport'
19290 no_entry_flag
='-bnoentry'
19293 # When large executables or shared objects are built, AIX ld can
19294 # have problems creating the table of contents. If linking a library
19295 # or program results in "error TOC overflow" add -mminimal-toc to
19296 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19297 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19299 archive_cmds_CXX
=''
19300 hardcode_direct_CXX
=yes
19301 hardcode_direct_absolute_CXX
=yes
19302 hardcode_libdir_separator_CXX
=':'
19303 link_all_deplibs_CXX
=yes
19304 file_list_spec_CXX
='${wl}-f,'
19306 if test "$GXX" = yes; then
19307 case $host_os in aix4.
[012]|aix4.
[012].
*)
19308 # We only want to do this on AIX 4.2 and lower, the check
19309 # below for broken collect2 doesn't work under 4.3+
19310 collect2name
=`${CC} -print-prog-name=collect2`
19311 if test -f "$collect2name" &&
19312 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19314 # We have reworked collect2
19317 # We have old collect2
19318 hardcode_direct_CXX
=unsupported
19319 # It fails to find uninstalled libraries when the uninstalled
19320 # path is not listed in the libpath. Setting hardcode_minus_L
19321 # to unsupported forces relinking
19322 hardcode_minus_L_CXX
=yes
19323 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19324 hardcode_libdir_separator_CXX
=
19327 shared_flag
='-shared'
19328 if test "$aix_use_runtimelinking" = yes; then
19329 shared_flag
="$shared_flag "'${wl}-G'
19333 if test "$host_cpu" = ia64
; then
19334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19335 # chokes on -Wl,-G. The following line is correct:
19338 if test "$aix_use_runtimelinking" = yes; then
19339 shared_flag
='${wl}-G'
19341 shared_flag
='${wl}-bM:SRE'
19346 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19347 # It seems that -bexpall does not export symbols beginning with
19348 # underscore (_), so it is better to generate a list of symbols to
19350 always_export_symbols_CXX
=yes
19351 if test "$aix_use_runtimelinking" = yes; then
19352 # Warning - without using the other runtime loading flags (-brtl),
19353 # -berok will link without error, but may produce a broken library.
19354 allow_undefined_flag_CXX
='-berok'
19355 # Determine the default libpath from the value encoded in an empty
19357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19358 /* end confdefs.h. */
19368 if ac_fn_cxx_try_link
"$LINENO"; then :
19370 lt_aix_libpath_sed
='
19371 /Import File Strings/,/^$/ {
19377 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19378 # Check for a 64-bit object if we didn't find anything.
19379 if test -z "$aix_libpath"; then
19380 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19383 rm -f core conftest.err conftest.
$ac_objext \
19384 conftest
$ac_exeext conftest.
$ac_ext
19385 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19387 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19389 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"
19391 if test "$host_cpu" = ia64
; then
19392 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19393 allow_undefined_flag_CXX
="-z nodefs"
19394 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"
19396 # Determine the default libpath from the value encoded in an
19397 # empty executable.
19398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h. */
19409 if ac_fn_cxx_try_link
"$LINENO"; then :
19411 lt_aix_libpath_sed
='
19412 /Import File Strings/,/^$/ {
19418 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19419 # Check for a 64-bit object if we didn't find anything.
19420 if test -z "$aix_libpath"; then
19421 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19424 rm -f core conftest.err conftest.
$ac_objext \
19425 conftest
$ac_exeext conftest.
$ac_ext
19426 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19428 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19429 # Warning - without using the other run time loading flags,
19430 # -berok will link without error, but may produce a broken library.
19431 no_undefined_flag_CXX
=' ${wl}-bernotok'
19432 allow_undefined_flag_CXX
=' ${wl}-berok'
19433 if test "$with_gnu_ld" = yes; then
19434 # We only use this code for GNU lds that support --whole-archive.
19435 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19437 # Exported symbols can be pulled into shared objects from archives
19438 whole_archive_flag_spec_CXX
='$convenience'
19440 archive_cmds_need_lc_CXX
=yes
19441 # This is similar to how AIX traditionally builds its shared
19443 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'
19449 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19450 allow_undefined_flag_CXX
=unsupported
19451 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19452 # support --undefined. This deserves some investigation. FIXME
19453 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19460 case $cc_basename in
19462 # FIXME: insert proper C++ library support
19468 cygwin
* | mingw
* | pw32
* | cegcc
*)
19469 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19470 # as there is no search path for DLLs.
19471 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19472 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19473 allow_undefined_flag_CXX
=unsupported
19474 always_export_symbols_CXX
=no
19475 enable_shared_with_static_runtimes_CXX
=yes
19477 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19478 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'
19479 # If the export-symbols file already is a .def file (1st line
19480 # is EXPORTS), use it as is; otherwise, prepend...
19481 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19482 cp $export_symbols $output_objdir/$soname.def;
19484 echo EXPORTS > $output_objdir/$soname.def;
19485 cat $export_symbols >> $output_objdir/$soname.def;
19487 $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'
19492 darwin
* | rhapsody
*)
19495 archive_cmds_need_lc_CXX
=no
19496 hardcode_direct_CXX
=no
19497 hardcode_automatic_CXX
=yes
19498 hardcode_shlibpath_var_CXX
=unsupported
19499 if test "$lt_cv_ld_force_load" = "yes"; then
19500 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\"`'
19502 whole_archive_flag_spec_CXX
=''
19504 link_all_deplibs_CXX
=yes
19505 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19506 case $cc_basename in
19507 ifort
*) _lt_dar_can_shared
=yes ;;
19508 *) _lt_dar_can_shared
=$GCC ;;
19510 if test "$_lt_dar_can_shared" = "yes"; then
19511 output_verbose_link_cmd
=func_echo_all
19512 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}"
19513 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19514 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}"
19515 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}"
19516 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19517 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}"
19518 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}"
19528 case $cc_basename in
19530 # FIXME: insert proper C++ library support
19534 # Green Hills C++ Compiler
19535 # FIXME: insert proper C++ library support
19539 # FIXME: insert proper C++ library support
19546 # C++ shared libraries reported to be fairly broken before
19552 archive_cmds_need_lc_CXX
=no
19555 freebsd
* | dragonfly
*)
19556 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19565 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19566 link_all_deplibs_CXX
=yes
19570 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19571 hardcode_libdir_separator_CXX
=:
19572 export_dynamic_flag_spec_CXX
='${wl}-E'
19573 hardcode_direct_CXX
=yes
19574 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19575 # but as the default
19576 # location of the library.
19578 case $cc_basename in
19580 # FIXME: insert proper C++ library support
19584 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'
19585 # Commands to make compiler produce verbose output that lists
19586 # what "hidden" libraries, object files and flags are used when
19587 # linking a shared library.
19589 # There doesn't appear to be a way to prevent this compiler from
19590 # explicitly linking system object files so we need to strip them
19591 # from the output so that they don't get included in the library
19593 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"'
19596 if test "$GXX" = yes; then
19597 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'
19599 # FIXME: insert proper C++ library support
19607 if test $with_gnu_ld = no
; then
19608 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19609 hardcode_libdir_separator_CXX
=:
19615 export_dynamic_flag_spec_CXX
='${wl}-E'
19621 hardcode_direct_CXX
=no
19622 hardcode_shlibpath_var_CXX
=no
19625 hardcode_direct_CXX
=yes
19626 hardcode_direct_absolute_CXX
=yes
19627 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19628 # but as the default
19629 # location of the library.
19633 case $cc_basename in
19635 # FIXME: insert proper C++ library support
19641 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19644 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19647 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19650 # Commands to make compiler produce verbose output that lists
19651 # what "hidden" libraries, object files and flags are used when
19652 # linking a shared library.
19654 # There doesn't appear to be a way to prevent this compiler from
19655 # explicitly linking system object files so we need to strip them
19656 # from the output so that they don't get included in the library
19658 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"'
19661 if test "$GXX" = yes; then
19662 if test $with_gnu_ld = no
; then
19665 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19668 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19671 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'
19676 # FIXME: insert proper C++ library support
19684 hardcode_direct_CXX
=no
19685 hardcode_shlibpath_var_CXX
=no
19686 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19687 export_dynamic_flag_spec_CXX
='${wl}-E'
19688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19689 # Instead, shared libraries are loaded at an image base (0x10000000 by
19690 # default) and relocated if they conflict, which is a slow very memory
19691 # consuming and fragmenting process. To avoid this, we pick a random,
19692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19693 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19694 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'
19695 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'
19698 case $cc_basename in
19701 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'
19703 # Archives containing C++ object files must be created using
19704 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19705 # necessary to make sure instantiated templates are included
19707 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19710 if test "$GXX" = yes; then
19711 if test "$with_gnu_ld" = no
; then
19712 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'
19714 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'
19717 link_all_deplibs_CXX
=yes
19720 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19721 hardcode_libdir_separator_CXX
=:
19722 inherit_rpath_CXX
=yes
19725 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19726 case $cc_basename in
19728 # Kuck and Associates, Inc. (KAI) C++ Compiler
19730 # KCC will only create a shared library if the output file
19731 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19732 # to its proper name (with version) after linking.
19733 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'
19734 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'
19735 # Commands to make compiler produce verbose output that lists
19736 # what "hidden" libraries, object files and flags are used when
19737 # linking a shared library.
19739 # There doesn't appear to be a way to prevent this compiler from
19740 # explicitly linking system object files so we need to strip them
19741 # from the output so that they don't get included in the library
19743 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"'
19745 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19746 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19748 # Archives containing C++ object files must be created using
19749 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19750 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19755 # version 8.0 and above of icpc choke on multiply defined symbols
19756 # if we add $predep_objects and $postdep_objects, however 7.1 and
19757 # earlier do not add the objects themselves.
19758 case `$CC -V 2>&1` in
19760 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19761 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'
19763 *) # Version 8.0 or newer
19766 ia64
*) tmp_idyn
=' -i_dynamic';;
19768 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19769 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'
19772 archive_cmds_need_lc_CXX
=no
19773 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19774 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19775 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19778 # Portland Group C++ compiler
19780 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19781 prelink_cmds_CXX
='tpldir=Template.dir~
19783 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19784 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19785 old_archive_cmds_CXX
='tpldir=Template.dir~
19787 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19788 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19790 archive_cmds_CXX
='tpldir=Template.dir~
19792 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19793 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19794 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19796 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19797 $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'
19799 *) # Version 6 and above use weak symbols
19800 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19801 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'
19805 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19806 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19807 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'
19811 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19812 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'
19814 runpath_var
=LD_RUN_PATH
19815 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19816 hardcode_libdir_separator_CXX
=:
19818 # Commands to make compiler produce verbose output that lists
19819 # what "hidden" libraries, object files and flags are used when
19820 # linking a shared library.
19822 # There doesn't appear to be a way to prevent this compiler from
19823 # explicitly linking system object files so we need to strip them
19824 # from the output so that they don't get included in the library
19826 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'
19828 xl
* | mpixl
* | bgxl
*)
19829 # IBM XL 8.0 on PPC, with GNU ld
19830 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19831 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19832 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19833 if test "x$supports_anon_versioning" = xyes
; then
19834 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19836 echo "local: *; };" >> $output_objdir/$libname.ver~
19837 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19841 case `$CC -V 2>&1 | sed 5q` in
19844 no_undefined_flag_CXX
=' -zdefs'
19845 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19846 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'
19847 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19848 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'
19849 compiler_needs_object_CXX
=yes
19851 # Not sure whether something based on
19852 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19854 output_verbose_link_cmd
='func_echo_all'
19856 # Archives containing C++ object files must be created using
19857 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19858 # necessary to make sure instantiated templates are included
19860 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19868 # FIXME: insert proper C++ library support
19873 # FIXME: insert proper C++ library support
19878 case $cc_basename in
19880 # FIXME: insert proper C++ library support
19884 # FIXME: insert proper C++ library support
19891 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19892 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19894 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19895 hardcode_direct_CXX
=yes
19896 hardcode_shlibpath_var_CXX
=no
19898 # Workaround some broken pre-1.5 toolchains
19899 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19907 # C++ shared libraries are fairly broken
19912 if test -f /usr
/libexec
/ld.so
; then
19913 hardcode_direct_CXX
=yes
19914 hardcode_shlibpath_var_CXX
=no
19915 hardcode_direct_absolute_CXX
=yes
19916 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19917 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19919 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19920 export_dynamic_flag_spec_CXX
='${wl}-E'
19921 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19923 output_verbose_link_cmd
=func_echo_all
19929 osf3
* | osf4
* | osf5
*)
19930 case $cc_basename in
19932 # Kuck and Associates, Inc. (KAI) C++ Compiler
19934 # KCC will only create a shared library if the output file
19935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19936 # to its proper name (with version) after linking.
19937 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'
19939 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19940 hardcode_libdir_separator_CXX
=:
19942 # Archives containing C++ object files must be created using
19943 # the KAI C++ compiler.
19945 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19946 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19950 # Rational C++ 2.4.1
19951 # FIXME: insert proper C++ library support
19957 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19958 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'
19959 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19962 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19963 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'
19964 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19965 echo "-hidden">> $lib.exp~
19966 $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~
19968 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19972 hardcode_libdir_separator_CXX
=:
19974 # Commands to make compiler produce verbose output that lists
19975 # what "hidden" libraries, object files and flags are used when
19976 # linking a shared library.
19978 # There doesn't appear to be a way to prevent this compiler from
19979 # explicitly linking system object files so we need to strip them
19980 # from the output so that they don't get included in the library
19982 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"'
19985 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19986 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19989 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'
19992 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'
19996 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19997 hardcode_libdir_separator_CXX
=:
19999 # Commands to make compiler produce verbose output that lists
20000 # what "hidden" libraries, object files and flags are used when
20001 # linking a shared library.
20002 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20005 # FIXME: insert proper C++ library support
20013 # FIXME: insert proper C++ library support
20018 case $cc_basename in
20021 # FIXME: insert proper C++ library support
20026 # FIXME: insert proper C++ library support
20030 # FIXME: insert proper C++ library support
20037 case $cc_basename in
20039 # Sun C++ 4.2, 5.x and Centerline C++
20040 archive_cmds_need_lc_CXX
=yes
20041 no_undefined_flag_CXX
=' -zdefs'
20042 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20043 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20044 $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'
20046 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20047 hardcode_shlibpath_var_CXX
=no
20049 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20051 # The compiler driver will combine and reorder linker options,
20052 # but understands `-z linker_flag'.
20053 # Supported since Solaris 2.6 (maybe 2.5.1?)
20054 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20057 link_all_deplibs_CXX
=yes
20059 output_verbose_link_cmd
='func_echo_all'
20061 # Archives containing C++ object files must be created using
20062 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20063 # necessary to make sure instantiated templates are included
20065 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20068 # Green Hills C++ Compiler
20069 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20071 # The C++ compiler must be used to create the archive.
20072 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20075 # GNU C++ compiler with Solaris linker
20076 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20077 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20078 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20079 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20080 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20081 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20083 # Commands to make compiler produce verbose output that lists
20084 # what "hidden" libraries, object files and flags are used when
20085 # linking a shared library.
20086 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20088 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20090 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20091 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20092 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20094 # Commands to make compiler produce verbose output that lists
20095 # what "hidden" libraries, object files and flags are used when
20096 # linking a shared library.
20097 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20100 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20102 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20104 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20112 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20113 no_undefined_flag_CXX
='${wl}-z,text'
20114 archive_cmds_need_lc_CXX
=no
20115 hardcode_shlibpath_var_CXX
=no
20116 runpath_var
='LD_RUN_PATH'
20118 case $cc_basename in
20120 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20121 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20124 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20125 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20130 sysv5
* | sco3.2v5
* | sco5v6
*)
20131 # Note: We can NOT use -z defs as we might desire, because we do not
20132 # link with -lc, and that would cause any symbols used from libc to
20133 # always be unresolved, which means just about no library would
20134 # ever link correctly. If we're not using GNU ld we use -z text
20135 # though, which does catch some bad symbols but isn't as heavy-handed
20137 no_undefined_flag_CXX
='${wl}-z,text'
20138 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20139 archive_cmds_need_lc_CXX
=no
20140 hardcode_shlibpath_var_CXX
=no
20141 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20142 hardcode_libdir_separator_CXX
=':'
20143 link_all_deplibs_CXX
=yes
20144 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20145 runpath_var
='LD_RUN_PATH'
20147 case $cc_basename in
20149 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20150 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20151 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20152 '"$old_archive_cmds_CXX"
20153 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20154 '"$reload_cmds_CXX"
20157 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20158 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20164 case $cc_basename in
20166 # NonStop-UX NCC 3.20
20167 # FIXME: insert proper C++ library support
20171 # FIXME: insert proper C++ library support
20178 # FIXME: insert proper C++ library support
20183 # FIXME: insert proper C++ library support
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20189 $as_echo "$ld_shlibs_CXX" >&6; }
20190 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20196 ## There is no encapsulation within the following macros, do not change
20197 ## the running order or otherwise move them around unless you know exactly
20198 ## what you are doing...
20199 # Dependencies to place before and after the object being linked:
20200 predep_objects_CXX
=
20201 postdep_objects_CXX
=
20204 compiler_lib_search_path_CXX
=
20206 cat > conftest.
$ac_ext <<_LT_EOF
20210 Foo (void) { a = 0; }
20216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20217 (eval $ac_compile) 2>&5
20219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20220 test $ac_status = 0; }; then
20221 # Parse the compiler output and extract the necessary
20222 # objects, libraries and library flags.
20224 # Sentinel used to keep track of whether or not we are before
20225 # the conftest object file.
20226 pre_test_object_deps_done
=no
20228 for p
in `eval "$output_verbose_link_cmd"`; do
20232 # Some compilers place space between "-{L,R}" and the path.
20233 # Remove the space.
20234 if test $p = "-L" ||
20235 test $p = "-R"; then
20242 if test "$pre_test_object_deps_done" = no
; then
20245 # Internal compiler library paths should come after those
20246 # provided the user. The postdeps already come after the
20247 # user supplied libs so there is no need to process them.
20248 if test -z "$compiler_lib_search_path_CXX"; then
20249 compiler_lib_search_path_CXX
="${prev}${p}"
20251 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20254 # The "-l" case would never come before the object being
20255 # linked, so don't bother handling this case.
20258 if test -z "$postdeps_CXX"; then
20259 postdeps_CXX
="${prev}${p}"
20261 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20267 # This assumes that the test object file only shows up
20268 # once in the compiler output.
20269 if test "$p" = "conftest.$objext"; then
20270 pre_test_object_deps_done
=yes
20274 if test "$pre_test_object_deps_done" = no
; then
20275 if test -z "$predep_objects_CXX"; then
20276 predep_objects_CXX
="$p"
20278 predep_objects_CXX
="$predep_objects_CXX $p"
20281 if test -z "$postdep_objects_CXX"; then
20282 postdep_objects_CXX
="$p"
20284 postdep_objects_CXX
="$postdep_objects_CXX $p"
20289 *) ;; # Ignore the rest.
20297 echo "libtool.m4: error: problem compiling CXX test program"
20300 $RM -f confest.
$objext
20302 # PORTME: override above test on systems where it is broken
20305 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20306 # hack all around it, let's just trust "g++" to DTRT.
20307 predep_objects_CXX
=
20308 postdep_objects_CXX
=
20313 case `$CC -V 2>&1 | sed 5q` in
20317 # The more standards-conforming stlport4 library is
20318 # incompatible with the Cstd library. Avoid specifying
20319 # it if it's in CXXFLAGS. Ignore libCrun as
20320 # -library=stlport4 depends on it.
20321 case " $CXX $CXXFLAGS " in
20322 *" -library=stlport4 "*)
20323 solaris_use_stlport4
=yes
20327 if test "$solaris_use_stlport4" != yes; then
20328 postdeps_CXX
='-library=Cstd -library=Crun'
20335 case $cc_basename in
20337 # The more standards-conforming stlport4 library is
20338 # incompatible with the Cstd library. Avoid specifying
20339 # it if it's in CXXFLAGS. Ignore libCrun as
20340 # -library=stlport4 depends on it.
20341 case " $CXX $CXXFLAGS " in
20342 *" -library=stlport4 "*)
20343 solaris_use_stlport4
=yes
20347 # Adding this requires a known-good setup of shared libraries for
20348 # Sun compiler versions before 5.6, else PIC objects from an old
20349 # archive will be linked into the output, leading to subtle bugs.
20350 if test "$solaris_use_stlport4" != yes; then
20351 postdeps_CXX
='-library=Cstd -library=Crun'
20359 case " $postdeps_CXX " in
20360 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20362 compiler_lib_search_dirs_CXX
=
20363 if test -n "${compiler_lib_search_path_CXX}"; then
20364 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20397 lt_prog_compiler_wl_CXX
=
20398 lt_prog_compiler_pic_CXX
=
20399 lt_prog_compiler_static_CXX
=
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20402 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20404 # C++ specific cases for pic, static, wl, etc.
20405 if test "$GXX" = yes; then
20406 lt_prog_compiler_wl_CXX
='-Wl,'
20407 lt_prog_compiler_static_CXX
='-static'
20411 # All AIX code is PIC.
20412 if test "$host_cpu" = ia64
; then
20413 # AIX 5 now supports IA64 processor
20414 lt_prog_compiler_static_CXX
='-Bstatic'
20416 lt_prog_compiler_pic_CXX
='-fPIC'
20422 # see comment about AmigaOS4 .so support
20423 lt_prog_compiler_pic_CXX
='-fPIC'
20426 # FIXME: we need at least 68020 code to build shared libraries, but
20427 # adding the `-m68020' flag to GCC prevents building anything better,
20429 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20434 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20435 # PIC is the default for these OSes.
20437 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20438 # This hack is so that the source file can tell whether it is being
20439 # built for inclusion in a dll (and should export symbols for example).
20440 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20441 # (--disable-auto-import) libraries
20442 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20444 darwin
* | rhapsody
*)
20445 # PIC is the default on this platform
20446 # Common symbols not allowed in MH_DYLIB files
20447 lt_prog_compiler_pic_CXX
='-fno-common'
20450 # DJGPP does not support shared libraries at all
20451 lt_prog_compiler_pic_CXX
=
20454 # PIC is the default for Haiku.
20455 # The "-static" flag exists, but is broken.
20456 lt_prog_compiler_static_CXX
=
20459 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20460 # Instead, we relocate shared libraries at runtime.
20463 if test -d /usr
/nec
; then
20464 lt_prog_compiler_pic_CXX
=-Kconform_pic
20468 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20469 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20470 # sets the default TLS model and affects inlining.
20475 lt_prog_compiler_pic_CXX
='-fPIC'
20480 # QNX uses GNU C++, but need to define -shared option too, otherwise
20481 # it will coredump.
20482 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20485 lt_prog_compiler_pic_CXX
='-fPIC'
20491 # All AIX code is PIC.
20492 if test "$host_cpu" = ia64
; then
20493 # AIX 5 now supports IA64 processor
20494 lt_prog_compiler_static_CXX
='-Bstatic'
20496 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20500 case $cc_basename in
20502 # Green Hills C++ Compiler
20503 # _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"
20508 case $cc_basename in
20510 lt_prog_compiler_pic_CXX
='-KPIC'
20513 # Green Hills C++ Compiler
20514 lt_prog_compiler_pic_CXX
='-pic'
20520 freebsd
* | dragonfly
*)
20521 # FreeBSD uses GNU C++
20523 hpux9
* | hpux10
* | hpux11
*)
20524 case $cc_basename in
20526 lt_prog_compiler_wl_CXX
='-Wl,'
20527 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20528 if test "$host_cpu" != ia64
; then
20529 lt_prog_compiler_pic_CXX
='+Z'
20533 lt_prog_compiler_wl_CXX
='-Wl,'
20534 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20540 lt_prog_compiler_pic_CXX
='+Z'
20549 # This is c89, which is MS Visual C++ (no shared libs)
20550 # Anyone wants to do a port?
20552 irix5
* | irix6
* | nonstopux
*)
20553 case $cc_basename in
20555 lt_prog_compiler_wl_CXX
='-Wl,'
20556 lt_prog_compiler_static_CXX
='-non_shared'
20557 # CC pic flag -KPIC is the default.
20563 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20564 case $cc_basename in
20567 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20568 lt_prog_compiler_pic_CXX
='-fPIC'
20571 # old Intel C++ for x86_64 which still supported -KPIC.
20572 lt_prog_compiler_wl_CXX
='-Wl,'
20573 lt_prog_compiler_pic_CXX
='-KPIC'
20574 lt_prog_compiler_static_CXX
='-static'
20577 # Intel C++, used to be incompatible with GCC.
20578 # ICC 10 doesn't accept -KPIC any more.
20579 lt_prog_compiler_wl_CXX
='-Wl,'
20580 lt_prog_compiler_pic_CXX
='-fPIC'
20581 lt_prog_compiler_static_CXX
='-static'
20584 # Portland Group C++ compiler
20585 lt_prog_compiler_wl_CXX
='-Wl,'
20586 lt_prog_compiler_pic_CXX
='-fpic'
20587 lt_prog_compiler_static_CXX
='-Bstatic'
20591 # Make sure the PIC flag is empty. It appears that all Alpha
20592 # Linux and Compaq Tru64 Unix objects are PIC.
20593 lt_prog_compiler_pic_CXX
=
20594 lt_prog_compiler_static_CXX
='-non_shared'
20596 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20597 # IBM XL 8.0, 9.0 on PPC and BlueGene
20598 lt_prog_compiler_wl_CXX
='-Wl,'
20599 lt_prog_compiler_pic_CXX
='-qpic'
20600 lt_prog_compiler_static_CXX
='-qstaticlink'
20603 case `$CC -V 2>&1 | sed 5q` in
20606 lt_prog_compiler_pic_CXX
='-KPIC'
20607 lt_prog_compiler_static_CXX
='-Bstatic'
20608 lt_prog_compiler_wl_CXX
='-Qoption ld '
20619 case $cc_basename in
20621 lt_prog_compiler_pic_CXX
='-W c,exportall'
20630 # QNX uses GNU C++, but need to define -shared option too, otherwise
20631 # it will coredump.
20632 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20634 osf3
* | osf4
* | osf5
*)
20635 case $cc_basename in
20637 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20640 # Rational C++ 2.4.1
20641 lt_prog_compiler_pic_CXX
='-pic'
20644 # Digital/Compaq C++
20645 lt_prog_compiler_wl_CXX
='-Wl,'
20646 # Make sure the PIC flag is empty. It appears that all Alpha
20647 # Linux and Compaq Tru64 Unix objects are PIC.
20648 lt_prog_compiler_pic_CXX
=
20649 lt_prog_compiler_static_CXX
='-non_shared'
20658 case $cc_basename in
20660 # Sun C++ 4.2, 5.x and Centerline C++
20661 lt_prog_compiler_pic_CXX
='-KPIC'
20662 lt_prog_compiler_static_CXX
='-Bstatic'
20663 lt_prog_compiler_wl_CXX
='-Qoption ld '
20666 # Green Hills C++ Compiler
20667 lt_prog_compiler_pic_CXX
='-PIC'
20674 case $cc_basename in
20677 lt_prog_compiler_pic_CXX
='-pic'
20678 lt_prog_compiler_static_CXX
='-Bstatic'
20682 lt_prog_compiler_pic_CXX
='-pic'
20688 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20689 case $cc_basename in
20691 lt_prog_compiler_wl_CXX
='-Wl,'
20692 lt_prog_compiler_pic_CXX
='-KPIC'
20693 lt_prog_compiler_static_CXX
='-Bstatic'
20698 case $cc_basename in
20700 # NonStop-UX NCC 3.20
20701 lt_prog_compiler_pic_CXX
='-KPIC'
20710 lt_prog_compiler_can_build_shared_CXX
=no
20716 # For platforms which do not support PIC, -DPIC is meaningless:
20718 lt_prog_compiler_pic_CXX
=
20721 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20725 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20730 # Check to make sure the PIC flag actually works.
20732 if test -n "$lt_prog_compiler_pic_CXX"; then
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20734 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20735 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20736 $as_echo_n "(cached) " >&6
20738 lt_cv_prog_compiler_pic_works_CXX
=no
20739 ac_outfile
=conftest.
$ac_objext
20740 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20741 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20742 # Insert the option either (1) after the last *FLAGS variable, or
20743 # (2) before a word containing "conftest.", or (3) at the end.
20744 # Note that $ac_compile itself does not contain backslashes and begins
20745 # with a dollar sign (not a hyphen), so the echo should work correctly.
20746 # The option is referenced via a variable to avoid confusing sed.
20747 lt_compile
=`echo "$ac_compile" | $SED \
20748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20750 -e 's:$: $lt_compiler_flag:'`
20751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20752 (eval "$lt_compile" 2>conftest.err
)
20754 cat conftest.err
>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 if (exit $ac_status) && test -s "$ac_outfile"; then
20757 # The compiler can only warn and ignore the option if not recognized
20758 # So say no if there are warnings other than the usual output.
20759 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20760 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20761 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20762 lt_cv_prog_compiler_pic_works_CXX
=yes
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20769 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20771 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20772 case $lt_prog_compiler_pic_CXX in
20774 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20777 lt_prog_compiler_pic_CXX
=
20778 lt_prog_compiler_can_build_shared_CXX
=no
20786 # Check to make sure the static flag actually works.
20788 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20790 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20791 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20792 $as_echo_n "(cached) " >&6
20794 lt_cv_prog_compiler_static_works_CXX
=no
20795 save_LDFLAGS
="$LDFLAGS"
20796 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20797 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20798 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20799 # The linker can only warn and ignore the option if not recognized
20800 # So say no if there are warnings
20801 if test -s conftest.err
; then
20802 # Append any errors to the config.log.
20803 cat conftest.err
1>&5
20804 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20805 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20806 if diff conftest.exp conftest.er2
>/dev
/null
; then
20807 lt_cv_prog_compiler_static_works_CXX
=yes
20810 lt_cv_prog_compiler_static_works_CXX
=yes
20814 LDFLAGS
="$save_LDFLAGS"
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20818 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20820 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20823 lt_prog_compiler_static_CXX
=
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20830 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20831 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20832 $as_echo_n "(cached) " >&6
20834 lt_cv_prog_compiler_c_o_CXX
=no
20835 $RM -r conftest
2>/dev
/null
20839 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20841 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20842 # Insert the option either (1) after the last *FLAGS variable, or
20843 # (2) before a word containing "conftest.", or (3) at the end.
20844 # Note that $ac_compile itself does not contain backslashes and begins
20845 # with a dollar sign (not a hyphen), so the echo should work correctly.
20846 lt_compile
=`echo "$ac_compile" | $SED \
20847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20849 -e 's:$: $lt_compiler_flag:'`
20850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20851 (eval "$lt_compile" 2>out
/conftest.err
)
20853 cat out
/conftest.err
>&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20857 # The compiler can only warn and ignore the option if not recognized
20858 # So say no if there are warnings
20859 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20860 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20861 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20862 lt_cv_prog_compiler_c_o_CXX
=yes
20867 # SGI C++ compiler will create directory out/ii_files/ for
20868 # template instantiation
20869 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20870 $RM out
/* && rmdir out
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20877 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20882 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20883 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20884 $as_echo_n "(cached) " >&6
20886 lt_cv_prog_compiler_c_o_CXX
=no
20887 $RM -r conftest
2>/dev
/null
20891 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20893 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20894 # Insert the option either (1) after the last *FLAGS variable, or
20895 # (2) before a word containing "conftest.", or (3) at the end.
20896 # Note that $ac_compile itself does not contain backslashes and begins
20897 # with a dollar sign (not a hyphen), so the echo should work correctly.
20898 lt_compile
=`echo "$ac_compile" | $SED \
20899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20901 -e 's:$: $lt_compiler_flag:'`
20902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20903 (eval "$lt_compile" 2>out
/conftest.err
)
20905 cat out
/conftest.err
>&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20909 # The compiler can only warn and ignore the option if not recognized
20910 # So say no if there are warnings
20911 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20912 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20913 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20914 lt_cv_prog_compiler_c_o_CXX
=yes
20919 # SGI C++ compiler will create directory out/ii_files/ for
20920 # template instantiation
20921 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20922 $RM out
/* && rmdir out
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20929 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20934 hard_links
="nottested"
20935 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20936 # do not overwrite the value of need_locks provided by the user
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20938 $as_echo_n "checking if we can lock with hard links... " >&6; }
20941 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20943 ln conftest.a conftest.b
2>&5 || hard_links
=no
20944 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20946 $as_echo "$hard_links" >&6; }
20947 if test "$hard_links" = no
; then
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20949 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20959 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20961 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20964 # If we're using GNU nm, then we don't want the "-C" option.
20965 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20966 # Also, AIX nm treats weak defined symbols like other global defined
20967 # symbols, whereas GNU nm marks them as "W".
20968 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20969 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'
20971 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'
20975 export_symbols_cmds_CXX
="$ltdll_cmds"
20977 cygwin
* | mingw
* | cegcc
*)
20978 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'
20981 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20984 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20987 $as_echo "$ld_shlibs_CXX" >&6; }
20988 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20990 with_gnu_ld_CXX
=$with_gnu_ld
20998 # Do we need to explicitly link libc?
21000 case "x$archive_cmds_need_lc_CXX" in
21002 # Assume -lc should be added
21003 archive_cmds_need_lc_CXX
=yes
21005 if test "$enable_shared" = yes && test "$GCC" = yes; then
21006 case $archive_cmds_CXX in
21008 # FIXME: we may have to deal with multi-command sequences.
21011 # Test whether the compiler implicitly links with -lc since on some
21012 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21013 # to ld, don't add -lc before -lgcc.
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21015 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21016 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
21017 $as_echo_n "(cached) " >&6
21020 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21023 (eval $ac_compile) 2>&5
21025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21026 test $ac_status = 0; } 2>conftest.err
; then
21029 libobjs
=conftest.
$ac_objext
21031 wl
=$lt_prog_compiler_wl_CXX
21032 pic_flag
=$lt_prog_compiler_pic_CXX
21038 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21039 allow_undefined_flag_CXX
=
21040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21041 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21044 test $ac_status = 0; }
21046 lt_cv_archive_cmds_need_lc_CXX
=no
21048 lt_cv_archive_cmds_need_lc_CXX
=yes
21050 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21052 cat conftest.err
1>&5
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21058 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21059 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21130 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21132 library_names_spec
=
21133 libname_spec
='lib$name'
21137 postuninstall_cmds
=
21141 shlibpath_overrides_runpath
=unknown
21143 dynamic_linker
="$host_os ld.so"
21144 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21145 need_lib_prefix
=unknown
21146 hardcode_into_libs
=no
21148 # when you set need_version to no, make sure it does not cause -set_version
21149 # flags to be left without arguments
21150 need_version
=unknown
21155 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21156 shlibpath_var
=LIBPATH
21158 # AIX 3 has no versioning support, so we append a major version to the name.
21159 soname_spec
='${libname}${release}${shared_ext}$major'
21166 hardcode_into_libs
=yes
21167 if test "$host_cpu" = ia64
; then
21168 # AIX 5 supports IA64
21169 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21170 shlibpath_var
=LD_LIBRARY_PATH
21172 # With GCC up to 2.95.x, collect2 would create an import file
21173 # for dependence libraries. The import file would start with
21174 # the line `#! .'. This would cause the generated library to
21175 # depend on `.', always an invalid library. This was fixed in
21176 # development snapshots of GCC prior to 3.0.
21178 aix4 | aix4.
[01] | aix4.
[01].
*)
21179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21181 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21184 can_build_shared
=no
21188 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21189 # soname into executable. Probably we can add versioning support to
21190 # collect2, so additional links can be useful in future.
21191 if test "$aix_use_runtimelinking" = yes; then
21192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21193 # instead of lib<name>.a to let people know that these are not
21194 # typical AIX shared libraries.
21195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21197 # We preserve .a as extension for shared libraries through AIX4.2
21198 # and later when we are not doing run time linking.
21199 library_names_spec
='${libname}${release}.a $libname.a'
21200 soname_spec
='${libname}${release}${shared_ext}$major'
21202 shlibpath_var
=LIBPATH
21209 # Since July 2007 AmigaOS4 officially supports .so libraries.
21210 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21211 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21214 library_names_spec
='$libname.ixlibrary $libname.a'
21215 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21216 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'
21222 library_names_spec
='${libname}${shared_ext}'
21223 dynamic_linker
="$host_os ld.so"
21224 shlibpath_var
=LIBRARY_PATH
21230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21231 soname_spec
='${libname}${release}${shared_ext}$major'
21232 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21233 shlibpath_var
=LD_LIBRARY_PATH
21234 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21235 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21236 # the default ld.so.conf also contains /usr/contrib/lib and
21237 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21238 # libtool to hard-code these into programs
21241 cygwin
* | mingw
* | pw32
* | cegcc
*)
21242 version_type
=windows
21247 case $GCC,$host_os in
21248 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21249 library_names_spec
='$libname.dll.a'
21250 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21251 postinstall_cmds
='base_file=`basename \${file}`~
21252 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21253 dldir=$destdir/`dirname \$dlpath`~
21254 test -d \$dldir || mkdir -p \$dldir~
21255 $install_prog $dir/$dlname \$dldir/$dlname~
21256 chmod a+x \$dldir/$dlname~
21257 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21258 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21260 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21261 dlpath=$dir/\$dldll~
21263 shlibpath_overrides_runpath
=yes
21267 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21268 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21272 # MinGW DLLs use traditional 'lib' prefix
21273 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21276 # pw32 DLLs use 'pw' prefix rather than 'lib'
21277 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21283 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21286 dynamic_linker
='Win32 ld.exe'
21287 # FIXME: first we should search . and the directory the executable is in
21291 darwin
* | rhapsody
*)
21292 dynamic_linker
="$host_os dyld"
21293 version_type
=darwin
21296 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21297 soname_spec
='${libname}${release}${major}$shared_ext'
21298 shlibpath_overrides_runpath
=yes
21299 shlibpath_var
=DYLD_LIBRARY_PATH
21300 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21302 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21309 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21310 soname_spec
='${libname}${release}${shared_ext}$major'
21311 shlibpath_var
=LD_LIBRARY_PATH
21314 freebsd
* | dragonfly
*)
21315 # DragonFly does not have aout. When/if they implement a new
21316 # versioning mechanism, adjust this.
21317 if test -x /usr
/bin
/objformat
; then
21318 objformat
=`/usr/bin/objformat`
21321 freebsd
[23].
*) objformat
=aout
;;
21322 *) objformat
=elf
;;
21325 version_type
=freebsd-
$objformat
21326 case $version_type in
21328 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21333 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21337 shlibpath_var
=LD_LIBRARY_PATH
21340 shlibpath_overrides_runpath
=yes
21342 freebsd3.
[01]* | freebsdelf3.
[01]*)
21343 shlibpath_overrides_runpath
=yes
21344 hardcode_into_libs
=yes
21346 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21347 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21348 shlibpath_overrides_runpath
=no
21349 hardcode_into_libs
=yes
21351 *) # from 4.6 on, and DragonFly
21352 shlibpath_overrides_runpath
=yes
21353 hardcode_into_libs
=yes
21362 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21363 soname_spec
='${libname}${release}${shared_ext}$major'
21364 shlibpath_var
=LD_LIBRARY_PATH
21365 hardcode_into_libs
=yes
21372 dynamic_linker
="$host_os runtime_loader"
21373 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21374 soname_spec
='${libname}${release}${shared_ext}$major'
21375 shlibpath_var
=LIBRARY_PATH
21376 shlibpath_overrides_runpath
=yes
21377 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21378 hardcode_into_libs
=yes
21381 hpux9
* | hpux10
* | hpux11
*)
21382 # Give a soname corresponding to the major version so that dld.sl refuses to
21383 # link against other versions.
21390 hardcode_into_libs
=yes
21391 dynamic_linker
="$host_os dld.so"
21392 shlibpath_var
=LD_LIBRARY_PATH
21393 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21394 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21395 soname_spec
='${libname}${release}${shared_ext}$major'
21396 if test "X$HPUX_IA64_MODE" = X32
; then
21397 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21399 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21401 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21405 hardcode_into_libs
=yes
21406 dynamic_linker
="$host_os dld.sl"
21407 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21408 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21409 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21410 soname_spec
='${libname}${release}${shared_ext}$major'
21411 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21412 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21416 dynamic_linker
="$host_os dld.sl"
21417 shlibpath_var
=SHLIB_PATH
21418 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21419 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21420 soname_spec
='${libname}${release}${shared_ext}$major'
21423 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21424 postinstall_cmds
='chmod 555 $lib'
21425 # or fails outright, so override atomically:
21426 install_override_mode
=555
21433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21434 soname_spec
='${libname}${release}${shared_ext}$major'
21435 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21436 shlibpath_var
=LD_LIBRARY_PATH
21437 shlibpath_overrides_runpath
=no
21438 hardcode_into_libs
=yes
21441 irix5
* | irix6
* | nonstopux
*)
21443 nonstopux
*) version_type
=nonstopux
;;
21445 if test "$lt_cv_prog_gnu_ld" = yes; then
21453 soname_spec
='${libname}${release}${shared_ext}$major'
21454 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21456 irix5
* | nonstopux
*)
21457 libsuff
= shlibsuff
=
21460 case $LD in # libtool.m4 will add one of these switches to LD
21461 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21462 libsuff
= shlibsuff
= libmagic
=32-bit;;
21463 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21464 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21465 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21466 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21467 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21471 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21472 shlibpath_overrides_runpath
=no
21473 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21474 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21475 hardcode_into_libs
=yes
21478 # No shared lib support for Linux oldld, aout, or coff.
21479 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21483 # This must be Linux ELF.
21484 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21488 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21489 soname_spec
='${libname}${release}${shared_ext}$major'
21490 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21491 shlibpath_var
=LD_LIBRARY_PATH
21492 shlibpath_overrides_runpath
=no
21494 # Some binutils ld are patched to set DT_RUNPATH
21495 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21496 $as_echo_n "(cached) " >&6
21498 lt_cv_shlibpath_overrides_runpath
=no
21499 save_LDFLAGS
=$LDFLAGS
21500 save_libdir
=$libdir
21501 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21502 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21504 /* end confdefs.h. */
21514 if ac_fn_cxx_try_link
"$LINENO"; then :
21515 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21516 lt_cv_shlibpath_overrides_runpath
=yes
21519 rm -f core conftest.err conftest.
$ac_objext \
21520 conftest
$ac_exeext conftest.
$ac_ext
21521 LDFLAGS
=$save_LDFLAGS
21522 libdir
=$save_libdir
21526 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21528 # This implies no fast_install, which is unacceptable.
21529 # Some rework will be needed to allow for fast_install
21530 # before this can be enabled.
21531 hardcode_into_libs
=yes
21533 # Append ld.so.conf contents to the search path
21534 if test -f /etc
/ld.so.conf
; then
21535 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' ' '`
21536 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21539 # We used to test for /lib/ld.so.1 and disable shared libraries on
21540 # powerpc, because MkLinux only supported shared libraries with the
21541 # GNU dynamic linker. Since this was broken with cross compilers,
21542 # most powerpc-linux boxes support dynamic linking these days and
21543 # people can always --disable-shared, the test was removed, and we
21544 # assume the GNU/Linux dynamic linker is in use.
21545 dynamic_linker
='GNU/Linux ld.so'
21552 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21553 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21554 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21555 dynamic_linker
='NetBSD (a.out) ld.so'
21557 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21558 soname_spec
='${libname}${release}${shared_ext}$major'
21559 dynamic_linker
='NetBSD ld.elf_so'
21561 shlibpath_var
=LD_LIBRARY_PATH
21562 shlibpath_overrides_runpath
=yes
21563 hardcode_into_libs
=yes
21568 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21569 shlibpath_var
=LD_LIBRARY_PATH
21570 shlibpath_overrides_runpath
=yes
21577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21578 soname_spec
='${libname}${release}${shared_ext}$major'
21579 shlibpath_var
=LD_LIBRARY_PATH
21580 shlibpath_overrides_runpath
=no
21581 hardcode_into_libs
=yes
21582 dynamic_linker
='ldqnx.so'
21587 sys_lib_dlsearch_path_spec
="/usr/lib"
21589 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21591 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21592 *) need_version
=no
;;
21594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21595 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21596 shlibpath_var
=LD_LIBRARY_PATH
21597 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21599 openbsd2.
[89] | openbsd2.
[89].
*)
21600 shlibpath_overrides_runpath
=no
21603 shlibpath_overrides_runpath
=yes
21607 shlibpath_overrides_runpath
=yes
21612 libname_spec
='$name'
21615 library_names_spec
='$libname${shared_ext} $libname.a'
21616 dynamic_linker
='OS/2 ld.exe'
21617 shlibpath_var
=LIBPATH
21620 osf3
* | osf4
* | osf5
*)
21624 soname_spec
='${libname}${release}${shared_ext}$major'
21625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21626 shlibpath_var
=LD_LIBRARY_PATH
21627 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21628 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21640 soname_spec
='${libname}${release}${shared_ext}$major'
21641 shlibpath_var
=LD_LIBRARY_PATH
21642 shlibpath_overrides_runpath
=yes
21643 hardcode_into_libs
=yes
21644 # ldd complains unless libraries are executable
21645 postinstall_cmds
='chmod +x $lib'
21650 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21651 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21652 shlibpath_var
=LD_LIBRARY_PATH
21653 shlibpath_overrides_runpath
=yes
21654 if test "$with_gnu_ld" = yes; then
21662 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21663 soname_spec
='${libname}${release}${shared_ext}$major'
21664 shlibpath_var
=LD_LIBRARY_PATH
21665 case $host_vendor in
21667 shlibpath_overrides_runpath
=no
21669 runpath_var
=LD_RUN_PATH
21677 shlibpath_overrides_runpath
=no
21678 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21684 if test -d /usr
/nec
;then
21686 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21687 soname_spec
='$libname${shared_ext}.$major'
21688 shlibpath_var
=LD_LIBRARY_PATH
21692 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21693 version_type
=freebsd-elf
21696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21697 soname_spec
='${libname}${release}${shared_ext}$major'
21698 shlibpath_var
=LD_LIBRARY_PATH
21699 shlibpath_overrides_runpath
=yes
21700 hardcode_into_libs
=yes
21701 if test "$with_gnu_ld" = yes; then
21702 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21704 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21707 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21711 sys_lib_dlsearch_path_spec
='/usr/lib'
21715 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21719 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21720 shlibpath_var
=LD_LIBRARY_PATH
21721 shlibpath_overrides_runpath
=no
21722 hardcode_into_libs
=yes
21727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21728 soname_spec
='${libname}${release}${shared_ext}$major'
21729 shlibpath_var
=LD_LIBRARY_PATH
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21737 $as_echo "$dynamic_linker" >&6; }
21738 test "$dynamic_linker" = no
&& can_build_shared
=no
21740 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21741 if test "$GCC" = yes; then
21742 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21745 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21746 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21748 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21749 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21790 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21791 hardcode_action_CXX
=
21792 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21793 test -n "$runpath_var_CXX" ||
21794 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21796 # We can hardcode non-existent directories.
21797 if test "$hardcode_direct_CXX" != no
&&
21798 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21799 # have to relink, otherwise we might link with an installed library
21800 # when we should be linking with a yet-to-be-installed one
21801 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21802 test "$hardcode_minus_L_CXX" != no
; then
21803 # Linking always hardcodes the temporary library directory.
21804 hardcode_action_CXX
=relink
21806 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21807 hardcode_action_CXX
=immediate
21810 # We cannot hardcode anything, or else we can only hardcode existing
21812 hardcode_action_CXX
=unsupported
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21815 $as_echo "$hardcode_action_CXX" >&6; }
21817 if test "$hardcode_action_CXX" = relink ||
21818 test "$inherit_rpath_CXX" = yes; then
21819 # Fast installation is not supported
21820 enable_fast_install
=no
21821 elif test "$shlibpath_overrides_runpath" = yes ||
21822 test "$enable_shared" = no
; then
21823 # Fast installation is not necessary
21824 enable_fast_install
=needless
21833 fi # test -n "$compiler"
21839 with_gnu_ld
=$lt_save_with_gnu_ld
21840 lt_cv_path_LDCXX
=$lt_cv_path_LD
21841 lt_cv_path_LD
=$lt_save_path_LD
21842 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21843 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21844 fi # test "$_lt_caught_CXX_error" != yes
21847 ac_cpp
='$CXXCPP $CPPFLAGS'
21848 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21849 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21850 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21867 # Only expand once:
21873 # Identify the assembler which will work hand-in-glove with the newly
21874 # built GCC, so that we can examine its features. This is the assembler
21875 # which will be driven by the driver program.
21877 # If build != host, and we aren't building gas in-tree, we identify a
21878 # build->target assembler and hope that it will have the same features
21879 # as the host->target assembler we'll be using.
21880 gcc_cv_gas_major_version
=
21881 gcc_cv_gas_minor_version
=
21882 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21884 if test "${gcc_cv_as+set}" = set; then :
21888 if test -x "$DEFAULT_ASSEMBLER"; then
21889 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21890 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21891 && test -f ..
/gas
/Makefile \
21892 && test x
$build = x
$host; then
21893 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21894 elif test -x as
$build_exeext; then
21895 # Build using assembler in the current directory.
21896 gcc_cv_as
=.
/as
$build_exeext
21897 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21898 gcc_cv_as
="$AS_FOR_TARGET"
21900 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21901 set dummy
$AS_FOR_TARGET; ac_word
=$2
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21903 $as_echo_n "checking for $ac_word... " >&6; }
21904 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21905 $as_echo_n "(cached) " >&6
21909 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21913 for as_dir
in $PATH
21916 test -z "$as_dir" && as_dir
=.
21917 for ac_exec_ext
in '' $ac_executable_extensions; do
21918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21919 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21930 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21931 if test -n "$gcc_cv_as"; then
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21933 $as_echo "$gcc_cv_as" >&6; }
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21936 $as_echo "no" >&6; }
21943 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21945 case "$ORIGINAL_AS_FOR_TARGET" in
21946 .
/as | .
/as
$build_exeext) ;;
21947 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21952 $as_echo_n "checking what assembler to use... " >&6; }
21953 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21954 # Single tree build which includes gas. We want to prefer it
21955 # over whatever linker top-level may have detected, since
21956 # we'll use what we're building after installation anyway.
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21958 $as_echo "newly built gas" >&6; }
21960 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21961 for f
in $gcc_cv_as_bfd_srcdir/configure \
21962 $gcc_cv_as_gas_srcdir/configure \
21963 $gcc_cv_as_gas_srcdir/configure.ac \
21964 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21965 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21966 if test x
$gcc_cv_gas_version != x
; then
21970 case $gcc_cv_gas_version in
21972 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21974 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21975 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21976 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21977 case $gcc_cv_gas_patch_version in
21978 "") gcc_cv_gas_patch_version
="0" ;;
21980 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21981 + $gcc_cv_gas_minor_version \) \* 1000 \
21982 + $gcc_cv_gas_patch_version`
21984 in_tree_gas_is_elf
=no
21985 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21986 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21987 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21989 in_tree_gas_is_elf
=yes
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21993 $as_echo "$gcc_cv_as" >&6; }
21998 # Check whether --enable-ld was given.
21999 if test "${enable_ld+set}" = set; then :
22000 enableval
=$enable_ld; case "${enableval}" in
22008 install_gold_as_default
=no
22009 # Check whether --enable-gold was given.
22010 if test "${enable_gold+set}" = set; then :
22011 enableval
=$enable_gold; case "${enableval}" in
22013 install_gold_as_default
=yes
22016 if test x
${default_ld} != x
; then
22017 install_gold_as_default
=yes
22023 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
22029 # Identify the linker which will work hand-in-glove with the newly
22030 # built GCC, so that we can examine its features. This is the linker
22031 # which will be driven by the driver program.
22033 # If build != host, and we aren't building gas in-tree, we identify a
22034 # build->target linker and hope that it will have the same features
22035 # as the host->target linker we'll be using.
22036 gcc_cv_gld_major_version
=
22037 gcc_cv_gld_minor_version
=
22038 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22039 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22040 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22042 if test "${gcc_cv_ld+set}" = set; then :
22046 if test -x "$DEFAULT_LINKER"; then
22047 gcc_cv_ld
="$DEFAULT_LINKER"
22048 elif test $install_gold_as_default = yes \
22049 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22050 && test -f ..
/gold
/Makefile \
22051 && test x
$build = x
$host; then
22052 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22053 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22054 && test -f ..
/ld
/Makefile \
22055 && test x
$build = x
$host; then
22056 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22057 elif test -x collect-ld
$build_exeext; then
22058 # Build using linker in the current directory.
22059 gcc_cv_ld
=.
/collect-ld
$build_exeext
22060 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22061 gcc_cv_ld
="$LD_FOR_TARGET"
22063 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22064 set dummy
$LD_FOR_TARGET; ac_word
=$2
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22066 $as_echo_n "checking for $ac_word... " >&6; }
22067 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22068 $as_echo_n "(cached) " >&6
22072 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22076 for as_dir
in $PATH
22079 test -z "$as_dir" && as_dir
=.
22080 for ac_exec_ext
in '' $ac_executable_extensions; do
22081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22082 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22093 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22094 if test -n "$gcc_cv_ld"; then
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22096 $as_echo "$gcc_cv_ld" >&6; }
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22099 $as_echo "no" >&6; }
22106 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22107 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22108 # if the PLUGIN_LD is set ld-new, just have it as ld
22109 # as that is the installed named.
22110 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22111 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22112 PLUGIN_LD_SUFFIX
=ld
22115 # Check whether --with-plugin-ld was given.
22116 if test "${with_plugin_ld+set}" = set; then :
22117 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22118 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22119 PLUGIN_LD_SUFFIX
="$withval"
22125 cat >>confdefs.h
<<_ACEOF
22126 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22130 # Check to see if we are using gold instead of ld
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22132 $as_echo_n "checking whether we are using gold... " >&6; }
22134 if test x
$gcc_cv_ld != x
; then
22135 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22136 |
grep "GNU gold" > /dev
/null
; then
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22141 $as_echo "$ld_is_gold" >&6; }
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22144 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22145 # Check to see if default ld is not gold, but gold is
22146 # available and has support for split stack. If gcc was configured
22147 # with gold then no checking is done.
22149 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22151 # For platforms other than powerpc64*, enable as appropriate.
22153 gold_non_default
=no
22154 ld_gold
=`which ${gcc_cv_ld}.gold`
22155 # Make sure this gold has minimal split stack support
22156 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22157 ld_vers
=`$ld_gold --version | sed 1q`
22158 gold_vers
=`echo $ld_vers | sed -n \
22159 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22161 # check that the gold version contains the complete split stack support
22162 # on powerpc64 big and little endian
22164 case "$gold_vers" in
22165 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22167 *) gold_non_default
=no
22173 if test $gold_non_default = yes; then
22175 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22180 $as_echo "$gold_non_default" >&6; }
22182 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22184 case "$ORIGINAL_LD_FOR_TARGET" in
22185 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22186 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22191 $as_echo_n "checking what linker to use... " >&6; }
22192 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22193 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22194 # Single tree build which includes ld. We want to prefer it
22195 # over whatever linker top-level may have detected, since
22196 # we'll use what we're building after installation anyway.
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22198 $as_echo "newly built ld" >&6; }
22200 in_tree_ld_is_elf
=no
22201 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22202 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22203 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22204 in_tree_ld_is_elf
=yes
22205 elif test "$ld_is_gold" = yes; then
22206 in_tree_ld_is_elf
=yes
22208 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
22210 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22211 if test x
$gcc_cv_gld_version != x
; then
22215 case $gcc_cv_gld_version in
22217 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22219 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22220 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22221 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22222 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22225 $as_echo "$gcc_cv_ld" >&6; }
22227 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22228 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22229 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22235 # Figure out what nm we will be using.
22236 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22237 if test "${gcc_cv_nm+set}" = set; then :
22241 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22242 && test -f ..
/binutils
/Makefile \
22243 && test x
$build = x
$host; then
22244 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22245 elif test -x nm
$build_exeext; then
22246 gcc_cv_nm
=.
/nm
$build_exeext
22247 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22248 gcc_cv_nm
="$NM_FOR_TARGET"
22250 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22251 set dummy
$NM_FOR_TARGET; ac_word
=$2
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22253 $as_echo_n "checking for $ac_word... " >&6; }
22254 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22255 $as_echo_n "(cached) " >&6
22259 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22263 for as_dir
in $PATH
22266 test -z "$as_dir" && as_dir
=.
22267 for ac_exec_ext
in '' $ac_executable_extensions; do
22268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22269 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22280 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22281 if test -n "$gcc_cv_nm"; then
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22283 $as_echo "$gcc_cv_nm" >&6; }
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22286 $as_echo "no" >&6; }
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22294 $as_echo_n "checking what nm to use... " >&6; }
22295 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22296 # Single tree build which includes binutils.
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22298 $as_echo "newly built nm" >&6; }
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22302 $as_echo "$gcc_cv_nm" >&6; }
22306 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22308 case "$ORIGINAL_NM_FOR_TARGET" in
22309 .
/nm | .
/nm
$build_exeext) ;;
22310 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22315 # Figure out what objdump we will be using.
22316 if test "${gcc_cv_objdump+set}" = set; then :
22320 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22321 && test -f ..
/binutils
/Makefile \
22322 && test x
$build = x
$host; then
22323 # Single tree build which includes binutils.
22324 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22325 elif test -x objdump
$build_exeext; then
22326 gcc_cv_objdump
=.
/objdump
$build_exeext
22327 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22328 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22330 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22331 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22333 $as_echo_n "checking for $ac_word... " >&6; }
22334 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22335 $as_echo_n "(cached) " >&6
22337 case $gcc_cv_objdump in
22339 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22343 for as_dir
in $PATH
22346 test -z "$as_dir" && as_dir
=.
22347 for ac_exec_ext
in '' $ac_executable_extensions; do
22348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22349 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22360 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22361 if test -n "$gcc_cv_objdump"; then
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22363 $as_echo "$gcc_cv_objdump" >&6; }
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22366 $as_echo "no" >&6; }
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22374 $as_echo_n "checking what objdump to use... " >&6; }
22375 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22376 # Single tree build which includes binutils.
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22378 $as_echo "newly built objdump" >&6; }
22379 elif test x
$gcc_cv_objdump = x
; then
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22381 $as_echo "not found" >&6; }
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22384 $as_echo "$gcc_cv_objdump" >&6; }
22387 # Figure out what readelf we will be using.
22388 if test "${gcc_cv_readelf+set}" = set; then :
22392 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22393 && test -f ..
/binutils
/Makefile \
22394 && test x
$build = x
$host; then
22395 # Single tree build which includes binutils.
22396 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22397 elif test -x readelf
$build_exeext; then
22398 gcc_cv_readelf
=.
/readelf
$build_exeext
22399 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22400 gcc_cv_readelf
="$READELF_FOR_TARGET"
22402 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22403 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22405 $as_echo_n "checking for $ac_word... " >&6; }
22406 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22407 $as_echo_n "(cached) " >&6
22409 case $gcc_cv_readelf in
22411 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22415 for as_dir
in $PATH
22418 test -z "$as_dir" && as_dir
=.
22419 for ac_exec_ext
in '' $ac_executable_extensions; do
22420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22421 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22432 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22433 if test -n "$gcc_cv_readelf"; then
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22435 $as_echo "$gcc_cv_readelf" >&6; }
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22438 $as_echo "no" >&6; }
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22446 $as_echo_n "checking what readelf to use... " >&6; }
22447 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22448 # Single tree build which includes binutils.
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22450 $as_echo "newly built readelf" >&6; }
22451 elif test x
$gcc_cv_readelf = x
; then
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22453 $as_echo "not found" >&6; }
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22456 $as_echo "$gcc_cv_readelf" >&6; }
22459 # Figure out what assembler alignment features are present.
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22461 $as_echo_n "checking assembler flags... " >&6; }
22462 if test "${gcc_cv_as_flags+set}" = set; then :
22463 $as_echo_n "(cached) " >&6
22466 i
[34567]86-*-linux*)
22467 gcc_cv_as_flags
=--32
22469 x86_64-
*-linux-gnux32)
22470 gcc_cv_as_flags
=--x32
22473 gcc_cv_as_flags
=--64
22475 powerpc
*-*-darwin*)
22476 gcc_cv_as_flags
="-arch ppc"
22479 gcc_cv_as_flags
=" "
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22484 $as_echo "$gcc_cv_as_flags" >&6; }
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22487 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22488 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22489 $as_echo_n "(cached) " >&6
22491 gcc_cv_as_balign_and_p2align
=no
22492 if test $in_tree_gas = yes; then
22493 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22494 then gcc_cv_as_balign_and_p2align
=yes
22496 elif test x
$gcc_cv_as != x
; then
22497 $as_echo '.balign 4
22498 .p2align 2' > conftest.s
22499 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22501 (eval $ac_try) 2>&5
22503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22504 test $ac_status = 0; }; }
22506 gcc_cv_as_balign_and_p2align
=yes
22508 echo "configure: failed program was" >&5
22511 rm -f conftest.o conftest.s
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22515 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22516 if test $gcc_cv_as_balign_and_p2align = yes; then
22518 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22524 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22525 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22526 $as_echo_n "(cached) " >&6
22528 gcc_cv_as_max_skip_p2align
=no
22529 if test $in_tree_gas = yes; then
22530 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22531 then gcc_cv_as_max_skip_p2align
=yes
22533 elif test x
$gcc_cv_as != x
; then
22534 $as_echo '.p2align 4,,7' > conftest.s
22535 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22537 (eval $ac_try) 2>&5
22539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22540 test $ac_status = 0; }; }
22542 gcc_cv_as_max_skip_p2align
=yes
22544 echo "configure: failed program was" >&5
22547 rm -f conftest.o conftest.s
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22551 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22552 if test $gcc_cv_as_max_skip_p2align = yes; then
22554 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22560 $as_echo_n "checking assembler for .literal16... " >&6; }
22561 if test "${gcc_cv_as_literal16+set}" = set; then :
22562 $as_echo_n "(cached) " >&6
22564 gcc_cv_as_literal16
=no
22565 if test $in_tree_gas = yes; then
22566 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22567 then gcc_cv_as_literal16
=yes
22569 elif test x
$gcc_cv_as != x
; then
22570 $as_echo '.literal16' > conftest.s
22571 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22573 (eval $ac_try) 2>&5
22575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22576 test $ac_status = 0; }; }
22578 gcc_cv_as_literal16
=yes
22580 echo "configure: failed program was" >&5
22583 rm -f conftest.o conftest.s
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22587 $as_echo "$gcc_cv_as_literal16" >&6; }
22588 if test $gcc_cv_as_literal16 = yes; then
22590 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22596 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22597 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22598 $as_echo_n "(cached) " >&6
22600 gcc_cv_as_subsection_m1
=no
22601 if test $in_tree_gas = yes; then
22602 if test $in_tree_gas_is_elf = yes \
22603 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22604 then gcc_cv_as_subsection_m1
=yes
22606 elif test x
$gcc_cv_as != x
; then
22607 $as_echo 'conftest_label1: .word 0
22609 conftest_label2: .word 0
22610 .previous' > conftest.s
22611 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22613 (eval $ac_try) 2>&5
22615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22616 test $ac_status = 0; }; }
22618 if test x
$gcc_cv_nm != x
; then
22619 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22620 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22621 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22623 else gcc_cv_as_subsection_m1
=yes
22625 rm -f conftest.nm1 conftest.nm2
22628 echo "configure: failed program was" >&5
22631 rm -f conftest.o conftest.s
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22635 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22636 if test $gcc_cv_as_subsection_m1 = yes; then
22638 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22644 $as_echo_n "checking assembler for .weak... " >&6; }
22645 if test "${gcc_cv_as_weak+set}" = set; then :
22646 $as_echo_n "(cached) " >&6
22649 if test $in_tree_gas = yes; then
22650 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22651 then gcc_cv_as_weak
=yes
22653 elif test x
$gcc_cv_as != x
; then
22654 $as_echo ' .weak foobar' > conftest.s
22655 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22657 (eval $ac_try) 2>&5
22659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22660 test $ac_status = 0; }; }
22664 echo "configure: failed program was" >&5
22667 rm -f conftest.o conftest.s
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22671 $as_echo "$gcc_cv_as_weak" >&6; }
22672 if test $gcc_cv_as_weak = yes; then
22674 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22680 $as_echo_n "checking assembler for .weakref... " >&6; }
22681 if test "${gcc_cv_as_weakref+set}" = set; then :
22682 $as_echo_n "(cached) " >&6
22684 gcc_cv_as_weakref
=no
22685 if test $in_tree_gas = yes; then
22686 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22687 then gcc_cv_as_weakref
=yes
22689 elif test x
$gcc_cv_as != x
; then
22690 $as_echo ' .weakref foobar, barfnot' > conftest.s
22691 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22693 (eval $ac_try) 2>&5
22695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22696 test $ac_status = 0; }; }
22698 gcc_cv_as_weakref
=yes
22700 echo "configure: failed program was" >&5
22703 rm -f conftest.o conftest.s
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22707 $as_echo "$gcc_cv_as_weakref" >&6; }
22708 if test $gcc_cv_as_weakref = yes; then
22710 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22716 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22717 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22718 $as_echo_n "(cached) " >&6
22720 gcc_cv_as_nsubspa_comdat
=no
22721 if test $in_tree_gas = yes; then
22722 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22723 then gcc_cv_as_nsubspa_comdat
=yes
22725 elif test x
$gcc_cv_as != x
; then
22726 $as_echo ' .SPACE $TEXT$
22727 .NSUBSPA $CODE$,COMDAT' > conftest.s
22728 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22730 (eval $ac_try) 2>&5
22732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22733 test $ac_status = 0; }; }
22735 gcc_cv_as_nsubspa_comdat
=yes
22737 echo "configure: failed program was" >&5
22740 rm -f conftest.o conftest.s
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22744 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22745 if test $gcc_cv_as_nsubspa_comdat = yes; then
22747 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22752 # .hidden needs to be supported in both the assembler and the linker,
22753 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22754 # This is irritatingly difficult to feature test for; we have to check the
22755 # date string after the version number. If we've got an in-tree
22756 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22758 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22759 case "${target}" in
22761 conftest_s
=' .globl foobar,hidden'
22764 conftest_s
=' .hidden foobar
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22769 $as_echo_n "checking assembler for .hidden... " >&6; }
22770 if test "${gcc_cv_as_hidden+set}" = set; then :
22771 $as_echo_n "(cached) " >&6
22773 gcc_cv_as_hidden
=no
22774 if test $in_tree_gas = yes; then
22775 if test $in_tree_gas_is_elf = yes \
22776 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22777 then gcc_cv_as_hidden
=yes
22779 elif test x
$gcc_cv_as != x
; then
22780 $as_echo "$conftest_s" > conftest.s
22781 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22783 (eval $ac_try) 2>&5
22785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22786 test $ac_status = 0; }; }
22788 gcc_cv_as_hidden
=yes
22790 echo "configure: failed program was" >&5
22793 rm -f conftest.o conftest.s
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22797 $as_echo "$gcc_cv_as_hidden" >&6; }
22800 case "${target}" in
22802 # Darwin as has some visibility support, though with a different syntax.
22803 gcc_cv_as_hidden
=yes
22807 # gnu_indirect_function type is an extension proposed at
22808 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22809 # selection of function implementation
22810 # Check whether --enable-gnu-indirect-function was given.
22811 if test "${enable_gnu_indirect_function+set}" = set; then :
22812 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22814 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22815 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22818 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22822 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22824 cat >>confdefs.h
<<_ACEOF
22825 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22830 if test $in_tree_ld != yes ; then
22831 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22832 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22833 if test x
"$ld_is_gold" = xyes
; then
22834 # GNU gold --version looks like this:
22836 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22838 # We extract the binutils version which is more familiar and specific
22839 # than the gold version.
22840 ld_vers
=`echo $ld_ver | sed -n \
22841 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22843 # GNU ld --version looks like this:
22845 # GNU ld (GNU Binutils) 2.21.51.20110225
22846 ld_vers
=`echo $ld_ver | sed -n \
22847 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22849 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'`
22850 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22851 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22852 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22854 case "${target}" in
22856 # Solaris 2 ld -V output looks like this for a regular version:
22858 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22860 # but test versions add stuff at the end:
22862 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22864 # In Solaris 11.4, this was changed to
22866 # ld: Solaris ELF Utilities: 11.4-1.3123
22868 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22869 # numbers can be used in ld.so.1 feature checks even if a different
22870 # linker is configured.
22871 ld_ver
=`$gcc_cv_ld -V 2>&1`
22872 if echo "$ld_ver" |
$EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev
/null
; then
22873 ld_vers
=`echo $ld_ver | sed -n \
22874 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22875 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22876 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22884 $as_echo_n "checking linker for .hidden support... " >&6; }
22885 if test "${gcc_cv_ld_hidden+set}" = set; then :
22886 $as_echo_n "(cached) " >&6
22888 if test $in_tree_ld = yes ; then
22889 gcc_cv_ld_hidden
=no
22890 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 \
22891 && test $in_tree_ld_is_elf = yes; then
22892 gcc_cv_ld_hidden
=yes
22895 gcc_cv_ld_hidden
=yes
22896 if test x
"$ld_is_gold" = xyes
; then
22898 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22899 case "${target}" in
22900 mmix-knuth-mmixware
)
22901 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22902 gcc_cv_ld_hidden
=no
22905 if test 0"$ld_date" -lt 20020404; then
22906 if test -n "$ld_date"; then
22907 # If there was date string, but was earlier than 2002-04-04, fail
22908 gcc_cv_ld_hidden
=no
22909 elif test -z "$ld_vers"; then
22910 # If there was no date string nor ld version number, something is wrong
22911 gcc_cv_ld_hidden
=no
22913 test -z "$ld_vers_patch" && ld_vers_patch
=0
22914 if test "$ld_vers_major" -lt 2; then
22915 gcc_cv_ld_hidden
=no
22916 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22917 gcc_cv_ld_hidden
="no"
22918 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22919 gcc_cv_ld_hidden
=no
22924 case "${target}" in
22926 gcc_cv_ld_hidden
=yes
22929 # Darwin ld has some visibility support.
22930 gcc_cv_ld_hidden
=yes
22932 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22933 gcc_cv_ld_hidden
=yes
22935 *-*-solaris2.1
[0-9]*)
22936 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22937 # .symbolic was only added in Solaris 9 12/02.
22938 gcc_cv_ld_hidden
=yes
22941 gcc_cv_ld_hidden
=no
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22948 $as_echo "$gcc_cv_ld_hidden" >&6; }
22949 libgcc_visibility
=no
22952 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22953 libgcc_visibility
=yes
22955 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22960 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22961 gcc_cv_ld_ro_rw_mix
=unknown
22962 if test $in_tree_ld = yes ; then
22963 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 \
22964 && test $in_tree_ld_is_elf = yes; then
22965 gcc_cv_ld_ro_rw_mix
=read-write
22967 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22968 echo '.section myfoosect, "a"' > conftest1.s
22969 echo '.section myfoosect, "aw"' > conftest2.s
22970 echo '.byte 1' >> conftest2.s
22971 echo '.section myfoosect, "a"' > conftest3.s
22972 echo '.byte 0' >> conftest3.s
22973 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22974 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22975 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22976 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22977 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22978 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22979 | sed -e '/myfoosect/!d' -e N`
22980 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22981 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22982 gcc_cv_ld_ro_rw_mix
=read-only
22984 gcc_cv_ld_ro_rw_mix
=read-write
22988 rm -f conftest.
* conftest
[123].
*
22990 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22992 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22996 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22998 # Check whether --enable-initfini-array was given.
22999 if test "${enable_initfini_array+set}" = set; then :
23000 enableval
=$enable_initfini_array;
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23004 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23005 if test "${gcc_cv_initfini_array+set}" = set; then :
23006 $as_echo_n "(cached) " >&6
23008 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23009 case "${target}" in
23011 if test "$cross_compiling" = yes; then :
23012 gcc_cv_initfini_array
=no
23014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23015 /* end confdefs.h. */
23018 #error Not an ELF OS
23020 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23021 if it can be used. */
23023 int main (void) { return x; }
23024 int foo (void) { x = 0; }
23025 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23028 if ac_fn_cxx_try_run
"$LINENO"; then :
23029 gcc_cv_initfini_array
=yes
23031 gcc_cv_initfini_array
=no
23033 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23034 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23038 gcc_cv_initfini_array
=no
23039 if test $in_tree_ld = yes ; then
23040 if test "$gcc_cv_gld_major_version" -eq 2 \
23041 -a "$gcc_cv_gld_minor_version" -ge 22 \
23042 -o "$gcc_cv_gld_major_version" -gt 2 \
23043 && test $in_tree_ld_is_elf = yes; then
23044 gcc_cv_initfini_array
=yes
23046 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23047 case $target:$gas in
23050 sh_type
='%progbits'
23052 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23054 sh_type
='@progbits'
23056 sparc
*-*-solaris2*:no
)
23058 sh_type
='#progbits'
23062 case "$target:$gnu_ld" in
23064 cat > conftest.s
<<EOF
23065 .section .dtors,$sh_flags,$sh_type
23067 .byte 'A', 'A', 'A', 'A'
23068 .section .ctors,$sh_flags,$sh_type
23070 .byte 'B', 'B', 'B', 'B'
23071 .section .fini_array.65530,$sh_flags,$sh_type
23073 .byte 'C', 'C', 'C', 'C'
23074 .section .init_array.65530,$sh_flags,$sh_type
23076 .byte 'D', 'D', 'D', 'D'
23077 .section .dtors.64528,$sh_flags,$sh_type
23079 .byte 'E', 'E', 'E', 'E'
23080 .section .ctors.64528,$sh_flags,$sh_type
23082 .byte 'F', 'F', 'F', 'F'
23083 .section .fini_array.01005,$sh_flags,$sh_type
23085 .byte 'G', 'G', 'G', 'G'
23086 .section .init_array.01005,$sh_flags,$sh_type
23088 .byte 'H', 'H', 'H', 'H'
23093 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23094 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23095 && $gcc_cv_objdump -s -j .init_array conftest \
23096 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23097 && $gcc_cv_objdump -s -j .fini_array conftest \
23098 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23099 gcc_cv_initfini_array
=yes
23103 # When Solaris ld added constructor priority support, it was
23104 # decided to only handle .init_array.N/.fini_array.N since
23105 # there was no need for backwards compatibility with
23106 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23107 # sections with correct execution order resp. to
23108 # .init_array/.fini_array, while gld merges them into
23109 # .init_array/.fini_array.
23110 cat > conftest.s
<<EOF
23111 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23113 .byte 'C', 'C', 'C', 'C'
23114 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23116 .byte 'D', 'D', 'D', 'D'
23117 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23119 .byte 'G', 'G', 'G', 'G'
23120 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23122 .byte 'H', 'H', 'H', 'H'
23127 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23128 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23129 && $gcc_cv_objdump -s -j .init_array conftest \
23130 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23131 && $gcc_cv_objdump -s -j .fini_array conftest \
23132 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23133 gcc_cv_initfini_array
=yes
23137 rm -f conftest conftest.
*
23139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23140 /* end confdefs.h. */
23143 # error Not an ELF OS
23145 #include <stdlib.h>
23146 #if defined __GLIBC_PREREQ
23147 # if __GLIBC_PREREQ (2, 4)
23149 # error GLIBC 2.4 required
23152 # if defined __sun__ && defined __svr4__
23153 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23155 # error The C library not known to support .init_array/.fini_array
23160 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23163 gcc_cv_initfini_array
=no
23165 rm -f conftest.err conftest.
$ac_ext;;
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23169 $as_echo_n "checking cross compile... guessing... " >&6; }
23170 gcc_cv_initfini_array
=no
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23174 $as_echo "$gcc_cv_initfini_array" >&6; }
23175 enable_initfini_array
=$gcc_cv_initfini_array
23180 cat >>confdefs.h
<<_ACEOF
23181 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23186 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23188 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23189 if test "${gcc_cv_as_leb128+set}" = set; then :
23190 $as_echo_n "(cached) " >&6
23192 gcc_cv_as_leb128
=no
23193 if test $in_tree_gas = yes; then
23194 if test $in_tree_gas_is_elf = yes \
23195 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23196 then gcc_cv_as_leb128
=yes
23198 elif test x
$gcc_cv_as != x
; then
23205 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23207 (eval $ac_try) 2>&5
23209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23210 test $ac_status = 0; }; }
23212 # GAS versions before 2.11 do not support uleb128,
23213 # despite appearing to.
23214 # ??? There exists an elf-specific test that will crash
23215 # the assembler. Perhaps it's better to figure out whether
23216 # arbitrary sections are supported and try the test.
23217 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23218 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23219 as_vers
=`echo $as_ver | sed -n \
23220 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23221 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23222 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23223 if test $as_major -eq 2 && test $as_minor -lt 11
23225 else gcc_cv_as_leb128
=yes
23229 echo "configure: failed program was" >&5
23232 rm -f conftest.o conftest.s
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23236 $as_echo "$gcc_cv_as_leb128" >&6; }
23237 if test $gcc_cv_as_leb128 = yes; then
23239 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23242 if test $gcc_cv_as_leb128 != yes; then
23244 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23248 # Determine if an .eh_frame section is read-only.
23249 gcc_fn_eh_frame_ro
() {
23250 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23251 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23252 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23255 # Check if we have assembler support for unwind directives.
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23257 $as_echo_n "checking assembler for cfi directives... " >&6; }
23258 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23259 $as_echo_n "(cached) " >&6
23261 gcc_cv_as_cfi_directive
=no
23262 if test x
$gcc_cv_as != x
; then
23268 .cfi_escape 1, 2, 3, 4, 5
23269 .cfi_endproc' > conftest.s
23270 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23272 (eval $ac_try) 2>&5
23274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23275 test $ac_status = 0; }; }
23279 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23280 # read-only and read-write sections, we need to make sure that the
23281 # assembler used emits read-write .eh_frame sections.
23282 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23283 gcc_cv_as_cfi_directive
=yes
23284 elif test "x$gcc_cv_objdump" = x
; then
23285 # No objdump, err on the side of caution.
23286 gcc_cv_as_cfi_directive
=no
23288 if test x
$gas = xyes
; then
23296 sparc
*-*-solaris2.
*)
23297 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23298 if gcc_fn_eh_frame_ro
$as_32_opt \
23299 || gcc_fn_eh_frame_ro
$as_64_opt; then
23300 gcc_cv_as_cfi_directive
=no
23302 gcc_cv_as_cfi_directive
=yes
23305 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23306 # On Solaris/x86, make sure that GCC and assembler agree on using
23307 # read-only .eh_frame sections for 64-bit.
23308 if gcc_fn_eh_frame_ro
$as_32_opt; then
23309 gcc_cv_as_cfi_directive
=no
23310 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23311 gcc_cv_as_cfi_directive
=yes
23313 gcc_cv_as_cfi_directive
=no
23320 gcc_cv_as_cfi_directive
=yes
23324 echo "configure: failed program was" >&5
23327 rm -f conftest.o conftest.s
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23331 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23334 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23336 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23337 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23338 $as_echo_n "(cached) " >&6
23340 gcc_cv_as_cfi_advance_working
=no
23341 if test x
$gcc_cv_as != x
; then
23344 .cfi_adjust_cfa_offset 64
23346 .cfi_adjust_cfa_offset 128
23347 .cfi_endproc' > conftest.s
23348 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23350 (eval $ac_try) 2>&5
23352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23353 test $ac_status = 0; }; }
23356 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23357 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23358 gcc_cv_as_cfi_advance_working
=yes
23362 echo "configure: failed program was" >&5
23365 rm -f conftest.o conftest.s
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23369 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23373 # no objdump, err on the side of caution
23374 gcc_cv_as_cfi_advance_working
=no
23378 cat >>confdefs.h
<<_ACEOF
23379 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23380 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23386 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23387 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23388 $as_echo_n "(cached) " >&6
23390 gcc_cv_as_cfi_personality_directive
=no
23391 if test x
$gcc_cv_as != x
; then
23394 .cfi_personality 0, symbol
23395 .cfi_endproc' > conftest.s
23396 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23398 (eval $ac_try) 2>&5
23400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23401 test $ac_status = 0; }; }
23403 gcc_cv_as_cfi_personality_directive
=yes
23405 echo "configure: failed program was" >&5
23408 rm -f conftest.o conftest.s
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23412 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23416 cat >>confdefs.h
<<_ACEOF
23417 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23418 then echo 1; else echo 0; fi`
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23423 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23424 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23425 $as_echo_n "(cached) " >&6
23427 gcc_cv_as_cfi_sections_directive
=no
23428 if test x
$gcc_cv_as != x
; then
23430 .cfi_sections .debug_frame, .eh_frame
23432 .cfi_endproc' > conftest.s
23433 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23435 (eval $ac_try) 2>&5
23437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23438 test $ac_status = 0; }; }
23441 win32 | pe | cygwin
* | mingw32
*)
23442 # Need to check that we generated the correct relocation for the
23443 # .debug_frame section. This was fixed for binutils 2.21.
23444 gcc_cv_as_cfi_sections_directive
=no
23445 if test "x$gcc_cv_objdump" != x
; then
23446 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23447 grep secrel
> /dev
/null
; then
23448 gcc_cv_as_cfi_sections_directive
=yes
23453 gcc_cv_as_cfi_sections_directive
=yes
23457 echo "configure: failed program was" >&5
23460 rm -f conftest.o conftest.s
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23464 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23469 cat >>confdefs.h
<<_ACEOF
23470 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23471 then echo 1; else echo 0; fi`
23475 # GAS versions up to and including 2.11.0 may mis-optimize
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23478 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23479 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23480 $as_echo_n "(cached) " >&6
23482 gcc_cv_as_eh_frame
=no
23483 if test $in_tree_gas = yes; then
23484 if test $in_tree_gas_is_elf = yes \
23485 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23486 then gcc_cv_as_eh_frame
=yes
23488 elif test x
$gcc_cv_as != x
; then
23495 .section .eh_frame,"aw",@progbits
23497 .4byte .LECIE1-.LSCIE1
23511 .4byte .LEFDE1-.LASFDE1
23513 .4byte .LASFDE1-__FRAME_BEGIN__
23520 .LEFDE1:' > conftest.s
23521 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23523 (eval $ac_try) 2>&5
23525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23526 test $ac_status = 0; }; }
23528 cat > conftest.lit
<<EOF
23529 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23530 0010 01000000 12000000 18000000 00000000 ................
23531 0020 08000000 04080000 0044 .........D
23533 cat > conftest.big
<<EOF
23534 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23535 0010 00000001 00000012 00000018 00000000 ................
23536 0020 00000008 04000000 0844 .........D
23538 # If the assembler didn't choke, and we can objdump,
23539 # and we got the correct data, then succeed.
23540 # The text in the here-document typically retains its unix-style line
23541 # endings, while the output of objdump will use host line endings.
23542 # Therefore, use diff -b for the comparisons.
23543 if test x
$gcc_cv_objdump != x \
23544 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23545 |
tail -3 > conftest.got \
23546 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23547 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23549 gcc_cv_as_eh_frame
=yes
23550 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23552 (eval $ac_try) 2>&5
23554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23555 test $ac_status = 0; }; }; then
23556 gcc_cv_as_eh_frame
=buggy
23558 # Uh oh, what do we do now?
23559 gcc_cv_as_eh_frame
=no
23562 echo "configure: failed program was" >&5
23565 rm -f conftest.o conftest.s
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23569 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23573 if test $gcc_cv_as_eh_frame = buggy
; then
23575 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23579 # Test if the assembler supports the section flag 'e' or #exclude for
23580 # specifying an excluded section.
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23582 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23583 if test "${gcc_cv_as_section_exclude_e+set}" = set; then :
23584 $as_echo_n "(cached) " >&6
23586 gcc_cv_as_section_exclude_e
=no
23587 if test $in_tree_gas = yes; then
23588 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23589 then gcc_cv_as_section_exclude_e
=yes
23591 elif test x
$gcc_cv_as != x
; then
23592 $as_echo '.section foo1,"e"
23593 .byte 0,0,0,0' > conftest.s
23594 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23596 (eval $ac_try) 2>&5
23598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23599 test $ac_status = 0; }; }
23601 gcc_cv_as_section_exclude_e
=yes
23603 echo "configure: failed program was" >&5
23606 rm -f conftest.o conftest.s
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23610 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23613 if test $gcc_cv_as_section_exclude_e = no
; then
23614 case "${target}" in
23615 # Solaris as uses #exclude instead.
23617 case "${target}" in
23618 sparc
*-*-solaris2*)
23619 conftest_s
='.section "foo1", #exclude'
23621 i?
86-*-solaris2* | x86_64-
*-solaris2*)
23622 conftest_s
='.section foo1, #exclude'
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23628 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23629 if test "${gcc_cv_as_section_exclude_hash+set}" = set; then :
23630 $as_echo_n "(cached) " >&6
23632 gcc_cv_as_section_exclude_hash
=no
23633 if test x
$gcc_cv_as != x
; then
23634 $as_echo "$conftest_s
23635 .byte 0,0,0,0" > conftest.s
23636 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23638 (eval $ac_try) 2>&5
23640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23641 test $ac_status = 0; }; }
23643 gcc_cv_as_section_exclude_hash
=yes
23645 echo "configure: failed program was" >&5
23648 rm -f conftest.o conftest.s
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23652 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23657 cat >>confdefs.h
<<_ACEOF
23658 #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`
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23663 $as_echo_n "checking assembler for section merging support... " >&6; }
23664 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23665 $as_echo_n "(cached) " >&6
23667 gcc_cv_as_shf_merge
=no
23668 if test $in_tree_gas = yes; then
23669 if test $in_tree_gas_is_elf = yes \
23670 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23671 then gcc_cv_as_shf_merge
=yes
23673 elif test x
$gcc_cv_as != x
; then
23674 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23675 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23677 (eval $ac_try) 2>&5
23679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23680 test $ac_status = 0; }; }
23682 gcc_cv_as_shf_merge
=yes
23684 echo "configure: failed program was" >&5
23687 rm -f conftest.o conftest.s
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23691 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23694 if test $gcc_cv_as_shf_merge = no
; then
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23696 $as_echo_n "checking assembler for section merging support... " >&6; }
23697 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23698 $as_echo_n "(cached) " >&6
23700 gcc_cv_as_shf_merge
=no
23701 if test $in_tree_gas = yes; then
23702 if test $in_tree_gas_is_elf = yes \
23703 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23704 then gcc_cv_as_shf_merge
=yes
23706 elif test x
$gcc_cv_as != x
; then
23707 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23708 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23710 (eval $ac_try) 2>&5
23712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23713 test $ac_status = 0; }; }
23715 gcc_cv_as_shf_merge
=yes
23717 echo "configure: failed program was" >&5
23720 rm -f conftest.o conftest.s
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23724 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23729 i?
86-*-solaris2.10
* | x86_64-
*-solaris2.10
*)
23730 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23731 if test x
"$gnu_ld" = xno
; then
23732 gcc_cv_as_shf_merge
=no
23737 cat >>confdefs.h
<<_ACEOF
23738 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23742 gcc_cv_ld_aligned_shf_merge
=yes
23744 # While Solaris 10/SPARC ld isn't affected, disable to avoid problems
23745 # relinking on Solaris 11 < 11.4.
23746 sparc
*-*-solaris2.10
*)
23747 if test x
"$gnu_ld" = xno
; then
23748 gcc_cv_ld_aligned_shf_merge
=no
23751 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23753 sparc
*-*-solaris2.11
*)
23754 if test x
"$gnu_ld" = xno \
23755 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23756 gcc_cv_ld_aligned_shf_merge
=no
23761 cat >>confdefs.h
<<_ACEOF
23762 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23767 $as_echo_n "checking assembler for stabs directive... " >&6; }
23768 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23769 $as_echo_n "(cached) " >&6
23771 gcc_cv_as_stabs_directive
=no
23772 if test x
$gcc_cv_as != x
; then
23773 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23774 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23776 (eval $ac_try) 2>&5
23778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23779 test $ac_status = 0; }; }
23781 gcc_cv_as_stabs_directive
=yes
23783 echo "configure: failed program was" >&5
23786 rm -f conftest.o conftest.s
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23790 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23791 if test $gcc_cv_as_stabs_directive = yes; then
23793 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23799 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23800 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23801 $as_echo_n "(cached) " >&6
23803 gcc_cv_as_comdat_group
=no
23804 if test $in_tree_gas = yes; then
23805 if test $in_tree_gas_is_elf = yes \
23806 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23807 then gcc_cv_as_comdat_group
=yes
23809 elif test x
$gcc_cv_as != x
; then
23810 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23811 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23813 (eval $ac_try) 2>&5
23815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23816 test $ac_status = 0; }; }
23818 gcc_cv_as_comdat_group
=yes
23820 echo "configure: failed program was" >&5
23823 rm -f conftest.o conftest.s
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23827 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23830 if test $gcc_cv_as_comdat_group = yes; then
23831 gcc_cv_as_comdat_group_percent
=no
23832 gcc_cv_as_comdat_group_group
=no
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23835 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23836 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23837 $as_echo_n "(cached) " >&6
23839 gcc_cv_as_comdat_group_percent
=no
23840 if test $in_tree_gas = yes; then
23841 if test $in_tree_gas_is_elf = yes \
23842 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23843 then gcc_cv_as_comdat_group_percent
=yes
23845 elif test x
$gcc_cv_as != x
; then
23846 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23847 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23849 (eval $ac_try) 2>&5
23851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23852 test $ac_status = 0; }; }
23854 gcc_cv_as_comdat_group_percent
=yes
23856 echo "configure: failed program was" >&5
23859 rm -f conftest.o conftest.s
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23863 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23866 if test $gcc_cv_as_comdat_group_percent = yes; then
23867 gcc_cv_as_comdat_group_group
=no
23869 case "${target}" in
23870 # Sun as uses a completely different syntax.
23872 case "${target}" in
23873 sparc
*-*-solaris2*)
23875 .group foo,".text%foo",#comdat
23876 .section ".text%foo", #alloc,#execinstr,#progbits
23881 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23883 .group foo,.text%foo,#comdat
23884 .section .text%foo, "ax", @progbits
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23891 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23892 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23893 $as_echo_n "(cached) " >&6
23895 gcc_cv_as_comdat_group_group
=no
23896 if test x
$gcc_cv_as != x
; then
23897 $as_echo "$conftest_s" > conftest.s
23898 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23900 (eval $ac_try) 2>&5
23902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23903 test $ac_status = 0; }; }
23905 gcc_cv_as_comdat_group_group
=yes
23907 echo "configure: failed program was" >&5
23910 rm -f conftest.o conftest.s
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23914 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23919 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23920 gcc_cv_as_comdat_group_group
=no
23924 if test x
"$ld_is_gold" = xyes
; then
23926 elif test $in_tree_ld = yes ; then
23928 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 \
23929 && test $in_tree_ld_is_elf = yes; then
23932 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23934 if test 0"$ld_date" -lt 20050308; then
23935 if test -n "$ld_date"; then
23936 # If there was date string, but was earlier than 2005-03-08, fail
23938 elif test "$ld_vers_major" -lt 2; then
23940 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23945 case "${target}" in
23946 *-*-solaris2.1
[1-9]*)
23948 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23949 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23952 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23953 # least ld version 1.2267.
23954 if test "$ld_vers_major" -gt 1; then
23956 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23958 elif test "$ld_vers_minor" -ge 2267; then
23963 # Assume linkers other than GNU ld don't support COMDAT group.
23968 # Allow overriding the automatic COMDAT group tests above.
23969 # Check whether --enable-comdat was given.
23970 if test "${enable_comdat+set}" = set; then :
23971 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23974 if test $comdat_group = no
; then
23975 gcc_cv_as_comdat_group
=no
23976 gcc_cv_as_comdat_group_percent
=no
23977 gcc_cv_as_comdat_group_group
=no
23980 cat >>confdefs.h
<<_ACEOF
23981 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23982 || test $gcc_cv_as_comdat_group_percent = yes \
23983 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23987 # Restrict this test to Solaris/x86: other targets define this statically.
23988 case "${target}" in
23989 i?
86-*-solaris2* | x86_64-
*-solaris2*)
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
23991 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
23992 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23993 hidden_linkonce
=yes
23995 case "${target}" in
23996 # Full support for hidden thunks in linkonce sections only appeared in
23997 # Solaris 11/OpenSolaris.
23998 *-*-solaris2.1
[1-9]*)
23999 hidden_linkonce
=yes
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24007 $as_echo "$hidden_linkonce" >&6; }
24009 cat >>confdefs.h
<<_ACEOF
24010 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24017 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24018 if test "${gcc_cv_as_is_stmt+set}" = set; then :
24019 $as_echo_n "(cached) " >&6
24021 gcc_cv_as_is_stmt
=no
24022 if test $in_tree_gas = yes; then
24023 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24024 then gcc_cv_as_is_stmt
=yes
24026 elif test x
$gcc_cv_as != x
; then
24029 .loc 1 1 0 is_stmt 1' > 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 gcc_cv_as_is_stmt
=yes
24039 echo "configure: failed program was" >&5
24042 rm -f conftest.o conftest.s
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24046 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24047 if test $gcc_cv_as_is_stmt = yes; then
24049 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24055 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24056 if test "${gcc_cv_as_discriminator+set}" = set; then :
24057 $as_echo_n "(cached) " >&6
24059 gcc_cv_as_discriminator
=no
24060 if test $in_tree_gas = yes; then
24061 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24062 then gcc_cv_as_discriminator
=yes
24064 elif test x
$gcc_cv_as != x
; then
24067 .loc 1 1 0 discriminator 1' > conftest.s
24068 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24070 (eval $ac_try) 2>&5
24072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24073 test $ac_status = 0; }; }
24075 gcc_cv_as_discriminator
=yes
24077 echo "configure: failed program was" >&5
24080 rm -f conftest.o conftest.s
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24084 $as_echo "$gcc_cv_as_discriminator" >&6; }
24085 if test $gcc_cv_as_discriminator = yes; then
24087 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24092 # Thread-local storage - the check is heavily parameterized.
24100 .section ".tdata","awT",@progbits
24103 ldq $27,__tls_get_addr($29) !literal!1
24104 lda $16,foo($29) !tlsgd!1
24105 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24106 ldq $27,__tls_get_addr($29) !literal!2
24107 lda $16,foo($29) !tlsldm!2
24108 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24109 ldq $1,foo($29) !gotdtprel
24110 ldah $2,foo($29) !dtprelhi
24111 lda $3,foo($2) !dtprello
24112 lda $4,foo($29) !dtprel
24113 ldq $1,foo($29) !gottprel
24114 ldah $2,foo($29) !tprelhi
24115 lda $3,foo($2) !tprello
24116 lda $4,foo($29) !tprel'
24119 tls_as_opt
=--fatal-warnings
24123 add_s r0,r0, @foo@tpoff'
24127 cris-
*-*|crisv32-
*-*)
24129 .section ".tdata","awT",@progbits
24136 tls_as_opt
=--fatal-warnings
24140 .section ".tdata","awT",@progbits
24143 call #gettlsoff(x)'
24152 .section ".tdata","awT",@progbits
24156 addil LT%foo-$tls_gdidx$,gp
24157 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24160 addil LT%foo-$tls_ldidx$,gp
24162 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24163 addil LR%foo-$tls_dtpoff$,%ret0
24164 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24166 addil LT%foo-$tls_ieoff$,gp
24167 ldw RT%foo-$tls_ieoff$(%r1),%t2
24170 addil LR%foo-$tls_leoff$,%t1
24171 ldo RR%foo-$tls_leoff$(%r1),%t2'
24174 tls_as_opt
=--fatal-warnings
24178 .section ".tdata","awT",%progbits
24181 .word foo(gottpoff)
24189 i
[34567]86-*-* | x86_64-
*-*)
24191 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
24198 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24200 .section .tdata,"awt",@progbits'
24205 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24209 .section ".tdata","awT",@progbits'
24213 tls_as_opt
="--fatal-warnings"
24217 conftest_s
="$conftest_s
24221 leal foo@tlsgd(,%ebx,1), %eax
24222 leal foo@tlsldm(%ebx), %eax
24223 leal foo@dtpoff(%eax), %edx
24224 movl foo@gottpoff(%ebx), %eax
24225 subl foo@gottpoff(%ebx), %eax
24226 addl foo@gotntpoff(%ebx), %eax
24227 movl foo@indntpoff, %eax
24228 movl \$foo@tpoff, %eax
24229 subl \$foo@tpoff, %eax
24230 leal foo@ntpoff(%ecx), %eax"
24233 if test x
$on_solaris = xyes
; then
24235 yes) tls_as_opt
="$tls_as_opt --64" ;;
24236 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24239 conftest_s
="$conftest_s
24243 leaq foo@tlsgd(%rip), %rdi
24244 leaq foo@tlsld(%rip), %rdi
24245 leaq foo@dtpoff(%rax), %rdx
24246 movq foo@gottpoff(%rip), %rax
24247 movq \$foo@tpoff, %rax"
24253 .section ".tdata","awT",@progbits
24256 addl r16 = @ltoff(@dtpmod(foo#)), gp
24257 addl r17 = @ltoff(@dtprel(foo#)), gp
24258 addl r18 = @ltoff(@tprel(foo#)), gp
24259 addl r19 = @dtprel(foo#), gp
24260 adds r21 = @dtprel(foo#), r13
24261 movl r23 = @dtprel(foo#)
24262 addl r20 = @tprel(foo#), gp
24263 adds r22 = @tprel(foo#), r13
24264 movl r24 = @tprel(foo#)'
24267 tls_as_opt
=--fatal-warnings
24271 .section .tdata,"awT",@progbits
24275 addik r5,r20,x@TLSGD
24276 addik r5,r20,x@TLSLDM'
24279 tls_as_opt
='--fatal-warnings'
24283 .section .tdata,"awT",@progbits
24287 addiu $4, $28, %tlsgd(x)
24288 addiu $4, $28, %tlsldm(x)
24289 lui $4, %dtprel_hi(x)
24290 addiu $4, $4, %dtprel_lo(x)
24291 lw $4, %gottprel(x)($28)
24292 lui $4, %tprel_hi(x)
24293 addiu $4, $4, %tprel_lo(x)'
24296 tls_as_opt
='-32 --fatal-warnings'
24300 .section .tdata,"awT",@progbits
24305 move.l x@TLSGD(%a5),%a0
24306 move.l x@TLSLDM(%a5),%a0
24307 move.l x@TLSLDO(%a5),%a0
24308 move.l x@TLSIE(%a5),%a0
24309 move.l x@TLSLE(%a5),%a0'
24312 tls_as_opt
='--fatal-warnings'
24316 .section ".tdata","awT",@progbits'
24319 tls_as_opt
="--fatal-warnings"
24323 .section ".tdata","awT",%progbits
24327 add x0, x0, #:tlsgd_lo12:x
24332 tls_as_opt
='--fatal-warnings'
24336 .extern __get_tpointer
24354 .section ".tdata","awT",@progbits
24362 addi 3,2,ld0@got@tlsgd
24368 addi 3,2,x1@got@tlsld
24374 addis 9,3,x2@dtprel@ha
24375 addi 9,9,x2@dtprel@l
24378 ld 9,x3@got@dtprel(2)
24384 tls_as_opt
="-a64 --fatal-warnings"
24388 .section ".tdata","awT",@progbits
24396 addi 3,31,ld0@got@tlsgd
24398 addi 3,31,x1@got@tlsld
24401 addis 9,3,x2@dtprel@ha
24402 addi 9,9,x2@dtprel@l
24403 lwz 9,x3@got@tprel(31)
24406 addis 9,2,x2@tprel@ha
24407 addi 9,9,x2@tprel@l'
24410 tls_as_opt
="-a32 --fatal-warnings"
24414 .section .tdata,"awT",@progbits
24418 call __tls_get_addr'
24421 tls_as_opt
='--fatal-warnings'
24425 .section ".tdata","awT",@progbits
24432 .long foo@GOTNTPOFF
24433 .long foo@INDNTPOFF
24434 l %r1,foo@GOTNTPOFF(%r12)
24435 l %r1,0(%r1):tls_load:foo
24436 bas %r14,0(%r1,%r13):tls_gdcall:foo
24437 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24440 tls_as_opt
="-m31 --fatal-warnings"
24444 .section ".tdata","awT",@progbits
24451 .quad foo@GOTNTPOFF
24452 lg %r1,foo@GOTNTPOFF(%r12)
24453 larl %r1,foo@INDNTPOFF
24454 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24455 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24458 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24460 sh-
*-* | sh
[123456789lbe
]*-*-*)
24462 .section ".tdata","awT",@progbits
24472 tls_as_opt
=--fatal-warnings
24476 sparc
*-sun-solaris2.
*)
24483 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24485 .section ".tdata",#alloc,#write,#tls'
24490 .section ".tdata","awT",@progbits'
24493 tls_as_opt
="-32 --fatal-warnings"
24495 conftest_s
="$conftest_s
24498 sethi %tgd_hi22(foo), %o0
24499 add %o0, %tgd_lo10(foo), %o1
24500 add %l7, %o1, %o0, %tgd_add(foo)
24501 call __tls_get_addr, %tgd_call(foo)
24502 sethi %tldm_hi22(foo), %l1
24503 add %l1, %tldm_lo10(foo), %l2
24504 add %l7, %l2, %o0, %tldm_add(foo)
24505 call __tls_get_addr, %tldm_call(foo)
24506 sethi %tldo_hix22(foo), %l3
24507 xor %l3, %tldo_lox10(foo), %l4
24508 add %o0, %l4, %l5, %tldo_add(foo)
24509 sethi %tie_hi22(foo), %o3
24510 add %o3, %tie_lo10(foo), %o3
24511 ld [%l7 + %o3], %o2, %tie_ld(foo)
24512 add %g7, %o2, %o4, %tie_add(foo)
24513 sethi %tle_hix22(foo), %l1
24514 xor %l1, %tle_lox10(foo), %o5
24515 ld [%g7 + %o5], %o1"
24519 .section ".tdata","awT",@progbits
24522 addli r0, zero, tls_gd(foo)
24523 auli r0, zero, tls_gd_ha16(foo)
24524 addli r0, r0, tls_gd_lo16(foo)
24526 addli r0, zero, tls_ie(foo)
24527 auli r0, r0, tls_ie_ha16(foo)
24528 addli r0, r0, tls_ie_lo16(foo)'
24531 tls_as_opt
="--fatal-warnings"
24535 .section ".tdata","awT",@progbits
24538 shl16insli r0, zero, hw0_last_tls_gd(foo)
24539 shl16insli r0, zero, hw1_last_tls_gd(foo)
24540 shl16insli r0, r0, hw0_tls_gd(foo)
24542 shl16insli r0, zero, hw1_last_tls_ie(foo)
24543 shl16insli r0, r0, hw0_tls_ie(foo)'
24546 tls_as_opt
="--fatal-warnings"
24550 .section ".tdata","awT",@progbits
24553 movi a8, foo@TLSFUNC
24554 movi a10, foo@TLSARG
24555 callx8.tls a8, foo@TLSCALL'
24561 if test "x$enable_tls" = xno
; then
24562 : # TLS explicitly disabled.
24563 elif test "x$enable_tls" = xyes
; then
24564 set_have_as_tls
=yes # TLS explicitly enabled.
24565 elif test -z "$tls_first_major"; then
24566 : # If we don't have a check, assume no support.
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24569 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24570 if test "${gcc_cv_as_tls+set}" = set; then :
24571 $as_echo_n "(cached) " >&6
24574 if test $in_tree_gas = yes; then
24575 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24576 then gcc_cv_as_tls
=yes
24578 elif test x
$gcc_cv_as != x
; then
24579 $as_echo "$conftest_s" > conftest.s
24580 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24582 (eval $ac_try) 2>&5
24584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585 test $ac_status = 0; }; }
24589 echo "configure: failed program was" >&5
24592 rm -f conftest.o conftest.s
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24596 $as_echo "$gcc_cv_as_tls" >&6; }
24597 if test $gcc_cv_as_tls = yes; then
24598 set_have_as_tls
=yes
24602 if test $set_have_as_tls = yes ; then
24604 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24608 # Target-specific assembler checks.
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24611 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24612 gcc_cv_ld_static_dynamic
=no
24613 gcc_cv_ld_static_option
='-Bstatic'
24614 gcc_cv_ld_dynamic_option
='-Bdynamic'
24615 if test $in_tree_ld = yes ; then
24616 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
24617 gcc_cv_ld_static_dynamic
=yes
24619 elif test x
$gcc_cv_ld != x
; then
24620 # Check if linker supports -Bstatic/-Bdynamic option
24621 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
24622 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
24623 gcc_cv_ld_static_dynamic
=yes
24626 # AIX ld uses -b flags
24627 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24628 gcc_cv_ld_static_dynamic
=yes
24629 gcc_cv_ld_static_option
="-bstatic"
24630 gcc_cv_ld_dynamic_option
="-bdynamic"
24632 # HP-UX ld uses -a flags to select between shared and archive.
24634 if test x
"$gnu_ld" = xno
; then
24635 gcc_cv_ld_static_dynamic
=yes
24636 gcc_cv_ld_static_option
="-aarchive_shared"
24637 gcc_cv_ld_dynamic_option
="-adefault"
24640 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24642 gcc_cv_ld_static_dynamic
=yes
24647 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24649 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24652 cat >>confdefs.h
<<_ACEOF
24653 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24657 cat >>confdefs.h
<<_ACEOF
24658 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24663 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24666 $as_echo_n "checking linker --version-script option... " >&6; }
24667 gcc_cv_ld_version_script
=no
24668 ld_version_script_option
=''
24669 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
24670 gcc_cv_ld_version_script
=yes
24671 ld_version_script_option
='--version-script'
24672 elif test x
$gcc_cv_ld != x
; then
24674 # Solaris 2 ld always supports -M. It also supports a subset of
24675 # --version-script since Solaris 11.4, but requires
24676 # -z gnu-version-script-compat to activate.
24678 gcc_cv_ld_version_script
=yes
24679 ld_version_script_option
='-M'
24683 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24685 $as_echo "$gcc_cv_ld_version_script" >&6; }
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24689 $as_echo_n "checking linker soname option... " >&6; }
24690 gcc_cv_ld_soname
=no
24691 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
24692 gcc_cv_ld_soname
=yes
24693 ld_soname_option
='-soname'
24694 elif test x
$gcc_cv_ld != x
; then
24697 gcc_cv_ld_soname
=yes
24698 ld_soname_option
='-install_name'
24700 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24701 # ld compatiblity since some Solaris 10 update.
24703 gcc_cv_ld_soname
=yes
24704 ld_soname_option
='-h'
24708 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24710 $as_echo "$gcc_cv_ld_soname" >&6; }
24713 if test x
"$demangler_in_ld" = xyes
; then
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24715 $as_echo_n "checking linker --demangle support... " >&6; }
24716 gcc_cv_ld_demangle
=no
24717 if test $in_tree_ld = yes; then
24718 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 \
24719 gcc_cv_ld_demangle
=yes
24721 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24722 # Check if the GNU linker supports --demangle option
24723 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
24724 gcc_cv_ld_demangle
=yes
24727 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24729 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24733 $as_echo "$gcc_cv_ld_demangle" >&6; }
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24737 $as_echo_n "checking linker plugin support... " >&6; }
24738 gcc_cv_lto_plugin
=0
24739 if test -f liblto_plugin.la
; then
24740 save_ld_ver
="$ld_ver"
24741 save_ld_vers_major
="$ld_vers_major"
24742 save_ld_vers_minor
="$ld_vers_minor"
24743 save_ld_is_gold
="$ld_is_gold"
24747 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24749 # FIXME: ld_is_gold?
24750 ld_vers_major
="$gcc_cv_gld_major_version"
24751 ld_vers_minor
="$gcc_cv_gld_minor_version"
24753 # Determine plugin linker version.
24754 # FIXME: Partial duplicate from above, generalize.
24755 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24756 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24757 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24759 ld_vers
=`echo $ld_ver | sed -n \
24760 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24762 ld_vers
=`echo $ld_ver | sed -n \
24763 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24765 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24766 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24770 # Determine plugin support.
24771 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24772 # Require GNU ld or gold 2.21+ for plugin support by default.
24773 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24774 gcc_cv_lto_plugin
=2
24775 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24776 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24777 gcc_cv_lto_plugin
=1
24781 ld_ver
="$save_ld_ver"
24782 ld_vers_major
="$save_ld_vers_major"
24783 ld_vers_minor
="$save_ld_vers_minor"
24784 ld_is_gold
="$save_ld_is_gold"
24787 cat >>confdefs.h
<<_ACEOF
24788 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24792 $as_echo "$gcc_cv_lto_plugin" >&6; }
24794 # Target OS-specific assembler checks.
24796 case "$target_os" in
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24799 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24800 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24801 $as_echo_n "(cached) " >&6
24803 gcc_cv_as_mmacosx_version_min
=no
24804 if test x
$gcc_cv_as != x
; then
24805 $as_echo '.text' > conftest.s
24806 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24808 (eval $ac_try) 2>&5
24810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24811 test $ac_status = 0; }; }
24813 gcc_cv_as_mmacosx_version_min
=yes
24815 echo "configure: failed program was" >&5
24818 rm -f conftest.o conftest.s
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24822 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24823 if test $gcc_cv_as_mmacosx_version_min = yes; then
24825 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24832 # Target CPU-specific assembler checks.
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24837 $as_echo_n "checking assembler for -mabi option... " >&6; }
24838 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24839 $as_echo_n "(cached) " >&6
24841 gcc_cv_as_aarch64_mabi
=no
24842 if test x
$gcc_cv_as != x
; then
24843 $as_echo '.text' > conftest.s
24844 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24846 (eval $ac_try) 2>&5
24848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24849 test $ac_status = 0; }; }
24851 gcc_cv_as_aarch64_mabi
=yes
24853 echo "configure: failed program was" >&5
24856 rm -f conftest.o conftest.s
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24860 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24863 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24865 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24868 if test x
$with_abi = xilp32
; then
24869 as_fn_error
"Assembler does not support -mabi=ilp32.\
24870 Upgrade the Assembler." "$LINENO" 5
24872 if test x
"$with_multilib_list" = xdefault
; then
24873 TM_MULTILIB_CONFIG
=lp64
24875 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24876 for aarch64_multilib
in ${aarch64_multilibs}; do
24877 case ${aarch64_multilib} in
24879 as_fn_error
"Assembler does not support -mabi=ilp32.\
24880 Upgrade the Assembler." "$LINENO" 5
24888 # Check if we have binutils support for relocations types needed by -fpic
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24890 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24891 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24892 $as_echo_n "(cached) " >&6
24894 gcc_cv_as_aarch64_picreloc
=no
24895 if test x
$gcc_cv_as != x
; then
24898 ldr x0, [x2, #:gotpage_lo15:globalsym]
24900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24902 (eval $ac_try) 2>&5
24904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24905 test $ac_status = 0; }; }
24907 gcc_cv_as_aarch64_picreloc
=yes
24909 echo "configure: failed program was" >&5
24912 rm -f conftest.o conftest.s
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24916 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24917 if test $gcc_cv_as_aarch64_picreloc = yes; then
24919 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24923 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24924 # Check whether --enable-fix-cortex-a53-835769 was given.
24925 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24926 enableval
=$enable_fix_cortex_a53_835769;
24929 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24934 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24935 Valid choices are 'yes' and 'no'." "$LINENO" 5
24942 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24943 # Check whether --enable-fix-cortex-a53-843419 was given.
24944 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24945 enableval
=$enable_fix_cortex_a53_843419;
24948 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24953 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24954 Valid choices are 'yes' and 'no'." "$LINENO" 5
24963 # All TARGET_ABI_OSF targets.
24964 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24966 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24967 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24968 $as_echo_n "(cached) " >&6
24970 gcc_cv_as_alpha_explicit_relocs
=no
24971 if test $in_tree_gas = yes; then
24972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24973 then gcc_cv_as_alpha_explicit_relocs
=yes
24975 elif test x
$gcc_cv_as != x
; then
24976 $as_echo ' .set nomacro
24978 extbl $3, $2, $3 !lituse_bytoff!1
24979 ldq $2, a($29) !literal!1
24980 ldq $4, b($29) !literal!2
24981 ldq_u $3, 0($2) !lituse_base!1
24982 ldq $27, f($29) !literal!5
24983 jsr $26, ($27), f !lituse_jsr!5
24984 ldah $29, 0($26) !gpdisp!3
24985 lda $0, c($29) !gprel
24986 ldah $1, d($29) !gprelhigh
24987 lda $1, d($1) !gprellow
24988 lda $29, 0($29) !gpdisp!3' > conftest.s
24989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24991 (eval $ac_try) 2>&5
24993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24994 test $ac_status = 0; }; }
24996 gcc_cv_as_alpha_explicit_relocs
=yes
24998 echo "configure: failed program was" >&5
25001 rm -f conftest.o conftest.s
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25005 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25006 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25008 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25013 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25014 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
25015 $as_echo_n "(cached) " >&6
25017 gcc_cv_as_alpha_jsrdirect_relocs
=no
25018 if test $in_tree_gas = yes; then
25019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25020 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
25022 elif test x
$gcc_cv_as != x
; then
25023 $as_echo ' .set nomacro
25025 ldq $27, a($29) !literal!1
25026 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25027 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25029 (eval $ac_try) 2>&5
25031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25032 test $ac_status = 0; }; }
25034 gcc_cv_as_alpha_jsrdirect_relocs
=yes
25036 echo "configure: failed program was" >&5
25039 rm -f conftest.o conftest.s
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25043 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25044 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25046 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25054 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25055 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
25056 $as_echo_n "(cached) " >&6
25058 gcc_cv_as_avr_mlink_relax
=no
25059 if test x
$gcc_cv_as != x
; then
25060 $as_echo '.text' > conftest.s
25061 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25063 (eval $ac_try) 2>&5
25065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25066 test $ac_status = 0; }; }
25068 gcc_cv_as_avr_mlink_relax
=yes
25070 echo "configure: failed program was" >&5
25073 rm -f conftest.o conftest.s
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25077 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25078 if test $gcc_cv_as_avr_mlink_relax = yes; then
25080 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25086 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25087 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
25088 $as_echo_n "(cached) " >&6
25090 gcc_cv_as_avr_mrmw
=no
25091 if test x
$gcc_cv_as != x
; then
25092 $as_echo '.text' > conftest.s
25093 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25095 (eval $ac_try) 2>&5
25097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25098 test $ac_status = 0; }; }
25100 gcc_cv_as_avr_mrmw
=yes
25102 echo "configure: failed program was" >&5
25105 rm -f conftest.o conftest.s
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25109 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25110 if test $gcc_cv_as_avr_mrmw = yes; then
25112 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25118 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25119 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
25120 $as_echo_n "(cached) " >&6
25122 gcc_cv_as_avr_mgccisr
=no
25123 if test x
$gcc_cv_as != x
; then
25129 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25131 (eval $ac_try) 2>&5
25133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25134 test $ac_status = 0; }; }
25136 gcc_cv_as_avr_mgccisr
=yes
25138 echo "configure: failed program was" >&5
25141 rm -f conftest.o conftest.s
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25145 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25146 if test $gcc_cv_as_avr_mgccisr = yes; then
25148 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25153 # Check how default linker description file implements .rodata for
25154 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25155 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25157 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25158 cat > conftest.s
<<EOF
25159 .section .rodata,"a",@progbits
25161 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25166 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25168 (eval $ac_try) 2>&5
25170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25171 test $ac_status = 0; }; }
25172 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25174 (eval $ac_try) 2>&5
25176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25177 test $ac_status = 0; }; }
25178 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
25179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25180 (eval $ac_try) 2>&5
25182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25183 test $ac_status = 0; }; }
25184 if test -s conftest.nm
25186 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25188 $as_echo "yes" >&6; }
25190 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25194 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25195 echo "$as_me: nm output was" >&5
25196 cat conftest.nm
>&5
25197 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25198 { $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
25199 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25203 $as_echo "test failed" >&6; }
25204 echo "$as_me: failed program was" >&5
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25207 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25209 rm -f conftest.s conftest.o conftest.elf conftest.nm
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25214 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25215 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
25216 $as_echo_n "(cached) " >&6
25218 gcc_cv_as_cris_no_mul_bug
=no
25219 if test $in_tree_gas = yes; then
25220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25221 then gcc_cv_as_cris_no_mul_bug
=yes
25223 elif test x
$gcc_cv_as != x
; then
25224 $as_echo '.text' > conftest.s
25225 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25227 (eval $ac_try) 2>&5
25229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25230 test $ac_status = 0; }; }
25232 gcc_cv_as_cris_no_mul_bug
=yes
25234 echo "configure: failed program was" >&5
25237 rm -f conftest.o conftest.s
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25241 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25242 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25244 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
25252 $as_echo_n "checking assembler for .register... " >&6; }
25253 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
25254 $as_echo_n "(cached) " >&6
25256 gcc_cv_as_sparc_register_op
=no
25257 if test x
$gcc_cv_as != x
; then
25258 $as_echo '.register %g2, #scratch' > conftest.s
25259 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25261 (eval $ac_try) 2>&5
25263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25264 test $ac_status = 0; }; }
25266 gcc_cv_as_sparc_register_op
=yes
25268 echo "configure: failed program was" >&5
25271 rm -f conftest.o conftest.s
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25275 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25276 if test $gcc_cv_as_sparc_register_op = yes; then
25278 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25284 $as_echo_n "checking assembler for -relax option... " >&6; }
25285 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25286 $as_echo_n "(cached) " >&6
25288 gcc_cv_as_sparc_relax
=no
25289 if test x
$gcc_cv_as != x
; then
25290 $as_echo '.text' > conftest.s
25291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25293 (eval $ac_try) 2>&5
25295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25296 test $ac_status = 0; }; }
25298 gcc_cv_as_sparc_relax
=yes
25300 echo "configure: failed program was" >&5
25303 rm -f conftest.o conftest.s
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25307 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25308 if test $gcc_cv_as_sparc_relax = yes; then
25310 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25316 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25317 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25318 $as_echo_n "(cached) " >&6
25320 gcc_cv_as_sparc_gotdata_op
=no
25321 if test x
$gcc_cv_as != x
; then
25327 sethi %gdop_hix22(foo), %g1
25328 xor %g1, %gdop_lox10(foo), %g1
25329 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25330 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25332 (eval $ac_try) 2>&5
25334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25335 test $ac_status = 0; }; }
25337 if test x
$gcc_cv_ld != x \
25338 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25339 if test x
$gcc_cv_objdump != x
; then
25340 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25341 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25342 gcc_cv_as_sparc_gotdata_op
=no
25344 gcc_cv_as_sparc_gotdata_op
=yes
25350 echo "configure: failed program was" >&5
25353 rm -f conftest.o conftest.s
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25357 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25358 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25360 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25366 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25367 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25368 $as_echo_n "(cached) " >&6
25370 gcc_cv_as_sparc_ua_pcrel
=no
25371 if test x
$gcc_cv_as != x
; then
25378 .uaword %r_disp32(foo)' > conftest.s
25379 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25381 (eval $ac_try) 2>&5
25383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25384 test $ac_status = 0; }; }
25386 if test x
$gcc_cv_ld != x \
25387 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25388 gcc_cv_as_sparc_ua_pcrel
=yes
25392 echo "configure: failed program was" >&5
25395 rm -f conftest.o conftest.s
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25399 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25400 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25402 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25406 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25407 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25408 $as_echo_n "(cached) " >&6
25410 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25411 if test x
$gcc_cv_as != x
; then
25415 .uaword %r_disp32(foo)
25416 .byte 0x32, 0x33, 0x34
25420 .skip 4' > conftest.s
25421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25423 (eval $ac_try) 2>&5
25425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25426 test $ac_status = 0; }; }
25428 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25429 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25430 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25431 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25432 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25433 |
grep 'DISP32' > /dev
/null
2>&1; then
25436 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25441 echo "configure: failed program was" >&5
25444 rm -f conftest.o conftest.s
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25448 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25449 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25451 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25457 # unaligned pcrel relocs
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25460 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25461 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25462 $as_echo_n "(cached) " >&6
25464 gcc_cv_as_sparc_offsetable_lo10
=no
25465 if test x
$gcc_cv_as != x
; then
25467 or %g1, %lo(ab) + 12, %g1
25468 or %g1, %lo(ab + 12), %g1' > conftest.s
25469 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25471 (eval $ac_try) 2>&5
25473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25474 test $ac_status = 0; }; }
25476 if test x
$gcc_cv_objdump != x \
25477 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25478 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25479 gcc_cv_as_sparc_offsetable_lo10
=yes
25482 echo "configure: failed program was" >&5
25485 rm -f conftest.o conftest.s
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25489 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25490 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25492 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25498 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25499 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25500 $as_echo_n "(cached) " >&6
25502 gcc_cv_as_sparc_fmaf
=no
25503 if test x
$gcc_cv_as != x
; then
25505 .register %g2, #scratch
25506 .register %g3, #scratch
25508 fmaddd %f0, %f2, %f4, %f6
25509 addxccc %g1, %g2, %g3
25510 fsrl32 %f2, %f4, %f8
25511 fnaddd %f10, %f12, %f14' > conftest.s
25512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25514 (eval $ac_try) 2>&5
25516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25517 test $ac_status = 0; }; }
25519 gcc_cv_as_sparc_fmaf
=yes
25521 echo "configure: failed program was" >&5
25524 rm -f conftest.o conftest.s
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25528 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25529 if test $gcc_cv_as_sparc_fmaf = yes; then
25531 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25537 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25538 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25539 $as_echo_n "(cached) " >&6
25541 gcc_cv_as_sparc_sparc4
=no
25542 if test x
$gcc_cv_as != x
; then
25544 .register %g2, #scratch
25545 .register %g3, #scratch
25548 1: cwbneg %g2, %g3, 1f
25551 aes_kexpand0 %f4, %f6, %f8
25552 des_round %f38, %f40, %f42, %f44
25553 camellia_f %f54, %f56, %f58, %f60
25554 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25555 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25557 (eval $ac_try) 2>&5
25559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560 test $ac_status = 0; }; }
25562 gcc_cv_as_sparc_sparc4
=yes
25564 echo "configure: failed program was" >&5
25567 rm -f conftest.o conftest.s
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25571 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25572 if test $gcc_cv_as_sparc_sparc4 = yes; then
25574 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25580 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25581 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25582 $as_echo_n "(cached) " >&6
25584 gcc_cv_as_sparc_sparc5
=no
25585 if test x
$gcc_cv_as != x
; then
25587 .register %g2, #scratch
25588 .register %g3, #scratch
25590 subxc %g1, %g2, %g3
25591 fpadd8 %f0, %f2, %f4' > conftest.s
25592 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25594 (eval $ac_try) 2>&5
25596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25597 test $ac_status = 0; }; }
25599 gcc_cv_as_sparc_sparc5
=yes
25601 echo "configure: failed program was" >&5
25604 rm -f conftest.o conftest.s
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25608 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25609 if test $gcc_cv_as_sparc_sparc5 = yes; then
25611 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25617 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25618 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25619 $as_echo_n "(cached) " >&6
25621 gcc_cv_as_sparc_sparc6
=no
25622 if test x
$gcc_cv_as != x
; then
25624 .register %g2, #scratch
25625 .register %g3, #scratch
25628 fpsll64x %f0, %f2, %f4' > conftest.s
25629 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25631 (eval $ac_try) 2>&5
25633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25634 test $ac_status = 0; }; }
25636 gcc_cv_as_sparc_sparc6
=yes
25638 echo "configure: failed program was" >&5
25641 rm -f conftest.o conftest.s
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25645 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25646 if test $gcc_cv_as_sparc_sparc6 = yes; then
25648 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25654 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25655 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25656 $as_echo_n "(cached) " >&6
25658 gcc_cv_as_sparc_leon
=no
25659 if test x
$gcc_cv_as != x
; then
25661 .register %g2, #scratch
25662 .register %g3, #scratch
25666 casa [%g2] 0xb, %g3, %g1' > conftest.s
25667 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -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_sparc_leon
=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_sparc_leon" >&5
25683 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25684 if test $gcc_cv_as_sparc_leon = yes; then
25686 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25692 i
[34567]86-*-* | x86_64-
*-*)
25695 # Full C++ conformance when using a shared libstdc++-v3 requires some
25696 # support from the Cygwin DLL, which in more recent versions exports
25697 # wrappers to aid in interposing and redirecting operators new, delete,
25698 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25699 # are configuring for a version of Cygwin that exports the wrappers.
25700 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25701 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25702 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25703 gcc_ac_cygwin_dll_wrappers
=yes
25705 gcc_ac_cygwin_dll_wrappers
=no
25709 # Can't check presence of libc functions during cross-compile, so
25710 # we just have to assume we're building for an up-to-date target.
25711 gcc_ac_cygwin_dll_wrappers
=yes
25714 cat >>confdefs.h
<<_ACEOF
25715 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25720 cygwin
* | pe | mingw32
*)
25721 # Recent binutils allows the three-operand form of ".comm" on PE. This
25722 # definition is used unconditionally to initialise the default state of
25723 # the target option variable that governs usage of the feature.
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25725 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25726 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25727 $as_echo_n "(cached) " >&6
25729 gcc_cv_as_comm_has_align
=no
25730 if test $in_tree_gas = yes; then
25731 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25732 then gcc_cv_as_comm_has_align
=yes
25734 elif test x
$gcc_cv_as != x
; then
25735 $as_echo '.comm foo,1,32' > conftest.s
25736 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25738 (eval $ac_try) 2>&5
25740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25741 test $ac_status = 0; }; }
25743 gcc_cv_as_comm_has_align
=yes
25745 echo "configure: failed program was" >&5
25748 rm -f conftest.o conftest.s
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25752 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25756 cat >>confdefs.h
<<_ACEOF
25757 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25760 # Used for DWARF 2 in PE
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25762 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25763 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25764 $as_echo_n "(cached) " >&6
25766 gcc_cv_as_ix86_pe_secrel32
=no
25767 if test $in_tree_gas = yes; then
25768 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25769 then gcc_cv_as_ix86_pe_secrel32
=yes
25771 elif test x
$gcc_cv_as != x
; then
25775 .secrel32 foo' > conftest.s
25776 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25778 (eval $ac_try) 2>&5
25780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25781 test $ac_status = 0; }; }
25783 if test x
$gcc_cv_ld != x \
25784 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25785 gcc_cv_as_ix86_pe_secrel32
=yes
25789 echo "configure: failed program was" >&5
25792 rm -f conftest.o conftest.s
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25796 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25797 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25799 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25803 # Test if the assembler supports the extended form of the .section
25804 # directive that specifies section alignment. LTO support uses this,
25805 # but normally only after installation, so we warn but don't fail the
25806 # configure if LTO is enabled but the assembler does not support it.
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25808 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25809 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25810 $as_echo_n "(cached) " >&6
25812 gcc_cv_as_section_has_align
=no
25813 if test $in_tree_gas = yes; then
25814 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25815 then gcc_cv_as_section_has_align
=yes
25817 elif test x
$gcc_cv_as != x
; then
25818 $as_echo '.section lto_test,"dr0"' > conftest.s
25819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25821 (eval $ac_try) 2>&5
25823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25824 test $ac_status = 0; }; }
25826 gcc_cv_as_section_has_align
=yes
25828 echo "configure: failed program was" >&5
25831 rm -f conftest.o conftest.s
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25835 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25838 if test x
$gcc_cv_as_section_has_align != xyes
; then
25839 case ",$enable_languages," in
25841 { $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
25842 $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;}
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25850 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25851 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25852 $as_echo_n "(cached) " >&6
25854 gcc_cv_as_ix86_xbrace_comment
=no
25855 if test x
$gcc_cv_as != x
; then
25856 $as_echo '.text' > conftest.s
25857 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25859 (eval $ac_try) 2>&5
25861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25862 test $ac_status = 0; }; }
25864 gcc_cv_as_ix86_xbrace_comment
=yes
25866 echo "configure: failed program was" >&5
25869 rm -f conftest.o conftest.s
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25873 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25874 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25876 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25882 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25883 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25884 $as_echo_n "(cached) " >&6
25886 gcc_cv_as_ix86_filds
=no
25887 if test x
$gcc_cv_as != x
; then
25888 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25891 (eval $ac_try) 2>&5
25893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25894 test $ac_status = 0; }; }
25896 gcc_cv_as_ix86_filds
=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_ix86_filds" >&5
25905 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25906 if test $gcc_cv_as_ix86_filds = yes; then
25908 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25914 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25915 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25916 $as_echo_n "(cached) " >&6
25918 gcc_cv_as_ix86_fildq
=no
25919 if test x
$gcc_cv_as != x
; then
25920 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25923 (eval $ac_try) 2>&5
25925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25926 test $ac_status = 0; }; }
25928 gcc_cv_as_ix86_fildq
=yes
25930 echo "configure: failed program was" >&5
25933 rm -f conftest.o conftest.s
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25937 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25938 if test $gcc_cv_as_ix86_fildq = yes; then
25940 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25946 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25947 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25948 $as_echo_n "(cached) " >&6
25950 gcc_cv_as_ix86_cmov_sun_syntax
=no
25951 if test x
$gcc_cv_as != x
; then
25952 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25953 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25955 (eval $ac_try) 2>&5
25957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25958 test $ac_status = 0; }; }
25960 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25962 echo "configure: failed program was" >&5
25965 rm -f conftest.o conftest.s
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25969 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25970 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25972 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25978 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25979 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25980 $as_echo_n "(cached) " >&6
25982 gcc_cv_as_ix86_ffreep
=no
25983 if test x
$gcc_cv_as != x
; then
25984 $as_echo 'ffreep %st(1)' > conftest.s
25985 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25987 (eval $ac_try) 2>&5
25989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25990 test $ac_status = 0; }; }
25992 gcc_cv_as_ix86_ffreep
=yes
25994 echo "configure: failed program was" >&5
25997 rm -f conftest.o conftest.s
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26001 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26002 if test $gcc_cv_as_ix86_ffreep = yes; then
26004 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26010 $as_echo_n "checking assembler for .quad directive... " >&6; }
26011 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
26012 $as_echo_n "(cached) " >&6
26014 gcc_cv_as_ix86_quad
=no
26015 if test x
$gcc_cv_as != x
; then
26016 $as_echo '.quad 0' > conftest.s
26017 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26019 (eval $ac_try) 2>&5
26021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26022 test $ac_status = 0; }; }
26024 gcc_cv_as_ix86_quad
=yes
26026 echo "configure: failed program was" >&5
26029 rm -f conftest.o conftest.s
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26033 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26034 if test $gcc_cv_as_ix86_quad = yes; then
26036 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26042 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26043 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
26044 $as_echo_n "(cached) " >&6
26046 gcc_cv_as_ix86_sahf
=no
26047 if test x
$gcc_cv_as != x
; then
26050 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26052 (eval $ac_try) 2>&5
26054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26055 test $ac_status = 0; }; }
26057 gcc_cv_as_ix86_sahf
=yes
26059 echo "configure: failed program was" >&5
26062 rm -f conftest.o conftest.s
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26066 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26067 if test $gcc_cv_as_ix86_sahf = yes; then
26069 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26075 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26076 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
26077 $as_echo_n "(cached) " >&6
26079 gcc_cv_as_ix86_interunit_movq
=no
26080 if test x
$gcc_cv_as != x
; then
26083 movq %rax, %xmm0' > conftest.s
26084 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086 (eval $ac_try) 2>&5
26088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; }
26091 gcc_cv_as_ix86_interunit_movq
=yes
26093 echo "configure: failed program was" >&5
26096 rm -f conftest.o conftest.s
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26100 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26104 cat >>confdefs.h
<<_ACEOF
26105 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26110 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26111 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
26112 $as_echo_n "(cached) " >&6
26114 gcc_cv_as_ix86_hle
=no
26115 if test x
$gcc_cv_as != x
; then
26116 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26119 (eval $ac_try) 2>&5
26121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26122 test $ac_status = 0; }; }
26124 gcc_cv_as_ix86_hle
=yes
26126 echo "configure: failed program was" >&5
26129 rm -f conftest.o conftest.s
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26133 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26134 if test $gcc_cv_as_ix86_hle = yes; then
26136 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26142 $as_echo_n "checking assembler for swap suffix... " >&6; }
26143 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
26144 $as_echo_n "(cached) " >&6
26146 gcc_cv_as_ix86_swap
=no
26147 if test x
$gcc_cv_as != x
; then
26148 $as_echo 'movl.s %esp, %ebp' > conftest.s
26149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26151 (eval $ac_try) 2>&5
26153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26154 test $ac_status = 0; }; }
26156 gcc_cv_as_ix86_swap
=yes
26158 echo "configure: failed program was" >&5
26161 rm -f conftest.o conftest.s
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26165 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26166 if test $gcc_cv_as_ix86_swap = yes; then
26168 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26174 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26175 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
26176 $as_echo_n "(cached) " >&6
26178 gcc_cv_as_ix86_diff_sect_delta
=no
26179 if test x
$gcc_cv_as != x
; then
26180 $as_echo '.section .rodata
26186 .L2: nop' > conftest.s
26187 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26189 (eval $ac_try) 2>&5
26191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26192 test $ac_status = 0; }; }
26194 gcc_cv_as_ix86_diff_sect_delta
=yes
26196 echo "configure: failed program was" >&5
26199 rm -f conftest.o conftest.s
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26203 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26204 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26206 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26212 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26213 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
26214 $as_echo_n "(cached) " >&6
26216 gcc_cv_as_ix86_rep_lock_prefix
=no
26217 if test x
$gcc_cv_as != x
; then
26218 $as_echo 'rep movsl
26223 lock addl %edi, (%eax,%esi)
26224 lock orl $0, (%esp)' > conftest.s
26225 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26227 (eval $ac_try) 2>&5
26229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26230 test $ac_status = 0; }; }
26232 gcc_cv_as_ix86_rep_lock_prefix
=yes
26234 echo "configure: failed program was" >&5
26237 rm -f conftest.o conftest.s
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26241 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26242 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26244 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26250 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26251 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26252 $as_echo_n "(cached) " >&6
26254 gcc_cv_as_ix86_ud2
=no
26255 if test x
$gcc_cv_as != x
; then
26256 $as_echo 'ud2' > conftest.s
26257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26259 (eval $ac_try) 2>&5
26261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26262 test $ac_status = 0; }; }
26264 gcc_cv_as_ix86_ud2
=yes
26266 echo "configure: failed program was" >&5
26269 rm -f conftest.o conftest.s
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26273 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26274 if test $gcc_cv_as_ix86_ud2 = yes; then
26276 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26281 # Enforce 32-bit output with gas and gld.
26282 if test x
$gas = xyes
; then
26283 as_ix86_gas_32_opt
="--32"
26285 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26286 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26287 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26289 ld_ix86_gld_32_opt
="-melf_i386"
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26294 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26295 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26296 $as_echo_n "(cached) " >&6
26298 gcc_cv_as_ix86_tlsgdplt
=no
26299 if test x
$gcc_cv_as != x
; then
26300 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26301 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26303 (eval $ac_try) 2>&5
26305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26306 test $ac_status = 0; }; }
26308 if test x
$gcc_cv_ld != x \
26309 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26310 gcc_cv_as_ix86_tlsgdplt
=yes
26314 echo "configure: failed program was" >&5
26317 rm -f conftest.o conftest.s
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26321 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26322 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26324 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26330 .section .tdata,"aw'$tls_section_flag'",@progbits
26332 .section .text,"ax",@progbits
26333 call tls_ld@tlsldmplt'
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26336 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26337 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26338 $as_echo_n "(cached) " >&6
26340 gcc_cv_as_ix86_tlsldmplt
=no
26341 if test x
$gcc_cv_as != x
; then
26342 $as_echo "$conftest_s" > conftest.s
26343 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26345 (eval $ac_try) 2>&5
26347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26348 test $ac_status = 0; }; }
26350 if test x
$gcc_cv_ld != x \
26351 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26352 gcc_cv_as_ix86_tlsldmplt
=yes
26356 echo "configure: failed program was" >&5
26359 rm -f conftest.o conftest.s
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26363 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26367 cat >>confdefs.h
<<_ACEOF
26368 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26373 .section .text,"ax",@progbits
26375 .type _start, @function
26377 leal value@tlsldm(%ebx), %eax
26378 call ___tls_get_addr@plt
26380 .section .tdata,"aw'$tls_section_flag'",@progbits
26381 .type value, @object
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26384 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26385 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26386 $as_echo_n "(cached) " >&6
26388 gcc_cv_as_ix86_tlsldm
=no
26389 if test x
$gcc_cv_as != x
; then
26390 $as_echo "$conftest_s" > conftest.s
26391 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26393 (eval $ac_try) 2>&5
26395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26396 test $ac_status = 0; }; }
26398 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26399 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26400 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26401 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26402 gcc_cv_as_ix86_tlsldm
=yes
26407 echo "configure: failed program was" >&5
26410 rm -f conftest.o conftest.s
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26414 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26418 cat >>confdefs.h
<<_ACEOF
26419 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26433 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26434 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26435 $as_echo_n "(cached) " >&6
26437 gcc_cv_as_ix86_got32x
=no
26438 if test x
$gcc_cv_as != x
; then
26439 $as_echo "$conftest_s" > conftest.s
26440 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26442 (eval $ac_try) 2>&5
26444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26445 test $ac_status = 0; }; }
26447 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26448 && test x
$gcc_cv_readelf != x \
26449 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26450 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26451 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26452 if $gcc_cv_objdump -dw conftest
2>&1 \
26453 |
grep 0xffffff > /dev
/null
2>&1; then
26454 gcc_cv_as_ix86_got32x
=no
26456 gcc_cv_as_ix86_got32x
=yes
26461 echo "configure: failed program was" >&5
26464 rm -f conftest.o conftest.s
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26468 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26472 cat >>confdefs.h
<<_ACEOF
26473 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26478 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26479 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26480 $as_echo_n "(cached) " >&6
26482 gcc_cv_as_ix86_gotoff_in_data
=no
26483 if test $in_tree_gas = yes; then
26484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26485 then gcc_cv_as_ix86_gotoff_in_data
=yes
26487 elif test x
$gcc_cv_as != x
; then
26492 .long .L0@GOTOFF' > conftest.s
26493 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26495 (eval $ac_try) 2>&5
26497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26498 test $ac_status = 0; }; }
26500 gcc_cv_as_ix86_gotoff_in_data
=yes
26502 echo "configure: failed program was" >&5
26505 rm -f conftest.o conftest.s
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26509 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26513 cat >>confdefs.h
<<_ACEOF
26514 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26519 .section .text,"ax",@progbits
26521 .type _start, @function
26523 leal ld@tlsldm(%ecx), %eax
26524 call *___tls_get_addr@GOT(%ecx)
26525 leal gd@tlsgd(%ecx), %eax
26526 call *___tls_get_addr@GOT(%ecx)
26528 .section .tdata,"aw'$tls_section_flag'",@progbits
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26537 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26538 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26539 $as_echo_n "(cached) " >&6
26541 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26542 if test x
$gcc_cv_as != x
; then
26543 $as_echo "$conftest_s" > conftest.s
26544 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26546 (eval $ac_try) 2>&5
26548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26549 test $ac_status = 0; }; }
26551 if test x
$gcc_cv_ld != x \
26552 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26553 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26557 echo "configure: failed program was" >&5
26560 rm -f conftest.o conftest.s
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26564 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26568 cat >>confdefs.h
<<_ACEOF
26569 #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`
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26576 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26577 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26578 $as_echo_n "(cached) " >&6
26580 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26581 if test $in_tree_gas = yes; then
26582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26583 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26585 elif test x
$gcc_cv_as != x
; then
26587 addl r15 = @ltoffx(x#), gp
26589 ld8.mov r16 = [r15], x#' > 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_ia64_ltoffx_ldxmov_relocs
=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_ia64_ltoffx_ldxmov_relocs" >&5
26606 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26607 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26609 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26621 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26622 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26623 $as_echo_n "(cached) " >&6
26625 gcc_cv_as_machine_directive
=no
26626 if test x
$gcc_cv_as != x
; then
26627 $as_echo ' .machine ppc7400' > conftest.s
26628 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26630 (eval $ac_try) 2>&5
26632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26633 test $ac_status = 0; }; }
26635 gcc_cv_as_machine_directive
=yes
26637 echo "configure: failed program was" >&5
26640 rm -f conftest.o conftest.s
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26644 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26647 if test x
$gcc_cv_as_machine_directive != xyes
; then
26648 echo "*** This target requires an assembler supporting \".machine\"" >&2
26649 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26650 test x
$build = x
$target && exit 1
26656 *-*-aix*) conftest_s
=' .machine "pwr5"
26659 *-*-darwin*) conftest_s
=' .text
26661 *) conftest_s
=' .machine power4
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26667 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26668 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26669 $as_echo_n "(cached) " >&6
26671 gcc_cv_as_powerpc_mfcrf
=no
26672 if test $in_tree_gas = yes; then
26673 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26674 then gcc_cv_as_powerpc_mfcrf
=yes
26676 elif test x
$gcc_cv_as != x
; then
26677 $as_echo "$conftest_s" > conftest.s
26678 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26680 (eval $ac_try) 2>&5
26682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; }
26685 gcc_cv_as_powerpc_mfcrf
=yes
26687 echo "configure: failed program was" >&5
26690 rm -f conftest.o conftest.s
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26694 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26695 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26697 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26703 *-*-aix*) conftest_s
=' .csect .text[PR]
26705 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26709 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26710 *) conftest_s
=' .text
26712 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26716 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26717 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26718 $as_echo_n "(cached) " >&6
26720 gcc_cv_as_powerpc_rel16
=no
26721 if test $in_tree_gas = yes; then
26722 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26723 then gcc_cv_as_powerpc_rel16
=yes
26725 elif test x
$gcc_cv_as != x
; then
26726 $as_echo "$conftest_s" > conftest.s
26727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26729 (eval $ac_try) 2>&5
26731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26732 test $ac_status = 0; }; }
26734 gcc_cv_as_powerpc_rel16
=yes
26736 echo "configure: failed program was" >&5
26739 rm -f conftest.o conftest.s
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26743 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26744 if test $gcc_cv_as_powerpc_rel16 = yes; then
26746 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26752 *-*-aix*) conftest_s
=' .machine "pwr7"
26755 *) conftest_s
=' .machine power7
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26761 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26762 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26763 $as_echo_n "(cached) " >&6
26765 gcc_cv_as_powerpc_vsx
=no
26766 if test $in_tree_gas = yes; then
26767 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26768 then gcc_cv_as_powerpc_vsx
=yes
26770 elif test x
$gcc_cv_as != x
; then
26771 $as_echo "$conftest_s" > conftest.s
26772 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26774 (eval $ac_try) 2>&5
26776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26777 test $ac_status = 0; }; }
26779 gcc_cv_as_powerpc_vsx
=yes
26781 echo "configure: failed program was" >&5
26784 rm -f conftest.o conftest.s
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26788 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26789 if test $gcc_cv_as_powerpc_vsx = yes; then
26791 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26797 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26798 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26799 $as_echo_n "(cached) " >&6
26801 gcc_cv_as_powerpc_gnu_attribute
=no
26802 if test $in_tree_gas = yes; then
26803 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26804 then gcc_cv_as_powerpc_gnu_attribute
=yes
26806 elif test x
$gcc_cv_as != x
; then
26807 $as_echo '.gnu_attribute 4,1' > conftest.s
26808 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26810 (eval $ac_try) 2>&5
26812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26813 test $ac_status = 0; }; }
26815 gcc_cv_as_powerpc_gnu_attribute
=yes
26817 echo "configure: failed program was" >&5
26820 rm -f conftest.o conftest.s
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26824 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26825 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26827 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26833 $as_echo_n "checking assembler for tls marker support... " >&6; }
26834 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26835 $as_echo_n "(cached) " >&6
26837 gcc_cv_as_powerpc_tls_markers
=no
26838 if test $in_tree_gas = yes; then
26839 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26840 then gcc_cv_as_powerpc_tls_markers
=yes
26842 elif test x
$gcc_cv_as != x
; then
26843 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26844 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26846 (eval $ac_try) 2>&5
26848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26849 test $ac_status = 0; }; }
26851 gcc_cv_as_powerpc_tls_markers
=yes
26853 echo "configure: failed program was" >&5
26856 rm -f conftest.o conftest.s
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26860 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26861 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26863 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26869 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26870 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26871 $as_echo_n "(cached) " >&6
26873 gcc_cv_as_powerpc_entry_markers
=no
26874 if test $in_tree_gas = yes; then
26875 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26876 then gcc_cv_as_powerpc_entry_markers
=yes
26878 elif test x
$gcc_cv_as != x
; then
26879 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26882 (eval $ac_try) 2>&5
26884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26885 test $ac_status = 0; }; }
26887 gcc_cv_as_powerpc_entry_markers
=yes
26889 echo "configure: failed program was" >&5
26892 rm -f conftest.o conftest.s
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26896 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26897 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26899 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26907 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26908 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26909 $as_echo_n "(cached) " >&6
26911 gcc_cv_as_aix_ref
=no
26912 if test $in_tree_gas = yes; then
26913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26914 then gcc_cv_as_aix_ref
=yes
26916 elif test x
$gcc_cv_as != x
; then
26917 $as_echo ' .csect stuff[rw]
26923 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26925 (eval $ac_try) 2>&5
26927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26928 test $ac_status = 0; }; }
26930 gcc_cv_as_aix_ref
=yes
26932 echo "configure: failed program was" >&5
26935 rm -f conftest.o conftest.s
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26939 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26940 if test $gcc_cv_as_aix_ref = yes; then
26942 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26948 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26949 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26950 $as_echo_n "(cached) " >&6
26952 gcc_cv_as_aix_dwloc
=no
26953 if test $in_tree_gas = yes; then
26954 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26955 then gcc_cv_as_aix_dwloc
=yes
26957 elif test x
$gcc_cv_as != x
; then
26958 $as_echo ' .dwsect 0xA0000
26962 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26964 (eval $ac_try) 2>&5
26966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26967 test $ac_status = 0; }; }
26969 gcc_cv_as_aix_dwloc
=yes
26971 echo "configure: failed program was" >&5
26974 rm -f conftest.o conftest.s
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26978 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26979 if test $gcc_cv_as_aix_dwloc = yes; then
26981 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26991 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26992 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26993 $as_echo_n "(cached) " >&6
26995 gcc_cv_as_mips_explicit_relocs
=no
26996 if test $in_tree_gas = yes; then
26997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26998 then gcc_cv_as_mips_explicit_relocs
=yes
27000 elif test x
$gcc_cv_as != x
; then
27001 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27002 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27004 (eval $ac_try) 2>&5
27006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27007 test $ac_status = 0; }; }
27009 gcc_cv_as_mips_explicit_relocs
=yes
27011 echo "configure: failed program was" >&5
27014 rm -f conftest.o conftest.s
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27018 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27019 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27020 if test x
$target_cpu_default = x
27021 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27022 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27028 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27029 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27030 $as_echo_n "(cached) " >&6
27032 gcc_cv_as_mips_no_shared
=no
27033 if test $in_tree_gas = yes; then
27034 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27035 then gcc_cv_as_mips_no_shared
=yes
27037 elif test x
$gcc_cv_as != x
; then
27038 $as_echo 'nop' > conftest.s
27039 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27041 (eval $ac_try) 2>&5
27043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27044 test $ac_status = 0; }; }
27046 gcc_cv_as_mips_no_shared
=yes
27048 echo "configure: failed program was" >&5
27051 rm -f conftest.o conftest.s
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27055 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27056 if test $gcc_cv_as_mips_no_shared = yes; then
27058 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27064 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27065 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27066 $as_echo_n "(cached) " >&6
27068 gcc_cv_as_mips_gnu_attribute
=no
27069 if test $in_tree_gas = yes; then
27070 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27071 then gcc_cv_as_mips_gnu_attribute
=yes
27073 elif test x
$gcc_cv_as != x
; then
27074 $as_echo '.gnu_attribute 4,1' > conftest.s
27075 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27077 (eval $ac_try) 2>&5
27079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27080 test $ac_status = 0; }; }
27082 gcc_cv_as_mips_gnu_attribute
=yes
27084 echo "configure: failed program was" >&5
27087 rm -f conftest.o conftest.s
27090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27091 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27092 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27094 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27100 $as_echo_n "checking assembler for .module support... " >&6; }
27101 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27102 $as_echo_n "(cached) " >&6
27104 gcc_cv_as_mips_dot_module
=no
27105 if test x
$gcc_cv_as != x
; then
27106 $as_echo '.module mips2
27107 .module fp=xx' > conftest.s
27108 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27110 (eval $ac_try) 2>&5
27112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27113 test $ac_status = 0; }; }
27115 gcc_cv_as_mips_dot_module
=yes
27117 echo "configure: failed program was" >&5
27120 rm -f conftest.o conftest.s
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27124 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27125 if test $gcc_cv_as_mips_dot_module = yes; then
27127 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27131 if test x
$gcc_cv_as_mips_dot_module = xno \
27132 && test x
$with_fp_32 != x
; then
27133 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27137 $as_echo_n "checking assembler for .micromips support... " >&6; }
27138 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27139 $as_echo_n "(cached) " >&6
27141 gcc_cv_as_micromips_support
=no
27142 if test x
$gcc_cv_as != x
; then
27143 $as_echo '.set micromips' > conftest.s
27144 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27146 (eval $ac_try) 2>&5
27148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27149 test $ac_status = 0; }; }
27151 gcc_cv_as_micromips_support
=yes
27153 echo "configure: failed program was" >&5
27156 rm -f conftest.o conftest.s
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27160 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27161 if test $gcc_cv_as_micromips_support = yes; then
27163 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27169 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27170 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27171 $as_echo_n "(cached) " >&6
27173 gcc_cv_as_mips_dtprelword
=no
27174 if test $in_tree_gas = yes; then
27175 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27176 then gcc_cv_as_mips_dtprelword
=yes
27178 elif test x
$gcc_cv_as != x
; then
27179 $as_echo '.section .tdata,"awT",@progbits
27183 .dtprelword x+0x8000' > conftest.s
27184 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27186 (eval $ac_try) 2>&5
27188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27189 test $ac_status = 0; }; }
27191 gcc_cv_as_mips_dtprelword
=yes
27193 echo "configure: failed program was" >&5
27196 rm -f conftest.o conftest.s
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27200 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27201 if test $gcc_cv_as_mips_dtprelword = yes; then
27203 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27209 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27210 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27211 $as_echo_n "(cached) " >&6
27213 gcc_cv_as_mips_dspr1_mult
=no
27214 if test x
$gcc_cv_as != x
; then
27215 $as_echo ' .set mips32r2
27223 multu $ac3,$4,$5' > conftest.s
27224 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27226 (eval $ac_try) 2>&5
27228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27229 test $ac_status = 0; }; }
27231 gcc_cv_as_mips_dspr1_mult
=yes
27233 echo "configure: failed program was" >&5
27236 rm -f conftest.o conftest.s
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27240 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27241 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27243 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27249 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27250 gcc_cv_as_ld_jalr_reloc
=no
27251 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27252 if test $in_tree_ld = yes ; then
27253 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 \
27254 && test $in_tree_ld_is_elf = yes; then
27255 gcc_cv_as_ld_jalr_reloc
=yes
27257 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27258 echo ' .ent x' > conftest.s
27259 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27260 echo ' lw $25,%call16(y)($28)' >> conftest.s
27261 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27262 echo '1: jalr $25' >> conftest.s
27263 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27264 echo '1: jalr $25' >> conftest.s
27265 echo ' .end x' >> conftest.s
27266 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27267 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27268 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27269 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27270 gcc_cv_as_ld_jalr_reloc
=yes
27276 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27277 if test x
$target_cpu_default = x
; then
27278 target_cpu_default
=MASK_RELAX_PIC_CALLS
27280 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27284 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27287 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27288 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27289 $as_echo_n "(cached) " >&6
27291 gcc_cv_ld_mips_personality_relaxation
=no
27292 if test $in_tree_ld = yes ; then
27293 if test "$gcc_cv_gld_major_version" -eq 2 \
27294 -a "$gcc_cv_gld_minor_version" -ge 21 \
27295 -o "$gcc_cv_gld_major_version" -gt 2; then
27296 gcc_cv_ld_mips_personality_relaxation
=yes
27298 elif test x
$gcc_cv_as != x \
27299 -a x
$gcc_cv_ld != x \
27300 -a x
$gcc_cv_readelf != x
; then
27301 cat > conftest.s
<<EOF
27303 .cfi_personality 0x80,indirect_ptr
27310 .section .data,"aw",@progbits
27314 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27315 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27316 if $gcc_cv_readelf -d conftest
2>&1 \
27317 |
grep TEXTREL
> /dev
/null
2>&1; then
27319 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27320 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27323 gcc_cv_ld_mips_personality_relaxation
=yes
27327 rm -f conftest.s conftest.o conftest
27329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27330 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27331 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27333 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27338 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27339 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27340 $as_echo_n "(cached) " >&6
27342 gcc_cv_as_mips_nan
=no
27343 if test x
$gcc_cv_as != x
; then
27344 $as_echo '' > conftest.s
27345 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27347 (eval $ac_try) 2>&5
27349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27350 test $ac_status = 0; }; }
27352 gcc_cv_as_mips_nan
=yes
27354 echo "configure: failed program was" >&5
27357 rm -f conftest.o conftest.s
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27361 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27362 if test $gcc_cv_as_mips_nan = yes; then
27364 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27368 if test x
$gcc_cv_as_mips_nan = xno \
27369 && test x
$with_nan != x
; then
27370 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27375 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27376 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27377 $as_echo_n "(cached) " >&6
27379 gcc_cv_as_s390_gnu_attribute
=no
27380 if test $in_tree_gas = yes; then
27381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27382 then gcc_cv_as_s390_gnu_attribute
=yes
27384 elif test x
$gcc_cv_as != x
; then
27385 $as_echo '.gnu_attribute 8,1' > conftest.s
27386 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27388 (eval $ac_try) 2>&5
27390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27391 test $ac_status = 0; }; }
27393 gcc_cv_as_s390_gnu_attribute
=yes
27395 echo "configure: failed program was" >&5
27398 rm -f conftest.o conftest.s
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27402 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27403 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27405 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27410 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27411 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27412 $as_echo_n "(cached) " >&6
27414 gcc_cv_as_s390_machine_machinemode
=no
27415 if test $in_tree_gas = yes; then
27416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27417 then gcc_cv_as_s390_machine_machinemode
=yes
27419 elif test x
$gcc_cv_as != x
; then
27420 $as_echo ' .machinemode push
27423 .machine pop' > conftest.s
27424 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27426 (eval $ac_try) 2>&5
27428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27429 test $ac_status = 0; }; }
27431 gcc_cv_as_s390_machine_machinemode
=yes
27433 echo "configure: failed program was" >&5
27436 rm -f conftest.o conftest.s
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27440 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27441 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27443 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27448 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27449 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27450 $as_echo_n "(cached) " >&6
27452 gcc_cv_as_s390_architecture_modifiers
=no
27453 if test $in_tree_gas = yes; then
27454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27455 then gcc_cv_as_s390_architecture_modifiers
=yes
27457 elif test x
$gcc_cv_as != x
; then
27458 $as_echo ' .machine z13+vx ' > conftest.s
27459 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27461 (eval $ac_try) 2>&5
27463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27464 test $ac_status = 0; }; }
27466 gcc_cv_as_s390_architecture_modifiers
=yes
27468 echo "configure: failed program was" >&5
27471 rm -f conftest.o conftest.s
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27475 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27476 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27478 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27485 # Mips and HP-UX need the GNU assembler.
27486 # Linux on IA64 might be able to use the Intel assembler.
27489 mips
*-*-* |
*-*-hpux* )
27490 if test x
$gas_flag = xyes \
27491 ||
test x
"$host" != x
"$build" \
27492 ||
test ! -x "$gcc_cv_as" \
27493 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27496 echo "*** This configuration requires the GNU assembler" >&2
27502 # ??? Not all targets support dwarf2 debug_line, even within a version
27503 # of gas. Moreover, we need to emit a valid instruction to trigger any
27504 # info to the output file. So, as supported targets are added to gas 2.11,
27505 # add some instruction here to (also) show we expect this might work.
27506 # ??? Once 2.11 is released, probably need to add first known working
27507 # version to the per-target configury.
27508 case "$cpu_type" in
27509 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27510 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27511 | tilegx | tilepro | visium | xstormy16 | xtensa
)
27521 if test x
"$insn" != x
; then
27523 .file 1 \"conftest.s\"
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27527 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27528 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27529 $as_echo_n "(cached) " >&6
27531 gcc_cv_as_dwarf2_debug_line
=no
27532 if test $in_tree_gas = yes; then
27533 if test $in_tree_gas_is_elf = yes \
27534 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27535 then gcc_cv_as_dwarf2_debug_line
=yes
27537 elif test x
$gcc_cv_as != x
; then
27538 $as_echo "$conftest_s" > conftest.s
27539 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27541 (eval $ac_try) 2>&5
27543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27544 test $ac_status = 0; }; }
27546 if test x
$gcc_cv_objdump != x \
27547 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27548 |
grep debug_line
> /dev
/null
2>&1; then
27549 gcc_cv_as_dwarf2_debug_line
=yes
27552 echo "configure: failed program was" >&5
27555 rm -f conftest.o conftest.s
27558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27559 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27563 # The .debug_line file table must be in the exact order that
27564 # we specified the files, since these indices are also used
27565 # by DW_AT_decl_file. Approximate this test by testing if
27566 # the assembler bitches if the same index is assigned twice.
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27568 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27569 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27570 $as_echo_n "(cached) " >&6
27572 gcc_cv_as_dwarf2_file_buggy
=no
27573 if test x
$gcc_cv_as != x
; then
27574 $as_echo ' .file 1 "foo.s"
27575 .file 1 "bar.s"' > conftest.s
27576 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27578 (eval $ac_try) 2>&5
27580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27581 test $ac_status = 0; }; }
27583 gcc_cv_as_dwarf2_file_buggy
=yes
27585 echo "configure: failed program was" >&5
27588 rm -f conftest.o conftest.s
27591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27592 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27596 if test $gcc_cv_as_dwarf2_debug_line = yes \
27597 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27599 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27602 if test $gcc_cv_as_leb128 = yes; then
27604 .file 1 \"conftest.s\"
27605 .loc 1 3 0 view .LVU1
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27612 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27613 if test "${gcc_cv_as_dwarf2_debug_view+set}" = set; then :
27614 $as_echo_n "(cached) " >&6
27616 gcc_cv_as_dwarf2_debug_view
=no
27617 if test $in_tree_gas = yes; then
27618 if test $in_tree_gas_is_elf = yes \
27619 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27620 then gcc_cv_as_dwarf2_debug_view
=yes
27622 elif test x
$gcc_cv_as != x
; then
27623 $as_echo "$conftest_s" > conftest.s
27624 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27626 (eval $ac_try) 2>&5
27628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27629 test $ac_status = 0; }; }
27631 gcc_cv_as_dwarf2_debug_view
=yes
27633 echo "configure: failed program was" >&5
27636 rm -f conftest.o conftest.s
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27640 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27641 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27643 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27651 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27652 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27653 $as_echo_n "(cached) " >&6
27655 gcc_cv_as_gdwarf2_flag
=no
27656 if test $in_tree_gas = yes; then
27657 if test $in_tree_gas_is_elf = yes \
27658 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27659 then gcc_cv_as_gdwarf2_flag
=yes
27661 elif test x
$gcc_cv_as != x
; then
27662 $as_echo "$insn" > conftest.s
27663 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27665 (eval $ac_try) 2>&5
27667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27668 test $ac_status = 0; }; }
27670 gcc_cv_as_gdwarf2_flag
=yes
27672 echo "configure: failed program was" >&5
27675 rm -f conftest.o conftest.s
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27679 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27680 if test $gcc_cv_as_gdwarf2_flag = yes; then
27682 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27688 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27689 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27690 $as_echo_n "(cached) " >&6
27692 gcc_cv_as_gstabs_flag
=no
27693 if test $in_tree_gas = yes; then
27694 if test $in_tree_gas_is_elf = yes \
27695 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27696 then gcc_cv_as_gstabs_flag
=yes
27698 elif test x
$gcc_cv_as != x
; then
27699 $as_echo "$insn" > conftest.s
27700 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27702 (eval $ac_try) 2>&5
27704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27705 test $ac_status = 0; }; }
27707 gcc_cv_as_gstabs_flag
=yes
27709 echo "configure: failed program was" >&5
27712 rm -f conftest.o conftest.s
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27716 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27717 if test $gcc_cv_as_gstabs_flag = yes; then
27719 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27725 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27726 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27727 $as_echo_n "(cached) " >&6
27729 gcc_cv_as_debug_prefix_map_flag
=no
27730 if test $in_tree_gas = yes; then
27731 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27732 then gcc_cv_as_debug_prefix_map_flag
=yes
27734 elif test x
$gcc_cv_as != x
; then
27735 $as_echo "$insn" > conftest.s
27736 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27738 (eval $ac_try) 2>&5
27740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27741 test $ac_status = 0; }; }
27743 gcc_cv_as_debug_prefix_map_flag
=yes
27745 echo "configure: failed program was" >&5
27748 rm -f conftest.o conftest.s
27751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27752 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27753 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27755 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27762 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27763 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27764 $as_echo_n "(cached) " >&6
27766 gcc_cv_as_compress_debug
=no
27767 if test x
$gcc_cv_as != x
; then
27768 $as_echo '' > conftest.s
27769 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27771 (eval $ac_try) 2>&5
27773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27774 test $ac_status = 0; }; }
27776 # gas compiled without zlib cannot compress debug sections and warns
27777 # about it, but still exits successfully. So check for this, too.
27778 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27780 gcc_cv_as_compress_debug
=0
27781 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27782 # defaulting to the ELF gABI format.
27783 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
27785 gcc_cv_as_compress_debug
=2
27786 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27787 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27788 # Before binutils 2.26, gas only supported --compress-debug-options and
27789 # emitted the traditional GNU format.
27790 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27792 gcc_cv_as_compress_debug
=1
27793 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27794 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27796 gcc_cv_as_compress_debug
=0
27799 echo "configure: failed program was" >&5
27802 rm -f conftest.o conftest.s
27805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27806 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27810 cat >>confdefs.h
<<_ACEOF
27811 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27815 cat >>confdefs.h
<<_ACEOF
27816 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27820 cat >>confdefs.h
<<_ACEOF
27821 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27826 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27827 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27828 $as_echo_n "(cached) " >&6
27830 gcc_cv_as_lcomm_with_alignment
=no
27831 if test x
$gcc_cv_as != x
; then
27832 $as_echo '.lcomm bar,4,16' > conftest.s
27833 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27835 (eval $ac_try) 2>&5
27837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27838 test $ac_status = 0; }; }
27840 gcc_cv_as_lcomm_with_alignment
=yes
27842 echo "configure: failed program was" >&5
27845 rm -f conftest.o conftest.s
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27849 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27850 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27852 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27857 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27858 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27859 && test "$prefix" != "NONE"; then
27861 cat >>confdefs.h
<<_ACEOF
27862 #define PREFIX_INCLUDE_DIR "$prefix/include"
27867 # Determine the version of glibc, if any, used on the target.
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27869 $as_echo_n "checking for target glibc version... " >&6; }
27871 # Check whether --with-glibc-version was given.
27872 if test "${with_glibc_version+set}" = set; then :
27873 withval
=$with_glibc_version;
27874 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27875 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27876 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27878 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27882 glibc_version_major
=0
27883 glibc_version_minor
=0
27884 if test -f $target_header_dir/features.h \
27885 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27886 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27887 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27888 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27893 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27895 cat >>confdefs.h
<<_ACEOF
27896 #define TARGET_GLIBC_MAJOR $glibc_version_major
27900 cat >>confdefs.h
<<_ACEOF
27901 #define TARGET_GLIBC_MINOR $glibc_version_minor
27905 # Check whether --enable-gnu-unique-object was given.
27906 if test "${enable_gnu_unique_object+set}" = set; then :
27907 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27909 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27910 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27914 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27915 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27916 $as_echo_n "(cached) " >&6
27918 gcc_cv_as_gnu_unique_object
=no
27919 if test $in_tree_gas = yes; then
27920 if test $in_tree_gas_is_elf = yes \
27921 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27922 then gcc_cv_as_gnu_unique_object
=yes
27924 elif test x
$gcc_cv_as != x
; then
27925 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27926 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27928 (eval $ac_try) 2>&5
27930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27931 test $ac_status = 0; }; }
27933 gcc_cv_as_gnu_unique_object
=yes
27935 echo "configure: failed program was" >&5
27938 rm -f conftest.o conftest.s
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27942 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27943 if test $gcc_cv_as_gnu_unique_object = yes; then
27944 # We need to unquote above to to use the definition from config.gcc.
27945 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27947 if test $glibc_version_major -gt 2 \
27948 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27949 enable_gnu_unique_object
=yes
27956 if test x
$enable_gnu_unique_object = xyes
; then
27958 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27963 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27964 if test "${gcc_cv_as_line_zero+set}" = set; then :
27965 $as_echo_n "(cached) " >&6
27967 gcc_cv_as_line_zero
=no
27968 if test $in_tree_gas = yes; then
27969 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27970 then gcc_cv_as_line_zero
=yes
27972 elif test "x$gcc_cv_as" != x
; then
27973 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27974 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27976 (eval $ac_try) 2>&5
27978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27979 test $ac_status = 0; }; } &&
27980 test "x`cat conftest.out`" = x
27982 gcc_cv_as_line_zero
=yes
27984 echo "configure: failed program was" >&5
27986 echo "configure: error output was" >&5
27987 cat conftest.out
>&5
27989 rm -f conftest.o conftest.s conftest.out
27992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27993 $as_echo "$gcc_cv_as_line_zero" >&6; }
27994 if test "x$gcc_cv_as_line_zero" = xyes
; then
27996 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28001 $as_echo_n "checking support for thin archives... " >&6; }
28002 thin_archive_support
=no
28003 echo 'int main (void) { return 0; }' > conftest.c
28004 if ($AR --version |
sed 1q |
grep "GNU ar" \
28005 && $CC $CFLAGS -c conftest.c \
28006 && $AR rcT conftest.a conftest.o \
28007 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
28008 thin_archive_support
=yes
28010 rm -f conftest.c conftest.o conftest.a conftest
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28012 $as_echo "$thin_archive_support" >&6; }
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28016 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28017 gcc_cv_ld_eh_frame_hdr
=no
28018 if test $in_tree_ld = yes ; then
28019 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 \
28020 && test $in_tree_ld_is_elf = yes; then
28021 gcc_cv_ld_eh_frame_hdr
=yes
28023 elif test x
$gcc_cv_ld != x
; then
28024 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28025 # Check if linker supports --eh-frame-hdr option
28026 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
28027 gcc_cv_ld_eh_frame_hdr
=yes
28032 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28033 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28034 gcc_cv_ld_eh_frame_hdr
=yes
28041 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28043 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28047 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28050 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28051 gcc_cv_ld_eh_frame_ciev3
=no
28052 if test $in_tree_ld = yes ; then
28053 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 \
28054 && test $in_tree_ld_is_elf = yes; then
28055 gcc_cv_ld_eh_frame_ciev3
=yes
28057 elif test x
$gcc_cv_ld != x
; then
28058 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28059 gcc_cv_ld_eh_frame_ciev3
=yes
28060 if test 0"$ld_date" -lt 20040513; then
28061 if test -n "$ld_date"; then
28062 # If there was date string, but was earlier than 2004-05-13, fail
28063 gcc_cv_ld_eh_frame_ciev3
=no
28064 elif test "$ld_vers_major" -lt 2; then
28065 gcc_cv_ld_eh_frame_ciev3
=no
28066 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28067 gcc_cv_ld_eh_frame_ciev3
=no
28073 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28074 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28075 gcc_cv_ld_eh_frame_ciev3
=yes
28082 cat >>confdefs.h
<<_ACEOF
28083 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28087 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28090 $as_echo_n "checking linker position independent executable support... " >&6; }
28092 if test $in_tree_ld = yes ; then
28094 # Full PIE support on Solaris was only introduced in gld 2.26.
28095 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28096 *) gcc_gld_pie_min_version
=15 ;;
28098 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 \
28099 && test $in_tree_ld_is_elf = yes; then
28102 elif test x
$gcc_cv_ld != x
; then
28103 # Check if linker supports -pie option
28104 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28108 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28109 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28116 *-*-solaris2.1
[1-9]*)
28117 # Solaris 11.3 added PIE support.
28118 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28125 if test x
"$gcc_cv_ld_pie" = xyes
; then
28127 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28131 $as_echo "$gcc_cv_ld_pie" >&6; }
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28134 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28135 gcc_cv_ld_pie_copyreloc
=no
28136 if test $gcc_cv_ld_pie = yes ; then
28137 if test $in_tree_ld = yes ; then
28138 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
28139 gcc_cv_ld_pie_copyreloc
=yes
28141 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28142 # Check if linker supports -pie option with copy reloc
28144 i?
86-*-linux* | x86_64-
*-linux*)
28145 cat > conftest1.s
<<EOF
28148 .type a_glob, @object
28153 cat > conftest2.s
<<EOF
28156 .type main, @function
28158 movl %eax, a_glob(%rip)
28161 .section .data.rel,"aw",@progbits
28166 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28167 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28168 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28169 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28170 gcc_cv_ld_pie_copyreloc
=yes
28172 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28178 cat >>confdefs.h
<<_ACEOF
28179 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28183 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28186 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28187 gcc_cv_ld_eh_gc_sections
=no
28188 if test $in_tree_ld = yes ; then
28189 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 \
28190 && test $in_tree_ld_is_elf = yes; then
28191 gcc_cv_ld_eh_gc_sections
=yes
28193 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28194 cat > conftest.s
<<EOF
28197 .type _start, @function
28200 .size _start, .-_start
28201 .section .text.foo,"ax",@progbits
28202 .type foo, @function
28206 .section .gcc_except_table.foo,"a",@progbits
28209 .section .eh_frame,"a",@progbits
28212 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28213 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28214 |
grep "gc-sections option ignored" > /dev
/null
; then
28215 gcc_cv_ld_eh_gc_sections
=no
28216 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28217 |
grep gcc_except_table
> /dev
/null
; then
28218 gcc_cv_ld_eh_gc_sections
=yes
28219 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28220 if test x
$gcc_cv_as_comdat_group != xyes
; then
28221 gcc_cv_ld_eh_gc_sections
=no
28222 cat > conftest.s
<<EOF
28225 .type _start, @function
28228 .size _start, .-_start
28229 .section .gnu.linkonce.t.foo,"ax",@progbits
28230 .type foo, @function
28234 .section .gcc_except_table.foo,"a",@progbits
28237 .section .eh_frame,"a",@progbits
28240 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28241 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28242 |
grep "gc-sections option ignored" > /dev
/null
; then
28243 gcc_cv_ld_eh_gc_sections
=no
28244 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28245 |
grep gcc_except_table
> /dev
/null
; then
28246 gcc_cv_ld_eh_gc_sections
=yes
28252 rm -f conftest.s conftest.o conftest
28256 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28257 gcc_cv_ld_eh_gc_sections
=no
28260 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28262 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28266 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28269 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28270 gcc_cv_ld_eh_gc_sections_bug
=no
28271 if test $in_tree_ld = yes ; then
28272 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 \
28273 && test $in_tree_ld_is_elf = yes; then
28274 gcc_cv_ld_eh_gc_sections_bug
=yes
28276 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
28277 gcc_cv_ld_eh_gc_sections_bug
=yes
28278 cat > conftest.s
<<EOF
28281 .type _start, @function
28284 .size _start, .-_start
28285 .section .text.startup.foo,"ax",@progbits
28286 .type foo, @function
28290 .section .gcc_except_table.foo,"a",@progbits
28293 .section .eh_frame,"a",@progbits
28296 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28297 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28298 |
grep "gc-sections option ignored" > /dev
/null
; then
28300 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28301 |
grep gcc_except_table
> /dev
/null
; then
28302 gcc_cv_ld_eh_gc_sections_bug
=no
28305 rm -f conftest.s conftest.o conftest
28307 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28309 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28313 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28316 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28317 # gold/gld support compressed debug sections since binutils 2.19/2.21
28318 # In binutils 2.26, gld gained support for the ELF gABI format.
28319 if test $in_tree_ld = yes ; then
28320 gcc_cv_ld_compress_debug
=0
28321 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 \
28322 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28323 gcc_cv_ld_compress_debug
=2
28324 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28325 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 \
28326 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28327 gcc_cv_ld_compress_debug
=3
28328 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28329 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 \
28330 && test $in_tree_ld_is_elf = yes; then
28331 gcc_cv_ld_compress_debug
=1
28333 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28334 if test "$ld_vers_major" -lt 2 \
28335 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28336 gcc_cv_ld_compress_debug
=0
28337 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28338 gcc_cv_ld_compress_debug
=1
28340 gcc_cv_ld_compress_debug
=3
28341 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28343 if test $ld_is_gold = yes; then
28344 gcc_cv_ld_compress_debug
=2
28345 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28348 case "${target}" in
28350 # Introduced in Solaris 11.2.
28351 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28352 gcc_cv_ld_compress_debug
=3
28353 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28355 gcc_cv_ld_compress_debug
=0
28359 # Assume linkers other than GNU ld don't support compessed debug
28361 gcc_cv_ld_compress_debug
=0
28366 cat >>confdefs.h
<<_ACEOF
28367 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28371 cat >>confdefs.h
<<_ACEOF
28372 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28376 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28378 if test x
"$ld64_flag" = x
"yes"; then
28380 # Set defaults for possibly untestable items.
28381 gcc_cv_ld64_export_dynamic
=0
28383 if test "$build" = "$host"; then
28389 # On Darwin, because of FAT library support, it is often possible to execute
28390 # exes from compatible archs even when the host differs from the build system.
28391 case "$build","$host" in
28392 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28393 darwin_try_test
=1;;
28397 # If the configurer specified a minimum ld64 version to be supported, then use
28398 # that to determine feature support.
28399 if test x
"${gcc_cv_ld64_version}" != x
; then
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28401 $as_echo_n "checking ld64 specified version... " >&6; }
28402 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28404 $as_echo "$gcc_cv_ld64_major" >&6; }
28405 if test "$gcc_cv_ld64_major" -ge 236; then
28406 gcc_cv_ld64_export_dynamic
=1
28408 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28409 # If the version was not specified, try to find it.
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28411 $as_echo_n "checking linker version... " >&6; }
28412 if test x
"${gcc_cv_ld64_version}" = x
; then
28413 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28416 $as_echo "$gcc_cv_ld64_version" >&6; }
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28419 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28420 gcc_cv_ld64_export_dynamic
=1
28421 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28422 gcc_cv_ld64_export_dynamic
=0
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28425 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28428 if test x
"${gcc_cv_ld64_version}" != x
; then
28430 cat >>confdefs.h
<<_ACEOF
28431 #define LD64_VERSION "${gcc_cv_ld64_version}"
28437 cat >>confdefs.h
<<_ACEOF
28438 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28448 $as_echo_n "checking linker --as-needed support... " >&6; }
28449 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28450 $as_echo_n "(cached) " >&6
28452 gcc_cv_ld_as_needed
=no
28453 gcc_cv_ld_as_needed_option
='--as-needed'
28454 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28455 if test $in_tree_ld = yes ; then
28456 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 \
28457 && test $in_tree_ld_is_elf = yes; then
28458 gcc_cv_ld_as_needed
=yes
28459 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28460 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28461 gcc_cv_ld_no_as_needed_option
='--pop-state'
28464 elif test x
$gcc_cv_ld != x
; then
28465 # Check if linker supports --as-needed and --no-as-needed options
28466 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
28467 gcc_cv_ld_as_needed
=yes
28468 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
28469 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
28470 && echo "$ld_ver" |
grep GNU
> /dev
/null \
28471 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28472 # Use these options only when both ld.bfd and ld.gold support
28473 # --push-state/--pop-state, which unfortunately wasn't added
28474 # at the same time.
28475 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28476 gcc_cv_ld_no_as_needed_option
='--pop-state'
28479 case "$target:$gnu_ld" in
28481 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28483 gcc_cv_ld_as_needed
=yes
28484 gcc_cv_ld_as_needed_option
="-z ignore"
28485 gcc_cv_ld_no_as_needed_option
="-z record"
28489 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28490 # dl_iterate_phdr, i.e. since Solaris 11.
28492 *-*-solaris2.1
[1-9]*)
28494 i?
86-*-* | x86_64-
*-*)
28495 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28496 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28497 gcc_cv_ld_as_needed
=no
28503 gcc_cv_ld_as_needed
=no
28508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28509 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28510 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28512 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28515 cat >>confdefs.h
<<_ACEOF
28516 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28520 cat >>confdefs.h
<<_ACEOF
28521 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28527 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28528 saved_LDFLAGS
="$LDFLAGS"
28529 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28530 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28532 /* end confdefs.h. */
28533 int main(void) {return 0;}
28535 if ac_fn_cxx_try_link
"$LINENO"; then :
28536 gcc_cv_ld_clearcap
=yes; break
28538 gcc_cv_ld_clearcap
=no
28540 rm -f core conftest.err conftest.
$ac_objext \
28541 conftest
$ac_exeext conftest.
$ac_ext
28543 LDFLAGS
="$saved_LDFLAGS"
28544 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28546 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28548 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28552 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28558 emul_name
="-melf32lppc"
28561 emul_name
="-melf32ppc"
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28565 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28566 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28567 $as_echo_n "(cached) " >&6
28569 gcc_cv_ld_ppc_attr
=no
28570 if test x
"$ld_is_gold" = xyes
; then
28571 gcc_cv_ld_ppc_attr
=yes
28572 elif test $in_tree_ld = yes ; then
28573 if test "$gcc_cv_gld_major_version" -eq 2 \
28574 -a "$gcc_cv_gld_minor_version" -ge 28 \
28575 -o "$gcc_cv_gld_major_version" -gt 2; then
28576 gcc_cv_ld_ppc_attr
=yes
28578 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28579 # check that merging the long double .gnu_attribute doesn't warn
28580 cat > conftest1.s
<<EOF
28583 cat > conftest2.s
<<EOF
28586 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28587 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28588 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
28589 && test ! -s conftest.err
; then
28590 gcc_cv_ld_ppc_attr
=yes
28592 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28597 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28598 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
28600 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28606 case "$target:$tm_file" in
28607 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28610 emul_name
="-melf64lppc"
28613 emul_name
="-melf64ppc"
28616 emul_name
="-melf64ppc_fbsd"
28619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28620 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28621 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28622 $as_echo_n "(cached) " >&6
28624 gcc_cv_ld_no_dot_syms
=no
28625 if test x
"$ld_is_gold" = xyes
; then
28626 gcc_cv_ld_no_dot_syms
=yes
28627 elif test $in_tree_ld = yes ; then
28628 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
28629 gcc_cv_ld_no_dot_syms
=yes
28631 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28632 cat > conftest1.s
<<EOF
28636 cat > conftest2.s
<<EOF
28637 .section ".opd","aw"
28640 .type foo,@function
28642 .quad .LEfoo,.TOC.@tocbase,0
28648 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28649 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28650 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28651 gcc_cv_ld_no_dot_syms
=yes
28653 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28658 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28659 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28661 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28666 $as_echo_n "checking linker large toc support... " >&6; }
28667 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28668 $as_echo_n "(cached) " >&6
28670 gcc_cv_ld_large_toc
=no
28671 if test x
"$ld_is_gold" = xyes
; then
28672 gcc_cv_ld_large_toc
=yes
28673 elif test $in_tree_ld = yes ; then
28674 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
28675 gcc_cv_ld_large_toc
=yes
28677 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28678 cat > conftest.s
<<EOF
28679 .section ".tbss","awT",@nobits
28685 addis 9,13,ie0@got@tprel@ha
28686 ld 9,ie0@got@tprel@l(9)
28688 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28689 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28690 gcc_cv_ld_large_toc
=yes
28692 rm -f conftest conftest.o conftest.s
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28697 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28698 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28700 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28705 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28706 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28707 $as_echo_n "(cached) " >&6
28709 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28710 cat > conftest.s
<<EOF
28715 .section .data.rel.ro,"aw",@progbits
28720 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28721 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28722 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)) }'`
28724 rm -f conftest conftest.o conftest.s
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28729 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28730 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28732 cat >>confdefs.h
<<_ACEOF
28733 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28743 $as_echo_n "checking linker large toc support... " >&6; }
28744 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28745 $as_echo_n "(cached) " >&6
28747 gcc_cv_ld_large_toc
=no
28748 if test x
$gcc_cv_as != x
; then
28749 cat > conftest.s
<<EOF
28759 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28760 gcc_cv_ld_large_toc
=yes
28762 rm -f conftest conftest.o conftest.s
28766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28767 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28768 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28770 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28777 $as_echo_n "checking linker --build-id support... " >&6; }
28778 if test "${gcc_cv_ld_buildid+set}" = set; then :
28779 $as_echo_n "(cached) " >&6
28781 gcc_cv_ld_buildid
=no
28782 if test $in_tree_ld = yes ; then
28783 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28784 "$gcc_cv_gld_minor_version" -ge 18 -o \
28785 "$gcc_cv_gld_major_version" -gt 2 \
28786 && test $in_tree_ld_is_elf = yes; then
28787 gcc_cv_ld_buildid
=yes
28789 elif test x
$gcc_cv_ld != x
; then
28790 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
28791 gcc_cv_ld_buildid
=yes
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28796 $as_echo "$gcc_cv_ld_buildid" >&6; }
28797 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28799 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28803 # Check whether --enable-linker-build-id was given.
28804 if test "${enable_linker_build_id+set}" = set; then :
28805 enableval
=$enable_linker_build_id;
28807 enable_linker_build_id
=no
28811 if test x
"$enable_linker_build_id" = xyes
; then
28812 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28814 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28818 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28822 # In binutils 2.21, GNU ld gained support for new emulations fully
28823 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28825 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28826 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28827 $as_echo_n "(cached) " >&6
28829 gcc_cv_ld_sol2_emulation
=no
28830 if test $in_tree_ld = yes ; then
28831 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28832 "$gcc_cv_gld_minor_version" -ge 21 -o \
28833 "$gcc_cv_gld_major_version" -gt 2 \
28834 && test $in_tree_ld_is_elf = yes; then
28835 gcc_cv_ld_sol2_emulation
=yes
28837 elif test x
$gcc_cv_ld != x
; then
28838 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28839 grep _sol2
> /dev
/null
; then
28840 gcc_cv_ld_sol2_emulation
=yes
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28845 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28846 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28848 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28853 $as_echo_n "checking linker --sysroot support... " >&6; }
28854 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28855 $as_echo_n "(cached) " >&6
28857 gcc_cv_ld_sysroot
=no
28858 if test $in_tree_ld = yes ; then
28859 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
28860 gcc_cv_ld_sysroot
=yes
28862 elif test x
$gcc_cv_ld != x
; then
28863 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
28864 gcc_cv_ld_sysroot
=yes
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28869 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28870 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28872 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28878 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28880 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28881 if test "${gcc_cv_solaris_crts+set}" = set; then :
28882 $as_echo_n "(cached) " >&6
28884 gcc_cv_solaris_crts
=no
28885 if test x
$host != x
$target; then
28886 if test "x$with_sysroot" = xyes
; then
28887 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
28889 target_sysroot
="${with_sysroot}"
28892 target_libdir
="$target_sysroot/usr/lib"
28893 # At the time they were added, gcrt1.o became a symlink for backwards
28894 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28896 i?
86-*-solaris2* | x86_64-
*-solaris2*)
28897 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
28899 sparc
*-*-solaris2*)
28900 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28905 $as_echo "$gcc_cv_solaris_crts" >&6; }
28908 if test x
$gcc_cv_solaris_crts = xyes
; then
28910 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28914 # Check whether --enable-libssp was given.
28915 if test "${enable_libssp+set}" = set; then :
28916 enableval
=$enable_libssp; case "${enableval}" in
28920 as_fn_error
"unknown libssp setting $enableval" "$LINENO" 5
28926 # Test for stack protector support in target C library.
28927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28928 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28929 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28930 $as_echo_n "(cached) " >&6
28932 gcc_cv_libc_provides_ssp
=no
28933 if test "x$enable_libssp" = "xno"; then
28934 gcc_cv_libc_provides_ssp
=yes
28935 elif test "x$enable_libssp" = "xyes"; then
28936 gcc_cv_libc_provides_ssp
=no
28940 # All versions of musl provide stack protector
28941 gcc_cv_libc_provides_ssp
=yes;;
28942 *-*-linux* |
*-*-kfreebsd*-gnu)
28943 # glibc 2.4 and later provides __stack_chk_fail and
28944 # either __stack_chk_guard, or TLS access to stack guard canary.
28946 if test $glibc_version_major -gt 2 \
28947 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28948 gcc_cv_libc_provides_ssp
=yes
28951 if test -f $target_header_dir/features.h \
28952 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28953 $target_header_dir/features.h
> /dev
/null
; then
28954 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28955 $target_header_dir/features.h
> /dev
/null
&& \
28956 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28957 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28958 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28959 gcc_cv_libc_provides_ssp
=yes
28961 # all versions of Bionic support stack protector
28962 elif test -f $target_header_dir/sys
/cdefs.h \
28963 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28964 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28965 gcc_cv_libc_provides_ssp
=yes
28970 # Avoid complicated tests (see
28971 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28972 # simply assert that glibc does provide this, which is true for all
28973 # realistically usable GNU/Hurd configurations.
28974 # All supported versions of musl provide it as well
28975 gcc_cv_libc_provides_ssp
=yes;;
28976 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
28977 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28978 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28979 gcc_cv_libc_provides_ssp
=yes
28981 echo "no __stack_chk_fail on this target"
28985 *) gcc_cv_libc_provides_ssp
=no
;;
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28990 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28992 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28994 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28998 # Check whether --enable-default-ssp was given.
28999 # Check whether --enable-default-ssp was given.
29000 if test "${enable_default_ssp+set}" = set; then :
29001 enableval
=$enable_default_ssp;
29002 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29004 ia64
*-*-*) enable_default_ssp
=no
;;
29005 *) enable_default_ssp
=$enableval ;;
29008 enable_default_ssp
=no
29011 enable_default_ssp
=no
29014 if test x
$enable_default_ssp = xyes
; then
29016 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29021 # Test for <sys/sdt.h> on the target.
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29024 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29026 if test -f $target_header_dir/sys
/sdt.h
; then
29029 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29033 $as_echo "$have_sys_sdt_h" >&6; }
29035 # Check if TFmode long double should be used by default or not.
29036 # Some glibc targets used DFmode long double, but with glibc 2.4
29037 # and later they can use TFmode.
29039 powerpc
*-*-linux* | \
29040 sparc
*-*-linux* | \
29044 # Check whether --with-long-double-128 was given.
29045 if test "${with_long_double_128+set}" = set; then :
29046 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29049 if test $glibc_version_major -gt 2 \
29050 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29051 gcc_cv_target_ldbl128
=yes
29054 gcc_cv_target_ldbl128
=no
29055 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29056 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29057 && gcc_cv_target_ldbl128
=yes
29064 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29066 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29070 # Check if TFmode long double target should use the IBM extended double or IEEE
29071 # 128-bit floating point formats if long doubles are 128-bits long. The long
29072 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29073 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29076 # Check whether --with-long-double-format was given.
29077 if test "${with_long_double_format+set}" = set; then :
29078 withval
=$with_long_double_format;
29079 case "$target:$with_long_double_format" in
29080 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
29083 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
29084 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29085 case "$with_cpu" in
29086 power7 | power8 | power9 | power1
*)
29090 as_fn_error
"Configuration option --with-long-double-format is only \
29091 supported if the default cpu is power7 or newer" "$LINENO" 5
29092 with_long_double_format
=""
29096 xpowerpc64
*-*-linux*:*)
29097 as_fn_error
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29098 with_long_double_format
=""
29101 as_fn_error
"Configure option --with-long-double-format is only supported \
29102 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29103 with_long_double_format
=""
29109 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29110 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29111 gcc_cv_libc_provides_hwcap_in_tcb
=no
29115 if test $glibc_version_major -gt 2 \
29116 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29117 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29121 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29123 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29128 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29129 gcc_cv_target_dl_iterate_phdr
=unknown
29131 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29132 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29133 # libdl there, both complicating its use and breaking compatibility
29134 # between Solaris 10 updates.
29135 *-*-solaris2.1
[1-9]*)
29136 # <link.h> needs both a dl_iterate_phdr declaration and support for
29137 # compilation with largefile support.
29138 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29139 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29140 gcc_cv_target_dl_iterate_phdr
=yes
29142 gcc_cv_target_dl_iterate_phdr
=no
29145 *-*-dragonfly* |
*-*-freebsd*)
29146 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29147 gcc_cv_target_dl_iterate_phdr
=yes
29149 gcc_cv_target_dl_iterate_phdr
=no
29153 gcc_cv_target_dl_iterate_phdr
=yes
29157 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29159 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29163 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29165 # We no longer support different GC mechanisms. Emit an error if
29166 # the user configures with --with-gc.
29168 # Check whether --with-gc was given.
29169 if test "${with_gc+set}" = set; then :
29170 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29174 # Libraries to use on the host. This will normally be set by the top
29175 # level Makefile. Here we simply capture the value for our Makefile.
29176 if test -z "${HOST_LIBS+set}"; then
29181 # Use the system's zlib library.
29183 # Use the system's zlib library.
29184 zlibdir
="-L\$(top_builddir)/../zlib"
29185 zlibinc
="-I\$(top_srcdir)/../zlib"
29187 # Check whether --with-system-zlib was given.
29188 if test "${with_system_zlib+set}" = set; then :
29189 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29202 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29203 # Check whether --enable-maintainer-mode was given.
29204 if test "${enable_maintainer_mode+set}" = set; then :
29205 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29212 $as_echo "$maintainer_mode" >&6; }
29214 if test "$maintainer_mode" = "yes"; then
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29222 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29223 # Check whether --enable-link-mutex was given.
29224 if test "${enable_link_mutex+set}" = set; then :
29225 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29231 $as_echo "$do_link_mutex" >&6; }
29233 if test "$do_link_mutex" = "yes"; then
29236 DO_LINK_MUTEX
=false
29244 # Make empty files to contain the specs and options for each language.
29245 # Then add #include lines to for a compiler that has specs and/or options.
29251 # These (without "all_") are set in each config-lang.in.
29252 # `language' must be a single word so is spelled singularly.
29255 all_outputs
='Makefile'
29256 # List of language makefile fragments.
29257 all_lang_makefrags
=
29258 # Additional files for gengtype
29259 all_gtfiles
="$target_gtfiles"
29261 # These are the languages that are set in --enable-languages,
29262 # and are available in the GCC tree.
29263 all_selected_languages
=
29265 # Add the language fragments.
29266 # Languages are added via two mechanisms. Some information must be
29267 # recorded in makefile variables, these are defined in config-lang.in.
29268 # We accumulate them and plug them into the main Makefile.
29269 # The other mechanism is a set of hooks for each of the main targets
29270 # like `clean', `install', etc.
29272 language_hooks
="Make-hooks"
29274 for lang
in ${srcdir}/*/config-lang.
in
29276 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29278 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29279 if test "x$lang_alias" = x
29281 echo "$lang doesn't set \$language." 1>&2
29284 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29285 subdirs
="$subdirs $subdir"
29287 # $gcc_subdir is where the gcc integration files are to be found
29288 # for a language, both for internal compiler purposes (compiler
29289 # sources implementing front-end to GCC tree converters), and for
29290 # build infrastructure purposes (Make-lang.in, etc.)
29292 # This will be <subdir> (relative to $srcdir) if a line like
29293 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29294 # is found in <langdir>/config-lang.in, and will remain <langdir>
29297 # Except for the language alias (fetched above), the regular
29298 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29299 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29300 # only this and the language alias.
29302 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29303 if [ "$gcc_subdir" = "" ]; then
29304 gcc_subdir
="$subdir"
29307 case ",$enable_languages," in
29309 all_selected_languages
="$all_selected_languages $lang_alias"
29310 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29311 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29322 .
${srcdir}/$gcc_subdir/config-lang.
in
29323 if test "x$language" = x
29325 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29330 case ",$enable_languages," in
29331 *,$lang_alias,*) ;;
29333 for i
in $subdir_requires; do
29334 test -f "${srcdir}/$i/config-lang.in" && continue
29342 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29343 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29344 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29345 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29347 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29348 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29350 all_languages
="$all_languages $language"
29351 all_compilers
="$all_compilers $compilers"
29352 all_outputs
="$all_outputs $outputs"
29353 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29354 case ",$enable_languages," in
29357 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29367 for language
in $all_selected_languages
29369 check_languages
="$check_languages check-$language"
29372 selftest_languages
=
29373 for language
in $all_selected_languages
29375 selftest_languages
="$selftest_languages selftest-$language"
29378 # We link each language in with a set of hooks, reached indirectly via
29379 # lang.${target}. Only do so for selected languages.
29383 target_list
="all.cross start.encap rest.encap tags \
29384 install-common install-man install-info install-pdf install-html dvi \
29385 pdf html uninstall info man srcextra srcman srcinfo \
29386 mostlyclean clean distclean maintainer-clean install-plugin"
29388 for t
in $target_list
29391 for lang
in $all_selected_languages
29395 echo "lang.$t: $x" >> Make-hooks
29399 # Option include files
29402 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29403 option_includes
="option-includes.mk"
29412 echo "dir ." > .gdbinit
29413 echo "dir ${srcdir}" >> .gdbinit
29414 if test x
$gdb_needs_out_file_path = xyes
29416 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29418 if test "x$subdirs" != x
; then
29421 echo "dir ${srcdir}/$s" >> .gdbinit
29424 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29425 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29427 # Put a breakpoint on __asan_report_error to help with debugging buffer
29430 *-fsanitize=address
*)
29431 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29435 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29439 # Find a directory in which to install a shared libgcc.
29441 # Check whether --enable-version-specific-runtime-libs was given.
29442 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29443 enableval
=$enable_version_specific_runtime_libs;
29447 # Substitute configuration variables
29512 if test x
${build} = x
${host} ; then
29513 if test x
${host} = x
${target} ; then
29514 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29516 echo "Links are now set up to build a cross-compiler" 1>&2
29517 echo " from ${host} to ${target}." 1>&2
29520 if test x
${host} = x
${target} ; then
29521 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29522 echo " for ${target}." 1>&2
29524 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29525 echo " from ${host} to ${target}." 1>&2
29534 if test "x${ISLLIBS}" != "x" ; then
29536 $as_echo "#define HAVE_isl 1" >>confdefs.h
29540 # Check for plugin support
29541 # Check whether --enable-plugin was given.
29542 if test "${enable_plugin+set}" = set; then :
29543 enableval
=$enable_plugin; enable_plugin
=$enableval
29545 enable_plugin
=yes; default_plugin
=yes
29554 # Since plugin support under MinGW is not as straightforward as on
29555 # other platforms (e.g., we have to link import library, etc), we
29556 # only enable it if explicitly requested.
29557 if test x
"$default_plugin" = x
"yes"; then
29559 elif test x
"$enable_plugin" = x
"yes"; then
29560 # Use make's target variable to derive import library name.
29561 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29566 if test x
$build = x
$host; then
29567 export_sym_check
="nm${exeext} -g"
29568 elif test x
$host = x
$target; then
29569 export_sym_check
="$gcc_cv_nm -g"
29575 if test x
$build = x
$host; then
29576 export_sym_check
="objdump${exeext} -T"
29577 elif test x
$host = x
$target; then
29578 export_sym_check
="$gcc_cv_objdump -T"
29585 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
29587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29588 $as_echo_n "checking for exported symbols... " >&6; }
29589 if test "x$export_sym_check" != x
; then
29590 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29591 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29592 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
29593 : # No need to use a flag
29594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29595 $as_echo "yes" >&6; }
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29598 $as_echo "yes" >&6; }
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29600 $as_echo_n "checking for -rdynamic... " >&6; }
29601 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29602 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
29603 plugin_rdynamic
=yes
29604 pluginlibs
="-rdynamic"
29609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29610 $as_echo "$plugin_rdynamic" >&6; }
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29614 $as_echo "unable to check" >&6; }
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29620 $as_echo_n "checking for library containing dlopen... " >&6; }
29621 if test "${ac_cv_search_dlopen+set}" = set; then :
29622 $as_echo_n "(cached) " >&6
29624 ac_func_search_save_LIBS
=$LIBS
29625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29626 /* end confdefs.h. */
29628 /* Override any GCC internal prototype to avoid an error.
29629 Use char because int might match the return type of a GCC
29630 builtin and then its argument prototype would still apply. */
29643 for ac_lib
in '' dl
; do
29644 if test -z "$ac_lib"; then
29645 ac_res
="none required"
29648 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29650 if ac_fn_cxx_try_link
"$LINENO"; then :
29651 ac_cv_search_dlopen
=$ac_res
29653 rm -f core conftest.err conftest.
$ac_objext \
29655 if test "${ac_cv_search_dlopen+set}" = set; then :
29659 if test "${ac_cv_search_dlopen+set}" = set; then :
29662 ac_cv_search_dlopen
=no
29664 rm conftest.
$ac_ext
29665 LIBS
=$ac_func_search_save_LIBS
29667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29668 $as_echo "$ac_cv_search_dlopen" >&6; }
29669 ac_res
=$ac_cv_search_dlopen
29670 if test "$ac_res" != no
; then :
29671 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29675 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29676 pluginlibs
="$pluginlibs -ldl"
29680 # Check that we can build shared objects with -fPIC -shared
29681 saved_LDFLAGS
="$LDFLAGS"
29682 saved_CFLAGS
="$CFLAGS"
29685 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29686 CFLAGS
="$CFLAGS -fPIC"
29687 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29690 CFLAGS
="$CFLAGS -fPIC"
29691 LDFLAGS
="$LDFLAGS -fPIC -shared"
29694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29695 $as_echo_n "checking for -fPIC -shared... " >&6; }
29696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29697 /* end confdefs.h. */
29707 if ac_fn_cxx_try_link
"$LINENO"; then :
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29709 $as_echo "yes" >&6; }; have_pic_shared
=yes
29711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29712 $as_echo "no" >&6; }; have_pic_shared
=no
29714 rm -f core conftest.err conftest.
$ac_objext \
29715 conftest
$ac_exeext conftest.
$ac_ext
29716 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29720 LDFLAGS
="$saved_LDFLAGS"
29721 CFLAGS
="$saved_CFLAGS"
29723 # If plugin support had been requested but not available, fail.
29724 if test x
"$enable_plugin" = x
"no" ; then
29725 if test x
"$default_plugin" != x
"yes"; then
29727 Building GCC with plugin support requires a host that supports
29728 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29735 if test x
"$enable_plugin" = x
"yes"; then
29737 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29742 # Enable --enable-host-shared
29743 # Check whether --enable-host-shared was given.
29744 if test "${enable_host_shared+set}" = set; then :
29745 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29754 # Check whether --enable-libquadmath-support was given.
29755 if test "${enable_libquadmath_support+set}" = set; then :
29756 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29758 ENABLE_LIBQUADMATH_SUPPORT
=yes
29761 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29763 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29768 # Specify what hash style to use by default.
29770 # Check whether --with-linker-hash-style was given.
29771 if test "${with_linker_hash_style+set}" = set; then :
29772 withval
=$with_linker_hash_style; case x
"$withval" in
29774 LINKER_HASH_STYLE
=sysv
29777 LINKER_HASH_STYLE
=gnu
29780 LINKER_HASH_STYLE
=both
29783 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29787 LINKER_HASH_STYLE
=''
29790 if test x
"${LINKER_HASH_STYLE}" != x
; then
29792 cat >>confdefs.h
<<_ACEOF
29793 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29798 # Specify what should be the default of -fdiagnostics-color option.
29800 # Check whether --with-diagnostics-color was given.
29801 if test "${with_diagnostics_color+set}" = set; then :
29802 withval
=$with_diagnostics_color; case x
"$withval" in
29804 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29807 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29810 DIAGNOSTICS_COLOR_DEFAULT
=-1
29813 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29816 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29820 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29824 cat >>confdefs.h
<<_ACEOF
29825 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29829 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29830 # of jit/jit-playback.c.
29831 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
29832 echo "gcc_driver_version: ${gcc_driver_version}"
29833 cat > gcc-driver-name.h
<<EOF
29834 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
29837 # Check whether --enable-default-pie was given.
29838 # Check whether --enable-default-pie was given.
29839 if test "${enable_default_pie+set}" = set; then :
29840 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29842 enable_default_pie
=no
29845 if test x
$enable_default_pie = xyes
; then
29847 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29852 # Check if -fno-PIE works.
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29854 $as_echo_n "checking for -fno-PIE option... " >&6; }
29855 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29856 $as_echo_n "(cached) " >&6
29858 saved_CXXFLAGS
="$CXXFLAGS"
29859 CXXFLAGS
="$CXXFLAGS -fno-PIE"
29860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29861 /* end confdefs.h. */
29862 int main(void) {return 0;}
29864 if ac_fn_cxx_try_compile
"$LINENO"; then :
29865 gcc_cv_c_no_fpie
=yes
29867 gcc_cv_c_no_fpie
=no
29869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29870 CXXFLAGS
="$saved_CXXFLAGS"
29872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29873 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29874 if test "$gcc_cv_c_no_fpie" = "yes"; then
29875 NO_PIE_CFLAGS
="-fno-PIE"
29879 # Check if -no-pie works.
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29881 $as_echo_n "checking for -no-pie option... " >&6; }
29882 if test "${gcc_cv_no_pie+set}" = set; then :
29883 $as_echo_n "(cached) " >&6
29885 saved_LDFLAGS
="$LDFLAGS"
29886 LDFLAGS
="$LDFLAGS -no-pie"
29887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29888 /* end confdefs.h. */
29889 int main(void) {return 0;}
29891 if ac_fn_cxx_try_link
"$LINENO"; then :
29896 rm -f core conftest.err conftest.
$ac_objext \
29897 conftest
$ac_exeext conftest.
$ac_ext
29898 LDFLAGS
="$saved_LDFLAGS"
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29901 $as_echo "$gcc_cv_no_pie" >&6; }
29902 if test "$gcc_cv_no_pie" = "yes"; then
29903 NO_PIE_FLAG
="-no-pie"
29907 # Check linker supports '-z bndplt'
29908 ld_bndplt_support
=no
29909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29910 $as_echo_n "checking linker -z bndplt option... " >&6; }
29911 if test x
"$ld_is_gold" = xno
; then
29912 if test $in_tree_ld = yes ; then
29913 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
29914 ld_bndplt_support
=yes
29916 elif test x
$gcc_cv_ld != x
; then
29917 # Check if linker supports -a bndplt option
29918 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
29919 ld_bndplt_support
=yes
29923 if test x
"$ld_bndplt_support" = xyes
; then
29925 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29929 $as_echo "$ld_bndplt_support" >&6; }
29931 # Check linker supports '--push-state'/'--pop-state'
29932 ld_pushpopstate_support
=no
29933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29934 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29935 if test x
"$ld_is_gold" = xno
; then
29936 if test $in_tree_ld = yes ; then
29937 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
29938 ld_pushpopstate_support
=yes
29940 elif test x
$gcc_cv_ld != x
; then
29941 # Check if linker supports --push-state/--pop-state options
29942 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
29943 ld_pushpopstate_support
=yes
29947 if test x
"$ld_pushpopstate_support" = xyes
; then
29949 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29953 $as_echo "$ld_pushpopstate_support" >&6; }
29955 # Configure the subdirectories
29956 # AC_CONFIG_SUBDIRS($subdirs)
29958 # Create the Makefile
29959 # and configure language subdirectories
29960 ac_config_files
="$ac_config_files $all_outputs"
29963 ac_config_commands
="$ac_config_commands default"
29965 cat >confcache
<<\_ACEOF
29966 # This file is a shell script that caches the results of configure
29967 # tests run on this system so they can be shared between configure
29968 # scripts and configure runs, see configure's option --config-cache.
29969 # It is not useful on other systems. If it contains results you don't
29970 # want to keep, you may remove or edit it.
29972 # config.status only pays attention to the cache file if you give it
29973 # the --recheck option to rerun configure.
29975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29977 # following values.
29981 # The following way of writing the cache mishandles newlines in values,
29982 # but we know of no workaround that is simple, portable, and efficient.
29983 # So, we kill variables containing newlines.
29984 # Ultrix sh set writes to stderr and can't be redirected directly,
29985 # and sets the high bit in the cache file unless we assign to the vars.
29987 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29988 eval ac_val
=\$
$ac_var
29992 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29993 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29996 _ | IFS | as_nl
) ;; #(
29997 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29998 *) { eval $ac_var=; unset $ac_var;} ;;
30004 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30005 *${as_nl}ac_space
=\
*)
30006 # `set' does not quote correctly, so add quotes: double-quote
30007 # substitution turns \\\\ into \\, and sed turns \\ into \.
30010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30013 # `set' quotes correctly as required by POSIX, so do not add quotes.
30014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30025 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30027 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30028 if test -w "$cache_file"; then
30029 test "x$cache_file" != "x/dev/null" &&
30030 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30031 $as_echo "$as_me: updating cache $cache_file" >&6;}
30032 cat confcache
>$cache_file
30034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30040 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30041 # Let make expand exec_prefix.
30042 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30044 DEFS
=-DHAVE_CONFIG_H
30048 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30049 # 1. Remove the extension, and $U if already installed.
30050 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30051 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30053 # will be set to the directory where LIBOBJS objects are built.
30054 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30055 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30057 LIBOBJS
=$ac_libobjs
30059 LTLIBOBJS
=$ac_ltlibobjs
30064 : ${CONFIG_STATUS=./config.status}
30066 ac_clean_files_save
=$ac_clean_files
30067 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30069 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30071 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30073 # Generated by $as_me.
30074 # Run this file to recreate the current configuration.
30075 # Compiler output produced by configure, useful for debugging
30076 # configure, is in config.log if it exists.
30079 ac_cs_recheck=false
30082 SHELL=\${CONFIG_SHELL-$SHELL}
30085 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30086 ## -------------------- ##
30087 ## M4sh Initialization. ##
30088 ## -------------------- ##
30090 # Be more Bourne compatible
30091 DUALCASE
=1; export DUALCASE
# for MKS sh
30092 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30095 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30096 # is contrary to our usage. Disable this feature.
30097 alias -g '${1+"$@"}'='"$@"'
30098 setopt NO_GLOB_SUBST
30100 case `(set -o) 2>/dev/null` in #(
30112 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30113 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30116 # Prefer a ksh shell builtin over an external printf program on Solaris,
30117 # but without wasting forks for bash or zsh.
30118 if test -z "$BASH_VERSION$ZSH_VERSION" \
30119 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30120 as_echo='print
-r --'
30121 as_echo_n='print
-rn --'
30122 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30123 as_echo='printf %s
\n'
30124 as_echo_n='printf %s
'
30126 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30127 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30128 as_echo_n='/usr
/ucb
/echo -n'
30130 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30131 as_echo_n_body='eval
30135 expr "X$arg" : "X\\(.*\\)$as_nl";
30136 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30138 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30140 export as_echo_n_body
30141 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30143 export as_echo_body
30144 as_echo='sh
-c $as_echo_body as_echo
'
30147 # The user is always right.
30148 if test "${PATH_SEPARATOR+set}" != set; then
30150 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30151 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30158 # We need space, tab and new line, in precisely that order. Quoting is
30159 # there to prevent editors from complaining about space-tab.
30160 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30161 # splitting by setting IFS to empty value.)
30164 # Find who we are. Look in the path if we contain no directory separator.
30166 *[\\/]* ) as_myself=$0 ;;
30167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30168 for as_dir in $PATH
30171 test -z "$as_dir" && as_dir=.
30172 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30178 # We did not find ourselves, most probably we were run as `sh COMMAND'
30179 # in which case we are not to be found in the path.
30180 if test "x$as_myself" = x
; then
30183 if test ! -f "$as_myself"; then
30184 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30188 # Unset variables that we do not need and which cause bugs (e.g. in
30189 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30190 # suppresses any "Segmentation fault" message there. '((' could
30191 # trigger a bug in pdksh 5.2.14.
30192 for as_var
in BASH_ENV ENV MAIL MAILPATH
30193 do eval test x\
${$as_var+set} = xset \
30194 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30207 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30210 # as_fn_error ERROR [LINENO LOG_FD]
30211 # ---------------------------------
30212 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30213 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30214 # script with status $?, using 1 if that was 0.
30217 as_status
=$?
; test $as_status -eq 0 && as_status
=1
30219 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30220 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30222 $as_echo "$as_me: error: $1" >&2
30223 as_fn_exit
$as_status
30227 # as_fn_set_status STATUS
30228 # -----------------------
30229 # Set $? to STATUS, without forking.
30230 as_fn_set_status
()
30233 } # as_fn_set_status
30235 # as_fn_exit STATUS
30236 # -----------------
30237 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30241 as_fn_set_status
$1
30247 # Portably unset VAR.
30250 { eval $1=; unset $1;}
30252 as_unset
=as_fn_unset
30253 # as_fn_append VAR VALUE
30254 # ----------------------
30255 # Append the text in VALUE to the end of the definition contained in VAR. Take
30256 # advantage of any shell optimizations that allow amortized linear growth over
30257 # repeated appends, instead of the typical quadratic growth present in naive
30259 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30260 eval 'as_fn_append ()
30271 # as_fn_arith ARG...
30272 # ------------------
30273 # Perform arithmetic evaluation on the ARGs, and store the result in the
30274 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30275 # must be portable across $(()) and expr.
30276 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30277 eval 'as_fn_arith ()
30284 as_val
=`expr "$@" || test $? -eq 1`
30289 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30290 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30296 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30297 as_basename
=basename
30302 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30308 as_me
=`$as_basename -- "$0" ||
30309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30310 X"$0" : 'X\(//\)$' \| \
30311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30313 sed '/^.*\/\([^/][^/]*\)\/*$/{
30327 # Avoid depending upon Character Ranges.
30328 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30329 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30330 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30331 as_cr_digits
='0123456789'
30332 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30334 ECHO_C
= ECHO_N
= ECHO_T
=
30335 case `echo -n x` in #(((((
30337 case `echo 'xy\c'` in
30338 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30340 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30347 rm -f conf$$ conf$$.exe conf$$.
file
30348 if test -d conf$$.dir
; then
30349 rm -f conf$$.dir
/conf$$.
file
30352 mkdir conf$$.dir
2>/dev
/null
30354 if (echo >conf$$.
file) 2>/dev
/null
; then
30355 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30357 # ... but there are two gotchas:
30358 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30359 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30360 # In both cases, we have to default to `cp -p'.
30361 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30363 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30371 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30372 rmdir conf$$.dir
2>/dev
/null
30377 # Create "$as_dir" as a directory, including parents if necessary.
30382 -*) as_dir
=.
/$as_dir;;
30384 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30388 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30389 *) as_qdir
=$as_dir;;
30391 as_dirs
="'$as_qdir' $as_dirs"
30392 as_dir
=`$as_dirname -- "$as_dir" ||
30393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30394 X"$as_dir" : 'X\(//\)[^/]' \| \
30395 X"$as_dir" : 'X\(//\)$' \| \
30396 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30397 $as_echo X"$as_dir" |
30398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30402 /^X\(\/\/\)[^/].*/{
30415 test -d "$as_dir" && break
30417 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30418 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30422 if mkdir
-p .
2>/dev
/null
; then
30423 as_mkdir_p
='mkdir -p "$as_dir"'
30425 test -d .
/-p && rmdir .
/-p
30429 if test -x / >/dev
/null
2>&1; then
30430 as_test_x
='test -x'
30432 if ls -dL / >/dev
/null
2>&1; then
30439 if test -d "$1"; then
30445 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30446 ???[sx]*):;;*)false;;esac;fi
30450 as_executable_p
=$as_test_x
30452 # Sed expression to map a string onto a valid CPP name.
30453 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30455 # Sed expression to map a string onto a valid variable name.
30456 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30460 ## ----------------------------------- ##
30461 ## Main body of $CONFIG_STATUS script. ##
30462 ## ----------------------------------- ##
30464 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30467 # Save the log message, to keep $0 and so on meaningful, and to
30468 # report actual input values of CONFIG_FILES etc. instead of their
30469 # values after options handling.
30471 This file was extended by $as_me, which was
30472 generated by GNU Autoconf 2.64. Invocation command line was
30474 CONFIG_FILES = $CONFIG_FILES
30475 CONFIG_HEADERS = $CONFIG_HEADERS
30476 CONFIG_LINKS = $CONFIG_LINKS
30477 CONFIG_COMMANDS = $CONFIG_COMMANDS
30480 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30485 case $ac_config_files in *"
30486 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30489 case $ac_config_headers in *"
30490 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30495 # Files that config.status was made for.
30496 config_files="$ac_config_files"
30497 config_headers="$ac_config_headers"
30498 config_links="$ac_config_links"
30499 config_commands="$ac_config_commands"
30503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30505 \`$as_me' instantiates files and other configuration actions
30506 from templates according to the current configuration. Unless the files
30507 and actions are specified as TAGs, all are instantiated by default.
30509 Usage: $0 [OPTION]... [TAG]...
30511 -h, --help print this help, then exit
30512 -V, --version print version number and configuration settings, then exit
30513 -q, --quiet, --silent
30514 do not print progress messages
30515 -d, --debug don't remove temporary files
30516 --recheck update $as_me by reconfiguring in the same conditions
30517 --file=FILE[:TEMPLATE]
30518 instantiate the configuration file FILE
30519 --header=FILE[:TEMPLATE]
30520 instantiate the configuration header FILE
30522 Configuration files:
30525 Configuration headers:
30528 Configuration links:
30531 Configuration commands:
30534 Report bugs to the package provider."
30537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30540 configured by $0, generated by GNU Autoconf 2.64,
30541 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30543 Copyright (C) 2009 Free Software Foundation, Inc.
30544 This config.status script is free software; the Free Software Foundation
30545 gives unlimited permission to copy, distribute and modify it."
30550 test -n "\$AWK" || AWK=awk
30553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30554 # The default lists apply if the user does not specify any file.
30560 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30561 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30572 # Handling of the options.
30573 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30575 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30576 $as_echo "$ac_cs_version"; exit ;;
30577 --debug |
--debu |
--deb |
--de |
--d |
-d )
30579 --file |
--fil |
--fi |
--f )
30582 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30584 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30585 ac_need_defaults
=false
;;
30586 --header |
--heade |
--head |
--hea )
30589 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30591 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30592 ac_need_defaults
=false
;;
30594 # Conflict between --help and --header
30595 as_fn_error
"ambiguous option: \`$1'
30596 Try \`$0 --help' for more information.";;
30597 --help |
--hel |
-h )
30598 $as_echo "$ac_cs_usage"; exit ;;
30599 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30600 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30603 # This is an error.
30604 -*) as_fn_error
"unrecognized option: \`$1'
30605 Try \`$0 --help' for more information." ;;
30607 *) as_fn_append ac_config_targets
" $1"
30608 ac_need_defaults
=false
;;
30614 ac_configure_extra_args
=
30616 if $ac_cs_silent; then
30618 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30623 if \$ac_cs_recheck; then
30624 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30626 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30627 CONFIG_SHELL='$SHELL'
30628 export CONFIG_SHELL
30633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30638 ## Running $as_me. ##
30644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30648 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30649 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30656 # Handling of arguments.
30657 for ac_config_target
in $ac_config_targets
30659 case $ac_config_target in
30660 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30661 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30662 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30663 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30664 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30665 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30666 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30667 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30668 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30670 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30675 # If the user did not use the arguments to specify the items to instantiate,
30676 # then the envvar interface is used. Set only those that are not.
30677 # We use the long form for the default assignment because of an extremely
30678 # bizarre bug on SunOS 4.1.3.
30679 if $ac_need_defaults; then
30680 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30681 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30682 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30686 # Have a temporary directory for convenience. Make it in the build tree
30687 # simply because there is no reason against having it here, and in addition,
30688 # creating and moving files from /tmp can sometimes cause problems.
30689 # Hook for its removal unless debugging.
30690 # Note that there is a small window in which the directory will not be cleaned:
30691 # after its creation but before its name has been assigned to `$tmp'.
30695 trap 'exit_status=$?
30696 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30698 trap 'as_fn_exit 1' 1 2 13 15
30700 # Create a (secure) tmp directory for tmp files.
30703 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30704 test -n "$tmp" && test -d "$tmp"
30707 tmp
=.
/conf$$
-$RANDOM
30708 (umask 077 && mkdir
"$tmp")
30709 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30711 # Set up the scripts for CONFIG_FILES section.
30712 # No need to generate them if there are no CONFIG_FILES.
30713 # This happens for instance with `./config.status config.h'.
30714 if test -n "$CONFIG_FILES"; then
30716 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30717 ac_cs_awk_getline
=:
30718 ac_cs_awk_pipe_init
=
30719 ac_cs_awk_read_file
='
30720 while ((getline aline < (F[key])) > 0)
30723 ac_cs_awk_pipe_fini
=
30725 ac_cs_awk_getline
=false
30726 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30727 ac_cs_awk_read_file
='
30729 print "cat " F[key] " &&"
30730 '$ac_cs_awk_pipe_init
30731 # The final `:' finishes the AND list.
30732 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30734 ac_cr
=`echo X | tr X '\015'`
30735 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30736 # But we know of no other shell where ac_cr would be empty at this
30737 # point, so we can use a bashism as a fallback.
30738 if test "x$ac_cr" = x
; then
30739 eval ac_cr
=\$
\'\\r
\'
30741 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30742 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30745 ac_cs_awk_cr
=$ac_cr
30748 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30751 # Create commands to substitute file output variables.
30753 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30754 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30755 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30758 } >conf$
$files.sh
&&
30759 . .
/conf$
$files.sh ||
30760 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30761 rm -f conf$
$files.sh
30764 echo "cat >conf$$subs.awk <<_ACEOF" &&
30765 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30767 } >conf$$subs.sh ||
30768 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30769 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30771 for ac_last_try in false false false false false :; do
30772 . ./conf$$subs.sh ||
30773 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30775 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30776 if test $ac_delim_n = $ac_delim_num; then
30778 elif $ac_last_try; then
30779 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30781 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30784 rm -f conf$$subs.sh
30786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30787 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30791 s/^/S["/; s
/!.
*/"]=/
30801 s/\(.\{148\}\).*/\1/
30803 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30808 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30815 s/\(.\{148\}\).*/\1/
30817 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30821 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30826 ' <conf$$subs.awk | sed '
30831 ' >>$CONFIG_STATUS || ac_write_fail=1
30832 rm -f conf$$subs.awk
30833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30835 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30836 for (key in S) S_is_set[key] = 1
30838 \$ac_cs_awk_pipe_init
30842 nfields = split(line, field, "@
")
30844 len = length(field[1])
30845 for (i = 2; i < nfields; i++) {
30847 keylen = length(key)
30848 if (S_is_set[key]) {
30850 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30851 len += length(value) + length(field[++i])
30856 if (nfields == 3 && !substed) {
30858 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30859 \$ac_cs_awk_read_file
30865 \$ac_cs_awk_pipe_fini
30868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30869 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30870 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30873 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30874 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30877 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30878 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30879 # trailing colons and then remove the whole line if VPATH becomes empty
30880 # (actually we leave an empty line to preserve line numbers).
30881 if test "x
$srcdir" = x.; then
30882 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30883 s/:*\$(srcdir):*/:/
30884 s/:*\${srcdir}:*/:/
30886 s/^\([^=]*=[ ]*\):*/\1/
30892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30893 fi # test -n "$CONFIG_FILES"
30895 # Set up the scripts for CONFIG_HEADERS section.
30896 # No need to generate them if there are no CONFIG_HEADERS.
30897 # This happens for instance with `./config.status Makefile'.
30898 if test -n "$CONFIG_HEADERS"; then
30899 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30903 # Transform confdefs.h into an awk script `defines.awk', embedded as
30904 # here-document in config.status, that substitutes the proper values into
30905 # config.h.in to produce config.h.
30907 # Create a delimiter string that does not exist in confdefs.h, to ease
30908 # handling of long lines.
30910 for ac_last_try in false false :; do
30911 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30912 if test -z "$ac_t"; then
30914 elif $ac_last_try; then
30915 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30917 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30921 # For the awk script, D is an array of macro values keyed by name,
30922 # likewise P contains macro parameters if any. Preserve backslash
30923 # newline sequences.
30925 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30927 s/.\{148\}/&'"$ac_delim"'/g
30930 s/^[ ]*#[ ]*define[ ][ ]*/ /
30937 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30939 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30943 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30944 D["\
1"]=" \
3\\\\\\n
"\\/p
30946 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30951 s/.\{148\}/&'"$ac_delim"'/g
30956 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30959 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30961 ' <confdefs.h | sed '
30962 s/'"$ac_delim"'/"\\\
30963 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30966 for (key in D) D_is_set[key] = 1
30969 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30971 split(line, arg, " ")
30972 if (arg[1] == "#") {
30976 defundef
= substr
(arg
[1], 2)
30979 split(mac1
, mac2
, "(") #)
30981 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30982 if (D_is_set
[macro
]) {
30983 # Preserve the white space surrounding the "#".
30984 print prefix
"define", macro P
[macro
] D
[macro
]
30987 # Replace #undef with comments. This is necessary, for example,
30988 # in the case of _POSIX_SOURCE, which is predefined and required
30989 # on some systems where configure will not decide to define it.
30990 if (defundef
== "undef") {
30991 print
"/*", prefix defundef
, macro
, "*/"
30999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31000 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
31001 fi # test -n "$CONFIG_HEADERS"
31004 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31009 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31011 case $ac_mode$ac_tag in
31013 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31014 :[FH
]-) ac_tag
=-:-;;
31015 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31032 -) ac_f
="$tmp/stdin";;
31033 *) # Look for the file first in the build tree, then in the source tree
31034 # (if the path is not absolute). The absolute path cannot be DOS-style,
31035 # because $ac_f cannot contain `:'.
31039 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31041 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
31043 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31044 as_fn_append ac_file_inputs
" '$ac_f'"
31047 # Let's still pretend it is `configure' which instantiates (i.e., don't
31048 # use $as_me), people would be surprised to read:
31049 # /* config.h. Generated by config.status. */
31050 configure_input
='Generated from '`
31051 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31053 if test x
"$ac_file" != x-
; then
31054 configure_input
="$ac_file. $configure_input"
31055 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31056 $as_echo "$as_me: creating $ac_file" >&6;}
31058 # Neutralize special characters interpreted by sed in replacement strings.
31059 case $configure_input in #(
31060 *\
&* |
*\|
* |
*\\* )
31061 ac_sed_conf_input
=`$as_echo "$configure_input" |
31062 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31063 *) ac_sed_conf_input
=$configure_input;;
31067 *:-:* |
*:-) cat >"$tmp/stdin" \
31068 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
31073 ac_dir
=`$as_dirname -- "$ac_file" ||
31074 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31075 X"$ac_file" : 'X\(//\)[^/]' \| \
31076 X"$ac_file" : 'X\(//\)$' \| \
31077 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31078 $as_echo X"$ac_file" |
31079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31083 /^X\(\/\/\)[^/].*/{
31096 as_dir
="$ac_dir"; as_fn_mkdir_p
31100 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31102 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31103 # A ".." for each directory in $ac_dir_suffix.
31104 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31105 case $ac_top_builddir_sub in
31106 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31107 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31110 ac_abs_top_builddir
=$ac_pwd
31111 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31112 # for backward compatibility:
31113 ac_top_builddir
=$ac_top_build_prefix
31116 .
) # We are building in place.
31118 ac_top_srcdir
=$ac_top_builddir_sub
31119 ac_abs_top_srcdir
=$ac_pwd ;;
31120 [\\/]* | ?
:[\\/]* ) # Absolute name.
31121 ac_srcdir
=$srcdir$ac_dir_suffix;
31122 ac_top_srcdir
=$srcdir
31123 ac_abs_top_srcdir
=$srcdir ;;
31124 *) # Relative name.
31125 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31126 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31127 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31129 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31141 # If the template does not know about datarootdir, expand it.
31142 # FIXME: This hack should be removed a few years after 2.60.
31143 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31154 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31155 *datarootdir
*) ac_datarootdir_seen
=yes;;
31156 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31158 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31161 ac_datarootdir_hack='
31162 s&@datadir@&$datadir&g
31163 s&@docdir@&$docdir&g
31164 s&@infodir@&$infodir&g
31165 s&@localedir@&$localedir&g
31166 s&@mandir@&$mandir&g
31167 s&\\\${datarootdir}&$datarootdir&g' ;;
31171 # Neutralize VPATH when `$srcdir' = `.'.
31172 # Shell code in configure.ac might set extrasub.
31173 # FIXME: do we really want to maintain this feature?
31174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31175 ac_sed_extra="$ac_vpsub
31178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31180 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31181 s|@configure_input@|
$ac_sed_conf_input|
;t t
31182 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31183 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31184 s
&@srcdir@
&$ac_srcdir&;t t
31185 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31186 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31187 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31188 s
&@builddir@
&$ac_builddir&;t t
31189 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31190 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31191 $ac_datarootdir_hack
31193 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31194 if $ac_cs_awk_getline; then
31195 $AWK -f "$tmp/subs.
awk"
31197 $AWK -f "$tmp/subs.
awk" | $SHELL
31199 || as_fn_error "could not create
$ac_file" "$LINENO" 5
31201 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31202 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
31203 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
31204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31205 which seems to be undefined. Please make sure it is defined." >&5
31206 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31207 which seems to be undefined. Please make sure it is defined." >&2;}
31211 -) cat "$tmp/out" && rm -f "$tmp/out";;
31212 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31214 || as_fn_error "could not create $ac_file" "$LINENO" 5
31220 if test x"$ac_file" != x-; then
31222 $as_echo "/* $configure_input */" \
31223 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31224 } >"$tmp/config.h" \
31225 || as_fn_error "could not create $ac_file" "$LINENO" 5
31226 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31227 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31228 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31231 mv "$tmp/config.h" "$ac_file" \
31232 || as_fn_error "could not create $ac_file" "$LINENO" 5
31235 $as_echo "/* $configure_input */" \
31236 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31237 || as_fn_error "could not create -" "$LINENO" 5
31245 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31248 # Prefer the file from the source tree if names are identical.
31249 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31250 ac_source=$srcdir/$ac_source
31253 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31254 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31256 if test ! -r "$ac_source"; then
31257 as_fn_error "$ac_source: file not found" "$LINENO" 5
31261 # Try a relative symlink, then a hard link, then a copy.
31263 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31264 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31266 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31267 ln "$ac_source" "$ac_file" 2>/dev/null ||
31268 cp -p "$ac_source" "$ac_file" ||
31269 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31272 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31273 $as_echo "$as_me: executing $ac_file commands" >&6;}
31278 case $ac_file$ac_mode in
31279 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31281 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31282 for lang in $subdirs c-family common
31284 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31286 "as":F) chmod +x as ;;
31287 "collect-ld":F) chmod +x collect-ld ;;
31288 "nm":F) chmod +x nm ;;
31290 case ${CONFIG_HEADERS} in
31291 *auto-host.h:config.in*)
31294 # Make sure all the subdirs exist.
31295 for d in $subdirs doc build common c-family
31297 test -d $d || mkdir $d
31307 ac_clean_files=$ac_clean_files_save
31309 test $ac_write_fail = 0 ||
31310 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31313 # configure is writing to config.log, and then calls config.status.
31314 # config.status does its own redirection, appending to config.log.
31315 # Unfortunately, on DOS this fails, as config.log is still kept open
31316 # by configure, so config.status won't be able to
write to it
; its
31317 # output is simply discarded. So we exec the FD to /dev/null,
31318 # effectively closing config.log, so it can be properly (re)opened and
31319 # appended to by config.status. When coming back to configure, we
31320 # need to make the FD available again.
31321 if test "$no_create" != yes; then
31323 ac_config_status_args
=
31324 test "$silent" = yes &&
31325 ac_config_status_args
="$ac_config_status_args --quiet"
31327 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31329 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31330 # would make configure fail if this is the last instruction.
31331 $ac_cs_success || as_fn_exit $?
31333 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31335 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}