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
662 build_xm_include_list
664 build_install_headers_dir
666 all_selected_languages
684 ld_version_script_option
688 ORIGINAL_NM_FOR_TARGET
690 ORIGINAL_LD_GOLD_FOR_TARGET
691 ORIGINAL_LD_BFD_FOR_TARGET
692 ORIGINAL_LD_FOR_TARGET
693 ORIGINAL_PLUGIN_LD_FOR_TARGET
695 ORIGINAL_AS_FOR_TARGET
713 NO_PIE_FLAG_FOR_BUILD
714 NO_PIE_CFLAGS_FOR_BUILD
724 BUILD_SYSTEM_HEADER_DIR
743 NATIVE_SYSTEM_HEADER_DIR
776 real_target_noncanonical
777 enable_as_accelerator
792 valgrind_path_defines
822 CROSS_SYSTEM_HEADER_DIR
823 TARGET_SYSTEM_ROOT_DEFINE
825 SYSROOT_CFLAGS_FOR_TARGET
871 program_transform_name
882 ac_subst_files
='option_includes
885 enable_option_checking
888 with_native_system_header_dir
893 enable_generated_files_in_srcdir
900 enable_build_format_warnings
904 enable_gather_detailed_mem_stats
905 enable_valgrind_annotations
909 with_stack_clash_protection_guard_size
927 enable_sjlj_exceptions
928 with_gcc_major_version_only
930 enable_mingw_wildcard
931 enable_leading_mingw64_underscores
934 enable_win32_registry
942 enable_gnu_indirect_function
943 enable_initfini_array
945 enable_fix_cortex_a53_835769
946 enable_fix_cortex_a53_843419
948 enable_gnu_unique_object
949 enable_linker_build_id
953 with_long_double_format
956 enable_maintainer_mode
958 enable_version_specific_runtime_libs
961 enable_libquadmath_support
962 with_linker_hash_style
963 with_diagnostics_color
966 ac_precious_vars
='build_alias
985 # Initialize some variables set by options.
987 ac_init_version
=false
988 ac_unrecognized_opts
=
990 # The variables have the same names as the options, with
991 # dashes changed to underlines.
999 program_transform_name
=s
,x
,x
,
1007 # Installation directory options.
1008 # These are left unexpanded so users can "make install exec_prefix=/foo"
1009 # and all the variables that are supposed to be based on exec_prefix
1010 # by default will actually change.
1011 # Use braces instead of parens because sh, perl, etc. also accept them.
1012 # (The list follows the same order as the GNU Coding Standards.)
1013 bindir
='${exec_prefix}/bin'
1014 sbindir
='${exec_prefix}/sbin'
1015 libexecdir
='${exec_prefix}/libexec'
1016 datarootdir
='${prefix}/share'
1017 datadir
='${datarootdir}'
1018 sysconfdir
='${prefix}/etc'
1019 sharedstatedir
='${prefix}/com'
1020 localstatedir
='${prefix}/var'
1021 includedir
='${prefix}/include'
1022 oldincludedir
='/usr/include'
1023 docdir
='${datarootdir}/doc/${PACKAGE}'
1024 infodir
='${datarootdir}/info'
1029 libdir
='${exec_prefix}/lib'
1030 localedir
='${datarootdir}/locale'
1031 mandir
='${datarootdir}/man'
1037 # If the previous option needs an argument, assign it.
1038 if test -n "$ac_prev"; then
1039 eval $ac_prev=\
$ac_option
1045 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1049 # Accept the important Cygnus configure options, so we can diagnose typos.
1051 case $ac_dashdash$ac_option in
1055 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1057 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1058 bindir
=$ac_optarg ;;
1060 -build |
--build |
--buil |
--bui |
--bu)
1061 ac_prev
=build_alias
;;
1062 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1063 build_alias
=$ac_optarg ;;
1065 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1066 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1067 ac_prev
=cache_file
;;
1068 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1069 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1070 cache_file
=$ac_optarg ;;
1072 --config-cache |
-C)
1073 cache_file
=config.cache
;;
1075 -datadir |
--datadir |
--datadi |
--datad)
1077 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1078 datadir
=$ac_optarg ;;
1080 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1081 |
--dataroo |
--dataro |
--datar)
1082 ac_prev
=datarootdir
;;
1083 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1084 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1085 datarootdir
=$ac_optarg ;;
1087 -disable-* |
--disable-*)
1088 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1091 as_fn_error
"invalid feature name: $ac_useropt"
1092 ac_useropt_orig
=$ac_useropt
1093 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "enable_
$ac_useropt"
1098 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1099 ac_unrecognized_sep
=', ';;
1101 eval enable_
$ac_useropt=no
;;
1103 -docdir |
--docdir |
--docdi |
--doc |
--do)
1105 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1106 docdir
=$ac_optarg ;;
1108 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1110 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1111 dvidir
=$ac_optarg ;;
1113 -enable-* |
--enable-*)
1114 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1117 as_fn_error
"invalid feature name: $ac_useropt"
1118 ac_useropt_orig
=$ac_useropt
1119 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1122 "enable_
$ac_useropt"
1124 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1125 ac_unrecognized_sep
=', ';;
1127 eval enable_
$ac_useropt=\
$ac_optarg ;;
1129 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1130 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1131 |
--exec |
--exe |
--ex)
1132 ac_prev
=exec_prefix
;;
1133 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1134 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1135 |
--exec=* |
--exe=* |
--ex=*)
1136 exec_prefix
=$ac_optarg ;;
1138 -gas |
--gas |
--ga |
--g)
1139 # Obsolete; use --with-gas.
1142 -help |
--help |
--hel |
--he |
-h)
1143 ac_init_help
=long
;;
1144 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1145 ac_init_help
=recursive
;;
1146 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1147 ac_init_help
=short
;;
1149 -host |
--host |
--hos |
--ho)
1150 ac_prev
=host_alias
;;
1151 -host=* |
--host=* |
--hos=* |
--ho=*)
1152 host_alias
=$ac_optarg ;;
1154 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1156 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1158 htmldir
=$ac_optarg ;;
1160 -includedir |
--includedir |
--includedi |
--included |
--include \
1161 |
--includ |
--inclu |
--incl |
--inc)
1162 ac_prev
=includedir
;;
1163 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1164 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1165 includedir
=$ac_optarg ;;
1167 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1169 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1170 infodir
=$ac_optarg ;;
1172 -libdir |
--libdir |
--libdi |
--libd)
1174 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1175 libdir
=$ac_optarg ;;
1177 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1178 |
--libexe |
--libex |
--libe)
1179 ac_prev
=libexecdir
;;
1180 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1181 |
--libexe=* |
--libex=* |
--libe=*)
1182 libexecdir
=$ac_optarg ;;
1184 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1185 ac_prev
=localedir
;;
1186 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1187 localedir
=$ac_optarg ;;
1189 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1190 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1191 ac_prev
=localstatedir
;;
1192 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1193 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1194 localstatedir
=$ac_optarg ;;
1196 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1198 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1199 mandir
=$ac_optarg ;;
1201 -nfp |
--nfp |
--nf)
1202 # Obsolete; use --without-fp.
1205 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1206 |
--no-cr |
--no-c |
-n)
1209 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1210 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1213 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1214 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1215 |
--oldin |
--oldi |
--old |
--ol |
--o)
1216 ac_prev
=oldincludedir
;;
1217 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1218 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1219 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1220 oldincludedir
=$ac_optarg ;;
1222 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1224 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1225 prefix
=$ac_optarg ;;
1227 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1228 |
--program-pre |
--program-pr |
--program-p)
1229 ac_prev
=program_prefix
;;
1230 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1231 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1232 program_prefix
=$ac_optarg ;;
1234 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1235 |
--program-suf |
--program-su |
--program-s)
1236 ac_prev
=program_suffix
;;
1237 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1238 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1239 program_suffix
=$ac_optarg ;;
1241 -program-transform-name |
--program-transform-name \
1242 |
--program-transform-nam |
--program-transform-na \
1243 |
--program-transform-n |
--program-transform- \
1244 |
--program-transform |
--program-transfor \
1245 |
--program-transfo |
--program-transf \
1246 |
--program-trans |
--program-tran \
1247 |
--progr-tra |
--program-tr |
--program-t)
1248 ac_prev
=program_transform_name
;;
1249 -program-transform-name=* |
--program-transform-name=* \
1250 |
--program-transform-nam=* |
--program-transform-na=* \
1251 |
--program-transform-n=* |
--program-transform-=* \
1252 |
--program-transform=* |
--program-transfor=* \
1253 |
--program-transfo=* |
--program-transf=* \
1254 |
--program-trans=* |
--program-tran=* \
1255 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1256 program_transform_name
=$ac_optarg ;;
1258 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1260 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1261 pdfdir
=$ac_optarg ;;
1263 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1265 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1268 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1269 |
-silent |
--silent |
--silen |
--sile |
--sil)
1272 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1274 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1276 sbindir
=$ac_optarg ;;
1278 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1279 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1280 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1282 ac_prev
=sharedstatedir
;;
1283 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1284 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1285 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1287 sharedstatedir
=$ac_optarg ;;
1289 -site |
--site |
--sit)
1291 -site=* |
--site=* |
--sit=*)
1294 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1296 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1297 srcdir
=$ac_optarg ;;
1299 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1300 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1301 ac_prev
=sysconfdir
;;
1302 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1303 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1304 sysconfdir
=$ac_optarg ;;
1306 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1307 ac_prev
=target_alias
;;
1308 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1309 target_alias
=$ac_optarg ;;
1311 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1314 -version |
--version |
--versio |
--versi |
--vers |
-V)
1315 ac_init_version
=: ;;
1318 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1321 as_fn_error
"invalid package name: $ac_useropt"
1322 ac_useropt_orig
=$ac_useropt
1323 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1328 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1329 ac_unrecognized_sep
=', ';;
1331 eval with_
$ac_useropt=\
$ac_optarg ;;
1333 -without-* |
--without-*)
1334 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1337 as_fn_error
"invalid package name: $ac_useropt"
1338 ac_useropt_orig
=$ac_useropt
1339 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340 case $ac_user_opts in
1344 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1345 ac_unrecognized_sep
=', ';;
1347 eval with_
$ac_useropt=no
;;
1350 # Obsolete; use --with-x.
1353 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1354 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1355 ac_prev
=x_includes
;;
1356 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1357 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1358 x_includes
=$ac_optarg ;;
1360 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1361 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1362 ac_prev
=x_libraries
;;
1363 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1364 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1365 x_libraries
=$ac_optarg ;;
1367 -*) as_fn_error
"unrecognized option: \`$ac_option'
1368 Try \`$0 --help' for more information."
1372 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1373 # Reject names that are not valid shell variable names.
1374 case $ac_envvar in #(
1375 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1376 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1378 eval $ac_envvar=\
$ac_optarg
1379 export $ac_envvar ;;
1382 # FIXME: should be removed in autoconf 3.0.
1383 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1384 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1385 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1386 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1392 if test -n "$ac_prev"; then
1393 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1394 as_fn_error
"missing argument to $ac_option"
1397 if test -n "$ac_unrecognized_opts"; then
1398 case $enable_option_checking in
1400 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1401 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1405 # Check all directory arguments for consistency.
1406 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1407 datadir sysconfdir sharedstatedir localstatedir includedir \
1408 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1409 libdir localedir mandir
1411 eval ac_val
=\$
$ac_var
1412 # Remove trailing slashes.
1415 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1416 eval $ac_var=\
$ac_val;;
1418 # Be sure to have absolute directory names.
1420 [\\/$
]* | ?
:[\\/]* ) continue;;
1421 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1423 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1426 # There might be people who depend on the old broken behavior: `$host'
1427 # used to hold the argument of --host etc.
1428 # FIXME: To remove some day.
1431 target
=$target_alias
1433 # FIXME: To remove some day.
1434 if test "x$host_alias" != x
; then
1435 if test "x$build_alias" = x
; then
1436 cross_compiling
=maybe
1437 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1438 If a cross compiler is detected then cross compile mode will be used." >&2
1439 elif test "x$build_alias" != "x$host_alias"; then
1445 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1447 test "$silent" = yes && exec 6>/dev
/null
1450 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1451 ac_ls_di
=`ls -di .` &&
1452 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1453 as_fn_error
"working directory cannot be determined"
1454 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1455 as_fn_error
"pwd does not report name of working directory"
1458 # Find the source files, if location was not specified.
1459 if test -z "$srcdir"; then
1460 ac_srcdir_defaulted
=yes
1461 # Try the directory containing this script, then the parent directory.
1462 ac_confdir
=`$as_dirname -- "$as_myself" ||
1463 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1464 X"$as_myself" : 'X\(//\)[^/]' \| \
1465 X"$as_myself" : 'X\(//\)$' \| \
1466 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1467 $as_echo X"$as_myself" |
1468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1490 ac_srcdir_defaulted
=no
1492 if test ! -r "$srcdir/$ac_unique_file"; then
1493 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1494 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1496 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1498 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1500 # When building in place, set srcdir=.
1501 if test "$ac_abs_confdir" = "$ac_pwd"; then
1504 # Remove unnecessary trailing slashes from srcdir.
1505 # Double slashes in file names in object file debugging info
1506 # mess up M-x gdb in Emacs.
1508 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1510 for ac_var
in $ac_precious_vars; do
1511 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1512 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1513 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1514 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1518 # Report the --help message.
1520 if test "$ac_init_help" = "long"; then
1521 # Omit some internal or obsolete options to make the list less imposing.
1522 # This message is too long to be a string in the A/UX 3.1 sh.
1524 \`configure' configures this package to adapt to many kinds of systems.
1526 Usage: $0 [OPTION]... [VAR=VALUE]...
1528 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1529 VAR=VALUE. See below for descriptions of some of the useful variables.
1531 Defaults for the options are specified in brackets.
1534 -h, --help display this help and exit
1535 --help=short display options specific to this package
1536 --help=recursive display the short help of all the included packages
1537 -V, --version display version information and exit
1538 -q, --quiet, --silent do not print \`checking...' messages
1539 --cache-file=FILE cache test results in FILE [disabled]
1540 -C, --config-cache alias for \`--cache-file=config.cache'
1541 -n, --no-create do not create output files
1542 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1544 Installation directories:
1545 --prefix=PREFIX install architecture-independent files in PREFIX
1546 [$ac_default_prefix]
1547 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1550 By default, \`make install' will install all the files in
1551 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1552 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1553 for instance \`--prefix=\$HOME'.
1555 For better control, use the options below.
1557 Fine tuning of the installation directories:
1558 --bindir=DIR user executables [EPREFIX/bin]
1559 --sbindir=DIR system admin executables [EPREFIX/sbin]
1560 --libexecdir=DIR program executables [EPREFIX/libexec]
1561 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1562 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1563 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1564 --libdir=DIR object code libraries [EPREFIX/lib]
1565 --includedir=DIR C header files [PREFIX/include]
1566 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1567 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1568 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1569 --infodir=DIR info documentation [DATAROOTDIR/info]
1570 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1571 --mandir=DIR man documentation [DATAROOTDIR/man]
1572 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1573 --htmldir=DIR html documentation [DOCDIR]
1574 --dvidir=DIR dvi documentation [DOCDIR]
1575 --pdfdir=DIR pdf documentation [DOCDIR]
1576 --psdir=DIR ps documentation [DOCDIR]
1582 --program-prefix=PREFIX prepend PREFIX to installed program names
1583 --program-suffix=SUFFIX append SUFFIX to installed program names
1584 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1587 --build=BUILD configure
for building on BUILD
[guessed
]
1588 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1589 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1593 if test -n "$ac_init_help"; then
1598 --disable-option-checking ignore unrecognized
--enable/--with options
1599 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1600 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1601 --enable-generated-files-in-srcdir
1602 put copies of generated files
in source dir intended
1603 for creating
source tarballs
for users without
1604 texinfo bison or flex
1605 --disable-largefile omit support
for large files
1606 --disable-build-format-warnings
1607 don
't use -Wformat while building GCC
1608 --enable-werror-always enable -Werror despite compiler version
1609 --enable-checking[=LIST]
1610 enable expensive run-time checks. With LIST, enable
1611 only specific categories of checks. Categories are:
1612 yes,no,all,none,release. Flags are:
1613 assert,df,extra,fold,gc,gcac,gimple,misc,
1614 rtlflag,rtl,runtime,tree,valgrind,types
1615 --enable-coverage[=LEVEL]
1616 enable compiler's code coverage collection. Use to
1617 measure compiler performance and
locate unused parts
1618 of the compiler. With LEVEL
, specify optimization.
1619 Values are opt
, noopt
, default is noopt
1620 --enable-gather-detailed-mem-stats
1621 enable detailed memory allocation stats gathering
1622 --enable-valgrind-annotations
1623 enable valgrind runtime interaction
1624 --enable-multilib enable library support
for multiple ABIs
1625 --enable-multiarch enable support
for multiarch paths
1626 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1627 --enable-decimal-float={no
,yes,bid
,dpd
}
1628 enable decimal float extension to C. Selecting
'bid'
1629 or
'dpd' choses
which decimal floating point format
1631 --enable-fixed-point enable fixed-point arithmetic extension to C
1632 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1634 --enable-tls enable or disable generation of tls code overriding
1635 the assembler check
for tls support
1636 --enable-vtable-verify enable vtable verification feature
1637 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1638 GNU Objective-C runtime
1639 --disable-shared don't provide a shared libgcc
1640 --disable-gcov don
't provide libgcov and related host tools
1641 --enable-languages=LIST specify which front-ends to build
1642 --disable-rpath do not hardcode runtime library paths
1643 --enable-sjlj-exceptions
1644 arrange to use setjmp/longjmp exception handling
1645 --enable-secureplt enable -msecure-plt by default for PowerPC
1646 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1647 Default to platform configuration
1648 --enable-leading-mingw64-underscores
1649 enable leading underscores on 64 bit mingw targets
1650 --enable-cld enable -mcld by default for 32bit x86
1651 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1653 --disable-win32-registry
1654 disable lookup of installation paths in the Registry
1656 --enable-win32-registry enable registry lookup (default)
1657 --enable-win32-registry=KEY
1658 use KEY instead of GCC version as the last portion
1660 --enable-shared[=PKGS] build shared libraries [default=yes]
1661 --enable-static[=PKGS] build static libraries [default=yes]
1662 --enable-fast-install[=PKGS]
1663 optimize for fast installation [default=yes]
1664 --disable-libtool-lock avoid locking (might break parallel builds)
1665 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1666 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1667 --enable-gnu-indirect-function
1668 enable the use of the @gnu_indirect_function to
1670 --enable-initfini-array use .init_array/.fini_array sections
1671 --enable-comdat enable COMDAT group support
1673 --enable-fix-cortex-a53-835769
1674 enable workaround for AArch64 Cortex-A53 erratum
1676 --disable-fix-cortex-a53-835769
1677 disable workaround for AArch64 Cortex-A53 erratum
1681 --enable-fix-cortex-a53-843419
1682 enable workaround for AArch64 Cortex-A53 erratum
1684 --disable-fix-cortex-a53-843419
1685 disable workaround for AArch64 Cortex-A53 erratum
1688 --enable-gnu-unique-object
1689 enable the use of the @gnu_unique_object ELF
1690 extension on glibc systems
1691 --enable-linker-build-id
1692 compiler will always pass --build-id to linker
1693 --enable-libssp enable linking against libssp
1694 --enable-default-ssp enable Stack Smashing Protection as default
1695 --enable-maintainer-mode
1696 enable make rules and dependencies not useful (and
1697 sometimes confusing) to the casual installer
1698 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1699 thrashing on the build machine
1700 --enable-version-specific-runtime-libs
1701 specify that runtime libraries should be installed
1702 in a compiler-specific directory
1703 --enable-plugin enable plugin support
1704 --enable-host-shared build host code as shared libraries
1705 --disable-libquadmath-support
1706 disable libquadmath support for Fortran
1707 --enable-default-pie enable Position Independent Executable as default
1710 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1711 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1712 --with-build-libsubdir=DIR Directory where to find libraries for build system
1713 --with-local-prefix=DIR specifies directory to put local include
1714 --with-native-system-header-dir=dir
1715 use dir as the directory to look for standard
1716 system header files in. Defaults to /usr/include.
1717 --with-build-sysroot=sysroot
1718 use sysroot as the system root during the build
1719 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1720 --with-gxx-include-dir=DIR
1721 specifies directory to put g++ header files
1722 --with-cpp-install-dir=DIR
1723 install the user visible C preprocessor in DIR
1724 (relative to PREFIX) as well as PREFIX/bin
1725 --with-gnu-ld arrange to work with GNU ld
1726 --with-ld arrange to use the specified ld (full pathname)
1727 --with-demangler-in-ld try to use demangler in GNU ld
1728 --with-gnu-as arrange to work with GNU as
1729 --with-as arrange to use the specified as (full pathname)
1730 --with-stabs arrange to use stabs instead of host debug format
1731 --with-stack-clash-protection-guard-size=size
1732 Set the default stack clash protection guard size
1733 for specific targets as a power of two in bytes.
1734 --with-dwarf2 force the default debug format to be DWARF 2
1735 --with-specs=SPECS add SPECS to driver command-line processing
1736 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1737 --with-bugurl=URL Direct users to URL to report a bug
1738 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1739 --with-gnu-ld assume the C compiler uses GNU ld default=no
1740 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1741 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1742 --with-gcc-major-version-only
1743 use only GCC major number
in filesystem paths
1744 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1746 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1747 --with-plugin-ld=[ARG
] specify the plugin linker
1748 --with-glibc-version=M.N
1749 assume GCC used with glibc version M.N or later
1750 --with-long-double-128 use
128-bit long double by default
1751 --with-long-double-format={ieee
,ibm
}
1752 Specify whether PowerPC long double uses IEEE or IBM format
1754 --with-gc={page
,zone
} this option is not supported anymore. It used to
1755 choose the garbage collection mechanism to use with
1757 --with-system-zlib use installed libz
1758 --with-linker-hash-style={sysv
,gnu
,both
}
1759 specify the linker
hash style
1760 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1761 specify the default of
-fdiagnostics-color option
1762 auto-if-env stands
for -fdiagnostics-color=auto
if
1763 GCC_COLOR environment variable is present and
1764 -fdiagnostics-color=never otherwise
1766 Some influential environment variables
:
1767 CC C compiler
command
1768 CFLAGS C compiler flags
1769 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1770 nonstandard directory
<lib dir
>
1771 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1772 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1773 you have headers
in a nonstandard directory
<include dir
>
1774 CXX C
++ compiler
command
1775 CXXFLAGS C
++ compiler flags
1776 CXXCPP C
++ preprocessor
1778 GMPLIBS How to link GMP
1779 GMPINC How to
find GMP include files
1780 ISLLIBS How to link isl
1781 ISLINC How to
find isl include files
1783 Use these variables to override the choices made by
`configure' or to help
1784 it to find libraries and programs with nonstandard names/locations.
1786 Report bugs to the package provider.
1791 if test "$ac_init_help" = "recursive"; then
1792 # If there are subdirs, report their specific --help.
1793 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1794 test -d "$ac_dir" ||
1795 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1802 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1803 # A ".." for each directory in $ac_dir_suffix.
1804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1805 case $ac_top_builddir_sub in
1806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1810 ac_abs_top_builddir=$ac_pwd
1811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1812 # for backward compatibility:
1813 ac_top_builddir=$ac_top_build_prefix
1816 .) # We are building in place.
1818 ac_top_srcdir=$ac_top_builddir_sub
1819 ac_abs_top_srcdir=$ac_pwd ;;
1820 [\\/]* | ?:[\\/]* ) # Absolute name.
1821 ac_srcdir=$srcdir$ac_dir_suffix;
1822 ac_top_srcdir=$srcdir
1823 ac_abs_top_srcdir=$srcdir ;;
1825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1826 ac_top_srcdir=$ac_top_build_prefix$srcdir
1827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1831 cd "$ac_dir" || { ac_status=$?; continue; }
1832 # Check for guested configure.
1833 if test -f "$ac_srcdir/configure.gnu"; then
1835 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1836 elif test -f "$ac_srcdir/configure"; then
1838 $SHELL "$ac_srcdir/configure" --help=recursive
1840 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1842 cd "$ac_pwd" || { ac_status=$?; break; }
1846 test -n "$ac_init_help" && exit $ac_status
1847 if $ac_init_version; then
1850 generated by GNU Autoconf 2.64
1852 Copyright (C) 2009 Free Software Foundation, Inc.
1853 This configure script is free software; the Free Software Foundation
1854 gives unlimited permission to copy, distribute and modify it.
1859 ## ------------------------ ##
1860 ## Autoconf initialization. ##
1861 ## ------------------------ ##
1863 # ac_fn_c_try_compile LINENO
1864 # --------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_compile ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext
1870 if { { ac_try="$ac_compile"
1872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1873 *) ac_try_echo
=$ac_try;;
1875 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_compile") 2>conftest.err
1879 if test -s conftest.err
; then
1880 grep -v '^ *+' conftest.err
>conftest.er1
1881 cat conftest.er1
>&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_c_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest.
$ac_objext; then :
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.
$ac_ext >&5
1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1899 } # ac_fn_c_try_compile
1901 # ac_fn_cxx_try_compile LINENO
1902 # ----------------------------
1903 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_cxx_try_compile
()
1906 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1907 rm -f conftest.
$ac_objext
1908 if { { ac_try
="$ac_compile"
1910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_compile") 2>conftest.err
1917 if test -s conftest.err; then
1918 grep -v '^ *+' conftest.err >conftest.er1
1919 cat conftest.er1 >&5
1920 mv -f conftest.er1 conftest.err
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; } && {
1924 test -z "$ac_cxx_werror_flag" ||
1925 test ! -s conftest.err
1926 } && test -s conftest.$ac_objext; then :
1929 $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937 } # ac_fn_cxx_try_compile
1939 # ac_fn_cxx_try_cpp LINENO
1940 # ------------------------
1941 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_cxx_try_cpp ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { { ac_try="$ac_cpp conftest.$ac_ext"
1947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1948 *) ac_try_echo
=$ac_try;;
1950 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1954 if test -s conftest.err
; then
1955 grep -v '^ *+' conftest.err
>conftest.er1
1956 cat conftest.er1
>&5
1957 mv -f conftest.er1 conftest.err
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } >/dev
/null
&& {
1961 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1962 test ! -s conftest.err
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.
$ac_ext >&5
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1974 } # ac_fn_cxx_try_cpp
1976 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1977 # ---------------------------------------------------------
1978 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1979 # the include files in INCLUDES and setting the cache variable VAR
1981 ac_fn_cxx_check_header_mongrel
()
1983 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1984 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 $as_echo_n "(cached) " >&6
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1994 # Is the header compilable?
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1996 $as_echo_n "checking $2 usability... " >&6; }
1997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2002 if ac_fn_cxx_try_compile
"$LINENO"; then :
2003 ac_header_compiler
=yes
2005 ac_header_compiler
=no
2007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2009 $as_echo "$ac_header_compiler" >&6; }
2011 # Is the header present?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2013 $as_echo_n "checking $2 presence... " >&6; }
2014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2018 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2019 ac_header_preproc
=yes
2021 ac_header_preproc
=no
2023 rm -f conftest.err conftest.
$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2025 $as_echo "$ac_header_preproc" >&6; }
2027 # So? What about this header?
2028 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2031 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2037 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2039 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2041 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2043 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2051 $as_echo_n "(cached) " >&6
2053 eval "$3=\$ac_header_compiler"
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2061 } # ac_fn_cxx_check_header_mongrel
2063 # ac_fn_cxx_try_run LINENO
2064 # ------------------------
2065 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2066 # that executables *can* be run.
2067 ac_fn_cxx_try_run
()
2069 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2070 if { { ac_try
="$ac_link"
2072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_link") 2>&5
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2081 { { case "(($ac_try" in
2082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2083 *) ac_try_echo
=$ac_try;;
2085 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086 $as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_try") 2>&5
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; }; }; then :
2093 $as_echo "$as_me: program exited with status $ac_status" >&5
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.
$ac_ext >&5
2097 ac_retval
=$ac_status
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2103 } # ac_fn_cxx_try_run
2105 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2106 # ---------------------------------------------------------
2107 # Tests whether HEADER exists and can be compiled using the include files in
2108 # INCLUDES, setting the cache variable VAR accordingly.
2109 ac_fn_cxx_check_header_compile
()
2111 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2115 $as_echo_n "(cached) " >&6
2117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2122 if ac_fn_cxx_try_compile
"$LINENO"; then :
2127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2134 } # ac_fn_cxx_check_header_compile
2136 # ac_fn_c_try_cpp LINENO
2137 # ----------------------
2138 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2141 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2142 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2151 if test -s conftest.err; then
2152 grep -v '^ *+' conftest.err >conftest.er1
2153 cat conftest.er1 >&5
2154 mv -f conftest.er1 conftest.err
2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157 test $ac_status = 0; } >/dev/null && {
2158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2159 test ! -s conftest.err
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2174 # ----------------------------------------------
2175 # Tries to find the compile-time value of EXPR in a program that includes
2176 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2178 ac_fn_cxx_compute_int ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 if test "$cross_compiling" = yes; then
2182 # Depending upon the size, compute the lo and hi bounds.
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2189 static int test_array [1 - 2 * !(($2) >= 0)];
2196 if ac_fn_cxx_try_compile "$LINENO"; then :
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2205 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2212 if ac_fn_cxx_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid; break
2215 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2216 if test $ac_lo -le $ac_mid; then
2220 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2231 static int test_array [1 - 2 * !(($2) < 0)];
2238 if ac_fn_cxx_try_compile "$LINENO"; then :
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2247 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2254 if ac_fn_cxx_try_compile "$LINENO"; then :
2255 ac_lo=$ac_mid; break
2257 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2258 if test $ac_mid -le $ac_hi; then
2262 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 # Binary search between lo and hi bounds.
2273 while test "x$ac_lo" != "x$ac_hi"; do
2274 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2281 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2288 if ac_fn_cxx_try_compile "$LINENO"; then :
2291 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2303 static long int longval () { return $2; }
2304 static unsigned long int ulongval () { return $2; }
2311 FILE *f = fopen ("conftest.val", "w");
2316 long int i = longval ();
2319 fprintf (f, "%ld", i);
2323 unsigned long int i = ulongval ();
2326 fprintf (f, "%lu", i);
2328 /* Do not output a trailing newline, as this causes \r\n confusion
2329 on some platforms. */
2330 return ferror (f) || fclose (f) != 0;
2336 if ac_fn_cxx_try_run "$LINENO"; then :
2337 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2342 conftest.$ac_objext conftest.beam conftest.$ac_ext
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2349 } # ac_fn_cxx_compute_int
2351 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2352 # ---------------------------------------------
2353 # Tests whether TYPE exists after having included INCLUDES, setting cache
2354 # variable VAR accordingly.
2355 ac_fn_cxx_check_type ()
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2359 $as_echo_n "checking for $2... " >&6; }
2360 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2361 $as_echo_n "(cached) " >&6
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2376 if ac_fn_cxx_try_compile "$LINENO"; then :
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2389 if ac_fn_cxx_try_compile "$LINENO"; then :
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2403 } # ac_fn_cxx_check_type
2405 # ac_fn_c_find_intX_t LINENO BITS VAR
2406 # -----------------------------------
2407 # Finds a signed integer type with width BITS, setting cache variable VAR
2409 ac_fn_c_find_intX_t ()
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2413 $as_echo_n "checking for int$2_t... " >&6; }
2414 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2415 $as_echo_n "(cached) " >&6
2418 for ac_type in int$2_t 'int' 'long int' \
2419 'long long int' 'short int' 'signed char'; do
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2422 $ac_includes_default
2426 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2433 if ac_fn_cxx_try_compile "$LINENO"; then :
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h. */
2436 $ac_includes_default
2440 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2441 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2448 if ac_fn_cxx_try_compile "$LINENO"; then :
2455 eval "$3=\$ac_type" ;;
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 if test "x$as_val" = x""no; then :
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 } # ac_fn_c_find_intX_t
2476 # ac_fn_cxx_try_link LINENO
2477 # -------------------------
2478 # Try to link conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_link ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 rm -f conftest.$ac_objext conftest$ac_exeext
2483 if { { ac_try="$ac_link"
2485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2486 *) ac_try_echo
=$ac_try;;
2488 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_link") 2>conftest.err
2492 if test -s conftest.err
; then
2493 grep -v '^ *+' conftest.err
>conftest.er1
2494 cat conftest.er1
>&5
2495 mv -f conftest.er1 conftest.err
2497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498 test $ac_status = 0; } && {
2499 test -z "$ac_cxx_werror_flag" ||
2500 test ! -s conftest.err
2501 } && test -s conftest
$ac_exeext && {
2502 test "$cross_compiling" = yes ||
2503 $as_test_x conftest
$ac_exeext
2507 $as_echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.
$ac_ext >&5
2512 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2513 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2514 # interfere with the next link command; also delete a directory that is
2515 # left behind by Apple's compiler. We do this before executing the actions.
2516 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2517 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2520 } # ac_fn_cxx_try_link
2522 # ac_fn_c_find_uintX_t LINENO BITS VAR
2523 # ------------------------------------
2524 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2526 ac_fn_c_find_uintX_t
()
2528 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2530 $as_echo_n "checking for uint$2_t... " >&6; }
2531 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2532 $as_echo_n "(cached) " >&6
2535 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2536 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2539 $ac_includes_default
2543 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2550 if ac_fn_cxx_try_compile
"$LINENO"; then :
2555 eval "$3=\$ac_type" ;;
2558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2560 if test "x$as_val" = x
""no
; then :
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2569 $as_echo "$ac_res" >&6; }
2570 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2572 } # ac_fn_c_find_uintX_t
2574 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2575 # ------------------------------------------------
2576 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2577 ac_fn_cxx_check_header_preproc
()
2579 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2581 $as_echo_n "checking for $2... " >&6; }
2582 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2583 $as_echo_n "(cached) " >&6
2585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2589 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2594 rm -f conftest.err conftest.
$ac_ext
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2598 $as_echo "$ac_res" >&6; }
2599 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2601 } # ac_fn_cxx_check_header_preproc
2603 # ac_fn_cxx_check_func LINENO FUNC VAR
2604 # ------------------------------------
2605 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2606 ac_fn_cxx_check_func
()
2608 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2610 $as_echo_n "checking for $2... " >&6; }
2611 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2612 $as_echo_n "(cached) " >&6
2614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2616 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2618 #define $2 innocuous_$2
2620 /* System header to define __stub macros and hopefully few prototypes,
2621 which can conflict with char $2 (); below.
2622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2623 <limits.h> exists even on freestanding compilers. */
2626 # include <limits.h>
2628 # include <assert.h>
2633 /* Override any GCC internal prototype to avoid an error.
2634 Use char because int might match the return type of a GCC
2635 builtin and then its argument prototype would still apply. */
2640 /* The GNU C library defines this for functions which it implements
2641 to always fail with ENOSYS. Some functions are actually named
2642 something starting with __ and the normal name is an alias. */
2643 #if defined __stub_$2 || defined __stub___$2
2655 if ac_fn_cxx_try_link
"$LINENO"; then :
2660 rm -f core conftest.err conftest.
$ac_objext \
2661 conftest
$ac_exeext conftest.
$ac_ext
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2665 $as_echo "$ac_res" >&6; }
2666 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2668 } # ac_fn_cxx_check_func
2670 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2671 # --------------------------------------
2672 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2673 ac_fn_cxx_check_decl
()
2675 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2676 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2677 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2679 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2680 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2681 $as_echo_n "(cached) " >&6
2683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2689 #ifndef $as_decl_name
2691 (void) $as_decl_use;
2693 (void) $as_decl_name;
2701 if ac_fn_cxx_try_compile
"$LINENO"; then :
2706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2710 $as_echo "$ac_res" >&6; }
2711 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2713 } # ac_fn_cxx_check_decl
2715 # ac_fn_c_try_link LINENO
2716 # -----------------------
2717 # Try to link conftest.$ac_ext, and return whether this succeeded.
2720 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2721 rm -f conftest.
$ac_objext conftest
$ac_exeext
2722 if { { ac_try
="$ac_link"
2724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2728 $as_echo "$ac_try_echo"; } >&5
2729 (eval "$ac_link") 2>conftest.err
2731 if test -s conftest.err; then
2732 grep -v '^ *+' conftest.err >conftest.er1
2733 cat conftest.er1 >&5
2734 mv -f conftest.er1 conftest.err
2736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2737 test $ac_status = 0; } && {
2738 test -z "$ac_c_werror_flag" ||
2739 test ! -s conftest.err
2740 } && test -s conftest$ac_exeext && {
2741 test "$cross_compiling" = yes ||
2742 $as_test_x conftest$ac_exeext
2746 $as_echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2753 # interfere with the next link command; also delete a directory that is
2754 # left behind by Apple's compiler. We do this before executing the actions.
2755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2759 } # ac_fn_c_try_link
2761 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2762 # ----------------------------------------------
2763 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2764 ac_fn_c_check_header_preproc ()
2766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2768 $as_echo_n "checking for $2... " >&6; }
2769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2770 $as_echo_n "(cached) " >&6
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2776 if ac_fn_c_try_cpp "$LINENO"; then :
2781 rm -f conftest.err conftest.$ac_ext
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2785 $as_echo "$ac_res" >&6; }
2786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2788 } # ac_fn_c_check_header_preproc
2790 # ac_fn_c_check_func LINENO FUNC VAR
2791 # ----------------------------------
2792 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2793 ac_fn_c_check_func ()
2795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2797 $as_echo_n "checking for $2... " >&6; }
2798 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2799 $as_echo_n "(cached) " >&6
2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h. */
2803 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2805 #define $2 innocuous_$2
2807 /* System header to define __stub macros and hopefully few prototypes,
2808 which can conflict with char $2 (); below.
2809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2810 <limits.h> exists even on freestanding compilers. */
2813 # include <limits.h>
2815 # include <assert.h>
2820 /* Override any GCC internal prototype to avoid an error.
2821 Use char because int might match the return type of a GCC
2822 builtin and then its argument prototype would still apply. */
2827 /* The GNU C library defines this for functions which it implements
2828 to always fail with ENOSYS. Some functions are actually named
2829 something starting with __ and the normal name is an alias. */
2830 #if defined __stub_$2 || defined __stub___$2
2842 if ac_fn_c_try_link "$LINENO"; then :
2847 rm -f core conftest.err conftest.$ac_objext \
2848 conftest$ac_exeext conftest.$ac_ext
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2852 $as_echo "$ac_res" >&6; }
2853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2855 } # ac_fn_c_check_func
2856 cat >config.log <<_ACEOF
2857 This file contains any messages produced by compilers while
2858 running configure, to aid debugging if configure makes a mistake.
2860 It was created by $as_me, which was
2861 generated by GNU Autoconf 2.64. Invocation command line was
2873 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2874 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2875 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2876 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2877 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2879 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2880 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2882 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2883 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2884 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2885 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2886 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2887 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2888 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 $as_echo "PATH: $as_dir"
2913 # Keep a trace of the command line.
2914 # Strip out --no-create and --no-recursion so they do not pile up.
2915 # Strip out --silent because we don't want to record it for future runs.
2916 # Also quote any args containing shell meta-characters.
2917 # Make two passes to allow for proper duplicate-argument suppression.
2921 ac_must_keep_next=false
2927 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2929 | -silent | --silent | --silen | --sile | --sil)
2932 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2935 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2937 as_fn_append ac_configure_args1 " '$ac_arg'"
2938 if test $ac_must_keep_next = true; then
2939 ac_must_keep_next=false # Got value, back to normal.
2942 *=* | --config-cache | -C | -disable-* | --disable-* \
2943 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2944 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2945 | -with-* | --with-* | -without-* | --without-* | --x)
2946 case "$ac_configure_args0 " in
2947 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2950 -* ) ac_must_keep_next=true ;;
2953 as_fn_append ac_configure_args " '$ac_arg'"
2958 { ac_configure_args0=; unset ac_configure_args0;}
2959 { ac_configure_args1=; unset ac_configure_args1;}
2961 # When interrupted or exit'd, cleanup temporary files, and complete
2962 # config.log. We remove comments because anyway the quotes in there
2963 # would cause problems or look ugly.
2964 # WARNING: Use '\'' to represent an apostrophe within the trap.
2965 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2966 trap 'exit_status=$?
2967 # Save into config.log some information that might help in debugging.
2972 ## ---------------- ##
2973 ## Cache variables. ##
2974 ## ---------------- ##
2977 # The following way of writing the cache mishandles newlines in values,
2979 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2980 eval ac_val=\$$ac_var
2984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2988 _ | IFS | as_nl) ;; #(
2989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2990 *) { eval $ac_var=; unset $ac_var;} ;;
2995 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2996 *${as_nl}ac_space=\ *)
2998 "s/'\''/'\''\\\\'\'''\''/g;
2999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3010 ## ----------------- ##
3011 ## Output variables. ##
3012 ## ----------------- ##
3015 for ac_var in $ac_subst_vars
3017 eval ac_val=\$$ac_var
3019 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3021 $as_echo "$ac_var='\''$ac_val'\''"
3025 if test -n "$ac_subst_files"; then
3027 ## ------------------- ##
3028 ## File substitutions. ##
3029 ## ------------------- ##
3032 for ac_var in $ac_subst_files
3034 eval ac_val=\$$ac_var
3036 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3038 $as_echo "$ac_var='\''$ac_val'\''"
3043 if test -s confdefs.h; then
3053 test "$ac_signal" != 0 &&
3054 $as_echo "$as_me: caught signal $ac_signal"
3055 $as_echo "$as_me: exit $exit_status"
3057 rm -f core *.core core.conftest.* &&
3058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3061 for ac_signal in 1 2 13 15; do
3062 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3066 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3067 rm -f -r conftest* confdefs.h
3069 $as_echo "/* confdefs.h */" > confdefs.h
3071 # Predefined preprocessor variables.
3073 cat >>confdefs.h <<_ACEOF
3074 #define PACKAGE_NAME "$PACKAGE_NAME"
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3081 cat >>confdefs.h <<_ACEOF
3082 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3085 cat >>confdefs.h <<_ACEOF
3086 #define PACKAGE_STRING "$PACKAGE_STRING"
3089 cat >>confdefs.h <<_ACEOF
3090 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3093 cat >>confdefs.h <<_ACEOF
3094 #define PACKAGE_URL "$PACKAGE_URL"
3098 # Let the site file select an alternate cache file if it wants to.
3099 # Prefer an explicitly selected file to automatically selected ones.
3102 if test -n "$CONFIG_SITE"; then
3103 ac_site_file1=$CONFIG_SITE
3104 elif test "x$prefix" != xNONE; then
3105 ac_site_file1=$prefix/share/config.site
3106 ac_site_file2=$prefix/etc/config.site
3108 ac_site_file1=$ac_default_prefix/share/config.site
3109 ac_site_file2=$ac_default_prefix/etc/config.site
3111 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3113 test "x$ac_site_file" = xNONE && continue
3114 if test -r "$ac_site_file"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3116 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3117 sed 's/^/| /' "$ac_site_file" >&5
3122 if test -r "$cache_file"; then
3123 # Some versions of bash will fail to source /dev/null (special
3124 # files actually), so we avoid doing that.
3125 if test -f "$cache_file"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3127 $as_echo "$as_me: loading cache $cache_file" >&6;}
3129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3130 *) . "./$cache_file";;
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3135 $as_echo "$as_me: creating cache $cache_file" >&6;}
3139 # Check that the precious variables saved in the cache have kept the same
3141 ac_cache_corrupted=false
3142 for ac_var in $ac_precious_vars; do
3143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3144 eval ac_new_set=\$ac_env_${ac_var}_set
3145 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3146 eval ac_new_val=\$ac_env_${ac_var}_value
3147 case $ac_old_set,$ac_new_set in
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3150 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3151 ac_cache_corrupted=: ;;
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3154 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3155 ac_cache_corrupted=: ;;
3158 if test "x$ac_old_val" != "x$ac_new_val"; then
3159 # differences in whitespace do not lead to failure.
3160 ac_old_val_w=`echo x
$ac_old_val`
3161 ac_new_val_w=`echo x
$ac_new_val`
3162 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3164 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3165 ac_cache_corrupted=:
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3168 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3169 eval $ac_var=\$ac_old_val
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3172 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3174 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3177 # Pass precious variables to config.status.
3178 if test "$ac_new_set" = set; then
3180 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3181 *) ac_arg=$ac_var=$ac_new_val ;;
3183 case " $ac_configure_args " in
3184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3185 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3189 if $ac_cache_corrupted; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3193 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3194 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3196 ## -------------------- ##
3197 ## Main body of script. ##
3198 ## -------------------- ##
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3214 gcc_version=`cat $srcdir/BASE-VER
`
3216 # Determine the host, build, and target systems
3218 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3219 for ac_t in install-sh install.sh shtool; do
3220 if test -f "$ac_dir/$ac_t"; then
3222 ac_install_sh="$ac_aux_dir/$ac_t -c"
3227 if test -z "$ac_aux_dir"; then
3228 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3231 # These three variables are undocumented and unsupported,
3232 # and are intended to be withdrawn in a future Autoconf release.
3233 # They can cause serious problems if a builder's source tree is in a directory
3234 # whose full name contains unusual characters.
3235 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3236 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3237 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3240 # Make sure we can run config.sub.
3241 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3242 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3245 $as_echo_n "checking build system type... " >&6; }
3246 if test "${ac_cv_build+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3249 ac_build_alias=$build_alias
3250 test "x$ac_build_alias" = x &&
3251 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3252 test "x$ac_build_alias" = x &&
3253 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3254 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3255 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3259 $as_echo "$ac_cv_build" >&6; }
3260 case $ac_cv_build in
3262 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3265 ac_save_IFS=$IFS; IFS='-'
3271 # Remember, the first character of IFS is used to create $*,
3272 # except with old shells:
3275 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3279 $as_echo_n "checking host system type... " >&6; }
3280 if test "${ac_cv_host+set}" = set; then :
3281 $as_echo_n "(cached) " >&6
3283 if test "x$host_alias" = x; then
3284 ac_cv_host=$ac_cv_build
3286 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3287 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3292 $as_echo "$ac_cv_host" >&6; }
3295 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3298 ac_save_IFS=$IFS; IFS='-'
3304 # Remember, the first character of IFS is used to create $*,
3305 # except with old shells:
3308 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3312 $as_echo_n "checking target system type... " >&6; }
3313 if test "${ac_cv_target+set}" = set; then :
3314 $as_echo_n "(cached) " >&6
3316 if test "x$target_alias" = x; then
3317 ac_cv_target=$ac_cv_host
3319 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3320 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3325 $as_echo "$ac_cv_target" >&6; }
3326 case $ac_cv_target in
3328 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3330 target=$ac_cv_target
3331 ac_save_IFS=$IFS; IFS='-'
3337 # Remember, the first character of IFS is used to create $*,
3338 # except with old shells:
3341 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3344 # The aliases save the names the user supplied, while $host etc.
3345 # will get canonicalized.
3346 test -n "$target_alias" &&
3347 test "$program_prefix$program_suffix$program_transform_name" = \
3349 program_prefix=${target_alias}-
3351 # Determine the noncanonical host name, for Ada.
3352 case ${build_alias} in
3353 "") build_noncanonical=${build} ;;
3354 *) build_noncanonical=${build_alias} ;;
3357 case ${host_alias} in
3358 "") host_noncanonical=${build_noncanonical} ;;
3359 *) host_noncanonical=${host_alias} ;;
3365 # Determine the noncanonical target name, for directory use.
3366 case ${target_alias} in
3367 "") target_noncanonical=${host_noncanonical} ;;
3368 *) target_noncanonical=${target_alias} ;;
3374 # Used for constructing correct paths for offload compilers.
3375 real_target_noncanonical=${target_noncanonical}
3378 # Determine the target- and build-specific subdirectories
3380 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3381 # have matching libraries, they should use host libraries: Makefile.tpl
3382 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3383 # However, they still use the build modules, because the corresponding
3384 # host modules (e.g. bison) are only built for the host when bootstrap
3386 # - build_subdir is where we find build modules, and never changes.
3387 # - build_libsubdir is where we find build libraries, and can be overridden.
3389 # Prefix 'build-' so this never conflicts with target_subdir.
3390 build_subdir="build-${build_noncanonical}"
3392 # Check whether --with-build-libsubdir was given.
3393 if test "${with_build_libsubdir+set}" = set; then :
3394 withval=$with_build_libsubdir; build_libsubdir="$withval"
3396 build_libsubdir="$build_subdir"
3399 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3400 if ( test $srcdir = . && test -d gcc ) \
3401 || test -d $srcdir/../host-${host_noncanonical}; then
3402 host_subdir="host-${host_noncanonical}"
3407 target_subdir=${target_noncanonical}
3410 # Set program_transform_name
3411 test "$program_prefix" != NONE &&
3412 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3413 # Use a double $ so make ignores it.
3414 test "$program_suffix" != NONE &&
3415 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3416 # Double any \ or $.
3417 # By default was `s
,x
,x
', remove it if useless.
3418 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3419 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3422 # Check for bogus environment variables.
3423 # Test if LIBRARY_PATH contains the notation for the current directory
3424 # since this would lead to problems installing/building glibc.
3425 # LIBRARY_PATH contains the current directory if one of the following
3427 # - one of the terminals (":" and ";") is the first or last sign
3428 # - two terminals occur directly after each other
3429 # - the path contains an element with a dot in it
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3431 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3432 case ${LIBRARY_PATH} in
3433 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3434 library_path_setting="contains current directory"
3437 library_path_setting="ok"
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3441 $as_echo "$library_path_setting" >&6; }
3442 if test "$library_path_setting" != "ok"; then
3444 *** LIBRARY_PATH shouldn't contain the current directory when
3445 *** building gcc. Please change the environment variable
3446 *** and run configure again.
" "$LINENO" 5
3449 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3450 # since this would lead to problems installing/building glibc.
3451 # GCC_EXEC_PREFIX contains the current directory if one of the following
3453 # - one of the terminals (":" and ";") is the first or last sign
3454 # - two terminals occur directly after each other
3455 # - the path contains an element with a dot in it
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3457 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3458 case ${GCC_EXEC_PREFIX} in
3459 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3460 gcc_exec_prefix_setting="contains current directory
"
3463 gcc_exec_prefix_setting="ok
"
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3467 $as_echo "$gcc_exec_prefix_setting" >&6; }
3468 if test "$gcc_exec_prefix_setting" != "ok
"; then
3470 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3471 *** building gcc. Please change the environment variable
3472 *** and run configure again." "$LINENO" 5
3479 # Specify the local prefix
3482 # Check whether --with-local-prefix was given.
3483 if test "${with_local_prefix+set}" = set; then :
3484 withval=$with_local_prefix; case "${withval}" in
3485 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3487 *) local_prefix=$with_local_prefix ;;
3492 # Default local prefix if it is empty
3493 if test x$local_prefix = x; then
3494 local_prefix=/usr/local
3498 # Check whether --with-native-system-header-dir was given.
3499 if test "${with_native_system_header_dir+set}" = set; then :
3500 withval=$with_native_system_header_dir;
3501 case ${with_native_system_header_dir} in
3502 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3503 /* | [A-Za-z]:[\\/]*) ;;
3504 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3506 configured_native_system_header_dir="${withval}"
3509 configured_native_system_header_dir=
3514 # Check whether --with-build-sysroot was given.
3515 if test "${with_build_sysroot+set}" = set; then :
3516 withval=$with_build_sysroot; if test x"$withval" != x ; then
3517 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3520 SYSROOT_CFLAGS_FOR_TARGET=
3525 if test "x$prefix" = xNONE; then
3526 test_prefix=/usr/local
3530 if test "x$exec_prefix" = xNONE; then
3531 test_exec_prefix=$test_prefix
3533 test_exec_prefix=$exec_prefix
3537 # Check whether --with-sysroot was given.
3538 if test "${with_sysroot+set}" = set; then :
3539 withval=$with_sysroot;
3540 case ${with_sysroot} in
3542 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3544 case ${with_sysroot} in
3545 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3546 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3549 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3550 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3552 case ${TARGET_SYSTEM_ROOT} in
3553 "${test_prefix}"|"${test_prefix}/"*|\
3554 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3555 '${prefix}'|'${prefix}/'*|\
3556 '${exec_prefix}'|'${exec_prefix}/'*)
3557 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3558 TARGET_SYSTEM_ROOT_DEFINE="$t"
3565 TARGET_SYSTEM_ROOT_DEFINE=
3566 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3574 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3575 # passed in by the toplevel make and thus we'd get different behavior
3576 # depending on where we built the sources.
3577 gcc_gxx_include_dir
=
3578 # Specify the g++ header file directory
3580 # Check whether --with-gxx-include-dir was given.
3581 if test "${with_gxx_include_dir+set}" = set; then :
3582 withval
=$with_gxx_include_dir; case "${withval}" in
3583 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3585 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3590 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3591 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3592 # relative to the sysroot.
3593 gcc_gxx_include_dir_add_sysroot
=0
3595 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3596 if test x
${gcc_gxx_include_dir} = x
; then
3597 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3598 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3600 libstdcxx_incdir
='include/c++/$(version)'
3601 if test x
$host != x
$target; then
3602 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3604 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3606 elif test "${with_sysroot+set}" = set; then
3607 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3608 if test "${gcc_gxx_without_sysroot}"; then
3609 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3610 gcc_gxx_include_dir_add_sysroot
=1
3615 # Check whether --with-cpp_install_dir was given.
3616 if test "${with_cpp_install_dir+set}" = set; then :
3617 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3618 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3619 elif test x
$withval != xno
; then
3620 cpp_install_dir
=$withval
3625 # We would like to our source tree to be readonly. However when releases or
3626 # pre-releases are generated, the flex/bison generated files as well as the
3627 # various formats of manuals need to be included along with the rest of the
3628 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3632 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3633 # Check whether --enable-generated-files-in-srcdir was given.
3634 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3635 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3637 generated_files_in_srcdir
=no
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3642 $as_echo "$generated_files_in_srcdir" >&6; }
3644 if test "$generated_files_in_srcdir" = "yes"; then
3651 # -------------------
3652 # Find default linker
3653 # -------------------
3657 # Check whether --with-gnu-ld was given.
3658 if test "${with_gnu_ld+set}" = set; then :
3659 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3666 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3670 # With pre-defined ld
3672 # Check whether --with-ld was given.
3673 if test "${with_ld+set}" = set; then :
3674 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3677 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3678 if test ! -x "$DEFAULT_LINKER"; then
3679 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3680 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3682 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3686 cat >>confdefs.h
<<_ACEOF
3687 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3693 $as_echo_n "checking whether a default linker was specified... " >&6; }
3694 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3695 if test x
"$gnu_ld_flag" = x
"no"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3697 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3700 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704 $as_echo "no" >&6; }
3707 # With demangler in GNU ld
3709 # Check whether --with-demangler-in-ld was given.
3710 if test "${with_demangler_in_ld+set}" = set; then :
3711 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3717 # ----------------------
3718 # Find default assembler
3719 # ----------------------
3723 # Check whether --with-gnu-as was given.
3724 if test "${with_gnu_as+set}" = set; then :
3725 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3732 # Check whether --with-as was given.
3733 if test "${with_as+set}" = set; then :
3734 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3737 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3738 if test ! -x "$DEFAULT_ASSEMBLER"; then
3739 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3740 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3744 cat >>confdefs.h
<<_ACEOF
3745 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3751 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3752 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3753 if test x
"$gas_flag" = x
"no"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3755 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3758 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3769 # If a non-executable a.out is present (e.g. created by GNU as above even if
3770 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3771 # file, even when creating an executable, so an execution test fails.
3772 # Remove possible default executable files to avoid this.
3774 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3775 # Autoconf includes it.
3776 rm -f a.out a.exe b.out
3778 # Find the native compiler
3780 ac_cpp
='$CPP $CPPFLAGS'
3781 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3786 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if test "${ac_cv_prog_CC+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3792 if test -n "$CC"; then
3793 ac_cv_prog_CC
="$CC" # Let the user override the test.
3795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir
=.
3800 for ac_exec_ext
in '' $ac_executable_extensions; do
3801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 if test -n "$CC"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3815 $as_echo "$CC" >&6; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3823 if test -z "$ac_cv_prog_CC"; then
3825 # Extract the first word of "gcc", so it can be a program name with args.
3826 set dummy gcc
; ac_word
=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3830 $as_echo_n "(cached) " >&6
3832 if test -n "$ac_ct_CC"; then
3833 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir
=.
3840 for ac_exec_ext
in '' $ac_executable_extensions; do
3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842 ac_cv_prog_ac_ct_CC
="gcc"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3853 if test -n "$ac_ct_CC"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3855 $as_echo "$ac_ct_CC" >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3861 if test "x$ac_ct_CC" = x
; then
3864 case $cross_compiling:$ac_tool_warned in
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3868 ac_tool_warned
=yes ;;
3876 if test -z "$CC"; then
3877 if test -n "$ac_tool_prefix"; then
3878 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3879 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if test "${ac_cv_prog_CC+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3885 if test -n "$CC"; then
3886 ac_cv_prog_CC
="$CC" # Let the user override the test.
3888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3892 test -z "$as_dir" && as_dir
=.
3893 for ac_exec_ext
in '' $ac_executable_extensions; do
3894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3895 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 if test -n "$CC"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3908 $as_echo "$CC" >&6; }
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3917 if test -z "$CC"; then
3918 # Extract the first word of "cc", so it can be a program name with args.
3919 set dummy cc
; ac_word
=$2
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if test "${ac_cv_prog_CC+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3925 if test -n "$CC"; then
3926 ac_cv_prog_CC
="$CC" # Let the user override the test.
3929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir
=.
3934 for ac_exec_ext
in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3937 ac_prog_rejected
=yes
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 if test $ac_prog_rejected = yes; then
3949 # We found a bogon in the path, so make sure we never use it.
3950 set dummy
$ac_cv_prog_CC
3952 if test $# != 0; then
3953 # We chose a different compiler from the bogus one.
3954 # However, it has the same basename, so the bogon will be chosen
3955 # first if we set CC to just the basename; use the full file name.
3957 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3963 if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3973 if test -z "$CC"; then
3974 if test -n "$ac_tool_prefix"; then
3975 for ac_prog
in cl.exe
3977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3978 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if test "${ac_cv_prog_CC+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3984 if test -n "$CC"; then
3985 ac_cv_prog_CC
="$CC" # Let the user override the test.
3987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3991 test -z "$as_dir" && as_dir
=.
3992 for ac_exec_ext
in '' $ac_executable_extensions; do
3993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3994 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 if test -n "$CC"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4007 $as_echo "$CC" >&6; }
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4014 test -n "$CC" && break
4017 if test -z "$CC"; then
4019 for ac_prog
in cl.exe
4021 # Extract the first word of "$ac_prog", so it can be a program name with args.
4022 set dummy
$ac_prog; ac_word
=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4028 if test -n "$ac_ct_CC"; then
4029 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4035 test -z "$as_dir" && as_dir
=.
4036 for ac_exec_ext
in '' $ac_executable_extensions; do
4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038 ac_cv_prog_ac_ct_CC
="$ac_prog"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4049 if test -n "$ac_ct_CC"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4051 $as_echo "$ac_ct_CC" >&6; }
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4058 test -n "$ac_ct_CC" && break
4061 if test "x$ac_ct_CC" = x
; then
4064 case $cross_compiling:$ac_tool_warned in
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4068 ac_tool_warned
=yes ;;
4077 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4079 as_fn_error
"no acceptable C compiler found in \$PATH
4080 See \`config.log' for more details." "$LINENO" 5; }
4082 # Provide some information about the compiler.
4083 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4086 for ac_option
in --version -v -V -qversion; do
4087 { { ac_try
="$ac_compiler $ac_option >&5"
4089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093 $as_echo "$ac_try_echo"; } >&5
4094 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4096 if test -s conftest.err; then
4098 ... rest of stderr output deleted ...
4099 10q' conftest.err >conftest.er1
4100 cat conftest.er1 >&5
4101 rm -f conftest.er1 conftest.err
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4118 ac_clean_files_save=$ac_clean_files
4119 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4120 # Try to create an executable without -o first, disregard a.out.
4121 # It will help us diagnose broken compilers, and finding out an intuition
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4124 $as_echo_n "checking for C compiler default output file name... " >&6; }
4125 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4127 # The possible output files:
4128 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4131 for ac_file in $ac_files
4134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4135 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4140 if { { ac_try="$ac_link_default"
4142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4143 *) ac_try_echo
=$ac_try;;
4145 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146 $as_echo "$ac_try_echo"; } >&5
4147 (eval "$ac_link_default") 2>&5
4149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150 test $ac_status = 0; }; then :
4151 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4152 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4153 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4154 # so that the user can short-circuit this test for compilers unknown to
4156 for ac_file
in $ac_files ''
4158 test -f "$ac_file" ||
continue
4160 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4163 # We found the default executable, but exeext='' is most
4167 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4169 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4171 # We set ac_cv_exeext here because the later test for it is not
4172 # safe: cross compilers may not add the suffix if given an `-o'
4173 # argument, so we may need to know it at that point already.
4174 # Even if this section looks crufty: it has the advantage of
4181 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4187 $as_echo "$ac_file" >&6; }
4188 if test -z "$ac_file"; then :
4189 $as_echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.
$ac_ext >&5
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 { as_fn_set_status
77
4195 as_fn_error
"C compiler cannot create executables
4196 See \`config.log' for more details." "$LINENO" 5; }; }
4198 ac_exeext
=$ac_cv_exeext
4200 # Check that the compiler produces executables we can run. If not, either
4201 # the compiler is broken, or we cross compile.
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4203 $as_echo_n "checking whether the C compiler works... " >&6; }
4204 # If not cross compiling, check that we can run a simple program.
4205 if test "$cross_compiling" != yes; then
4206 if { ac_try
='./$ac_file'
4207 { { case "(($ac_try" in
4208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_try") 2>&5
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }; }; then
4219 if test "$cross_compiling" = maybe; then
4222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4224 as_fn_error "cannot run C compiled programs.
4225 If you meant to cross compile
, use \
`--host'.
4226 See \`config.log
' for more details." "$LINENO" 5; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4231 $as_echo "yes" >&6; }
4233 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4234 ac_clean_files=$ac_clean_files_save
4235 # Check that the compiler produces executables we can run. If not, either
4236 # the compiler is broken, or we cross compile.
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4238 $as_echo_n "checking whether we are cross compiling... " >&6; }
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4240 $as_echo "$cross_compiling" >&6; }
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4243 $as_echo_n "checking for suffix of executables... " >&6; }
4244 if { { ac_try="$ac_link"
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_link") 2>&5
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; }; then :
4255 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4256 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4257 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4259 for ac_file
in conftest.exe conftest conftest.
*; do
4260 test -f "$ac_file" ||
continue
4262 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4263 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4271 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4272 See \`config.log' for more details." "$LINENO" 5; }
4274 rm -f conftest
$ac_cv_exeext
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4276 $as_echo "$ac_cv_exeext" >&6; }
4278 rm -f conftest.
$ac_ext
4279 EXEEXT
=$ac_cv_exeext
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4282 $as_echo_n "checking for suffix of object files... " >&6; }
4283 if test "${ac_cv_objext+set}" = set; then :
4284 $as_echo_n "(cached) " >&6
4286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4297 rm -f conftest.o conftest.obj
4298 if { { ac_try
="$ac_compile"
4300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_compile") 2>&5
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; }; then :
4309 for ac_file in conftest.o conftest.obj conftest.*; do
4310 test -f "$ac_file" || continue;
4312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4313 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4318 $as_echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4323 as_fn_error "cannot compute suffix of object files
: cannot compile
4324 See \
`config.log' for more details." "$LINENO" 5; }
4326 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4329 $as_echo "$ac_cv_objext" >&6; }
4330 OBJEXT=$ac_cv_objext
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4333 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4334 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4351 if ac_fn_c_try_compile "$LINENO"; then :
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4361 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4362 if test $ac_compiler_gnu = yes; then
4367 ac_test_CFLAGS=${CFLAGS+set}
4368 ac_save_CFLAGS=$CFLAGS
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4370 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4371 if test "${ac_cv_prog_cc_g+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4374 ac_save_c_werror_flag=$ac_c_werror_flag
4375 ac_c_werror_flag=yes
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4389 if ac_fn_c_try_compile "$LINENO"; then :
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4404 if ac_fn_c_try_compile "$LINENO"; then :
4407 ac_c_werror_flag=$ac_save_c_werror_flag
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4420 if ac_fn_c_try_compile "$LINENO"; then :
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 ac_c_werror_flag=$ac_save_c_werror_flag
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4431 $as_echo "$ac_cv_prog_cc_g" >&6; }
4432 if test "$ac_test_CFLAGS" = set; then
4433 CFLAGS=$ac_save_CFLAGS
4434 elif test $ac_cv_prog_cc_g = yes; then
4435 if test "$GCC" = yes; then
4441 if test "$GCC" = yes; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4448 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4449 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4452 ac_cv_prog_cc_c89=no
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4458 #include <sys/types.h>
4459 #include <sys/stat.h>
4460 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4461 struct buf { int x; };
4462 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4463 static char *e (p, i)
4469 static char *f (char * (*g) (char **, int), char **p, ...)
4474 s = g (p, va_arg (v,int));
4479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4480 function prototypes and stuff, but not '\xHH' hex character constants.
4481 These don't provoke an error unfortunately, instead are silently treated
4482 as 'x'. The following induces an error, until -std is added to get
4483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4484 array size at least. It's necessary to write '\x00'==0 to get something
4485 that's true only with -std. */
4486 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4488 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4489 inside strings and character constants. */
4491 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4493 int test (int i, double x);
4494 struct s1 {int (*f) (int a);};
4495 struct s2 {int (*f) (double a);};
4496 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4502 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4507 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4508 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4510 CC="$ac_save_CC $ac_arg"
4511 if ac_fn_c_try_compile "$LINENO"; then :
4512 ac_cv_prog_cc_c89=$ac_arg
4514 rm -f core conftest.err conftest.$ac_objext
4515 test "x$ac_cv_prog_cc_c89" != "xno" && break
4517 rm -f conftest.$ac_ext
4522 case "x$ac_cv_prog_cc_c89" in
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4525 $as_echo "none needed" >&6; } ;;
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4528 $as_echo "unsupported" >&6; } ;;
4530 CC="$CC $ac_cv_prog_cc_c89"
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4532 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4534 if test "x$ac_cv_prog_cc_c89" != xno; then :
4539 ac_cpp='$CPP $CPPFLAGS'
4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4549 if test -z "$CXX"; then
4550 if test -n "$CCC"; then
4553 if test -n "$ac_tool_prefix"; then
4554 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if test "${ac_cv_prog_CXX+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
4563 if test -n "$CXX"; then
4564 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 if test -n "$CXX"; then
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4586 $as_echo "$CXX" >&6; }
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4593 test -n "$CXX" && break
4596 if test -z "$CXX"; then
4598 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4600 # Extract the first word of "$ac_prog", so it can be a program name with args.
4601 set dummy $ac_prog; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4607 if test -n "$ac_ct_CXX"; then
4608 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_ac_ct_CXX="$ac_prog"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4628 if test -n "$ac_ct_CXX"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4630 $as_echo "$ac_ct_CXX" >&6; }
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4637 test -n "$ac_ct_CXX" && break
4640 if test "x$ac_ct_CXX" = x; then
4643 case $cross_compiling:$ac_tool_warned in
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4647 ac_tool_warned=yes ;;
4655 # Provide some information about the compiler.
4656 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4659 for ac_option in --version -v -V -qversion; do
4660 { { ac_try="$ac_compiler $ac_option >&5"
4662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4663 *) ac_try_echo
=$ac_try;;
4665 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4666 $as_echo "$ac_try_echo"; } >&5
4667 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4669 if test -s conftest.err
; then
4671 ... rest of stderr output deleted ...
4672 10q' conftest.err
>conftest.er1
4673 cat conftest.er1
>&5
4674 rm -f conftest.er1 conftest.err
4676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4677 test $ac_status = 0; }
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4681 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4682 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4699 if ac_fn_cxx_try_compile
"$LINENO"; then :
4704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4705 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4709 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4710 if test $ac_compiler_gnu = yes; then
4715 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4716 ac_save_CXXFLAGS
=$CXXFLAGS
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4718 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4719 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4722 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4723 ac_cxx_werror_flag
=yes
4726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4737 if ac_fn_cxx_try_compile
"$LINENO"; then :
4738 ac_cv_prog_cxx_g
=yes
4741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4752 if ac_fn_cxx_try_compile
"$LINENO"; then :
4755 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4768 if ac_fn_cxx_try_compile
"$LINENO"; then :
4769 ac_cv_prog_cxx_g
=yes
4771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4776 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4779 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4780 if test "$ac_test_CXXFLAGS" = set; then
4781 CXXFLAGS
=$ac_save_CXXFLAGS
4782 elif test $ac_cv_prog_cxx_g = yes; then
4783 if test "$GXX" = yes; then
4789 if test "$GXX" = yes; then
4796 ac_cpp
='$CPP $CPPFLAGS'
4797 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4804 if test -n "$ac_tool_prefix"; then
4805 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4806 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4812 if test -n "$GNATBIND"; then
4813 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4819 test -z "$as_dir" && as_dir
=.
4820 for ac_exec_ext
in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 GNATBIND
=$ac_cv_prog_GNATBIND
4833 if test -n "$GNATBIND"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4835 $as_echo "$GNATBIND" >&6; }
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4843 if test -z "$ac_cv_prog_GNATBIND"; then
4844 ac_ct_GNATBIND
=$GNATBIND
4845 # Extract the first word of "gnatbind", so it can be a program name with args.
4846 set dummy gnatbind
; ac_word
=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4852 if test -n "$ac_ct_GNATBIND"; then
4853 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir
=.
4860 for ac_exec_ext
in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4873 if test -n "$ac_ct_GNATBIND"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4875 $as_echo "$ac_ct_GNATBIND" >&6; }
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4881 if test "x$ac_ct_GNATBIND" = x
; then
4884 case $cross_compiling:$ac_tool_warned in
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned
=yes ;;
4890 GNATBIND
=$ac_ct_GNATBIND
4893 GNATBIND
="$ac_cv_prog_GNATBIND"
4896 if test -n "$ac_tool_prefix"; then
4897 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4898 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4902 $as_echo_n "(cached) " >&6
4904 if test -n "$GNATMAKE"; then
4905 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4911 test -z "$as_dir" && as_dir
=.
4912 for ac_exec_ext
in '' $ac_executable_extensions; do
4913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 GNATMAKE
=$ac_cv_prog_GNATMAKE
4925 if test -n "$GNATMAKE"; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4927 $as_echo "$GNATMAKE" >&6; }
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4935 if test -z "$ac_cv_prog_GNATMAKE"; then
4936 ac_ct_GNATMAKE
=$GNATMAKE
4937 # Extract the first word of "gnatmake", so it can be a program name with args.
4938 set dummy gnatmake
; ac_word
=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4944 if test -n "$ac_ct_GNATMAKE"; then
4945 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4951 test -z "$as_dir" && as_dir
=.
4952 for ac_exec_ext
in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4965 if test -n "$ac_ct_GNATMAKE"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4967 $as_echo "$ac_ct_GNATMAKE" >&6; }
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4973 if test "x$ac_ct_GNATMAKE" = x
; then
4976 case $cross_compiling:$ac_tool_warned in
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4980 ac_tool_warned
=yes ;;
4982 GNATMAKE
=$ac_ct_GNATMAKE
4985 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4989 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4990 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4991 $as_echo_n "(cached) " >&6
4993 cat >conftest.adb
<<EOF
4994 procedure conftest is begin null; end conftest;
4996 acx_cv_cc_gcc_supports_ada
=no
4997 # There is a bug in old released versions of GCC which causes the
4998 # driver to exit successfully when the appropriate language module
4999 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5000 # Therefore we must check for the error message as well as an
5001 # unsuccessful exit.
5002 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5003 # given a .adb file, but produce no object file. So we must check
5004 # if an object file was really produced to guard against this.
5005 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5006 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5007 acx_cv_cc_gcc_supports_ada
=yes
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5012 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5014 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5021 # Do configure tests with the C++ compiler, since that's what we build with.
5023 ac_cpp
='$CXXCPP $CPPFLAGS'
5024 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5029 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5030 # optimizations to be activated explicitly by the toplevel.
5032 */prev-gcc
/xgcc
*) ;;
5033 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5034 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5039 # Determine PICFLAG for target gnatlib.
5045 # PIC is the default on some targets or must not be used.
5047 # For darwin, common symbols are not allowed in MH_DYLIB files
5049 # If we are using a compiler supporting mdynamic-no-pic
5050 # and the option has been tested as safe to add, then cancel
5051 # it here, since the code generated is incompatible with shared
5053 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5054 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5058 # PIC is the default.
5061 # PIC is the default for 64-bit PA HP-UX.
5063 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5065 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5067 i
[34567]86-*-interix[3-9]*)
5068 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5069 # Instead, we relocate shared libraries at runtime.
5071 i
[34567]86-*-nto-qnx*)
5072 # QNX uses GNU C++, but need to define -shared option too, otherwise
5074 PICFLAG_FOR_TARGET
='-fPIC -shared'
5076 i
[34567]86-pc-msdosdjgpp*)
5077 # DJGPP does not support shared libraries at all.
5080 # On IA64 HP-UX, PIC is the default but the pic flag
5081 # sets the default TLS model and affects inlining.
5082 PICFLAG_FOR_TARGET
=-fPIC
5085 # PIC is the default.
5087 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5088 # All AIX code is PIC.
5091 # Some targets support both -fPIC and -fpic, but prefer the latter.
5093 i
[34567]86-*-* | x86_64-
*-*)
5094 PICFLAG_FOR_TARGET
=-fpic
5096 # FIXME: Override -fPIC default in libgcc only?
5097 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5098 PICFLAG_FOR_TARGET
=-fpic
5100 # FIXME: Simplify to sh*-*-netbsd*?
5101 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5102 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5103 PICFLAG_FOR_TARGET
=-fpic
5105 # Default to -fPIC unless specified otherwise.
5107 PICFLAG_FOR_TARGET
=-fPIC
5111 # If the user explicitly uses -fpic/-fPIC, keep that.
5112 case "${CFLAGS_FOR_TARGET}" in
5114 PICFLAG_FOR_TARGET
=-fpic
5117 PICFLAG_FOR_TARGET
=-fPIC
5123 # -------------------------
5124 # Check C compiler features
5125 # -------------------------
5129 ac_cpp
='$CXXCPP $CPPFLAGS'
5130 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5134 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5135 if test -z "$CXXCPP"; then
5136 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5139 # Double quotes because CXXCPP needs to be expanded
5140 for CXXCPP
in "$CXX -E" "/lib/cpp"
5143 for ac_cxx_preproc_warn_flag
in '' yes
5145 # Use a header file that comes with gcc, so configuring glibc
5146 # with a fresh cross-compiler works.
5147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148 # <limits.h> exists even on freestanding compilers.
5149 # On the NeXT, cc -E runs the code through the compiler's parser,
5150 # not just through cpp. "Syntax error" is here to catch this case.
5151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5154 # include <limits.h>
5156 # include <assert.h>
5160 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5163 # Broken: fails on valid input.
5166 rm -f conftest.err conftest.
$ac_ext
5168 # OK, works on sane cases. Now check whether nonexistent headers
5169 # can be detected and how.
5170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172 #include <ac_nonexistent.h>
5174 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5175 # Broken: success on invalid input.
5178 # Passes both tests.
5182 rm -f conftest.err conftest.
$ac_ext
5185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186 rm -f conftest.err conftest.
$ac_ext
5187 if $ac_preproc_ok; then :
5192 ac_cv_prog_CXXCPP
=$CXXCPP
5195 CXXCPP
=$ac_cv_prog_CXXCPP
5197 ac_cv_prog_CXXCPP
=$CXXCPP
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5200 $as_echo "$CXXCPP" >&6; }
5202 for ac_cxx_preproc_warn_flag
in '' yes
5204 # Use a header file that comes with gcc, so configuring glibc
5205 # with a fresh cross-compiler works.
5206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5207 # <limits.h> exists even on freestanding compilers.
5208 # On the NeXT, cc -E runs the code through the compiler's parser,
5209 # not just through cpp. "Syntax error" is here to catch this case.
5210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5213 # include <limits.h>
5215 # include <assert.h>
5219 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5222 # Broken: fails on valid input.
5225 rm -f conftest.err conftest.
$ac_ext
5227 # OK, works on sane cases. Now check whether nonexistent headers
5228 # can be detected and how.
5229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5231 #include <ac_nonexistent.h>
5233 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5234 # Broken: success on invalid input.
5237 # Passes both tests.
5241 rm -f conftest.err conftest.
$ac_ext
5244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5245 rm -f conftest.err conftest.
$ac_ext
5246 if $ac_preproc_ok; then :
5249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5251 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5252 See \`config.log' for more details." "$LINENO" 5; }
5256 ac_cpp
='$CXXCPP $CPPFLAGS'
5257 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5263 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5264 if test "${ac_cv_path_GREP+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
5267 if test -z "$GREP"; then
5268 ac_path_GREP_found
=false
5269 # Loop through the user's path and test for each of PROGNAME-LIST
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5271 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5274 test -z "$as_dir" && as_dir
=.
5275 for ac_prog
in grep ggrep
; do
5276 for ac_exec_ext
in '' $ac_executable_extensions; do
5277 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5278 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5279 # Check for GNU ac_path_GREP and select it if it is found.
5280 # Check for GNU $ac_path_GREP
5281 case `"$ac_path_GREP" --version 2>&1` in
5283 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5286 $as_echo_n 0123456789 >"conftest.in"
5289 cat "conftest.in" "conftest.in" >"conftest.tmp"
5290 mv "conftest.tmp" "conftest.in"
5291 cp "conftest.in" "conftest.nl"
5292 $as_echo 'GREP' >> "conftest.nl"
5293 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5294 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5295 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5296 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5297 # Best one so far, save it but keep looking for a better one
5298 ac_cv_path_GREP
="$ac_path_GREP"
5299 ac_path_GREP_max
=$ac_count
5301 # 10*(2^10) chars as input seems more than enough
5302 test $ac_count -gt 10 && break
5304 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5307 $ac_path_GREP_found && break 3
5312 if test -z "$ac_cv_path_GREP"; then
5313 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5316 ac_cv_path_GREP
=$GREP
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5321 $as_echo "$ac_cv_path_GREP" >&6; }
5322 GREP
="$ac_cv_path_GREP"
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5326 $as_echo_n "checking for egrep... " >&6; }
5327 if test "${ac_cv_path_EGREP+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5330 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5331 then ac_cv_path_EGREP
="$GREP -E"
5333 if test -z "$EGREP"; then
5334 ac_path_EGREP_found
=false
5335 # Loop through the user's path and test for each of PROGNAME-LIST
5336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5337 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5340 test -z "$as_dir" && as_dir
=.
5341 for ac_prog
in egrep; do
5342 for ac_exec_ext
in '' $ac_executable_extensions; do
5343 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5344 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5345 # Check for GNU ac_path_EGREP and select it if it is found.
5346 # Check for GNU $ac_path_EGREP
5347 case `"$ac_path_EGREP" --version 2>&1` in
5349 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5352 $as_echo_n 0123456789 >"conftest.in"
5355 cat "conftest.in" "conftest.in" >"conftest.tmp"
5356 mv "conftest.tmp" "conftest.in"
5357 cp "conftest.in" "conftest.nl"
5358 $as_echo 'EGREP' >> "conftest.nl"
5359 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5360 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5361 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5362 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5363 # Best one so far, save it but keep looking for a better one
5364 ac_cv_path_EGREP
="$ac_path_EGREP"
5365 ac_path_EGREP_max
=$ac_count
5367 # 10*(2^10) chars as input seems more than enough
5368 test $ac_count -gt 10 && break
5370 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5373 $ac_path_EGREP_found && break 3
5378 if test -z "$ac_cv_path_EGREP"; then
5379 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5382 ac_cv_path_EGREP
=$EGREP
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5388 $as_echo "$ac_cv_path_EGREP" >&6; }
5389 EGREP
="$ac_cv_path_EGREP"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5393 $as_echo_n "checking for ANSI C header files... " >&6; }
5394 if test "${ac_cv_header_stdc+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5412 if ac_fn_cxx_try_compile
"$LINENO"; then :
5413 ac_cv_header_stdc
=yes
5415 ac_cv_header_stdc
=no
5417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5419 if test $ac_cv_header_stdc = yes; then
5420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5427 $EGREP "memchr" >/dev
/null
2>&1; then :
5430 ac_cv_header_stdc
=no
5436 if test $ac_cv_header_stdc = yes; then
5437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5444 $EGREP "free" >/dev
/null
2>&1; then :
5447 ac_cv_header_stdc
=no
5453 if test $ac_cv_header_stdc = yes; then
5454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5455 if test "$cross_compiling" = yes; then :
5458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5462 #if ((' ' & 0x0FF) == 0x020)
5463 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5464 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5466 # define ISLOWER(c) \
5467 (('a' <= (c) && (c) <= 'i') \
5468 || ('j' <= (c) && (c) <= 'r') \
5469 || ('s' <= (c) && (c) <= 'z'))
5470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5478 for (i = 0; i < 256; i++)
5479 if (XOR (islower (i), ISLOWER (i))
5480 || toupper (i) != TOUPPER (i))
5485 if ac_fn_cxx_try_run
"$LINENO"; then :
5488 ac_cv_header_stdc
=no
5490 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5491 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5497 $as_echo "$ac_cv_header_stdc" >&6; }
5498 if test $ac_cv_header_stdc = yes; then
5500 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5504 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5505 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5506 inttypes.h stdint.h unistd.h
5508 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5511 eval as_val
=\$
$as_ac_Header
5512 if test "x$as_val" = x
""yes; then :
5513 cat >>confdefs.h
<<_ACEOF
5514 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5523 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5524 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5531 if test "$MINIX" = yes; then
5533 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5536 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5539 $as_echo "#define _MINIX 1" >>confdefs.h
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5545 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5546 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5552 # define __EXTENSIONS__ 1
5553 $ac_includes_default
5562 if ac_fn_cxx_try_compile
"$LINENO"; then :
5563 ac_cv_safe_to_define___extensions__
=yes
5565 ac_cv_safe_to_define___extensions__
=no
5567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5570 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5571 test $ac_cv_safe_to_define___extensions__ = yes &&
5572 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5574 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5576 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5578 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5580 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5584 ac_cpp
='$CPP $CPPFLAGS'
5585 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5586 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5589 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5590 # On Suns, sometimes $CPP names a directory.
5591 if test -n "$CPP" && test -d "$CPP"; then
5594 if test -z "$CPP"; then
5595 if test "${ac_cv_prog_CPP+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5598 # Double quotes because CPP needs to be expanded
5599 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5602 for ac_c_preproc_warn_flag
in '' yes
5604 # Use a header file that comes with gcc, so configuring glibc
5605 # with a fresh cross-compiler works.
5606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5607 # <limits.h> exists even on freestanding compilers.
5608 # On the NeXT, cc -E runs the code through the compiler's parser,
5609 # not just through cpp. "Syntax error" is here to catch this case.
5610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5613 # include <limits.h>
5615 # include <assert.h>
5619 if ac_fn_c_try_cpp
"$LINENO"; then :
5622 # Broken: fails on valid input.
5625 rm -f conftest.err conftest.
$ac_ext
5627 # OK, works on sane cases. Now check whether nonexistent headers
5628 # can be detected and how.
5629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 #include <ac_nonexistent.h>
5633 if ac_fn_c_try_cpp
"$LINENO"; then :
5634 # Broken: success on invalid input.
5637 # Passes both tests.
5641 rm -f conftest.err conftest.
$ac_ext
5644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5645 rm -f conftest.err conftest.
$ac_ext
5646 if $ac_preproc_ok; then :
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5659 $as_echo "$CPP" >&6; }
5661 for ac_c_preproc_warn_flag
in '' yes
5663 # Use a header file that comes with gcc, so configuring glibc
5664 # with a fresh cross-compiler works.
5665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5666 # <limits.h> exists even on freestanding compilers.
5667 # On the NeXT, cc -E runs the code through the compiler's parser,
5668 # not just through cpp. "Syntax error" is here to catch this case.
5669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5672 # include <limits.h>
5674 # include <assert.h>
5678 if ac_fn_c_try_cpp
"$LINENO"; then :
5681 # Broken: fails on valid input.
5684 rm -f conftest.err conftest.
$ac_ext
5686 # OK, works on sane cases. Now check whether nonexistent headers
5687 # can be detected and how.
5688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #include <ac_nonexistent.h>
5692 if ac_fn_c_try_cpp
"$LINENO"; then :
5693 # Broken: success on invalid input.
5696 # Passes both tests.
5700 rm -f conftest.err conftest.
$ac_ext
5703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5704 rm -f conftest.err conftest.
$ac_ext
5705 if $ac_preproc_ok; then :
5708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5710 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5711 See \`config.log' for more details." "$LINENO" 5; }
5715 ac_cpp
='$CXXCPP $CPPFLAGS'
5716 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5717 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5718 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5721 $as_echo_n "checking for inline... " >&6; }
5722 if test "${ac_cv_c_inline+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5726 for ac_kw
in inline __inline__ __inline
; do
5727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5731 static $ac_kw foo_t static_foo () {return 0; }
5732 $ac_kw foo_t foo () {return 0; }
5736 if ac_fn_cxx_try_compile
"$LINENO"; then :
5737 ac_cv_c_inline
=$ac_kw
5739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5740 test "$ac_cv_c_inline" != no
&& break
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5745 $as_echo "$ac_cv_c_inline" >&6; }
5747 case $ac_cv_c_inline in
5750 case $ac_cv_c_inline in
5752 *) ac_val
=$ac_cv_c_inline;;
5754 cat >>confdefs.h
<<_ACEOF
5756 #define inline $ac_val
5763 # Check whether --enable-largefile was given.
5764 if test "${enable_largefile+set}" = set; then :
5765 enableval
=$enable_largefile;
5768 if test "$enable_largefile" != no
; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5771 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5772 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5773 $as_echo_n "(cached) " >&6
5775 ac_cv_sys_largefile_CC
=no
5776 if test "$GCC" != yes; then
5779 # IRIX 6.2 and later do not support large files by default,
5780 # so use the C compiler's -n32 option if that helps.
5781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5783 #include <sys/types.h>
5784 /* Check that off_t can represent 2**63 - 1 correctly.
5785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5786 since some C++ compilers masquerading as C compilers
5787 incorrectly reject 9223372036854775807. */
5788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5790 && LARGE_OFF_T % 2147483647 == 1)
5800 if ac_fn_cxx_try_compile
"$LINENO"; then :
5803 rm -f core conftest.err conftest.
$ac_objext
5805 if ac_fn_cxx_try_compile
"$LINENO"; then :
5806 ac_cv_sys_largefile_CC
=' -n32'; break
5808 rm -f core conftest.err conftest.
$ac_objext
5812 rm -f conftest.
$ac_ext
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5816 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5817 if test "$ac_cv_sys_largefile_CC" != no
; then
5818 CC
=$CC$ac_cv_sys_largefile_CC
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5822 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5823 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <sys/types.h>
5830 /* Check that off_t can represent 2**63 - 1 correctly.
5831 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5832 since some C++ compilers masquerading as C compilers
5833 incorrectly reject 9223372036854775807. */
5834 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5836 && LARGE_OFF_T % 2147483647 == 1)
5846 if ac_fn_cxx_try_compile
"$LINENO"; then :
5847 ac_cv_sys_file_offset_bits
=no
; break
5849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 #define _FILE_OFFSET_BITS 64
5853 #include <sys/types.h>
5854 /* Check that off_t can represent 2**63 - 1 correctly.
5855 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5856 since some C++ compilers masquerading as C compilers
5857 incorrectly reject 9223372036854775807. */
5858 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5859 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5860 && LARGE_OFF_T % 2147483647 == 1)
5870 if ac_fn_cxx_try_compile
"$LINENO"; then :
5871 ac_cv_sys_file_offset_bits
=64; break
5873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5874 ac_cv_sys_file_offset_bits
=unknown
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5879 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5880 case $ac_cv_sys_file_offset_bits in #(
5883 cat >>confdefs.h
<<_ACEOF
5884 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5889 if test $ac_cv_sys_file_offset_bits = unknown
; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5891 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5892 if test "${ac_cv_sys_large_files+set}" = set; then :
5893 $as_echo_n "(cached) " >&6
5896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 #include <sys/types.h>
5899 /* Check that off_t can represent 2**63 - 1 correctly.
5900 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5901 since some C++ compilers masquerading as C compilers
5902 incorrectly reject 9223372036854775807. */
5903 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5904 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5905 && LARGE_OFF_T % 2147483647 == 1)
5915 if ac_fn_cxx_try_compile
"$LINENO"; then :
5916 ac_cv_sys_large_files
=no
; break
5918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921 #define _LARGE_FILES 1
5922 #include <sys/types.h>
5923 /* Check that off_t can represent 2**63 - 1 correctly.
5924 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5925 since some C++ compilers masquerading as C compilers
5926 incorrectly reject 9223372036854775807. */
5927 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5929 && LARGE_OFF_T % 2147483647 == 1)
5939 if ac_fn_cxx_try_compile
"$LINENO"; then :
5940 ac_cv_sys_large_files
=1; break
5942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5943 ac_cv_sys_large_files
=unknown
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5948 $as_echo "$ac_cv_sys_large_files" >&6; }
5949 case $ac_cv_sys_large_files in #(
5952 cat >>confdefs.h
<<_ACEOF
5953 #define _LARGE_FILES $ac_cv_sys_large_files
5962 # sizeof(char) is 1 by definition.
5963 # The cast to long int works around a bug in the HP C Compiler
5964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5966 # This bug is HP SR number 8606223364.
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5968 $as_echo_n "checking size of void *... " >&6; }
5969 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5970 $as_echo_n "(cached) " >&6
5972 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5975 if test "$ac_cv_type_void_p" = yes; then
5976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5978 { as_fn_set_status
77
5979 as_fn_error
"cannot compute sizeof (void *)
5980 See \`config.log' for more details." "$LINENO" 5; }; }
5982 ac_cv_sizeof_void_p
=0
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5988 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5992 cat >>confdefs.h
<<_ACEOF
5993 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5997 # The cast to long int works around a bug in the HP C Compiler
5998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6000 # This bug is HP SR number 8606223364.
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6002 $as_echo_n "checking size of short... " >&6; }
6003 if test "${ac_cv_sizeof_short+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6006 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6009 if test "$ac_cv_type_short" = yes; then
6010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6012 { as_fn_set_status
77
6013 as_fn_error
"cannot compute sizeof (short)
6014 See \`config.log' for more details." "$LINENO" 5; }; }
6016 ac_cv_sizeof_short
=0
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6022 $as_echo "$ac_cv_sizeof_short" >&6; }
6026 cat >>confdefs.h
<<_ACEOF
6027 #define SIZEOF_SHORT $ac_cv_sizeof_short
6031 # The cast to long int works around a bug in the HP C Compiler
6032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6034 # This bug is HP SR number 8606223364.
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6036 $as_echo_n "checking size of int... " >&6; }
6037 if test "${ac_cv_sizeof_int+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6040 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6043 if test "$ac_cv_type_int" = yes; then
6044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6046 { as_fn_set_status
77
6047 as_fn_error
"cannot compute sizeof (int)
6048 See \`config.log' for more details." "$LINENO" 5; }; }
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6056 $as_echo "$ac_cv_sizeof_int" >&6; }
6060 cat >>confdefs.h
<<_ACEOF
6061 #define SIZEOF_INT $ac_cv_sizeof_int
6065 # The cast to long int works around a bug in the HP C Compiler
6066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6068 # This bug is HP SR number 8606223364.
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6070 $as_echo_n "checking size of long... " >&6; }
6071 if test "${ac_cv_sizeof_long+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6074 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6077 if test "$ac_cv_type_long" = yes; then
6078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6080 { as_fn_set_status
77
6081 as_fn_error
"cannot compute sizeof (long)
6082 See \`config.log' for more details." "$LINENO" 5; }; }
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6090 $as_echo "$ac_cv_sizeof_long" >&6; }
6094 cat >>confdefs.h
<<_ACEOF
6095 #define SIZEOF_LONG $ac_cv_sizeof_long
6099 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6100 if test "x$ac_cv_type_long_long" = x
""yes; then :
6102 cat >>confdefs.h
<<_ACEOF
6103 #define HAVE_LONG_LONG 1
6106 # The cast to long int works around a bug in the HP C Compiler
6107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6109 # This bug is HP SR number 8606223364.
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6111 $as_echo_n "checking size of long long... " >&6; }
6112 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6115 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6118 if test "$ac_cv_type_long_long" = yes; then
6119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6121 { as_fn_set_status
77
6122 as_fn_error
"cannot compute sizeof (long long)
6123 See \`config.log' for more details." "$LINENO" 5; }; }
6125 ac_cv_sizeof_long_long
=0
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6131 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6135 cat >>confdefs.h
<<_ACEOF
6136 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6142 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6143 case $ac_cv_c_int8_t in #(
6147 cat >>confdefs.h
<<_ACEOF
6148 #define int8_t $ac_cv_c_int8_t
6153 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6154 case $ac_cv_c_int16_t in #(
6158 cat >>confdefs.h
<<_ACEOF
6159 #define int16_t $ac_cv_c_int16_t
6164 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6165 case $ac_cv_c_int32_t in #(
6169 cat >>confdefs.h
<<_ACEOF
6170 #define int32_t $ac_cv_c_int32_t
6175 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6176 case $ac_cv_c_int64_t in #(
6180 cat >>confdefs.h
<<_ACEOF
6181 #define int64_t $ac_cv_c_int64_t
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6188 $as_echo_n "checking for long long int... " >&6; }
6189 if test "${ac_cv_type_long_long_int+set}" = set; then :
6190 $as_echo_n "(cached) " >&6
6192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6195 /* For now, do not test the preprocessor; as of 2007 there are too many
6196 implementations with broken preprocessors. Perhaps this can
6197 be revisited in 2012. In the meantime, code should not expect
6198 #if to work with literals wider than 32 bits. */
6199 /* Test literals. */
6200 long long int ll = 9223372036854775807ll;
6201 long long int nll = -9223372036854775807LL;
6202 unsigned long long int ull = 18446744073709551615ULL;
6203 /* Test constant expressions. */
6204 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6206 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6212 /* Test availability of runtime routines for shift and division. */
6213 long long int llmax = 9223372036854775807ll;
6214 unsigned long long int ullmax = 18446744073709551615ull;
6215 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6216 | (llmax / ll) | (llmax % ll)
6217 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6218 | (ullmax / ull) | (ullmax % ull));
6224 if ac_fn_cxx_try_link
"$LINENO"; then :
6225 if test "$cross_compiling" = yes; then :
6226 ac_cv_type_long_long_int
=yes
6228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6233 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6234 # define LLONG_MAX (HALF - 1 + HALF)
6239 long long int n = 1;
6243 long long int m = n << i;
6246 if (LLONG_MAX / 2 < m)
6254 if ac_fn_cxx_try_run
"$LINENO"; then :
6255 ac_cv_type_long_long_int
=yes
6257 ac_cv_type_long_long_int
=no
6259 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6260 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6264 ac_cv_type_long_long_int
=no
6266 rm -f core conftest.err conftest.
$ac_objext \
6267 conftest
$ac_exeext conftest.
$ac_ext
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6270 $as_echo "$ac_cv_type_long_long_int" >&6; }
6271 if test $ac_cv_type_long_long_int = yes; then
6273 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6279 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6280 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6282 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6285 test $ac_cv_type_long_long_int = yes \
6286 && ac_type
='long long int' \
6287 || ac_type
='long int'
6289 cat >>confdefs.h
<<_ACEOF
6290 #define intmax_t $ac_type
6297 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6298 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6300 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6303 for ac_type
in 'int' 'long int' 'long long int'; do
6304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 $ac_includes_default
6310 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6317 if ac_fn_cxx_try_compile
"$LINENO"; then :
6319 cat >>confdefs.h
<<_ACEOF
6320 #define intptr_t $ac_type
6325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6326 test -z "$ac_type" && break
6331 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6332 case $ac_cv_c_uint8_t in #(
6336 $as_echo "#define _UINT8_T 1" >>confdefs.h
6339 cat >>confdefs.h
<<_ACEOF
6340 #define uint8_t $ac_cv_c_uint8_t
6345 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6346 case $ac_cv_c_uint16_t in #(
6351 cat >>confdefs.h
<<_ACEOF
6352 #define uint16_t $ac_cv_c_uint16_t
6357 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6358 case $ac_cv_c_uint32_t in #(
6362 $as_echo "#define _UINT32_T 1" >>confdefs.h
6365 cat >>confdefs.h
<<_ACEOF
6366 #define uint32_t $ac_cv_c_uint32_t
6371 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6372 case $ac_cv_c_uint64_t in #(
6376 $as_echo "#define _UINT64_T 1" >>confdefs.h
6379 cat >>confdefs.h
<<_ACEOF
6380 #define uint64_t $ac_cv_c_uint64_t
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6387 $as_echo_n "checking for unsigned long long int... " >&6; }
6388 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6394 /* For now, do not test the preprocessor; as of 2007 there are too many
6395 implementations with broken preprocessors. Perhaps this can
6396 be revisited in 2012. In the meantime, code should not expect
6397 #if to work with literals wider than 32 bits. */
6398 /* Test literals. */
6399 long long int ll = 9223372036854775807ll;
6400 long long int nll = -9223372036854775807LL;
6401 unsigned long long int ull = 18446744073709551615ULL;
6402 /* Test constant expressions. */
6403 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6405 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6411 /* Test availability of runtime routines for shift and division. */
6412 long long int llmax = 9223372036854775807ll;
6413 unsigned long long int ullmax = 18446744073709551615ull;
6414 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6415 | (llmax / ll) | (llmax % ll)
6416 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6417 | (ullmax / ull) | (ullmax % ull));
6423 if ac_fn_cxx_try_link
"$LINENO"; then :
6424 ac_cv_type_unsigned_long_long_int
=yes
6426 ac_cv_type_unsigned_long_long_int
=no
6428 rm -f core conftest.err conftest.
$ac_objext \
6429 conftest
$ac_exeext conftest.
$ac_ext
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6432 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6433 if test $ac_cv_type_unsigned_long_long_int = yes; then
6435 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6441 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6442 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6444 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6447 test $ac_cv_type_unsigned_long_long_int = yes \
6448 && ac_type
='unsigned long long int' \
6449 || ac_type
='unsigned long int'
6451 cat >>confdefs.h
<<_ACEOF
6452 #define uintmax_t $ac_type
6459 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6460 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6462 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6465 for ac_type
in 'unsigned int' 'unsigned long int' \
6466 'unsigned long long int'; do
6467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 $ac_includes_default
6473 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6480 if ac_fn_cxx_try_compile
"$LINENO"; then :
6482 cat >>confdefs.h
<<_ACEOF
6483 #define uintptr_t $ac_type
6488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6489 test -z "$ac_type" && break
6506 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6507 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6510 # check what underlying integer type int64_t uses
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6512 $as_echo_n "checking for int64_t underlying type... " >&6; }
6513 if test "${ac_cv_int64_t_type+set}" = set; then :
6514 $as_echo_n "(cached) " >&6
6517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6520 #ifdef HAVE_STDINT_H
6523 template <typename T> struct X { };
6525 struct X<long> { typedef long t; };
6535 if ac_fn_cxx_try_compile
"$LINENO"; then :
6536 ac_cv_int64_t_type
=long
6538 ac_cv_int64_t_type
="long long"
6540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6543 $as_echo "$ac_cv_int64_t_type" >&6; }
6544 if test "$ac_cv_int64_t_type" = "long"; then
6546 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6552 #ifdef HAVE_STDINT_H
6555 template <typename T> struct X { };
6557 struct X<long long> { typedef long long t; };
6567 if ac_fn_cxx_try_compile
"$LINENO"; then :
6570 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6576 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6577 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6589 int a, b; std::swap(a,b);
6594 if ac_fn_cxx_try_compile
"$LINENO"; then :
6595 ac_cv_std_swap_in_utility
=yes
6597 ac_cv_std_swap_in_utility
=no
6599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6602 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6603 if test $ac_cv_std_swap_in_utility = yes; then
6605 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6609 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6610 # If the host compiler is affected by the bug, and we build with optimization
6611 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6612 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6613 # Since there is no reliable feature check for the presence of this bug,
6614 # we simply use a GCC version number check. (This should never trigger for
6615 # stages 2 or 3 of a native bootstrap.)
6617 if test "$GCC" = yes; then
6618 saved_CXXFLAGS
="$CXXFLAGS"
6620 # The following test compilation will succeed if and only if $CXX accepts
6621 # -fno-strict-aliasing *and* is older than GCC 4.3.
6622 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6624 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6628 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6629 #error compiler not affected by placement new aliasing bug
6633 if ac_fn_cxx_try_compile
"$LINENO"; then :
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6635 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 $as_echo "no" >&6; }
6640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6642 CXXFLAGS
="$saved_CXXFLAGS"
6648 # ---------------------
6649 # Warnings and checking
6650 # ---------------------
6652 # Check $CC warning features (if it's GCC).
6653 # We want to use -pedantic, but we don't want warnings about
6656 # * overlong strings
6657 # * C++11 narrowing conversions in { }
6658 # So, we only use -pedantic if we can disable those warnings.
6660 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6661 # Check whether --enable-build-format-warnings was given.
6662 if test "${enable_build_format_warnings+set}" = set; then :
6663 enableval
=$enable_build_format_warnings;
6665 enable_build_format_warnings
=yes
6668 if test $enable_build_format_warnings = no
; then :
6674 ac_cpp
='$CXXCPP $CPPFLAGS'
6675 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6676 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6677 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6680 save_CXXFLAGS
="$CXXFLAGS"
6681 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6682 # Do the check with the no- prefix removed since gcc silently
6683 # accepts any -Wno-* option on purpose
6684 case $real_option in
6685 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6686 *) option
=$real_option ;;
6688 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6691 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6692 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6693 $as_echo_n "(cached) " >&6
6696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6707 if ac_fn_cxx_try_compile
"$LINENO"; then :
6708 eval "$as_acx_Woption=yes"
6710 eval "$as_acx_Woption=no"
6712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6715 eval ac_res
=\$
$as_acx_Woption
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6717 $as_echo "$ac_res" >&6; }
6718 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6719 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6722 CXXFLAGS
="$save_CXXFLAGS"
6724 ac_cpp
='$CXXCPP $CPPFLAGS'
6725 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6732 ac_cpp
='$CPP $CPPFLAGS'
6733 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6734 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6735 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6738 save_CFLAGS
="$CFLAGS"
6739 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6740 # Do the check with the no- prefix removed since gcc silently
6741 # accepts any -Wno-* option on purpose
6742 case $real_option in
6743 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6744 *) option
=$real_option ;;
6746 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6749 $as_echo_n "checking whether $CC supports $option... " >&6; }
6750 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6751 $as_echo_n "(cached) " >&6
6754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6765 if ac_fn_c_try_compile
"$LINENO"; then :
6766 eval "$as_acx_Woption=yes"
6768 eval "$as_acx_Woption=no"
6770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6773 eval ac_res
=\$
$as_acx_Woption
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6775 $as_echo "$ac_res" >&6; }
6776 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6777 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6780 CFLAGS
="$save_CFLAGS"
6782 ac_cpp
='$CXXCPP $CPPFLAGS'
6783 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6789 ac_cpp
='$CXXCPP $CPPFLAGS'
6790 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6791 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6795 save_CXXFLAGS
="$CXXFLAGS"
6796 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6797 # Do the check with the no- prefix removed since gcc silently
6798 # accepts any -Wno-* option on purpose
6799 case $real_option in
6800 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6801 *) option
=$real_option ;;
6803 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6806 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6807 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6808 $as_echo_n "(cached) " >&6
6811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6822 if ac_fn_cxx_try_compile
"$LINENO"; then :
6823 eval "$as_acx_Woption=yes"
6825 eval "$as_acx_Woption=no"
6827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6830 eval ac_res
=\$
$as_acx_Woption
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6832 $as_echo "$ac_res" >&6; }
6833 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6834 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6837 CXXFLAGS
="$save_CXXFLAGS"
6839 ac_cpp
='$CXXCPP $CPPFLAGS'
6840 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6846 ac_cpp
='$CPP $CPPFLAGS'
6847 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6848 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6849 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6852 save_CFLAGS
="$CFLAGS"
6853 for real_option
in -Wold-style-definition -Wc++-compat; do
6854 # Do the check with the no- prefix removed since gcc silently
6855 # accepts any -Wno-* option on purpose
6856 case $real_option in
6857 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6858 *) option
=$real_option ;;
6860 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6863 $as_echo_n "checking whether $CC supports $option... " >&6; }
6864 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6865 $as_echo_n "(cached) " >&6
6868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6879 if ac_fn_c_try_compile
"$LINENO"; then :
6880 eval "$as_acx_Woption=yes"
6882 eval "$as_acx_Woption=no"
6884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6887 eval ac_res
=\$
$as_acx_Woption
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6889 $as_echo "$ac_res" >&6; }
6890 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6891 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6894 CFLAGS
="$save_CFLAGS"
6896 ac_cpp
='$CXXCPP $CPPFLAGS'
6897 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6898 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6899 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6903 ac_cpp
='$CXXCPP $CPPFLAGS'
6904 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6905 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6908 # Do the check with the no- prefix removed from the warning options
6909 # since gcc silently accepts any -Wno-* option on purpose
6910 if test "$GXX" = yes; then :
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6912 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6913 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6916 save_CXXFLAGS
="$CXXFLAGS"
6917 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6929 if ac_fn_cxx_try_compile
"$LINENO"; then :
6930 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6932 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6935 CXXFLAGS
="$save_CXXFLAGS"
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6938 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6939 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6940 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6945 ac_cpp
='$CXXCPP $CPPFLAGS'
6946 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6952 ac_cpp
='$CXXCPP $CPPFLAGS'
6953 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6954 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6955 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6957 # Check whether --enable-werror-always was given.
6958 if test "${enable_werror_always+set}" = set; then :
6959 enableval
=$enable_werror_always;
6961 enable_werror_always
=no
6964 if test $enable_werror_always = yes; then :
6965 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6969 ac_cpp
='$CXXCPP $CPPFLAGS'
6970 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6976 # The above macros do nothing if the compiler is not GCC. However, the
6977 # Makefile has more goo to add other flags, so these variables are used
6978 # to enable warnings only for GCC.
6981 if test "x$GCC" = "xyes"; then
6982 warn_cflags
='$(GCC_WARN_CFLAGS)'
6983 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6988 # Disable exceptions and RTTI if building with g++
6990 ac_cpp
='$CPP $CPPFLAGS'
6991 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6996 save_CFLAGS
="$CFLAGS"
6997 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6998 # Do the check with the no- prefix removed since gcc silently
6999 # accepts any -Wno-* option on purpose
7000 case $real_option in
7001 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7002 *) option
=$real_option ;;
7004 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7007 $as_echo_n "checking whether $CC supports $option... " >&6; }
7008 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7009 $as_echo_n "(cached) " >&6
7012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7023 if ac_fn_c_try_compile
"$LINENO"; then :
7024 eval "$as_acx_Woption=yes"
7026 eval "$as_acx_Woption=no"
7028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7031 eval ac_res
=\$
$as_acx_Woption
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7033 $as_echo "$ac_res" >&6; }
7034 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7035 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7038 CFLAGS
="$save_CFLAGS"
7040 ac_cpp
='$CXXCPP $CPPFLAGS'
7041 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7042 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7043 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7047 # Enable expensive internal checks
7049 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7053 # Check whether --enable-checking was given.
7054 if test "${enable_checking+set}" = set; then :
7055 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7058 # Determine the default checks.
7059 if test x
$is_release = x
; then
7060 ac_checking_flags
=yes,extra
7062 ac_checking_flags
=release
7066 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7067 for check
in release
$ac_checking_flags
7070 # these set all the flags to specific states
7071 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7072 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7073 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7074 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7075 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7076 ac_types_checking
=1 ;;
7077 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7078 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7079 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7080 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7081 ac_tree_checking
= ; ac_valgrind_checking
= ;
7082 ac_types_checking
= ;;
7083 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7084 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7085 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7086 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7087 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7088 ac_types_checking
=1 ;;
7089 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7090 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7091 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7092 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7093 ac_tree_checking
= ; ac_valgrind_checking
= ;
7094 ac_types_checking
= ;;
7095 # these enable particular checks
7096 assert
) ac_assert_checking
=1 ;;
7097 df
) ac_df_checking
=1 ;;
7098 extra
) ac_extra_checking
=1 ;;
7099 fold) ac_fold_checking
=1 ;;
7100 gc
) ac_gc_checking
=1 ;;
7101 gcac
) ac_gc_always_collect
=1 ;;
7102 gimple
) ac_gimple_checking
=1 ;;
7103 misc
) ac_checking
=1 ;;
7104 rtl
) ac_rtl_checking
=1 ;;
7105 rtlflag
) ac_rtlflag_checking
=1 ;;
7106 runtime
) ac_runtime_checking
=1 ;;
7107 tree
) ac_tree_checking
=1 ;;
7108 types
) ac_types_checking
=1 ;;
7109 valgrind
) ac_valgrind_checking
=1 ;;
7110 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7116 if test x
$ac_checking != x
; then
7118 $as_echo "#define CHECKING_P 1" >>confdefs.h
7120 nocommon_flag
=-fno-common
7122 $as_echo "#define CHECKING_P 0" >>confdefs.h
7126 if test x
$ac_extra_checking != x
; then
7128 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7131 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7134 if test x
$ac_df_checking != x
; then
7136 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7139 if test x
$ac_assert_checking != x
; then
7141 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7144 if test x
$ac_gimple_checking != x
; then
7146 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7150 if test x
$ac_runtime_checking != x
; then
7152 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7155 if test x
$ac_tree_checking != x
; then
7157 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7161 if test x
$ac_types_checking != x
; then
7163 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7167 if test x
$ac_rtl_checking != x
; then
7169 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7172 if test x
$ac_rtlflag_checking != x
; then
7174 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7177 if test x
$ac_gc_checking != x
; then
7179 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7182 if test x
$ac_gc_always_collect != x
; then
7184 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7187 if test x
$ac_fold_checking != x
; then
7189 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7192 valgrind_path_defines
=
7195 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7196 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7204 # It is certainly possible that there's valgrind but no valgrind.h.
7205 # GCC relies on making annotations so we must have both.
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7207 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210 #include <valgrind/memcheck.h>
7211 #ifndef VALGRIND_DISCARD
7212 #error VALGRIND_DISCARD not defined
7215 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7216 gcc_cv_header_valgrind_memcheck_h
=yes
7218 gcc_cv_header_valgrind_memcheck_h
=no
7220 rm -f conftest.err conftest.
$ac_ext
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7222 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7224 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 #include <memcheck.h>
7228 #ifndef VALGRIND_DISCARD
7229 #error VALGRIND_DISCARD not defined
7232 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7233 gcc_cv_header_memcheck_h
=yes
7235 gcc_cv_header_memcheck_h
=no
7237 rm -f conftest.err conftest.
$ac_ext
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7239 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7240 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7242 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7245 if test $gcc_cv_header_memcheck_h = yes; then
7247 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7251 if test x
$ac_valgrind_checking != x
; then
7253 # Prepare PATH_SEPARATOR.
7254 # The user is always right.
7255 if test "${PATH_SEPARATOR+set}" != set; then
7256 echo "#! /bin/sh" >conf$$.sh
7257 echo "exit 0" >>conf$$.sh
7259 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7267 # Find out how to test for executable files. Don't use a zero-byte file,
7268 # as systems may use methods other than mode bits to determine executability.
7269 cat >conf$$.
file <<_ASEOF
7273 chmod +x conf$$.
file
7274 if test -x conf$$.
file >/dev
/null
2>&1; then
7275 ac_executable_p
="test -x"
7277 ac_executable_p
="test -f"
7281 # Extract the first word of "valgrind", so it can be a program name with args.
7282 set dummy valgrind
; ac_word
=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7288 case "$valgrind_path" in
7290 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7293 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7294 for ac_dir
in $PATH; do
7296 test -z "$ac_dir" && ac_dir
=.
7297 for ac_exec_ext
in '' $ac_executable_extensions; do
7298 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7299 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7300 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7310 valgrind_path
="$ac_cv_path_valgrind_path"
7311 if test -n "$valgrind_path"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7313 $as_echo "$valgrind_path" >&6; }
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7319 if test "x$valgrind_path" = "x" \
7320 ||
(test $have_valgrind_h = no \
7321 && test $gcc_cv_header_memcheck_h = no \
7322 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7323 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7325 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7326 valgrind_command
="$valgrind_path -q"
7328 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7334 # Enable code coverage collection
7335 # Check whether --enable-coverage was given.
7336 if test "${enable_coverage+set}" = set; then :
7337 enableval
=$enable_coverage; case "${enableval}" in
7339 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7342 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7345 # a.k.a. --disable-coverage
7349 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7358 # Check whether --enable-gather-detailed-mem-stats was given.
7359 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7360 enableval
=$enable_gather_detailed_mem_stats;
7362 enable_gather_detailed_mem_stats
=no
7365 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7367 cat >>confdefs.h
<<_ACEOF
7368 #define GATHER_STATISTICS $gather_stats
7372 # Check whether --enable-valgrind-annotations was given.
7373 if test "${enable_valgrind_annotations+set}" = set; then :
7374 enableval
=$enable_valgrind_annotations;
7376 enable_valgrind_annotations
=no
7379 if test x
$enable_valgrind_annotations != xno \
7380 ||
test x
$ac_valgrind_checking != x
; then
7381 if (test $have_valgrind_h = no \
7382 && test $gcc_cv_header_memcheck_h = no \
7383 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7384 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7387 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7391 # -------------------------------
7392 # Miscenalleous configure options
7393 # -------------------------------
7397 # Check whether --with-stabs was given.
7398 if test "${with_stabs+set}" = set; then :
7399 withval
=$with_stabs; stabs
="$with_stabs"
7405 # Determine whether or not multilibs are enabled.
7406 # Check whether --enable-multilib was given.
7407 if test "${enable_multilib+set}" = set; then :
7408 enableval
=$enable_multilib;
7415 # Determine whether or not multiarch is enabled.
7416 # Check whether --enable-multiarch was given.
7417 if test "${enable_multiarch+set}" = set; then :
7418 enableval
=$enable_multiarch; case "${enableval}" in
7419 yes|no|auto
) enable_multiarch
=$enableval;;
7420 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7423 enable_multiarch
=auto
7426 if test x
${enable_multiarch} = xauto
; then
7427 if test x
${with_native_system_header_dir} != x
; then
7428 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7431 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7432 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7437 $as_echo_n "checking for multiarch configuration... " >&6; }
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7440 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7442 # needed for setting the multiarch name for soft-float/hard-float ABIs
7446 # default stack clash protection guard size as power of twos in bytes.
7447 # Please keep these in sync with params.def.
7451 # Keep the default value when the option is not used to 0, this allows us to
7452 # distinguish between the cases where the user specifially set a value via
7453 # configure and when the normal default value is used.
7455 # Check whether --with-stack-clash-protection-guard-size was given.
7456 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7457 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7459 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7462 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7463 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7464 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7465 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
7469 cat >>confdefs.h
<<_ACEOF
7470 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7474 # Enable __cxa_atexit for C++.
7475 # Check whether --enable-__cxa_atexit was given.
7476 if test "${enable___cxa_atexit+set}" = set; then :
7477 enableval
=$enable___cxa_atexit;
7481 # Enable C extension for decimal float if target supports it.
7483 # Check whether --enable-decimal-float was given.
7484 if test "${enable_decimal_float+set}" = set; then :
7485 enableval
=$enable_decimal_float;
7486 case $enable_decimal_float in
7487 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7488 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7489 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7495 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7496 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7497 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7498 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7499 enable_decimal_float
=yes
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7503 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7504 enable_decimal_float
=no
7511 # x86's use BID format instead of DPD
7512 case x
$enable_decimal_float in
7515 i?
86*-*-* | x86_64
*-*-*)
7516 enable_decimal_float
=bid
7519 enable_decimal_float
=dpd
7522 default_decimal_float
=$enable_decimal_float
7525 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7526 # dependency on libdecnumber.
7527 default_decimal_float
=dpd
7534 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7536 cat >>confdefs.h
<<_ACEOF
7537 #define ENABLE_DECIMAL_FLOAT $dfp
7541 # Use default_decimal_float for dependency.
7542 enable_decimal_float
=$default_decimal_float
7544 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7546 cat >>confdefs.h
<<_ACEOF
7547 #define ENABLE_DECIMAL_BID_FORMAT $bid
7551 # Enable C extension for fixed-point arithmetic.
7552 # Check whether --enable-fixed-point was given.
7553 if test "${enable_fixed_point+set}" = set; then :
7554 enableval
=$enable_fixed_point;
7559 enable_fixed_point
=yes
7563 enable_fixed_point
=yes
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7567 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7568 enable_fixed_point
=no
7576 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7578 cat >>confdefs.h
<<_ACEOF
7579 #define ENABLE_FIXED_POINT $fixedpoint
7584 # Pass with no value to take the default
7585 # Pass with a value to specify a thread package
7586 # Check whether --enable-threads was given.
7587 if test "${enable_threads+set}" = set; then :
7588 enableval
=$enable_threads;
7594 # Check whether --enable-tls was given.
7595 if test "${enable_tls+set}" = set; then :
7596 enableval
=$enable_tls;
7599 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7600 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7608 # Check whether --enable-vtable-verify was given.
7609 if test "${enable_vtable_verify+set}" = set; then :
7610 enableval
=$enable_vtable_verify;
7612 enable_vtable_verify
=no
7615 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7617 cat >>confdefs.h
<<_ACEOF
7618 #define ENABLE_VTABLE_VERIFY $vtable_verify
7622 # Check whether --enable-objc-gc was given.
7623 if test "${enable_objc_gc+set}" = set; then :
7624 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7635 # Check whether --with-dwarf2 was given.
7636 if test "${with_dwarf2+set}" = set; then :
7637 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7643 # Check whether --enable-shared was given.
7644 if test "${enable_shared+set}" = set; then :
7645 enableval
=$enable_shared;
7646 case $enable_shared in
7650 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7651 for pkg
in $enableval; do
7652 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7666 # Check whether --enable-gcov was given.
7667 if test "${enable_gcov+set}" = set; then :
7668 enableval
=$enable_gcov;
7676 # Check whether --with-specs was given.
7677 if test "${with_specs+set}" = set; then :
7678 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7688 # Check whether --with-pkgversion was given.
7689 if test "${with_pkgversion+set}" = set; then :
7690 withval
=$with_pkgversion; case "$withval" in
7691 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7693 *) PKGVERSION
="($withval) " ;;
7704 # Check whether --with-bugurl was given.
7705 if test "${with_bugurl+set}" = set; then :
7706 withval
=$with_bugurl; case "$withval" in
7707 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7710 *) BUGURL
="$withval"
7714 BUGURL
="https://gcc.gnu.org/bugs/"
7724 REPORT_BUGS_TO
="<$BUGURL>"
7725 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7732 # Sanity check enable_languages in case someone does not run the toplevel
7733 # configure # script.
7734 # Check whether --enable-languages was given.
7735 if test "${enable_languages+set}" = set; then :
7736 enableval
=$enable_languages; case ,${enable_languages}, in
7738 # go safe -- we cannot be much sure without the toplevel
7740 # analysis of which target libs are present and usable
7744 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7749 enable_languages
=c
,${enable_languages}
7757 if test x
"$enable_as_accelerator_for" != x
; then
7759 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7761 enable_as_accelerator
=yes
7764 # In this case we expect offload compiler to be built as native, so we
7765 # need to rename the driver to avoid clashes with host's drivers.
7766 program_transform_name
="s&^&${target}-&" ;;
7768 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7769 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7770 accel_dir_suffix
=/accel
/${target_noncanonical}
7771 real_target_noncanonical
=${enable_as_accelerator_for}
7777 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7778 tgt
=`echo $tgt | sed 's/=.*//'`
7780 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7786 if test x
"$offload_targets" = x
; then
7787 offload_targets
=$tgt
7789 offload_targets
="$offload_targets,$tgt"
7793 cat >>confdefs.h
<<_ACEOF
7794 #define OFFLOAD_TARGETS "$offload_targets"
7797 if test x
"$enable_offloading" != x
; then
7799 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7803 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7807 if test x
"$enable_hsa" = x1
; then
7809 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7814 # Check whether --with-multilib-list was given.
7815 if test "${with_multilib_list+set}" = set; then :
7816 withval
=$with_multilib_list; :
7818 with_multilib_list
=default
7822 # -------------------------
7823 # Checks for other programs
7824 # -------------------------
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7827 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7829 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7830 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7831 $as_echo_n "(cached) " >&6
7833 cat >conftest.
make <<\_ACEOF
7836 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7839 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7841 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7843 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7847 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7849 $as_echo "yes" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 SET_MAKE
="MAKE=${MAKE-make}"
7858 # Find some useful tools
7859 for ac_prog
in gawk mawk nawk
awk
7861 # Extract the first word of "$ac_prog", so it can be a program name with args.
7862 set dummy
$ac_prog; ac_word
=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if test "${ac_cv_prog_AWK+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
7868 if test -n "$AWK"; then
7869 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7875 test -z "$as_dir" && as_dir
=.
7876 for ac_exec_ext
in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7878 ac_cv_prog_AWK
="$ac_prog"
7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 if test -n "$AWK"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7891 $as_echo "$AWK" >&6; }
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7898 test -n "$AWK" && break
7901 # We need awk to create options.c and options.h.
7902 # Bail out if it's missing.
7904 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7908 $as_echo_n "checking whether ln -s works... " >&6; }
7909 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
7912 rm -f conftestdata_t
7913 echo >conftestdata_f
7914 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7916 gcc_cv_prog_LN_S
="ln -s"
7918 if ln conftestdata_f conftestdata_t
2>/dev
/null
7922 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7924 gcc_cv_prog_LN_S
="cp -p"
7930 rm -f conftestdata_f conftestdata_t
7933 LN_S
="$gcc_cv_prog_LN_S"
7934 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7936 $as_echo "yes" >&6; }
7938 if test "$gcc_cv_prog_LN_S" = "ln"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7940 $as_echo "no, using ln" >&6; }
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7943 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7948 $as_echo_n "checking whether ln works... " >&6; }
7949 if test "${acx_cv_prog_LN+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7952 rm -f conftestdata_t
7953 echo >conftestdata_f
7954 if ln conftestdata_f conftestdata_t
2>/dev
/null
7960 rm -f conftestdata_f conftestdata_t
7963 if test $acx_cv_prog_LN = no
; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7966 $as_echo "no, using $LN" >&6; }
7968 LN
="$acx_cv_prog_LN"
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7970 $as_echo "yes" >&6; }
7973 if test -n "$ac_tool_prefix"; then
7974 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7975 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7981 if test -n "$RANLIB"; then
7982 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7988 test -z "$as_dir" && as_dir
=.
7989 for ac_exec_ext
in '' $ac_executable_extensions; do
7990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7991 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 RANLIB
=$ac_cv_prog_RANLIB
8002 if test -n "$RANLIB"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8004 $as_echo "$RANLIB" >&6; }
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8012 if test -z "$ac_cv_prog_RANLIB"; then
8013 ac_ct_RANLIB
=$RANLIB
8014 # Extract the first word of "ranlib", so it can be a program name with args.
8015 set dummy ranlib
; ac_word
=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8021 if test -n "$ac_ct_RANLIB"; then
8022 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8028 test -z "$as_dir" && as_dir
=.
8029 for ac_exec_ext
in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8042 if test -n "$ac_ct_RANLIB"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8044 $as_echo "$ac_ct_RANLIB" >&6; }
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8050 if test "x$ac_ct_RANLIB" = x
; then
8053 case $cross_compiling:$ac_tool_warned in
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8057 ac_tool_warned
=yes ;;
8059 RANLIB
=$ac_ct_RANLIB
8062 RANLIB
="$ac_cv_prog_RANLIB"
8068 # Find a good install program. We prefer a C program (faster),
8069 # so one script is as good as another. But avoid the broken or
8070 # incompatible versions:
8071 # SysV /etc/install, /usr/sbin/install
8072 # SunOS /usr/etc/install
8073 # IRIX /sbin/install
8075 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8076 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8077 # ./install, which can be erroneously created by make from ./install.sh.
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8079 $as_echo_n "checking for a BSD compatible install... " >&6; }
8080 if test -z "$INSTALL"; then
8081 if test "${ac_cv_path_install+set}" = set; then :
8082 $as_echo_n "(cached) " >&6
8084 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8085 for ac_dir
in $PATH; do
8086 # Account for people who put trailing slashes in PATH elements.
8088 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8090 # OSF1 and SCO ODT 3.0 have their own names for install.
8091 for ac_prog
in ginstall scoinst
install; do
8092 if test -f $ac_dir/$ac_prog; then
8093 if test $ac_prog = install &&
8094 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8095 # AIX install. It has an incompatible calling convention.
8096 # OSF/1 installbsd also uses dspmsg, but is usable.
8099 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8110 if test "${ac_cv_path_install+set}" = set; then
8111 INSTALL
="$ac_cv_path_install"
8113 # As a last resort, use the slow shell script. We don't cache a
8114 # path for INSTALL within a source directory, because that will
8115 # break other packages using the cache if that directory is
8116 # removed, or if the path is relative.
8117 INSTALL
="$ac_install_sh"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8121 $as_echo "$INSTALL" >&6; }
8123 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8124 # It thinks the first close brace ends the variable substitution.
8125 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8127 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8130 # See if cmp has --ignore-initial.
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8132 $as_echo_n "checking for cmp's capabilities... " >&6; }
8133 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8138 gcc_cv_prog_cmp_skip
=slowcompare
8139 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8140 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8143 gcc_cv_prog_cmp_skip
=gnucompare
8146 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8147 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8148 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8151 gcc_cv_prog_cmp_skip
=fastcompare
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8159 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8160 make_compare_target
=$gcc_cv_prog_cmp_skip
8164 # See if we have the mktemp command.
8165 # Extract the first word of "mktemp", so it can be a program name with args.
8166 set dummy mktemp
; ac_word
=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
8172 if test -n "$have_mktemp_command"; then
8173 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8179 test -z "$as_dir" && as_dir
=.
8180 for ac_exec_ext
in '' $ac_executable_extensions; do
8181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8182 ac_cv_prog_have_mktemp_command
="yes"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8193 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8194 if test -n "$have_mktemp_command"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8196 $as_echo "$have_mktemp_command" >&6; }
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8204 # See if makeinfo has been installed and is modern enough
8205 # that we can use it.
8207 # Extract the first word of "makeinfo", so it can be a program name with args.
8208 set dummy makeinfo
; ac_word
=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8214 if test -n "$MAKEINFO"; then
8215 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8221 test -z "$as_dir" && as_dir
=.
8222 for ac_exec_ext
in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_prog_MAKEINFO
="makeinfo"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 MAKEINFO
=$ac_cv_prog_MAKEINFO
8235 if test -n "$MAKEINFO"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8237 $as_echo "$MAKEINFO" >&6; }
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8244 if test -n "$MAKEINFO"; then
8245 # Found it, now check the version.
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8247 $as_echo_n "checking for modern makeinfo... " >&6; }
8248 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8251 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8252 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8254 case $ac_prog_version in
8255 '') gcc_cv_prog_makeinfo_modern
=no
;;
8256 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8257 *) gcc_cv_prog_makeinfo_modern
=no
;;
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8262 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8264 gcc_cv_prog_makeinfo_modern
=no
8266 if test $gcc_cv_prog_makeinfo_modern = no
; then
8267 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8270 if test $gcc_cv_prog_makeinfo_modern = no
; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8272 *** Makeinfo is missing or too old.
8273 *** Info documentation will not be built." >&5
8274 $as_echo "$as_me: WARNING:
8275 *** Makeinfo is missing or too old.
8276 *** Info documentation will not be built." >&2;}
8283 # Is pod2man recent enough to regenerate manpages?
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8285 $as_echo_n "checking for recent Pod::Man... " >&6; }
8286 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8288 $as_echo "yes" >&6; }
8289 GENERATED_MANPAGES
=generated-manpages
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8297 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8302 # Extract the first word of "$ac_prog", so it can be a program name with args.
8303 set dummy
$ac_prog; ac_word
=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if test "${ac_cv_prog_FLEX+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8309 if test -n "$FLEX"; then
8310 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8316 test -z "$as_dir" && as_dir
=.
8317 for ac_exec_ext
in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8319 ac_cv_prog_FLEX
="$ac_prog"
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 FLEX
=$ac_cv_prog_FLEX
8330 if test -n "$FLEX"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8332 $as_echo "$FLEX" >&6; }
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8339 test -n "$FLEX" && break
8341 test -n "$FLEX" || FLEX
="$MISSING flex"
8345 for ac_prog
in bison
8347 # Extract the first word of "$ac_prog", so it can be a program name with args.
8348 set dummy
$ac_prog; ac_word
=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if test "${ac_cv_prog_BISON+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8354 if test -n "$BISON"; then
8355 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8361 test -z "$as_dir" && as_dir
=.
8362 for ac_exec_ext
in '' $ac_executable_extensions; do
8363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8364 ac_cv_prog_BISON
="$ac_prog"
8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 BISON
=$ac_cv_prog_BISON
8375 if test -n "$BISON"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8377 $as_echo "$BISON" >&6; }
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8384 test -n "$BISON" && break
8386 test -n "$BISON" || BISON
="$MISSING bison"
8389 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8390 # check for build == host before using them.
8393 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8394 && test -d ..
/binutils
; then
8395 NM
='${objdir}/../binutils/nm-new'
8397 # Extract the first word of "nm", so it can be a program name with args.
8398 set dummy nm
; ac_word
=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if test "${ac_cv_prog_NM+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
8404 if test -n "$NM"; then
8405 ac_cv_prog_NM
="$NM" # Let the user override the test.
8407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8411 test -z "$as_dir" && as_dir
=.
8412 for ac_exec_ext
in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8426 if test -n "$NM"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8428 $as_echo "$NM" >&6; }
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8438 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8439 && test -d ..
/binutils
; then
8440 AR
='${objdir}/../binutils/ar'
8442 # Extract the first word of "ar", so it can be a program name with args.
8443 set dummy
ar; ac_word
=$2
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445 $as_echo_n "checking for $ac_word... " >&6; }
8446 if test "${ac_cv_prog_AR+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8449 if test -n "$AR"; then
8450 ac_cv_prog_AR
="$AR" # Let the user override the test.
8452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8456 test -z "$as_dir" && as_dir
=.
8457 for ac_exec_ext
in '' $ac_executable_extensions; do
8458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8471 if test -n "$AR"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8473 $as_echo "$AR" >&6; }
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8482 # The jit documentation looks better if built with sphinx, but can be
8483 # built with texinfo if sphinx is not available.
8484 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8485 # Extract the first word of "sphinx-build", so it can be a program name with args.
8486 set dummy sphinx-build
; ac_word
=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8492 if test -n "$doc_build_sys"; then
8493 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8499 test -z "$as_dir" && as_dir
=.
8500 for ac_exec_ext
in '' $ac_executable_extensions; do
8501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8502 ac_cv_prog_doc_build_sys
="sphinx"
8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8513 doc_build_sys
=$ac_cv_prog_doc_build_sys
8514 if test -n "$doc_build_sys"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8516 $as_echo "$doc_build_sys" >&6; }
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8524 # --------------------
8525 # Checks for C headers
8526 # --------------------
8528 # Need to reject headers which give warnings, so that the -Werror bootstrap
8529 # works later. *sigh* This needs to come before all header checks.
8531 ac_c_preproc_warn_flag
=yes
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8534 $as_echo_n "checking for ANSI C header files... " >&6; }
8535 if test "${ac_cv_header_stdc+set}" = set; then :
8536 $as_echo_n "(cached) " >&6
8538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8553 if ac_fn_cxx_try_compile
"$LINENO"; then :
8554 ac_cv_header_stdc
=yes
8556 ac_cv_header_stdc
=no
8558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8560 if test $ac_cv_header_stdc = yes; then
8561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8568 $EGREP "memchr" >/dev
/null
2>&1; then :
8571 ac_cv_header_stdc
=no
8577 if test $ac_cv_header_stdc = yes; then
8578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8585 $EGREP "free" >/dev
/null
2>&1; then :
8588 ac_cv_header_stdc
=no
8594 if test $ac_cv_header_stdc = yes; then
8595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8596 if test "$cross_compiling" = yes; then :
8599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8603 #if ((' ' & 0x0FF) == 0x020)
8604 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8605 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8607 # define ISLOWER(c) \
8608 (('a' <= (c) && (c) <= 'i') \
8609 || ('j' <= (c) && (c) <= 'r') \
8610 || ('s' <= (c) && (c) <= 'z'))
8611 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8619 for (i = 0; i < 256; i++)
8620 if (XOR (islower (i), ISLOWER (i))
8621 || toupper (i) != TOUPPER (i))
8626 if ac_fn_cxx_try_run
"$LINENO"; then :
8629 ac_cv_header_stdc
=no
8631 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8632 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8638 $as_echo "$ac_cv_header_stdc" >&6; }
8639 if test $ac_cv_header_stdc = yes; then
8641 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8646 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8647 if test "${ac_cv_header_time+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8652 #include <sys/types.h>
8653 #include <sys/time.h>
8659 if ((struct tm *) 0)
8665 if ac_fn_cxx_try_compile
"$LINENO"; then :
8666 ac_cv_header_time
=yes
8668 ac_cv_header_time
=no
8670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8673 $as_echo "$ac_cv_header_time" >&6; }
8674 if test $ac_cv_header_time = yes; then
8676 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8681 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8682 if test "${gcc_cv_header_string+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8688 #include <strings.h>
8697 if ac_fn_cxx_try_compile
"$LINENO"; then :
8698 gcc_cv_header_string
=yes
8700 gcc_cv_header_string
=no
8702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8705 $as_echo "$gcc_cv_header_string" >&6; }
8706 if test $gcc_cv_header_string = yes; then
8708 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8713 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8714 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8715 $as_echo_n "(cached) " >&6
8717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8719 #include <sys/types.h>
8720 #include <sys/wait.h>
8722 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8725 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8733 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8738 if ac_fn_cxx_try_compile
"$LINENO"; then :
8739 ac_cv_header_sys_wait_h
=yes
8741 ac_cv_header_sys_wait_h
=no
8743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8746 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8747 if test $ac_cv_header_sys_wait_h = yes; then
8749 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8754 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8755 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 #include <sys/types.h>
8761 #include <termios.h>
8767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8768 $EGREP "yes" >/dev
/null
2>&1; then :
8769 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8771 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8777 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8779 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8781 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8782 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8787 #include <sys/types.h>
8788 #include <sys/ioctl.h>
8794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8795 $EGREP "yes" >/dev
/null
2>&1; then :
8796 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8798 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8804 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8806 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8808 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8813 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8814 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8815 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8816 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8818 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8819 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8820 eval as_val
=\$
$as_ac_Header
8821 if test "x$as_val" = x
""yes; then :
8822 cat >>confdefs.h
<<_ACEOF
8823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8830 # Check for thread headers.
8831 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8832 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8838 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8839 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8846 # These tests can't be done till we know if we have limits.h.
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8848 $as_echo_n "checking for CHAR_BIT... " >&6; }
8849 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
8852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 #ifdef HAVE_LIMITS_H
8861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8862 $EGREP "found" >/dev
/null
2>&1; then :
8863 gcc_cv_decl_char_bit
=yes
8865 gcc_cv_decl_char_bit
=no
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8872 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8873 if test $gcc_cv_decl_char_bit = no
; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8875 $as_echo_n "checking number of bits in a byte... " >&6; }
8876 if test "${gcc_cv_c_nbby+set}" = set; then :
8877 $as_echo_n "(cached) " >&6
8881 while test $i -lt 65; do
8882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8889 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8890 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8896 if ac_fn_cxx_try_compile
"$LINENO"; then :
8897 gcc_cv_c_nbby
=$i; break
8899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8902 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8906 $as_echo "$gcc_cv_c_nbby" >&6; }
8907 if test $gcc_cv_c_nbby = failed
; then
8908 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8911 cat >>confdefs.h
<<_ACEOF
8912 #define CHAR_BIT $gcc_cv_c_nbby
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8918 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8919 if test "${ac_cv_c_bigendian+set}" = set; then :
8920 $as_echo_n "(cached) " >&6
8922 ac_cv_c_bigendian
=unknown
8923 # See if we're dealing with a universal compiler.
8924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 #ifndef __APPLE_CC__
8927 not a universal capable compiler
8932 if ac_fn_cxx_try_compile
"$LINENO"; then :
8934 # Check for potential -arch flags. It is not universal unless
8935 # there are at least two -arch flags with different values.
8938 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8939 if test -n "$ac_prev"; then
8941 i?
86 | x86_64 | ppc | ppc64
)
8942 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8945 ac_cv_c_bigendian
=universal
8951 elif test "x$ac_word" = "x-arch"; then
8956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8957 if test $ac_cv_c_bigendian = unknown
; then
8958 # See if sys/param.h defines the BYTE_ORDER macro.
8959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8961 #include <sys/types.h>
8962 #include <sys/param.h>
8967 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8968 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8977 if ac_fn_cxx_try_compile
"$LINENO"; then :
8978 # It does; now see whether it defined to BIG_ENDIAN or not.
8979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8981 #include <sys/types.h>
8982 #include <sys/param.h>
8987 #if BYTE_ORDER != BIG_ENDIAN
8995 if ac_fn_cxx_try_compile
"$LINENO"; then :
8996 ac_cv_c_bigendian
=yes
8998 ac_cv_c_bigendian
=no
9000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9004 if test $ac_cv_c_bigendian = unknown
; then
9005 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9013 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9021 if ac_fn_cxx_try_compile
"$LINENO"; then :
9022 # It does; now see whether it defined to _BIG_ENDIAN or not.
9023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9038 if ac_fn_cxx_try_compile
"$LINENO"; then :
9039 ac_cv_c_bigendian
=yes
9041 ac_cv_c_bigendian
=no
9043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9047 if test $ac_cv_c_bigendian = unknown
; then
9048 # Compile a test program.
9049 if test "$cross_compiling" = yes; then :
9050 # Try to guess by grepping values from an object file.
9051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9053 short int ascii_mm[] =
9054 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9055 short int ascii_ii[] =
9056 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9057 int use_ascii (int i) {
9058 return ascii_mm[i] + ascii_ii[i];
9060 short int ebcdic_ii[] =
9061 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9062 short int ebcdic_mm[] =
9063 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9064 int use_ebcdic (int i) {
9065 return ebcdic_mm[i] + ebcdic_ii[i];
9072 return use_ascii (foo) == use_ebcdic (foo);
9077 if ac_fn_cxx_try_compile
"$LINENO"; then :
9078 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9079 ac_cv_c_bigendian
=yes
9081 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9082 if test "$ac_cv_c_bigendian" = unknown
; then
9083 ac_cv_c_bigendian
=no
9085 # finding both strings is unlikely to happen, but who knows?
9086 ac_cv_c_bigendian
=unknown
9090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9094 $ac_includes_default
9099 /* Are we little or big endian? From Harbison&Steele. */
9103 char c[sizeof (long int)];
9106 return u.c[sizeof (long int) - 1] == 1;
9112 if ac_fn_cxx_try_run
"$LINENO"; then :
9113 ac_cv_c_bigendian
=no
9115 ac_cv_c_bigendian
=yes
9117 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9118 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9124 $as_echo "$ac_cv_c_bigendian" >&6; }
9125 case $ac_cv_c_bigendian in #(
9127 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9133 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9137 as_fn_error
"unknown endianness
9138 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9142 # ----------------------
9143 # Checks for C++ headers
9144 # ----------------------
9147 ac_cpp
='$CXXCPP $CPPFLAGS'
9148 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9149 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9150 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9152 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9153 if test -z "$CXXCPP"; then
9154 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9157 # Double quotes because CXXCPP needs to be expanded
9158 for CXXCPP
in "$CXX -E" "/lib/cpp"
9161 for ac_cxx_preproc_warn_flag
in '' yes
9163 # Use a header file that comes with gcc, so configuring glibc
9164 # with a fresh cross-compiler works.
9165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9166 # <limits.h> exists even on freestanding compilers.
9167 # On the NeXT, cc -E runs the code through the compiler's parser,
9168 # not just through cpp. "Syntax error" is here to catch this case.
9169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9172 # include <limits.h>
9174 # include <assert.h>
9178 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9181 # Broken: fails on valid input.
9184 rm -f conftest.err conftest.
$ac_ext
9186 # OK, works on sane cases. Now check whether nonexistent headers
9187 # can be detected and how.
9188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190 #include <ac_nonexistent.h>
9192 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9193 # Broken: success on invalid input.
9196 # Passes both tests.
9200 rm -f conftest.err conftest.
$ac_ext
9203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9204 rm -f conftest.err conftest.
$ac_ext
9205 if $ac_preproc_ok; then :
9210 ac_cv_prog_CXXCPP
=$CXXCPP
9213 CXXCPP
=$ac_cv_prog_CXXCPP
9215 ac_cv_prog_CXXCPP
=$CXXCPP
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9218 $as_echo "$CXXCPP" >&6; }
9220 for ac_cxx_preproc_warn_flag
in '' yes
9222 # Use a header file that comes with gcc, so configuring glibc
9223 # with a fresh cross-compiler works.
9224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9225 # <limits.h> exists even on freestanding compilers.
9226 # On the NeXT, cc -E runs the code through the compiler's parser,
9227 # not just through cpp. "Syntax error" is here to catch this case.
9228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9231 # include <limits.h>
9233 # include <assert.h>
9237 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9240 # Broken: fails on valid input.
9243 rm -f conftest.err conftest.
$ac_ext
9245 # OK, works on sane cases. Now check whether nonexistent headers
9246 # can be detected and how.
9247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249 #include <ac_nonexistent.h>
9251 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9252 # Broken: success on invalid input.
9255 # Passes both tests.
9259 rm -f conftest.err conftest.
$ac_ext
9262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9263 rm -f conftest.err conftest.
$ac_ext
9264 if $ac_preproc_ok; then :
9267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9270 See \`config.log' for more details." >&5
9271 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9272 See \`config.log' for more details." >&2;}; }
9276 ac_cpp
='$CXXCPP $CPPFLAGS'
9277 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9278 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9279 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9282 for ac_header
in unordered_map
9284 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9285 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9286 cat >>confdefs.h
<<_ACEOF
9287 #define HAVE_UNORDERED_MAP 1
9293 for ac_header
in tr1/unordered_map
9295 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9296 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9297 cat >>confdefs.h
<<_ACEOF
9298 #define HAVE_TR1_UNORDERED_MAP 1
9304 for ac_header
in ext
/hash_map
9306 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9307 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9308 cat >>confdefs.h
<<_ACEOF
9309 #define HAVE_EXT_HASH_MAP 1
9317 # Dependency checking.
9320 rm -rf .tst
2>/dev
/null
9321 mkdir .tst
2>/dev
/null
9322 if test -d .tst
; then
9327 rmdir .tst
2>/dev
/null
9329 DEPDIR
="${am__leading_dot}deps"
9331 ac_config_commands
="$ac_config_commands depdir"
9334 ac_config_commands
="$ac_config_commands gccdepdir"
9337 depcc
="$CXX" am_compiler_list
=
9339 am_depcomp
=$ac_aux_dir/depcomp
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9341 $as_echo_n "checking dependency style of $depcc... " >&6; }
9342 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9343 $as_echo_n "(cached) " >&6
9345 if test -f "$am_depcomp"; then
9346 # We make a subdir and do the tests there. Otherwise we can end up
9347 # making bogus files that we don't know about and never remove. For
9348 # instance it was reported that on HP-UX the gcc test will end up
9349 # making a dummy file named `D' -- because `-MD' means `put the output
9352 # Copy depcomp to subdir because otherwise we won't find it if we're
9353 # using a relative directory.
9354 cp "$am_depcomp" conftest.dir
9356 # We will build objects and dependencies in a subdirectory because
9357 # it helps to detect inapplicable dependency modes. For instance
9358 # both Tru64's cc and ICC support -MD to output dependencies as a
9359 # side effect of compilation, but ICC will put the dependencies in
9360 # the current directory while Tru64 will put them in the object
9364 am_cv_CXX_dependencies_compiler_type
=none
9365 if test "$am_compiler_list" = ""; then
9366 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9368 for depmode
in $am_compiler_list; do
9369 if test $depmode = none
; then break; fi
9371 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9372 # Setup a source with many dependencies, because some compilers
9373 # like to wrap large dependency lists on column 80 (with \), and
9374 # we should not choose a depcomp mode which is confused by this.
9376 # We need to recreate these files for each test, as the compiler may
9377 # overwrite some of them when testing with obscure command lines.
9378 # This happens at least with the AIX C compiler.
9380 for i
in 1 2 3 4 5 6; do
9381 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9382 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9383 # Solaris 8's {/usr,}/bin/sh.
9384 touch sub
/conftst
$i.h
9386 echo "include sub/conftest.Po" > confmf
9388 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9389 # mode. It turns out that the SunPro C++ compiler does not properly
9390 # handle `-M -o', and we need to detect this.
9391 depcmd
="depmode=$depmode \
9392 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9393 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9394 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9395 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9396 if env
$depcmd > conftest.err
2>&1 &&
9397 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9398 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9399 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9400 # icc doesn't choke on unknown options, it will just issue warnings
9401 # or remarks (even with -Werror). So we grep stderr for any message
9402 # that says an option was ignored or not supported.
9403 # When given -MP, icc 7.0 and 7.1 complain thusly:
9404 # icc: Command line warning: ignoring option '-M'; no argument required
9405 # The diagnosis changed in icc 8.0:
9406 # icc: Command line remark: option '-MP' not supported
9407 if (grep 'ignoring option' conftest.err ||
9408 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9409 am_cv_CXX_dependencies_compiler_type
=$depmode
9410 $as_echo "$as_me:$LINENO: success" >&5
9414 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9415 sed -e 's/^/| /' < conftest.err
>&5
9421 am_cv_CXX_dependencies_compiler_type
=none
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9426 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9427 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9428 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9429 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9439 # These libraries may be used by collect2.
9440 # We may need a special search path to get them linked.
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9442 $as_echo_n "checking for collect2 libraries... " >&6; }
9443 if test "${gcc_cv_collect2_libs+set}" = set; then :
9444 $as_echo_n "(cached) " >&6
9447 for libs
in '' -lld -lmld \
9448 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9449 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9455 /* Override any GCC internal prototype to avoid an error.
9456 Use char because int might match the return type of a GCC
9457 builtin and then its argument prototype would still apply. */
9470 if ac_fn_cxx_try_link
"$LINENO"; then :
9471 gcc_cv_collect2_libs
="$libs"; break
9473 rm -f core conftest.err conftest.
$ac_objext \
9474 conftest
$ac_exeext conftest.
$ac_ext
9477 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9480 $as_echo "$gcc_cv_collect2_libs" >&6; }
9481 case $gcc_cv_collect2_libs in
9483 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9487 # When building Ada code on Alpha, we need exc_resume which is usually in
9488 # -lexc. So test for it.
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9492 $as_echo_n "checking for library containing exc_resume... " >&6; }
9493 if test "${ac_cv_search_exc_resume+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
9496 ac_func_search_save_LIBS
=$LIBS
9497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9500 /* Override any GCC internal prototype to avoid an error.
9501 Use char because int might match the return type of a GCC
9502 builtin and then its argument prototype would still apply. */
9510 return exc_resume ();
9515 for ac_lib
in '' exc
; do
9516 if test -z "$ac_lib"; then
9517 ac_res
="none required"
9520 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9522 if ac_fn_cxx_try_link
"$LINENO"; then :
9523 ac_cv_search_exc_resume
=$ac_res
9525 rm -f core conftest.err conftest.
$ac_objext \
9527 if test "${ac_cv_search_exc_resume+set}" = set; then :
9531 if test "${ac_cv_search_exc_resume+set}" = set; then :
9534 ac_cv_search_exc_resume
=no
9537 LIBS
=$ac_func_search_save_LIBS
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9540 $as_echo "$ac_cv_search_exc_resume" >&6; }
9541 ac_res
=$ac_cv_search_exc_resume
9542 if test "$ac_res" != no
; then :
9543 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9551 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9555 $as_echo_n "checking for library containing kstat_open... " >&6; }
9556 if test "${ac_cv_search_kstat_open+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9559 ac_func_search_save_LIBS
=$LIBS
9560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9563 /* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9573 return kstat_open ();
9578 for ac_lib
in '' kstat
; do
9579 if test -z "$ac_lib"; then
9580 ac_res
="none required"
9583 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9585 if ac_fn_cxx_try_link
"$LINENO"; then :
9586 ac_cv_search_kstat_open
=$ac_res
9588 rm -f core conftest.err conftest.
$ac_objext \
9590 if test "${ac_cv_search_kstat_open+set}" = set; then :
9594 if test "${ac_cv_search_kstat_open+set}" = set; then :
9597 ac_cv_search_kstat_open
=no
9600 LIBS
=$ac_func_search_save_LIBS
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9603 $as_echo "$ac_cv_search_kstat_open" >&6; }
9604 ac_res
=$ac_cv_search_kstat_open
9605 if test "$ac_res" != no
; then :
9606 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9610 EXTRA_GCC_LIBS
="$LIBS"
9614 # Some systems put ldexp and frexp in libm instead of libc; assume
9615 # they're both in the same place. jcf-dump needs them.
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9619 $as_echo_n "checking for library containing ldexp... " >&6; }
9620 if test "${ac_cv_search_ldexp+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9623 ac_func_search_save_LIBS
=$LIBS
9624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9627 /* Override any GCC internal prototype to avoid an error.
9628 Use char because int might match the return type of a GCC
9629 builtin and then its argument prototype would still apply. */
9642 for ac_lib
in '' m
; do
9643 if test -z "$ac_lib"; then
9644 ac_res
="none required"
9647 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9649 if ac_fn_cxx_try_link
"$LINENO"; then :
9650 ac_cv_search_ldexp
=$ac_res
9652 rm -f core conftest.err conftest.
$ac_objext \
9654 if test "${ac_cv_search_ldexp+set}" = set; then :
9658 if test "${ac_cv_search_ldexp+set}" = set; then :
9661 ac_cv_search_ldexp
=no
9664 LIBS
=$ac_func_search_save_LIBS
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9667 $as_echo "$ac_cv_search_ldexp" >&6; }
9668 ac_res
=$ac_cv_search_ldexp
9669 if test "$ac_res" != no
; then :
9670 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9678 # Use <inttypes.h> only if it exists,
9679 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9682 $as_echo_n "checking for inttypes.h... " >&6; }
9683 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9684 $as_echo_n "(cached) " >&6
9686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9688 #define __STDC_FORMAT_MACROS
9689 #include <sys/types.h>
9690 #include <inttypes.h>
9702 if ac_fn_cxx_try_compile
"$LINENO"; then :
9703 gcc_cv_header_inttypes_h
=yes
9705 gcc_cv_header_inttypes_h
=no
9707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9711 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9712 if test $gcc_cv_header_inttypes_h = yes; then
9714 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9720 for ac_func
in times clock kill getrlimit setrlimit atoq \
9721 popen sysconf strsignal getrusage nl_langinfo \
9722 gettimeofday mbstowcs wcswidth mmap setlocale \
9723 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
9725 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9726 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9727 eval as_val
=\$
$as_ac_var
9728 if test "x$as_val" = x
""yes; then :
9729 cat >>confdefs.h
<<_ACEOF
9730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9737 if test x
$ac_cv_func_mbstowcs = xyes
; then
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9739 $as_echo_n "checking whether mbstowcs works... " >&6; }
9740 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9741 $as_echo_n "(cached) " >&6
9743 if test "$cross_compiling" = yes; then :
9744 gcc_cv_func_mbstowcs_works
=yes
9746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h. */
9755 if ac_fn_cxx_try_run
"$LINENO"; then :
9756 gcc_cv_func_mbstowcs_works
=yes
9758 gcc_cv_func_mbstowcs_works
=no
9760 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9761 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9766 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9767 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9769 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9774 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9775 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9779 cat >>confdefs.h
<<_ACEOF
9785 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9786 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9790 cat >>confdefs.h
<<_ACEOF
9791 #define caddr_t char *
9798 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9799 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9800 gcc_header_sys_mman_h
=yes
9802 gcc_header_sys_mman_h
=no
9805 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9806 if test "x$ac_cv_func_mmap" = x
""yes; then :
9812 if test "$gcc_header_sys_mman_h" != yes \
9813 ||
test "$gcc_func_mmap" != yes; then
9814 gcc_cv_func_mmap_file
=no
9815 gcc_cv_func_mmap_dev_zero
=no
9816 gcc_cv_func_mmap_anon
=no
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9819 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9820 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9821 $as_echo_n "(cached) " >&6
9823 # Add a system to this blacklist if
9824 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9825 # memory area containing the same data that you'd get if you applied
9826 # read() to the same fd. The only system known to have a problem here
9827 # is VMS, where text files have record structure.
9830 gcc_cv_func_mmap_file
=no
;;
9832 gcc_cv_func_mmap_file
=yes;;
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9836 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9838 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9839 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9840 $as_echo_n "(cached) " >&6
9842 # Add a system to this blacklist if it has mmap() but /dev/zero
9843 # does not exist, or if mmapping /dev/zero does not give anonymous
9844 # zeroed pages with both the following properties:
9845 # 1. If you map N consecutive pages in with one call, and then
9846 # unmap any subset of those pages, the pages that were not
9847 # explicitly unmapped remain accessible.
9848 # 2. If you map two adjacent blocks of memory and then unmap them
9849 # both at once, they must both go away.
9850 # Systems known to be in this category are Windows (all variants),
9853 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9854 gcc_cv_func_mmap_dev_zero
=no
;;
9856 gcc_cv_func_mmap_dev_zero
=yes;;
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9860 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9862 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9864 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9865 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
9868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9870 #include <sys/types.h>
9871 #include <sys/mman.h>
9874 #ifndef MAP_ANONYMOUS
9875 #define MAP_ANONYMOUS MAP_ANON
9881 int n = MAP_ANONYMOUS;
9886 if ac_fn_cxx_try_compile
"$LINENO"; then :
9887 gcc_cv_decl_map_anon
=yes
9889 gcc_cv_decl_map_anon
=no
9891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9894 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9896 if test $gcc_cv_decl_map_anon = no
; then
9897 gcc_cv_func_mmap_anon
=no
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9900 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9901 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9902 $as_echo_n "(cached) " >&6
9904 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9905 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9906 # doesn't give anonymous zeroed pages with the same properties listed
9907 # above for use of /dev/zero.
9908 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9910 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9911 gcc_cv_func_mmap_anon
=no
;;
9913 gcc_cv_func_mmap_anon
=yes;;
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9917 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9921 if test $gcc_cv_func_mmap_file = yes; then
9923 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9926 if test $gcc_cv_func_mmap_dev_zero = yes; then
9928 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9931 if test $gcc_cv_func_mmap_anon = yes; then
9933 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9940 # Under VMS, vfork works very differently than on Unix. The standard test
9941 # won't work, and it isn't easily adaptable. It makes more sense to
9943 ac_cv_func_vfork_works
=yes
9946 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9947 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9951 cat >>confdefs.h
<<_ACEOF
9957 for ac_header
in vfork.h
9959 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9960 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9961 cat >>confdefs.h
<<_ACEOF
9962 #define HAVE_VFORK_H 1
9968 for ac_func
in fork vfork
9970 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9971 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9972 eval as_val
=\$
$as_ac_var
9973 if test "x$as_val" = x
""yes; then :
9974 cat >>confdefs.h
<<_ACEOF
9975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9981 if test "x$ac_cv_func_fork" = xyes
; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9983 $as_echo_n "checking for working fork... " >&6; }
9984 if test "${ac_cv_func_fork_works+set}" = set; then :
9985 $as_echo_n "(cached) " >&6
9987 if test "$cross_compiling" = yes; then :
9988 ac_cv_func_fork_works
=cross
9990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h. */
9992 $ac_includes_default
9997 /* By Ruediger Kuhlmann. */
10004 if ac_fn_cxx_try_run
"$LINENO"; then :
10005 ac_cv_func_fork_works
=yes
10007 ac_cv_func_fork_works
=no
10009 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10010 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10015 $as_echo "$ac_cv_func_fork_works" >&6; }
10018 ac_cv_func_fork_works
=$ac_cv_func_fork
10020 if test "x$ac_cv_func_fork_works" = xcross
; then
10022 *-*-amigaos* |
*-*-msdosdjgpp*)
10023 # Override, as these systems have only a dummy fork() stub
10024 ac_cv_func_fork_works
=no
10027 ac_cv_func_fork_works
=yes
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10031 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10033 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10034 if test "x$ac_cv_func_vfork" = xyes
; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10036 $as_echo_n "checking for working vfork... " >&6; }
10037 if test "${ac_cv_func_vfork_works+set}" = set; then :
10038 $as_echo_n "(cached) " >&6
10040 if test "$cross_compiling" = yes; then :
10041 ac_cv_func_vfork_works
=cross
10043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045 /* Thanks to Paul Eggert for this test. */
10046 $ac_includes_default
10047 #include <sys/wait.h>
10048 #ifdef HAVE_VFORK_H
10049 # include <vfork.h>
10051 /* On some sparc systems, changes by the child to local and incoming
10052 argument registers are propagated back to the parent. The compiler
10053 is told about this with #include <vfork.h>, but some compilers
10054 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10055 static variable whose address is put into a register that is
10056 clobbered by the vfork. */
10059 sparc_address_test (int arg)
10061 sparc_address_test (arg) int arg;
10064 static pid_t child;
10082 pid_t parent = getpid ();
10085 sparc_address_test (0);
10090 /* Here is another test for sparc vfork register problems. This
10091 test uses lots of local variables, at least as many local
10092 variables as main has allocated so far including compiler
10093 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10094 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10095 reuse the register of parent for one of the local variables,
10096 since it will think that parent can't possibly be used any more
10097 in this routine. Assigning to the local variable will thus
10098 munge parent in the parent process. */
10100 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10101 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10102 /* Convince the compiler that p..p7 are live; otherwise, it might
10103 use the same hardware register for all 8 local variables. */
10104 if (p != p1 || p != p2 || p != p3 || p != p4
10105 || p != p5 || p != p6 || p != p7)
10108 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10109 from child file descriptors. If the child closes a descriptor
10110 before it execs or exits, this munges the parent's descriptor
10111 as well. Test for this by closing stdout in the child. */
10112 _exit(close(fileno(stdout)) != 0);
10117 while (wait(&status) != child)
10120 /* Was there some problem with vforking? */
10123 /* Did the child fail? (This shouldn't happen.) */
10126 /* Did the vfork/compiler bug occur? */
10127 || parent != getpid()
10129 /* Did the file descriptor bug occur? */
10130 || fstat(fileno(stdout), &st) != 0
10135 if ac_fn_cxx_try_run
"$LINENO"; then :
10136 ac_cv_func_vfork_works
=yes
10138 ac_cv_func_vfork_works
=no
10140 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10141 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10146 $as_echo "$ac_cv_func_vfork_works" >&6; }
10149 if test "x$ac_cv_func_fork_works" = xcross
; then
10150 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10152 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10155 if test "x$ac_cv_func_vfork_works" = xyes
; then
10157 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10161 $as_echo "#define vfork fork" >>confdefs.h
10164 if test "x$ac_cv_func_fork_works" = xyes
; then
10166 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10172 if test "X$prefix" = "XNONE"; then
10173 acl_final_prefix
="$ac_default_prefix"
10175 acl_final_prefix
="$prefix"
10177 if test "X$exec_prefix" = "XNONE"; then
10178 acl_final_exec_prefix
='${prefix}'
10180 acl_final_exec_prefix
="$exec_prefix"
10182 acl_save_prefix
="$prefix"
10183 prefix
="$acl_final_prefix"
10184 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10185 prefix
="$acl_save_prefix"
10188 # Check whether --with-gnu-ld was given.
10189 if test "${with_gnu_ld+set}" = set; then :
10190 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10195 # Prepare PATH_SEPARATOR.
10196 # The user is always right.
10197 if test "${PATH_SEPARATOR+set}" != set; then
10198 echo "#! /bin/sh" >conf$$.sh
10199 echo "exit 0" >>conf$$.sh
10201 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10209 if test "$GCC" = yes; then
10210 # Check if gcc -print-prog-name=ld gives a path.
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10212 $as_echo_n "checking for ld used by GCC... " >&6; }
10215 # gcc leaves a trailing carriage return which upsets mingw
10216 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10218 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10221 # Accept absolute paths.
10222 [\\/]* |
[A-Za-z
]:[\\/]*)
10223 re_direlt
='/[^/][^/]*/\.\./'
10224 # Canonicalize the path of ld
10225 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10226 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10227 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10229 test -z "$LD" && LD
="$ac_prog"
10232 # If it fails, then pretend we aren't using GCC.
10236 # If it is relative, then search for the first ld in PATH.
10237 with_gnu_ld
=unknown
10240 elif test "$with_gnu_ld" = yes; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10242 $as_echo_n "checking for GNU ld... " >&6; }
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10245 $as_echo_n "checking for non-GNU ld... " >&6; }
10247 if test "${acl_cv_path_LD+set}" = set; then :
10248 $as_echo_n "(cached) " >&6
10250 if test -z "$LD"; then
10251 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10252 for ac_dir
in $PATH; do
10253 test -z "$ac_dir" && ac_dir
=.
10254 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10255 acl_cv_path_LD
="$ac_dir/$ac_prog"
10256 # Check to see if the program is GNU ld. I'd rather use --version,
10257 # but apparently some GNU ld's only accept -v.
10258 # Break only if it was the GNU/non-GNU ld that we prefer.
10259 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10260 test "$with_gnu_ld" != no
&& break
10262 test "$with_gnu_ld" != yes && break
10268 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10272 LD
="$acl_cv_path_LD"
10273 if test -n "$LD"; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10275 $as_echo "$LD" >&6; }
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10280 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10282 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10283 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10284 $as_echo_n "(cached) " >&6
10286 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10287 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10288 acl_cv_prog_gnu_ld
=yes
10290 acl_cv_prog_gnu_ld
=no
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10294 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10295 with_gnu_ld
=$acl_cv_prog_gnu_ld
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10300 $as_echo_n "checking for shared library run path origin... " >&6; }
10301 if test "${acl_cv_rpath+set}" = set; then :
10302 $as_echo_n "(cached) " >&6
10305 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10306 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10308 rm -f .
/conftest.sh
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10313 $as_echo "$acl_cv_rpath" >&6; }
10315 libext
="$acl_cv_libext"
10316 shlibext
="$acl_cv_shlibext"
10317 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10318 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10319 hardcode_direct
="$acl_cv_hardcode_direct"
10320 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10321 # Check whether --enable-rpath was given.
10322 if test "${enable_rpath+set}" = set; then :
10323 enableval
=$enable_rpath; :
10337 acl_save_prefix
="$prefix"
10338 prefix
="$acl_final_prefix"
10339 acl_save_exec_prefix
="$exec_prefix"
10340 exec_prefix
="$acl_final_exec_prefix"
10342 eval additional_includedir
=\"$includedir\"
10343 eval additional_libdir
=\"$libdir\"
10345 exec_prefix
="$acl_save_exec_prefix"
10346 prefix
="$acl_save_prefix"
10349 # Check whether --with-libiconv-prefix was given.
10350 if test "${with_libiconv_prefix+set}" = set; then :
10351 withval
=$with_libiconv_prefix;
10352 if test "X$withval" = "Xno"; then
10355 if test "X$withval" = "X"; then
10357 acl_save_prefix
="$prefix"
10358 prefix
="$acl_final_prefix"
10359 acl_save_exec_prefix
="$exec_prefix"
10360 exec_prefix
="$acl_final_exec_prefix"
10362 eval additional_includedir
=\"$includedir\"
10363 eval additional_libdir
=\"$libdir\"
10365 exec_prefix
="$acl_save_exec_prefix"
10366 prefix
="$acl_save_prefix"
10369 additional_includedir
="$withval/include"
10370 additional_libdir
="$withval/lib"
10381 names_already_handled
=
10382 names_next_round
='iconv '
10383 while test -n "$names_next_round"; do
10384 names_this_round
="$names_next_round"
10386 for name
in $names_this_round; do
10388 for n
in $names_already_handled; do
10389 if test "$n" = "$name"; then
10390 already_handled
=yes
10394 if test -z "$already_handled"; then
10395 names_already_handled
="$names_already_handled $name"
10396 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10397 eval value
=\"\
$HAVE_LIB$uppername\"
10398 if test -n "$value"; then
10399 if test "$value" = yes; then
10400 eval value
=\"\
$LIB$uppername\"
10401 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10402 eval value
=\"\
$LTLIB$uppername\"
10403 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10412 if test $use_additional = yes; then
10413 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10414 found_dir
="$additional_libdir"
10415 found_so
="$additional_libdir/lib$name.$shlibext"
10416 if test -f "$additional_libdir/lib$name.la"; then
10417 found_la
="$additional_libdir/lib$name.la"
10420 if test -f "$additional_libdir/lib$name.$libext"; then
10421 found_dir
="$additional_libdir"
10422 found_a
="$additional_libdir/lib$name.$libext"
10423 if test -f "$additional_libdir/lib$name.la"; then
10424 found_la
="$additional_libdir/lib$name.la"
10429 if test "X$found_dir" = "X"; then
10430 for x
in $LDFLAGS $LTLIBICONV; do
10432 acl_save_prefix
="$prefix"
10433 prefix
="$acl_final_prefix"
10434 acl_save_exec_prefix
="$exec_prefix"
10435 exec_prefix
="$acl_final_exec_prefix"
10437 exec_prefix
="$acl_save_exec_prefix"
10438 prefix
="$acl_save_prefix"
10442 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10443 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10445 found_so
="$dir/lib$name.$shlibext"
10446 if test -f "$dir/lib$name.la"; then
10447 found_la
="$dir/lib$name.la"
10450 if test -f "$dir/lib$name.$libext"; then
10452 found_a
="$dir/lib$name.$libext"
10453 if test -f "$dir/lib$name.la"; then
10454 found_la
="$dir/lib$name.la"
10460 if test "X$found_dir" != "X"; then
10465 if test "X$found_dir" != "X"; then
10466 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10467 if test "X$found_so" != "X"; then
10468 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10469 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10472 for x
in $ltrpathdirs; do
10473 if test "X$x" = "X$found_dir"; then
10478 if test -z "$haveit"; then
10479 ltrpathdirs
="$ltrpathdirs $found_dir"
10481 if test "$hardcode_direct" = yes; then
10482 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10484 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10485 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10487 for x
in $rpathdirs; do
10488 if test "X$x" = "X$found_dir"; then
10493 if test -z "$haveit"; then
10494 rpathdirs
="$rpathdirs $found_dir"
10498 for x
in $LDFLAGS $LIBICONV; do
10500 acl_save_prefix
="$prefix"
10501 prefix
="$acl_final_prefix"
10502 acl_save_exec_prefix
="$exec_prefix"
10503 exec_prefix
="$acl_final_exec_prefix"
10505 exec_prefix
="$acl_save_exec_prefix"
10506 prefix
="$acl_save_prefix"
10508 if test "X$x" = "X-L$found_dir"; then
10513 if test -z "$haveit"; then
10514 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10516 if test "$hardcode_minus_L" != no
; then
10517 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10519 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10525 if test "X$found_a" != "X"; then
10526 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10528 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10531 additional_includedir
=
10532 case "$found_dir" in
10534 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10535 additional_includedir
="$basedir/include"
10538 if test "X$additional_includedir" != "X"; then
10539 if test "X$additional_includedir" != "X/usr/include"; then
10541 if test "X$additional_includedir" = "X/usr/local/include"; then
10542 if test -n "$GCC"; then
10544 linux
*) haveit
=yes;;
10548 if test -z "$haveit"; then
10549 for x
in $CPPFLAGS $INCICONV; do
10551 acl_save_prefix
="$prefix"
10552 prefix
="$acl_final_prefix"
10553 acl_save_exec_prefix
="$exec_prefix"
10554 exec_prefix
="$acl_final_exec_prefix"
10556 exec_prefix
="$acl_save_exec_prefix"
10557 prefix
="$acl_save_prefix"
10559 if test "X$x" = "X-I$additional_includedir"; then
10564 if test -z "$haveit"; then
10565 if test -d "$additional_includedir"; then
10566 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10572 if test -n "$found_la"; then
10573 save_libdir
="$libdir"
10574 case "$found_la" in
10575 */* |
*\\*) .
"$found_la" ;;
10576 *) .
"./$found_la" ;;
10578 libdir
="$save_libdir"
10579 for dep
in $dependency_libs; do
10582 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10583 if test "X$additional_libdir" != "X/usr/lib"; then
10585 if test "X$additional_libdir" = "X/usr/local/lib"; then
10586 if test -n "$GCC"; then
10588 linux
*) haveit
=yes;;
10592 if test -z "$haveit"; then
10594 for x
in $LDFLAGS $LIBICONV; do
10596 acl_save_prefix
="$prefix"
10597 prefix
="$acl_final_prefix"
10598 acl_save_exec_prefix
="$exec_prefix"
10599 exec_prefix
="$acl_final_exec_prefix"
10601 exec_prefix
="$acl_save_exec_prefix"
10602 prefix
="$acl_save_prefix"
10604 if test "X$x" = "X-L$additional_libdir"; then
10609 if test -z "$haveit"; then
10610 if test -d "$additional_libdir"; then
10611 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10615 for x
in $LDFLAGS $LTLIBICONV; do
10617 acl_save_prefix
="$prefix"
10618 prefix
="$acl_final_prefix"
10619 acl_save_exec_prefix
="$exec_prefix"
10620 exec_prefix
="$acl_final_exec_prefix"
10622 exec_prefix
="$acl_save_exec_prefix"
10623 prefix
="$acl_save_prefix"
10625 if test "X$x" = "X-L$additional_libdir"; then
10630 if test -z "$haveit"; then
10631 if test -d "$additional_libdir"; then
10632 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10639 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10640 if test "$enable_rpath" != no
; then
10642 for x
in $rpathdirs; do
10643 if test "X$x" = "X$dir"; then
10648 if test -z "$haveit"; then
10649 rpathdirs
="$rpathdirs $dir"
10652 for x
in $ltrpathdirs; do
10653 if test "X$x" = "X$dir"; then
10658 if test -z "$haveit"; then
10659 ltrpathdirs
="$ltrpathdirs $dir"
10664 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10667 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10670 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10671 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10677 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10678 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10684 if test "X$rpathdirs" != "X"; then
10685 if test -n "$hardcode_libdir_separator"; then
10687 for found_dir
in $rpathdirs; do
10688 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10690 acl_save_libdir
="$libdir"
10692 eval flag
=\"$hardcode_libdir_flag_spec\"
10693 libdir
="$acl_save_libdir"
10694 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10696 for found_dir
in $rpathdirs; do
10697 acl_save_libdir
="$libdir"
10698 libdir
="$found_dir"
10699 eval flag
=\"$hardcode_libdir_flag_spec\"
10700 libdir
="$acl_save_libdir"
10701 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10705 if test "X$ltrpathdirs" != "X"; then
10706 for found_dir
in $ltrpathdirs; do
10707 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10718 $as_echo_n "checking for iconv... " >&6; }
10719 if test "${am_cv_func_iconv+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10723 am_cv_func_iconv
="no, consider installing GNU libiconv"
10725 am_save_CPPFLAGS
="$CPPFLAGS"
10726 CPPFLAGS
="$CPPFLAGS $INCICONV"
10727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729 #include <stdlib.h>
10734 iconv_t cd = iconv_open("","");
10735 iconv(cd,NULL,NULL,NULL,NULL);
10741 if ac_fn_cxx_try_link
"$LINENO"; then :
10742 am_cv_func_iconv
=yes
10744 rm -f core conftest.err conftest.
$ac_objext \
10745 conftest
$ac_exeext conftest.
$ac_ext
10746 CPPFLAGS
="$am_save_CPPFLAGS"
10748 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10749 for _libs
in .libs _libs
; do
10750 am_save_CPPFLAGS
="$CPPFLAGS"
10751 am_save_LIBS
="$LIBS"
10752 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10753 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 #include <stdlib.h>
10761 iconv_t cd = iconv_open("","");
10762 iconv(cd,NULL,NULL,NULL,NULL);
10768 if ac_fn_cxx_try_link
"$LINENO"; then :
10769 INCICONV
="-I../libiconv/include"
10770 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10771 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10772 am_cv_lib_iconv
=yes
10773 am_cv_func_iconv
=yes
10775 rm -f core conftest.err conftest.
$ac_objext \
10776 conftest
$ac_exeext conftest.
$ac_ext
10777 CPPFLAGS
="$am_save_CPPFLAGS"
10778 LIBS
="$am_save_LIBS"
10779 if test "$am_cv_func_iconv" = "yes"; then
10785 if test "$am_cv_func_iconv" != yes; then
10786 am_save_CPPFLAGS
="$CPPFLAGS"
10787 am_save_LIBS
="$LIBS"
10788 CPPFLAGS
="$LIBS $INCICONV"
10789 LIBS
="$LIBS $LIBICONV"
10790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10792 #include <stdlib.h>
10797 iconv_t cd = iconv_open("","");
10798 iconv(cd,NULL,NULL,NULL,NULL);
10804 if ac_fn_cxx_try_link
"$LINENO"; then :
10805 am_cv_lib_iconv
=yes
10806 am_cv_func_iconv
=yes
10808 rm -f core conftest.err conftest.
$ac_objext \
10809 conftest
$ac_exeext conftest.
$ac_ext
10810 CPPFLAGS
="$am_save_CPPFLAGS"
10811 LIBS
="$am_save_LIBS"
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10816 $as_echo "$am_cv_func_iconv" >&6; }
10817 if test "$am_cv_func_iconv" = yes; then
10819 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10822 if test "$am_cv_lib_iconv" = yes; then
10824 for element
in $INCICONV; do
10826 for x
in $CPPFLAGS; do
10828 acl_save_prefix
="$prefix"
10829 prefix
="$acl_final_prefix"
10830 acl_save_exec_prefix
="$exec_prefix"
10831 exec_prefix
="$acl_final_exec_prefix"
10833 exec_prefix
="$acl_save_exec_prefix"
10834 prefix
="$acl_save_prefix"
10836 if test "X$x" = "X$element"; then
10841 if test -z "$haveit"; then
10842 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10847 $as_echo_n "checking how to link with libiconv... " >&6; }
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10849 $as_echo "$LIBICONV" >&6; }
10857 if test "$am_cv_func_iconv" = yes; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10859 $as_echo_n "checking for iconv declaration... " >&6; }
10860 if test "${am_cv_proto_iconv+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10867 #include <stdlib.h>
10873 #if defined(__STDC__) || defined(__cplusplus)
10874 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10887 if ac_fn_cxx_try_compile
"$LINENO"; then :
10888 am_cv_proto_iconv_arg1
=""
10890 am_cv_proto_iconv_arg1
="const"
10892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10893 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);"
10896 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10898 }$am_cv_proto_iconv" >&5
10900 }$am_cv_proto_iconv" >&6; }
10902 cat >>confdefs.h
<<_ACEOF
10903 #define ICONV_CONST $am_cv_proto_iconv_arg1
10909 # Until we have in-tree GNU iconv:
10911 if test -f "$LTLIBICONV"; then
10912 LIBICONV_DEP
=$LTLIBICONV
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10918 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10919 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
10922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924 #include <locale.h>
10933 if ac_fn_cxx_try_link
"$LINENO"; then :
10934 am_cv_val_LC_MESSAGES
=yes
10936 am_cv_val_LC_MESSAGES
=no
10938 rm -f core conftest.err conftest.
$ac_objext \
10939 conftest
$ac_exeext conftest.
$ac_ext
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10942 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10943 if test $am_cv_val_LC_MESSAGES = yes; then
10945 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10952 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10953 if test "${am_cv_langinfo_codeset+set}" = set; then :
10954 $as_echo_n "(cached) " >&6
10956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10958 #include <langinfo.h>
10962 char* cs = nl_langinfo(CODESET);
10967 if ac_fn_cxx_try_link
"$LINENO"; then :
10968 am_cv_langinfo_codeset
=yes
10970 am_cv_langinfo_codeset
=no
10972 rm -f core conftest.err conftest.
$ac_objext \
10973 conftest
$ac_exeext conftest.
$ac_ext
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10977 $as_echo "$am_cv_langinfo_codeset" >&6; }
10978 if test $am_cv_langinfo_codeset = yes; then
10980 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10985 # We will need to find libiberty.h and ansidecl.h
10986 saved_CFLAGS
="$CFLAGS"
10987 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10988 saved_CXXFLAGS
="$CXXFLAGS"
10989 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10991 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10992 # normal autoconf function for these. But force definition of
10993 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10994 # basename handling in libiberty.h.
10995 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10996 #undef HAVE_DECL_BASENAME
10997 #define HAVE_DECL_BASENAME 1
10998 #include \"ansidecl.h\"
10999 #include \"system.h\"
11001 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
11007 cat >>confdefs.h
<<_ACEOF
11008 #define HAVE_DECL_BASENAME $ac_have_decl
11010 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
11011 #undef HAVE_DECL_BASENAME
11012 #define HAVE_DECL_BASENAME 1
11013 #include \"ansidecl.h\"
11014 #include \"system.h\"
11016 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
11022 cat >>confdefs.h
<<_ACEOF
11023 #define HAVE_DECL_STRSTR $ac_have_decl
11027 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11028 madvise stpcpy strnlen strsignal strverscmp \
11029 strtol strtoul strtoll strtoull setenv unsetenv \
11030 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11031 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
11033 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11035 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11036 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11037 $as_echo_n "(cached) " >&6
11039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11042 #define $ac_tr_decl 1
11044 #include "ansidecl.h"
11045 #include "system.h"
11051 char *(*pfn) = (char *(*)) $ac_func ;
11057 if ac_fn_cxx_try_compile
"$LINENO"; then :
11058 eval "gcc_cv_have_decl_$ac_func=yes"
11060 eval "gcc_cv_have_decl_$ac_func=no"
11062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11065 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11067 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11068 #define $ac_tr_decl 1
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11073 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11074 #define $ac_tr_decl 0
11082 for ac_func
in getrlimit setrlimit getrusage
11084 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11086 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11087 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11088 $as_echo_n "(cached) " >&6
11090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11093 #define $ac_tr_decl 1
11095 #include "ansidecl.h"
11096 #include "system.h"
11097 #ifdef HAVE_SYS_RESOURCE_H
11098 #include <sys/resource.h>
11106 char *(*pfn) = (char *(*)) $ac_func ;
11112 if ac_fn_cxx_try_compile
"$LINENO"; then :
11113 eval "gcc_cv_have_decl_$ac_func=yes"
11115 eval "gcc_cv_have_decl_$ac_func=no"
11117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11120 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11122 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11123 #define $ac_tr_decl 1
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11129 #define $ac_tr_decl 0
11137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11138 /* end confdefs.h. */
11140 #include "ansidecl.h"
11141 #include "system.h"
11142 #ifdef HAVE_SYS_RESOURCE_H
11143 #include <sys/resource.h>
11154 if ac_fn_cxx_try_compile
"$LINENO"; then :
11158 $as_echo "#define rlim_t long" >>confdefs.h
11161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11163 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11164 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11165 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11166 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11167 for ac_func
in ldgetname
11169 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11171 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11172 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11173 $as_echo_n "(cached) " >&6
11175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11176 /* end confdefs.h. */
11178 #define $ac_tr_decl 1
11180 #include "ansidecl.h"
11181 #include "system.h"
11182 #ifdef HAVE_LDFCN_H
11193 char *(*pfn) = (char *(*)) $ac_func ;
11199 if ac_fn_cxx_try_compile
"$LINENO"; then :
11200 eval "gcc_cv_have_decl_$ac_func=yes"
11202 eval "gcc_cv_have_decl_$ac_func=no"
11204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11207 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11209 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11210 #define $ac_tr_decl 1
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11216 #define $ac_tr_decl 0
11224 for ac_func
in times
11226 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11228 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11229 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11230 $as_echo_n "(cached) " >&6
11232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11235 #define $ac_tr_decl 1
11237 #include "ansidecl.h"
11238 #include "system.h"
11239 #ifdef HAVE_SYS_TIMES_H
11240 #include <sys/times.h>
11248 char *(*pfn) = (char *(*)) $ac_func ;
11254 if ac_fn_cxx_try_compile
"$LINENO"; then :
11255 eval "gcc_cv_have_decl_$ac_func=yes"
11257 eval "gcc_cv_have_decl_$ac_func=no"
11259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11262 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11264 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11265 #define $ac_tr_decl 1
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11270 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11271 #define $ac_tr_decl 0
11279 for ac_func
in sigaltstack
11281 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11283 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11284 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11285 $as_echo_n "(cached) " >&6
11287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11290 #define $ac_tr_decl 1
11292 #include "ansidecl.h"
11293 #include "system.h"
11294 #include <signal.h>
11301 char *(*pfn) = (char *(*)) $ac_func ;
11307 if ac_fn_cxx_try_compile
"$LINENO"; then :
11308 eval "gcc_cv_have_decl_$ac_func=yes"
11310 eval "gcc_cv_have_decl_$ac_func=no"
11312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11315 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11317 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11318 #define $ac_tr_decl 1
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11324 #define $ac_tr_decl 0
11332 # More time-related stuff.
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11334 $as_echo_n "checking for struct tms... " >&6; }
11335 if test "${ac_cv_struct_tms+set}" = set; then :
11336 $as_echo_n "(cached) " >&6
11339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11342 #include "ansidecl.h"
11343 #include "system.h"
11344 #ifdef HAVE_SYS_TIMES_H
11345 #include <sys/times.h>
11356 if ac_fn_cxx_try_compile
"$LINENO"; then :
11357 ac_cv_struct_tms
=yes
11359 ac_cv_struct_tms
=no
11361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11364 $as_echo "$ac_cv_struct_tms" >&6; }
11365 if test $ac_cv_struct_tms = yes; then
11367 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11371 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11372 # revisit after autoconf 2.50.
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11374 $as_echo_n "checking for clock_t... " >&6; }
11375 if test "${gcc_cv_type_clock_t+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11382 #include "ansidecl.h"
11383 #include "system.h"
11393 if ac_fn_cxx_try_compile
"$LINENO"; then :
11394 gcc_cv_type_clock_t
=yes
11396 gcc_cv_type_clock_t
=no
11398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11401 $as_echo "$gcc_cv_type_clock_t" >&6; }
11402 if test $gcc_cv_type_clock_t = yes; then
11404 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11408 # Check if F_SETLKW is supported by fcntl.
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11410 $as_echo_n "checking for F_SETLKW... " >&6; }
11411 if test "${ac_cv_f_setlkw+set}" = set; then :
11412 $as_echo_n "(cached) " >&6
11415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11428 return fcntl (1, F_SETLKW, &fl);
11433 if ac_fn_cxx_try_compile
"$LINENO"; then :
11438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11441 $as_echo "$ac_cv_f_setlkw" >&6; }
11442 if test $ac_cv_f_setlkw = yes; then
11444 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11448 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11449 CFLAGS
="$saved_CFLAGS"
11450 CXXFLAGS
="$saved_CXXFLAGS"
11452 # mkdir takes a single argument on some systems.
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11454 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11455 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11461 #include <sys/types.h>
11462 #ifdef HAVE_SYS_STAT_H
11463 # include <sys/stat.h>
11465 #ifdef HAVE_UNISTD_H
11466 # include <unistd.h>
11468 #ifdef HAVE_DIRECT_H
11469 # include <direct.h>
11479 if ac_fn_cxx_try_compile
"$LINENO"; then :
11480 gcc_cv_mkdir_takes_one_arg
=no
11482 gcc_cv_mkdir_takes_one_arg
=yes
11484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11487 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11488 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11490 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11501 # With Setjmp/Longjmp based exception handling.
11502 # Check whether --enable-sjlj-exceptions was given.
11503 if test "${enable_sjlj_exceptions+set}" = set; then :
11504 enableval
=$enable_sjlj_exceptions; case $target in
11506 if test $enableval != yes; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11508 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11513 force_sjlj_exceptions
=yes
11517 force_sjlj_exceptions
=yes
11521 force_sjlj_exceptions
=yes
11525 force_sjlj_exceptions
=no
11530 if test $force_sjlj_exceptions = yes; then
11531 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11533 cat >>confdefs.h
<<_ACEOF
11534 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11539 # --------------------------------------------------------
11540 # Build, host, and target specific configuration fragments
11541 # --------------------------------------------------------
11543 # Collect build-machine-specific information.
11544 .
${srcdir}/config.build ||
exit 1
11546 # Collect host-machine-specific information.
11547 .
${srcdir}/config.
host ||
exit 1
11551 # Collect target-machine-specific information.
11552 .
${srcdir}/config.gcc ||
exit 1
11554 extra_objs
="${host_extra_objs} ${extra_objs}"
11555 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11557 # Default the target-machine variables that were not explicitly set.
11558 if test x
"$tm_file" = x
11559 then tm_file
=$cpu_type/$cpu_type.h
; fi
11561 if test x
"$extra_headers" = x
11562 then extra_headers
=; fi
11564 if test x
$md_file = x
11565 then md_file
=$cpu_type/$cpu_type.md
; fi
11567 if test x
$out_file = x
11568 then out_file
=$cpu_type/$cpu_type.c
; fi
11570 if test x
"$tmake_file" = x
11571 then tmake_file
=$cpu_type/t-
$cpu_type
11574 # Support --enable-initfini-array.
11575 if test x
$enable_initfini_array != xno
; then
11576 tm_file
="${tm_file} initfini-array.h"
11579 if test x
"$dwarf2" = xyes
11580 then tm_file
="$tm_file tm-dwarf2.h"
11583 # Say what files are being used for the output code and MD file.
11584 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11585 echo "Using \`$srcdir/config/$md_file' as machine description file."
11587 # If any of the xm_file variables contain nonexistent files, warn
11588 # about them and drop them.
11591 for x
in $build_xm_file; do
11592 if test -f $srcdir/config
/$x
11594 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11595 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11598 build_xm_file
="$bx"
11601 for x
in $host_xm_file; do
11602 if test -f $srcdir/config
/$x
11604 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11605 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11611 for x
in $xm_file; do
11612 if test -f $srcdir/config
/$x
11614 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11615 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11621 for f
in $tm_file; do
11624 if test $count = ax
; then
11625 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11627 echo "Using the following target machine macro files:"
11628 for f
in $tm_file; do
11629 echo " $srcdir/config/$f"
11633 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11635 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11639 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11641 cat >>confdefs.h
<<_ACEOF
11642 #define HAVE_GNU_LD $gnu_ld_bool
11646 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11648 cat >>confdefs.h
<<_ACEOF
11649 #define HAVE_GNU_AS $gnu_as_bool
11654 for f
in $host_xm_file; do
11657 if test $count = a
; then
11659 elif test $count = ax
; then
11660 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11662 echo "Using the following host machine macro files:"
11663 for f
in $host_xm_file; do
11664 echo " $srcdir/config/$f"
11667 echo "Using ${out_host_hook_obj} for host machine hooks."
11669 if test "$host_xm_file" != "$build_xm_file"; then
11671 for f
in $build_xm_file; do
11674 if test $count = a
; then
11676 elif test $count = ax
; then
11677 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11679 echo "Using the following build machine macro files:"
11680 for f
in $build_xm_file; do
11681 echo " $srcdir/config/$f"
11686 if test -n "$configured_native_system_header_dir"; then
11687 native_system_header_dir
=$configured_native_system_header_dir
11689 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11693 powerpc
*-*-darwin*)
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11695 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11696 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11697 $as_echo_n "(cached) " >&6
11699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11702 #include <sys/cdefs.h>
11703 #include <sys/signal.h>
11704 #include <ucontext.h>
11705 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11708 if ac_fn_cxx_try_compile
"$LINENO"; then :
11709 gcc_cv_mcontext_underscores
=no
11711 gcc_cv_mcontext_underscores
=yes
11713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11716 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11717 if test $gcc_cv_mcontext_underscores = yes; then
11719 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11729 # Check if a valid thread package
11730 case ${enable_threads} in
11733 target_thread_file
='single'
11737 target_thread_file
='single'
11739 aix | dce | lynx | mipssde | posix | rtems | \
11740 single | tpf | vxworks | win32
)
11741 target_thread_file
=${enable_threads}
11744 echo "${enable_threads} is an unknown thread package" 1>&2
11749 if test x
${thread_file} = x
; then
11750 # No thread file set by target-specific clauses in config.gcc,
11751 # so use file chosen by default logic above
11752 thread_file
=${target_thread_file}
11760 if test x
$enable___cxa_atexit = xyes || \
11761 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11762 if test x
$host = x
$target; then
11764 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11765 # keyed to flag_use_cxa_atexit
11773 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11774 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11777 echo "__cxa_atexit can't be enabled on this target"
11783 # We can't check for __cxa_atexit when building a cross, so assume
11787 if test x
$use_cxa_atexit = xyes
; then
11789 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11794 # Look for a file containing extra machine modes.
11795 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11796 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11799 cat >>confdefs.h
<<_ACEOF
11800 #define EXTRA_MODES_FILE "config/$extra_modes"
11805 # Convert extra_options into a form suitable for Makefile use.
11808 for f
in $extra_options; do
11809 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11810 all_opt_files
="$all_opt_files $srcdir/config/$f"
11814 # auto-host.h is the file containing items generated by autoconf and is
11815 # the first file included by config.h.
11816 # If host=build, it is correct to have bconfig include auto-host.h
11817 # as well. If host!=build, we are in error and need to do more
11818 # work to find out the build config parameters.
11819 if test x
$host = x
$build
11821 build_auto
=auto-host.h
11823 # We create a subdir, then run autoconf in the subdir.
11824 # To prevent recursion we set host and build for the new
11825 # invocation of configure to the build for this invocation
11832 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11833 *) realsrcdir
=..
/${srcdir};;
11835 # Clearing GMPINC is necessary to prevent host headers being
11836 # used by the build compiler. Defining GENERATOR_FILE stops
11837 # system.h from including gmp.h.
11838 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11839 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11840 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11841 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11842 ${realsrcdir}/configure \
11843 --enable-languages=${enable_languages-all} \
11844 --target=$target_alias --host=$build_alias --build=$build_alias
11846 # We just finished tests for the build machine, so rename
11847 # the file auto-build.h in the gcc directory.
11848 mv auto-host.h ..
/auto-build.h
11851 build_auto
=auto-build.h
11855 tm_file
="${tm_file} defaults.h"
11856 tm_p_file
="${tm_p_file} tm-preds.h"
11857 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11858 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11859 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11860 # put this back in temporarily.
11861 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11867 # Compile in configure arguments.
11868 if test -f configargs.h
; then
11869 # Being re-configured.
11870 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11871 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11872 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11873 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11876 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11879 # Double all backslashes and backslash all quotes to turn
11880 # gcc_config_arguments into a C string.
11881 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11882 $gcc_config_arguments
11884 gcc_config_arguments_str
=`cat conftest.out`
11887 cat > configargs.h
<<EOF
11888 /* Generated automatically. */
11889 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11890 static const char thread_model[] = "$thread_file";
11892 static const struct {
11893 const char *name, *value;
11894 } configure_default_options[] = $configure_default_options;
11897 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11898 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11899 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11900 if test -f $srcdir/REVISION
; then
11901 gcc_REVISION
=`cat $srcdir/REVISION`
11905 cat > plugin-version.h
<<EOF
11906 #include "configargs.h"
11908 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11909 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11910 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11911 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11913 static char basever[] = "$gcc_BASEVER";
11914 static char datestamp[] = "$gcc_DATESTAMP";
11915 static char devphase[] = "$gcc_DEVPHASE";
11916 static char revision[] = "$gcc_REVISION";
11918 /* FIXME plugins: We should make the version information more precise.
11919 One way to do is to add a checksum. */
11921 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11922 devphase, revision,
11923 configuration_arguments};
11926 # Determine what GCC version number to use in filesystem paths.
11928 get_gcc_base_ver
="cat"
11930 # Check whether --with-gcc-major-version-only was given.
11931 if test "${with_gcc_major_version_only+set}" = set; then :
11932 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
11933 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
11941 # Internationalization
11942 # If we haven't got the data from the intl directory,
11943 # assume NLS is disabled.
11952 if test -f ..
/intl
/config.intl
; then
11953 . ..
/intl
/config.intl
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11956 $as_echo_n "checking whether NLS is requested... " >&6; }
11957 if test x
"$USE_NLS" != xyes
; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11962 $as_echo "yes" >&6; }
11964 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11968 $as_echo_n "checking for catalogs to be installed... " >&6; }
11969 # Look for .po and .gmo files in the source directory.
11972 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11973 # If there aren't any .gmo files the shell will give us the
11974 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11976 case "$cat" in *\
**)
11979 # The quadruple backslash is collapsed to a double backslash
11980 # by the backticks, then collapsed again by the double quotes,
11981 # leaving us with one backslash in the sed expression (right
11982 # before the dot that mustn't act as a wildcard).
11983 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11984 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11985 # The user is allowed to set LINGUAS to a list of languages to
11986 # install catalogs for. If it's empty that means "all of them."
11987 if test "x$LINGUAS" = x
; then
11988 CATALOGS
="$CATALOGS $cat"
11989 XLINGUAS
="$XLINGUAS $lang"
11991 case "$LINGUAS" in *$lang*)
11992 CATALOGS
="$CATALOGS $cat"
11993 XLINGUAS
="$XLINGUAS $lang"
11998 LINGUAS
="$XLINGUAS"
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12000 $as_echo "$LINGUAS" >&6; }
12013 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12014 # -liconv on the link line twice.
12015 case "$LIBINTL" in *$LIBICONV*)
12019 # Check whether --enable-secureplt was given.
12020 if test "${enable_secureplt+set}" = set; then :
12021 enableval
=$enable_secureplt;
12025 # Check whether --enable-mingw-wildcard was given.
12026 if test "${enable_mingw_wildcard+set}" = set; then :
12027 enableval
=$enable_mingw_wildcard;
12029 enable_mingw_wildcard
=platform
12032 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12034 cat >>confdefs.h
<<_ACEOF
12035 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12040 # Check whether --enable-leading-mingw64-underscores was given.
12041 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12042 enableval
=$enable_leading_mingw64_underscores;
12045 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12047 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12051 # Check whether --enable-cld was given.
12052 if test "${enable_cld+set}" = set; then :
12053 enableval
=$enable_cld;
12059 # Check whether --enable-frame-pointer was given.
12060 if test "${enable_frame_pointer+set}" = set; then :
12061 enableval
=$enable_frame_pointer;
12065 linux
* | darwin
[8912]*)
12066 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12068 enable_frame_pointer
=no
12071 enable_frame_pointer
=yes
12078 # Windows32 Registry support for specifying GCC installation paths.
12079 # Check whether --enable-win32-registry was given.
12080 if test "${enable_win32_registry+set}" = set; then :
12081 enableval
=$enable_win32_registry;
12086 win32 | pe | cygwin
* | mingw32
*)
12087 if test "x$enable_win32_registry" != xno
; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12089 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12090 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12091 $as_echo_n "(cached) " >&6
12093 ac_func_search_save_LIBS
=$LIBS
12094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12097 /* Override any GCC internal prototype to avoid an error.
12098 Use char because int might match the return type of a GCC
12099 builtin and then its argument prototype would still apply. */
12103 char RegOpenKeyExA ();
12107 return RegOpenKeyExA ();
12112 for ac_lib
in '' advapi32
; do
12113 if test -z "$ac_lib"; then
12114 ac_res
="none required"
12117 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12119 if ac_fn_cxx_try_link
"$LINENO"; then :
12120 ac_cv_search_RegOpenKeyExA
=$ac_res
12122 rm -f core conftest.err conftest.
$ac_objext \
12124 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12128 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12131 ac_cv_search_RegOpenKeyExA
=no
12133 rm conftest.
$ac_ext
12134 LIBS
=$ac_func_search_save_LIBS
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12137 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12138 ac_res
=$ac_cv_search_RegOpenKeyExA
12139 if test "$ac_res" != no
; then :
12140 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12143 enable_win32_registry
=no
12148 if test "x$enable_win32_registry" != xno
; then
12150 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12153 if test "x$enable_win32_registry" != xyes \
12154 && test "x$enable_win32_registry" != x
; then
12156 cat >>confdefs.h
<<_ACEOF
12157 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12165 # Get an absolute path to the GCC top-level source directory
12166 holddir
=`${PWDCMD-pwd}`
12168 topdir
=`${PWDCMD-pwd}`
12171 # Conditionalize the makefile for this host machine.
12173 for f
in ${host_xmake_file}
12175 if test -f ${srcdir}/config
/$f
12177 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12181 # Conditionalize the makefile for this target machine.
12183 for f
in ${tmake_file}
12185 if test -f ${srcdir}/config
/$f
12187 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12190 tmake_file
="${tmake_file_}"
12192 out_object_file
=`basename $out_file .c`.o
12193 common_out_object_file
=`basename $common_out_file .c`.o
12195 tm_file_list
="options.h"
12196 tm_include_list
="options.h insn-constants.h"
12197 for f
in $tm_file; do
12200 f
=`echo $f | sed 's/^..//'`
12201 tm_file_list
="${tm_file_list} $f"
12202 tm_include_list
="${tm_include_list} $f"
12205 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12206 tm_include_list
="${tm_include_list} $f"
12209 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12210 tm_include_list
="${tm_include_list} config/$f"
12217 for f
in $tm_p_file; do
12220 tm_p_file_list
="${tm_p_file_list} $f"
12221 tm_p_include_list
="${tm_p_include_list} $f"
12224 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12225 tm_p_include_list
="${tm_p_include_list} config/$f"
12231 for f
in $xm_file; do
12234 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12235 xm_include_list
="${xm_include_list} $f"
12238 xm_file_list
="${xm_file_list} $f"
12239 xm_include_list
="${xm_include_list} $f"
12242 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12243 xm_include_list
="${xm_include_list} config/$f"
12249 host_xm_include_list
=
12250 for f
in $host_xm_file; do
12253 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12254 host_xm_include_list
="${host_xm_include_list} $f"
12257 host_xm_file_list
="${host_xm_file_list} $f"
12258 host_xm_include_list
="${host_xm_include_list} $f"
12261 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12262 host_xm_include_list
="${host_xm_include_list} config/$f"
12267 build_xm_file_list
=
12268 for f
in $build_xm_file; do
12271 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12272 build_xm_include_list
="${build_xm_include_list} $f"
12274 auto-build.h | auto-host.h
)
12275 build_xm_file_list
="${build_xm_file_list} $f"
12276 build_xm_include_list
="${build_xm_include_list} $f"
12279 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12280 build_xm_include_list
="${build_xm_include_list} config/$f"
12285 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12286 # cross-compiler which does not use the native headers and libraries.
12287 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12290 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12291 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12293 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12294 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12295 if test "x$with_build_sysroot" != x
; then
12296 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12298 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12301 if test x
$host != x
$target
12303 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12305 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12306 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12307 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12310 if test "x$with_build_sysroot" != "x"; then
12311 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12312 elif test "x$with_sysroot" = x
; then
12313 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12314 elif test "x$with_sysroot" = xyes
; then
12315 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12317 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12320 target_header_dir
=${native_system_header_dir}
12323 # If this is a cross-compiler that does not
12324 # have its own set of headers then define
12327 # If this is using newlib, without having the headers available now,
12328 # then define inhibit_libc in LIBGCC2_CFLAGS.
12329 # This prevents libgcc2 from containing any code which requires libc
12331 : ${inhibit_libc=false}
12332 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12333 test x
$with_newlib = xyes
; } &&
12334 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12339 # When building gcc with a cross-compiler, we need to adjust things so
12340 # that the generator programs are still built with the native compiler.
12341 # Also, we cannot run fixincludes.
12343 # These are the normal (build=host) settings:
12344 CC_FOR_BUILD
='$(CC)'
12345 CXX_FOR_BUILD
='$(CXX)'
12346 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12347 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12348 BUILD_LDFLAGS
='$(LDFLAGS)'
12349 STMP_FIXINC
=stmp-fixinc
12351 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12352 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12354 # And these apply if build != host, or we are generating coverage data
12355 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12357 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12358 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12359 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12361 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12362 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12363 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12364 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12369 # Expand extra_headers to include complete path.
12370 # This substitutes for lots of t-* files.
12371 extra_headers_list
=
12372 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12373 for file in ${extra_headers} ; do
12374 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12377 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12378 if test x
"$use_gcc_tgmath" = xyes
12379 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12382 # Define collect2 in Makefile.
12383 case $host_can_use_collect2 in
12385 *) collect2
='collect2$(exeext)' ;;
12389 # Add a definition of USE_COLLECT2 if system wants one.
12390 case $use_collect2 in
12391 no
) use_collect2
= ;;
12394 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12395 xm_defines
="${xm_defines} USE_COLLECT2"
12396 case $host_can_use_collect2 in
12398 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12405 cat >>confdefs.h
<<_ACEOF
12406 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12410 # ---------------------------
12411 # Assembler & linker features
12412 # ---------------------------
12414 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12415 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12416 # However when ld-new is first executed from the build tree, libtool will
12417 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12418 # to the build tree. While doing this we need to use the previous-stage
12419 # linker, or we have an infinite loop. The presence of a shell script as
12420 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12421 # the gcc/collect-ld script. So we need to know how libtool works, or
12422 # exec-tool will fail.
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12428 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12433 macro_version
='2.2.7a'
12434 macro_revision
='1.3134'
12448 ltmain
="$ac_aux_dir/ltmain.sh"
12450 # Backslashify metacharacters that are still active within
12451 # double-quoted strings.
12452 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12454 # Same as above, but do not quote variable references.
12455 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12457 # Sed substitution to delay expansion of an escaped shell variable in a
12458 # double_quote_subst'ed string.
12459 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12461 # Sed substitution to delay expansion of an escaped single quote.
12462 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12464 # Sed substitution to avoid accidental globbing in evaled expressions
12465 no_glob_subst
='s/\*/\\\*/g'
12467 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12468 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12469 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12472 $as_echo_n "checking how to print strings... " >&6; }
12473 # Test print first, because it will be a builtin if present.
12474 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12475 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12477 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12480 # Use this function as a fallback that always works.
12481 func_fallback_echo ()
12483 eval 'cat <<_LTECHO_EOF
12487 ECHO='func_fallback_echo
'
12490 # func_echo_all arg...
12491 # Invoke $ECHO with all args, space-separated.
12498 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12499 $as_echo "printf" >&6; } ;;
12500 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12501 $as_echo "print -r" >&6; } ;;
12502 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12503 $as_echo "cat" >&6; } ;;
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12520 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12521 if test "${ac_cv_path_SED+set}" = set; then :
12522 $as_echo_n "(cached) " >&6
12524 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12525 for ac_i in 1 2 3 4 5 6 7; do
12526 ac_script="$ac_script$as_nl$ac_script"
12528 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12529 { ac_script=; unset ac_script;}
12530 if test -z "$SED"; then
12531 ac_path_SED_found=false
12532 # Loop through the user's path and
test for each of PROGNAME-LIST
12533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12534 for as_dir
in $PATH
12537 test -z "$as_dir" && as_dir
=.
12538 for ac_prog
in sed gsed
; do
12539 for ac_exec_ext
in '' $ac_executable_extensions; do
12540 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12541 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12542 # Check for GNU ac_path_SED and select it if it is found.
12543 # Check for GNU $ac_path_SED
12544 case `"$ac_path_SED" --version 2>&1` in
12546 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12549 $as_echo_n 0123456789 >"conftest.in"
12552 cat "conftest.in" "conftest.in" >"conftest.tmp"
12553 mv "conftest.tmp" "conftest.in"
12554 cp "conftest.in" "conftest.nl"
12555 $as_echo '' >> "conftest.nl"
12556 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12557 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12558 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12559 if test $ac_count -gt ${ac_path_SED_max-0}; then
12560 # Best one so far, save it but keep looking for a better one
12561 ac_cv_path_SED
="$ac_path_SED"
12562 ac_path_SED_max
=$ac_count
12564 # 10*(2^10) chars as input seems more than enough
12565 test $ac_count -gt 10 && break
12567 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12570 $ac_path_SED_found && break 3
12575 if test -z "$ac_cv_path_SED"; then
12576 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12579 ac_cv_path_SED
=$SED
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12584 $as_echo "$ac_cv_path_SED" >&6; }
12585 SED
="$ac_cv_path_SED"
12588 test -z "$SED" && SED
=sed
12589 Xsed
="$SED -e 1s/^X//"
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12602 $as_echo_n "checking for fgrep... " >&6; }
12603 if test "${ac_cv_path_FGREP+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
12606 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12607 then ac_cv_path_FGREP
="$GREP -F"
12609 if test -z "$FGREP"; then
12610 ac_path_FGREP_found
=false
12611 # Loop through the user's path and test for each of PROGNAME-LIST
12612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12613 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12616 test -z "$as_dir" && as_dir
=.
12617 for ac_prog
in fgrep
; do
12618 for ac_exec_ext
in '' $ac_executable_extensions; do
12619 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12620 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12621 # Check for GNU ac_path_FGREP and select it if it is found.
12622 # Check for GNU $ac_path_FGREP
12623 case `"$ac_path_FGREP" --version 2>&1` in
12625 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12628 $as_echo_n 0123456789 >"conftest.in"
12631 cat "conftest.in" "conftest.in" >"conftest.tmp"
12632 mv "conftest.tmp" "conftest.in"
12633 cp "conftest.in" "conftest.nl"
12634 $as_echo 'FGREP' >> "conftest.nl"
12635 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12636 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12637 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12638 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12639 # Best one so far, save it but keep looking for a better one
12640 ac_cv_path_FGREP
="$ac_path_FGREP"
12641 ac_path_FGREP_max
=$ac_count
12643 # 10*(2^10) chars as input seems more than enough
12644 test $ac_count -gt 10 && break
12646 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12649 $ac_path_FGREP_found && break 3
12654 if test -z "$ac_cv_path_FGREP"; then
12655 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12658 ac_cv_path_FGREP
=$FGREP
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12664 $as_echo "$ac_cv_path_FGREP" >&6; }
12665 FGREP
="$ac_cv_path_FGREP"
12668 test -z "$GREP" && GREP
=grep
12688 # Check whether --with-gnu-ld was given.
12689 if test "${with_gnu_ld+set}" = set; then :
12690 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12696 if test "$GCC" = yes; then
12697 # Check if gcc -print-prog-name=ld gives a path.
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12699 $as_echo_n "checking for ld used by $CC... " >&6; }
12702 # gcc leaves a trailing carriage return which upsets mingw
12703 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12705 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12708 # Accept absolute paths.
12710 re_direlt
='/[^/][^/]*/\.\./'
12711 # Canonicalize the pathname of ld
12712 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12713 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12714 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12716 test -z "$LD" && LD
="$ac_prog"
12719 # If it fails, then pretend we aren't using GCC.
12723 # If it is relative, then search for the first ld in PATH.
12724 with_gnu_ld
=unknown
12727 elif test "$with_gnu_ld" = yes; then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12729 $as_echo_n "checking for GNU ld... " >&6; }
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12732 $as_echo_n "checking for non-GNU ld... " >&6; }
12734 if test "${lt_cv_path_LD+set}" = set; then :
12735 $as_echo_n "(cached) " >&6
12737 if test -z "$LD"; then
12738 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12739 for ac_dir
in $PATH; do
12741 test -z "$ac_dir" && ac_dir
=.
12742 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12743 lt_cv_path_LD
="$ac_dir/$ac_prog"
12744 # Check to see if the program is GNU ld. I'd rather use --version,
12745 # but apparently some variants of GNU ld only accept -v.
12746 # Break only if it was the GNU/non-GNU ld that we prefer.
12747 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12748 *GNU
* |
*'with BFD'*)
12749 test "$with_gnu_ld" != no
&& break
12752 test "$with_gnu_ld" != yes && break
12759 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12763 LD
="$lt_cv_path_LD"
12764 if test -n "$LD"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12766 $as_echo "$LD" >&6; }
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 $as_echo "no" >&6; }
12771 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12773 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12774 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12775 $as_echo_n "(cached) " >&6
12777 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12778 case `$LD -v 2>&1 </dev/null` in
12779 *GNU
* |
*'with BFD'*)
12780 lt_cv_prog_gnu_ld
=yes
12783 lt_cv_prog_gnu_ld
=no
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12788 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12789 with_gnu_ld
=$lt_cv_prog_gnu_ld
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12800 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12801 if test "${lt_cv_path_NM+set}" = set; then :
12802 $as_echo_n "(cached) " >&6
12804 if test -n "$NM"; then
12805 # Let the user override the test.
12806 lt_cv_path_NM
="$NM"
12808 lt_nm_to_check
="${ac_tool_prefix}nm"
12809 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12810 lt_nm_to_check
="$lt_nm_to_check nm"
12812 for lt_tmp_nm
in $lt_nm_to_check; do
12813 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12814 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12816 test -z "$ac_dir" && ac_dir
=.
12817 tmp_nm
="$ac_dir/$lt_tmp_nm"
12818 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12819 # Check to see if the nm accepts a BSD-compat flag.
12820 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12821 # nm: unknown option "B" ignored
12822 # Tru64's nm complains that /dev/null is an invalid object file
12823 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12824 */dev
/null
* |
*'Invalid file or object type'*)
12825 lt_cv_path_NM
="$tmp_nm -B"
12829 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12831 lt_cv_path_NM
="$tmp_nm -p"
12835 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12836 continue # so that we can try to find one that supports BSD flags
12845 : ${lt_cv_path_NM=no}
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12849 $as_echo "$lt_cv_path_NM" >&6; }
12850 if test "$lt_cv_path_NM" != "no"; then
12851 NM
="$lt_cv_path_NM"
12853 # Didn't find any BSD compatible name lister, look for dumpbin.
12854 if test -n "$DUMPBIN"; then :
12855 # Let the user override the test.
12857 if test -n "$ac_tool_prefix"; then
12858 for ac_prog
in dumpbin
"link -dump"
12860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12861 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12863 $as_echo_n "checking for $ac_word... " >&6; }
12864 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
12867 if test -n "$DUMPBIN"; then
12868 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12871 for as_dir
in $PATH
12874 test -z "$as_dir" && as_dir
=.
12875 for ac_exec_ext
in '' $ac_executable_extensions; do
12876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12877 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887 DUMPBIN
=$ac_cv_prog_DUMPBIN
12888 if test -n "$DUMPBIN"; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12890 $as_echo "$DUMPBIN" >&6; }
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12897 test -n "$DUMPBIN" && break
12900 if test -z "$DUMPBIN"; then
12901 ac_ct_DUMPBIN
=$DUMPBIN
12902 for ac_prog
in dumpbin
"link -dump"
12904 # Extract the first word of "$ac_prog", so it can be a program name with args.
12905 set dummy
$ac_prog; ac_word
=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12909 $as_echo_n "(cached) " >&6
12911 if test -n "$ac_ct_DUMPBIN"; then
12912 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12915 for as_dir
in $PATH
12918 test -z "$as_dir" && as_dir
=.
12919 for ac_exec_ext
in '' $ac_executable_extensions; do
12920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12921 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12931 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12932 if test -n "$ac_ct_DUMPBIN"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12934 $as_echo "$ac_ct_DUMPBIN" >&6; }
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12941 test -n "$ac_ct_DUMPBIN" && break
12944 if test "x$ac_ct_DUMPBIN" = x
; then
12947 case $cross_compiling:$ac_tool_warned in
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12951 ac_tool_warned
=yes ;;
12953 DUMPBIN
=$ac_ct_DUMPBIN
12957 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12959 DUMPBIN
="$DUMPBIN -symbols"
12967 if test "$DUMPBIN" != ":"; then
12971 test -z "$NM" && NM
=nm
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12979 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12980 if test "${lt_cv_nm_interface+set}" = set; then :
12981 $as_echo_n "(cached) " >&6
12983 lt_cv_nm_interface
="BSD nm"
12984 echo "int some_variable = 0;" > conftest.
$ac_ext
12985 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12986 (eval "$ac_compile" 2>conftest.err
)
12987 cat conftest.err
>&5
12988 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12989 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12990 cat conftest.err
>&5
12991 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12992 cat conftest.out
>&5
12993 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12994 lt_cv_nm_interface
="MS dumpbin"
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12999 $as_echo "$lt_cv_nm_interface" >&6; }
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13002 $as_echo_n "checking whether ln -s works... " >&6; }
13004 if test "$LN_S" = "ln -s"; then
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13006 $as_echo "yes" >&6; }
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13009 $as_echo "no, using $LN_S" >&6; }
13012 # find the maximum length of command line arguments
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13014 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13015 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
13016 $as_echo_n "(cached) " >&6
13023 # On DJGPP, this test can blow up pretty badly due to problems in libc
13024 # (any single argument exceeding 2000 bytes causes a buffer overrun
13025 # during glob expansion). Even if it were fixed, the result of this
13026 # check would be larger than it should be.
13027 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13031 # Under GNU Hurd, this test is not required because there is
13032 # no limit to the length of command line arguments.
13033 # Libtool will interpret -1 as no limit whatsoever
13034 lt_cv_sys_max_cmd_len
=-1;
13037 cygwin
* | mingw
* | cegcc
*)
13038 # On Win9x/ME, this test blows up -- it succeeds, but takes
13039 # about 5 minutes as the teststring grows exponentially.
13040 # Worse, since 9x/ME are not pre-emptively multitasking,
13041 # you end up with a "frozen" computer, even though with patience
13042 # the test eventually succeeds (with a max line length of 256k).
13043 # Instead, let's just punt: use the minimum linelength reported by
13044 # all of the supported platforms: 8192 (on NT/2K/XP).
13045 lt_cv_sys_max_cmd_len
=8192;
13049 # On MiNT this can take a long time and run out of memory.
13050 lt_cv_sys_max_cmd_len
=8192;
13054 # On AmigaOS with pdksh, this test takes hours, literally.
13055 # So we just punt and use a minimum line length of 8192.
13056 lt_cv_sys_max_cmd_len
=8192;
13059 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13060 # This has been around since 386BSD, at least. Likely further.
13061 if test -x /sbin
/sysctl
; then
13062 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13063 elif test -x /usr
/sbin
/sysctl
; then
13064 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13066 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13068 # And add a safety zone
13069 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13070 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13074 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13075 lt_cv_sys_max_cmd_len
=196608
13079 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13080 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13081 # nice to cause kernel panics so lets avoid the loop below.
13082 # First set a reasonable default.
13083 lt_cv_sys_max_cmd_len
=16384
13085 if test -x /sbin
/sysconfig
; then
13086 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13087 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13092 lt_cv_sys_max_cmd_len
=102400
13094 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13095 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13096 if test -n "$kargmax"; then
13097 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13099 lt_cv_sys_max_cmd_len
=32768
13103 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13104 if test -n "$lt_cv_sys_max_cmd_len"; then
13105 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13106 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13108 # Make teststring a little bigger before we do anything with it.
13109 # a 1K string should be a reasonable start.
13110 for i
in 1 2 3 4 5 6 7 8 ; do
13111 teststring
=$teststring$teststring
13113 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13114 # If test is not a shell built-in, we'll probably end up computing a
13115 # maximum length that is only half of the actual maximum length, but
13117 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13118 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13119 test $i != 17 # 1/2 MB should be enough
13122 teststring
=$teststring$teststring
13124 # Only check the string length outside the loop.
13125 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13127 # Add a significant safety factor because C++ compilers can tack on
13128 # massive amounts of additional arguments before passing them to the
13129 # linker. It appears as though 1/2 is a usable value.
13130 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13137 if test -n $lt_cv_sys_max_cmd_len ; then
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13139 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13142 $as_echo "none" >&6; }
13144 max_cmd_len
=$lt_cv_sys_max_cmd_len
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13156 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13157 # Try some XSI features
13159 ( _lt_dummy
="a/b/c"
13160 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13162 && eval 'test $(( 1 + 1 )) -eq 2 \
13163 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13166 $as_echo "$xsi_shell" >&6; }
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13170 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13172 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13174 && lt_shell_append=yes
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13176 $as_echo "$lt_shell_append" >&6; }
13179 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13189 # test EBCDIC or ASCII
13190 case `echo X|tr X '\101'` in
13191 A) # ASCII based system
13192 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13193 lt_SP2NL='tr \040 \012'
13194 lt_NL2SP='tr \015\012 \040\040'
13196 *) # EBCDIC based system
13197 lt_SP2NL='tr \100 \n'
13198 lt_NL2SP='tr \r\n \100\100'
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13211 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13212 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13213 $as_echo_n "(cached
) " >&6
13215 lt_cv_ld_reload_flag='-r'
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13218 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13219 reload_flag=$lt_cv_ld_reload_flag
13220 case $reload_flag in
13222 *) reload_flag=" $reload_flag" ;;
13224 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13227 if test "$GCC" = yes; then
13228 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13230 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13243 if test -n "$ac_tool_prefix"; then
13244 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13245 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13247 $as_echo_n "checking
for $ac_word...
" >&6; }
13248 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13249 $as_echo_n "(cached
) " >&6
13251 if test -n "$OBJDUMP"; then
13252 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255 for as_dir in $PATH
13258 test -z "$as_dir" && as_dir=.
13259 for ac_exec_ext in '' $ac_executable_extensions; do
13260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13261 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13262 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13271 OBJDUMP=$ac_cv_prog_OBJDUMP
13272 if test -n "$OBJDUMP"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13274 $as_echo "$OBJDUMP" >&6; }
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13277 $as_echo "no
" >&6; }
13282 if test -z "$ac_cv_prog_OBJDUMP"; then
13283 ac_ct_OBJDUMP=$OBJDUMP
13284 # Extract the first word of "objdump
", so it can be a program name with args.
13285 set dummy objdump; ac_word=$2
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13287 $as_echo_n "checking
for $ac_word...
" >&6; }
13288 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13289 $as_echo_n "(cached
) " >&6
13291 if test -n "$ac_ct_OBJDUMP"; then
13292 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13295 for as_dir in $PATH
13298 test -z "$as_dir" && as_dir=.
13299 for ac_exec_ext in '' $ac_executable_extensions; do
13300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13301 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13302 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13311 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13312 if test -n "$ac_ct_OBJDUMP"; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13314 $as_echo "$ac_ct_OBJDUMP" >&6; }
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13317 $as_echo "no
" >&6; }
13320 if test "x
$ac_ct_OBJDUMP" = x; then
13323 case $cross_compiling:$ac_tool_warned in
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13326 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13327 ac_tool_warned=yes ;;
13329 OBJDUMP=$ac_ct_OBJDUMP
13332 OBJDUMP="$ac_cv_prog_OBJDUMP"
13335 test -z "$OBJDUMP" && OBJDUMP=objdump
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13346 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13347 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13348 $as_echo_n "(cached
) " >&6
13350 lt_cv_file_magic_cmd='$MAGIC_CMD'
13351 lt_cv_file_magic_test_file=
13352 lt_cv_deplibs_check_method='unknown'
13353 # Need to set the preceding variable on all platforms that support
13354 # interlibrary dependencies.
13355 # 'none' -- dependencies not supported.
13356 # `unknown' -- same as none, but documents that we really don't know.
13357 # 'pass_all' -- all dependencies passed with no checks.
13358 # 'test_compile' -- check by making test program.
13359 # 'file_magic [[regex]]' -- check by looking for files in library path
13360 # which responds to the $file_magic_cmd with a given extended regex.
13361 # If you have `file' or equivalent on your system and you're not sure
13362 # whether `pass_all' will *always* work, you probably want this one.
13366 lt_cv_deplibs_check_method=pass_all
13370 lt_cv_deplibs_check_method=pass_all
13374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13375 lt_cv_file_magic_cmd='/usr/bin/file -L'
13376 lt_cv_file_magic_test_file=/shlib/libc.so
13380 # func_win32_libid is a shell function defined in ltmain.sh
13381 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13382 lt_cv_file_magic_cmd='func_win32_libid'
13386 # Base MSYS/MinGW do not provide the 'file' command needed by
13387 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13388 # unless we find 'file', for example because we are cross-compiling.
13389 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13390 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13391 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13392 lt_cv_file_magic_cmd='func_win32_libid'
13394 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13395 lt_cv_file_magic_cmd='$OBJDUMP -f'
13400 # use the weaker test based on 'objdump'. See mingw*.
13401 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13402 lt_cv_file_magic_cmd='$OBJDUMP -f'
13405 darwin* | rhapsody*)
13406 lt_cv_deplibs_check_method=pass_all
13409 freebsd* | dragonfly*)
13410 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13413 # Not sure whether the presence of OpenBSD here was a mistake.
13414 # Let's accept both of them until this is cleared up.
13415 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13416 lt_cv_file_magic_cmd=/usr/bin/file
13417 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13421 lt_cv_deplibs_check_method=pass_all
13426 lt_cv_deplibs_check_method=pass_all
13430 lt_cv_deplibs_check_method=pass_all
13433 hpux10.20* | hpux11*)
13434 lt_cv_file_magic_cmd=/usr/bin/file
13437 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13438 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13441 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]'
13442 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13445 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13446 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13452 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13456 irix5* | irix6* | nonstopux*)
13458 *-32|*"-32 ") libmagic=32-bit;;
13459 *-n32|*"-n32 ") libmagic=N32;;
13460 *-64|*"-64 ") libmagic=64-bit;;
13461 *) libmagic=never-match;;
13463 lt_cv_deplibs_check_method=pass_all
13466 # This must be Linux ELF.
13467 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13468 lt_cv_deplibs_check_method=pass_all
13472 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13481 lt_cv_file_magic_cmd=/usr/bin/file
13482 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13486 lt_cv_deplibs_check_method=pass_all
13490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13497 osf3* | osf4* | osf5*)
13498 lt_cv_deplibs_check_method=pass_all
13502 lt_cv_deplibs_check_method=pass_all
13506 lt_cv_deplibs_check_method=pass_all
13509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13510 lt_cv_deplibs_check_method=pass_all
13514 case $host_vendor in
13516 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]'
13517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13520 lt_cv_deplibs_check_method=pass_all
13523 lt_cv_file_magic_cmd='/bin/file'
13524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13527 lt_cv_file_magic_cmd='/bin/file'
13528 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13529 lt_cv_file_magic_test_file=/lib/libc.so
13532 lt_cv_deplibs_check_method=pass_all
13535 lt_cv_deplibs_check_method=pass_all
13541 lt_cv_deplibs_check_method=pass_all
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13547 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13548 file_magic_cmd=$lt_cv_file_magic_cmd
13549 deplibs_check_method=$lt_cv_deplibs_check_method
13550 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13563 if test -n "$ac_tool_prefix"; then
13564 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13565 set dummy ${ac_tool_prefix}ar; ac_word=$2
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13567 $as_echo_n "checking
for $ac_word...
" >&6; }
13568 if test "${ac_cv_prog_AR+set}" = set; then :
13569 $as_echo_n "(cached
) " >&6
13571 if test -n "$AR"; then
13572 ac_cv_prog_AR="$AR" # Let the user override the test.
13574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13578 test -z "$as_dir" && as_dir=.
13579 for ac_exec_ext in '' $ac_executable_extensions; do
13580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13581 ac_cv_prog_AR="${ac_tool_prefix}ar"
13582 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13592 if test -n "$AR"; then
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13594 $as_echo "$AR" >&6; }
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13597 $as_echo "no
" >&6; }
13602 if test -z "$ac_cv_prog_AR"; then
13604 # Extract the first word of "ar", so it can be a program name with args.
13605 set dummy ar; ac_word=$2
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13607 $as_echo_n "checking
for $ac_word...
" >&6; }
13608 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13609 $as_echo_n "(cached
) " >&6
13611 if test -n "$ac_ct_AR"; then
13612 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615 for as_dir in $PATH
13618 test -z "$as_dir" && as_dir=.
13619 for ac_exec_ext in '' $ac_executable_extensions; do
13620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13621 ac_cv_prog_ac_ct_AR="ar"
13622 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13631 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13632 if test -n "$ac_ct_AR"; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13634 $as_echo "$ac_ct_AR" >&6; }
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13637 $as_echo "no
" >&6; }
13640 if test "x
$ac_ct_AR" = x; then
13643 case $cross_compiling:$ac_tool_warned in
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13646 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13647 ac_tool_warned=yes ;;
13652 AR="$ac_cv_prog_AR"
13655 test -z "$AR" && AR=ar
13656 test -z "$AR_FLAGS" && AR_FLAGS=cru
13668 if test -n "$ac_tool_prefix"; then
13669 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13670 set dummy ${ac_tool_prefix}strip; ac_word=$2
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13672 $as_echo_n "checking
for $ac_word...
" >&6; }
13673 if test "${ac_cv_prog_STRIP+set}" = set; then :
13674 $as_echo_n "(cached
) " >&6
13676 if test -n "$STRIP"; then
13677 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680 for as_dir in $PATH
13683 test -z "$as_dir" && as_dir=.
13684 for ac_exec_ext in '' $ac_executable_extensions; do
13685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13686 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13687 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13696 STRIP=$ac_cv_prog_STRIP
13697 if test -n "$STRIP"; then
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13699 $as_echo "$STRIP" >&6; }
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13702 $as_echo "no
" >&6; }
13707 if test -z "$ac_cv_prog_STRIP"; then
13709 # Extract the first word of "strip
", so it can be a program name with args.
13710 set dummy strip; ac_word=$2
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13712 $as_echo_n "checking
for $ac_word...
" >&6; }
13713 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13714 $as_echo_n "(cached
) " >&6
13716 if test -n "$ac_ct_STRIP"; then
13717 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720 for as_dir in $PATH
13723 test -z "$as_dir" && as_dir=.
13724 for ac_exec_ext in '' $ac_executable_extensions; do
13725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13726 ac_cv_prog_ac_ct_STRIP="strip
"
13727 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13736 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13737 if test -n "$ac_ct_STRIP"; then
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13739 $as_echo "$ac_ct_STRIP" >&6; }
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13742 $as_echo "no
" >&6; }
13745 if test "x
$ac_ct_STRIP" = x; then
13748 case $cross_compiling:$ac_tool_warned in
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13751 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13752 ac_tool_warned=yes ;;
13757 STRIP="$ac_cv_prog_STRIP"
13760 test -z "$STRIP" && STRIP=:
13767 if test -n "$ac_tool_prefix"; then
13768 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13771 $as_echo_n "checking
for $ac_word...
" >&6; }
13772 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13773 $as_echo_n "(cached
) " >&6
13775 if test -n "$RANLIB"; then
13776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13779 for as_dir in $PATH
13782 test -z "$as_dir" && as_dir=.
13783 for ac_exec_ext in '' $ac_executable_extensions; do
13784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13785 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13786 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13795 RANLIB=$ac_cv_prog_RANLIB
13796 if test -n "$RANLIB"; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13798 $as_echo "$RANLIB" >&6; }
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13801 $as_echo "no
" >&6; }
13806 if test -z "$ac_cv_prog_RANLIB"; then
13807 ac_ct_RANLIB=$RANLIB
13808 # Extract the first word of "ranlib
", so it can be a program name with args.
13809 set dummy ranlib; ac_word=$2
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13811 $as_echo_n "checking
for $ac_word...
" >&6; }
13812 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13813 $as_echo_n "(cached
) " >&6
13815 if test -n "$ac_ct_RANLIB"; then
13816 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $PATH
13822 test -z "$as_dir" && as_dir=.
13823 for ac_exec_ext in '' $ac_executable_extensions; do
13824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13825 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13826 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13835 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13836 if test -n "$ac_ct_RANLIB"; then
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13838 $as_echo "$ac_ct_RANLIB" >&6; }
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13841 $as_echo "no
" >&6; }
13844 if test "x
$ac_ct_RANLIB" = x; then
13847 case $cross_compiling:$ac_tool_warned in
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13850 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13851 ac_tool_warned=yes ;;
13853 RANLIB=$ac_ct_RANLIB
13856 RANLIB="$ac_cv_prog_RANLIB"
13859 test -z "$RANLIB" && RANLIB=:
13866 # Determine commands to create old-style static archives.
13867 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13868 old_postinstall_cmds='chmod 644 $oldlib'
13869 old_postuninstall_cmds=
13871 if test -n "$RANLIB"; then
13874 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13877 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13880 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13885 lock_old_archive_extraction=yes ;;
13887 lock_old_archive_extraction=no ;;
13928 # If no C compiler was specified, use CC.
13931 # If no C compiler flags were specified, use CFLAGS.
13932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13934 # Allow CC to be a program name with arguments.
13938 # Check for command to grab the raw symbol name followed by C symbol from nm.
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13940 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13941 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13942 $as_echo_n "(cached
) " >&6
13945 # These are sane defaults that work on at least a few old systems.
13946 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13948 # Character class describing NM global symbol codes.
13949 symcode='[BCDEGRST]'
13951 # Regexp to match symbols that can be accessed directly from C.
13952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13954 # Define system-specific variables.
13959 cygwin* | mingw* | pw32* | cegcc*)
13960 symcode='[ABCDGISTW]'
13963 if test "$host_cpu" = ia64; then
13964 symcode='[ABCDEGRST]'
13967 irix* | nonstopux*)
13968 symcode='[BCDEGRST]'
13971 symcode='[BCDEGQRST]'
13982 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13990 # If we're using GNU nm, then use its standard symbol codes.
13991 case `$NM -V 2>&1` in
13992 *GNU* | *'with BFD'*)
13993 symcode='[ABCDGIRSTW]' ;;
13996 # Transform an extracted symbol line into a proper C declaration.
13997 # Some systems (esp. on ia64) link data and code symbols differently,
13998 # so use this general approach.
13999 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14001 # Transform an extracted symbol line into symbol name and symbol address
14002 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14003 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'"
14005 # Handle CRLF in mingw tool chain
14009 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14013 # Try without a prefix underscore, then with it.
14014 for ac_symprfx in "" "_
"; do
14016 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14017 symxfrm="\\1 $ac_symprfx\\2 \\2"
14019 # Write the raw and C identifiers.
14020 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14021 # Fake it for dumpbin and say T for any non-static function
14022 # and D for any global variable.
14023 # Also find C++ and __fastcall symbols from MSVC++,
14024 # which start with @ or ?.
14025 lt_cv_sys_global_symbol_pipe="$AWK '"\
14026 " {last_section=section; section=\$ 3};"\
14027 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14028 " \$ 0!~/External *\|/{next};"\
14029 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14030 " {if(hide[section]) next};"\
14031 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14032 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14033 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14034 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14035 " ' prfx
=^
$ac_symprfx"
14037 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14040 # Check to see that the pipe works correctly.
14044 cat > conftest.$ac_ext <<_LT_EOF
14049 void nm_test_func(void);
14050 void nm_test_func(void){}
14054 int main(){nm_test_var='a';nm_test_func();return(0);}
14057 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14058 (eval $ac_compile) 2>&5
14060 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14061 test $ac_status = 0; }; then
14062 # Now try to grab the symbols.
14064 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14065 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14067 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14068 test $ac_status = 0; } && test -s "$nlist"; then
14069 # Try sorting and uniquifying the output.
14070 if sort "$nlist" | uniq > "$nlist"T; then
14071 mv -f "$nlist"T "$nlist"
14076 # Make sure that we snagged all the symbols we need.
14077 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14078 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14079 cat <<_LT_EOF > conftest.$ac_ext
14085 # Now generate the symbol file.
14086 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14088 cat <<_LT_EOF >> conftest.$ac_ext
14090 /* The mapping between symbol names and symbols. */
14095 lt__PROGRAM__LTX_preloaded_symbols[] =
14097 { "@PROGRAM@
", (void *) 0 },
14099 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14100 cat <<\_LT_EOF >> conftest.$ac_ext
14104 /* This works around a problem in FreeBSD linker */
14105 #ifdef FREEBSD_WORKAROUND
14106 static const void *lt_preloaded_setup() {
14107 return lt__PROGRAM__LTX_preloaded_symbols;
14115 # Now try linking the two files.
14116 mv conftest.$ac_objext conftstm.$ac_objext
14117 lt_save_LIBS="$LIBS"
14118 lt_save_CFLAGS="$CFLAGS"
14119 LIBS="conftstm.
$ac_objext"
14120 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14121 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14122 (eval $ac_link) 2>&5
14124 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14125 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14128 LIBS="$lt_save_LIBS"
14129 CFLAGS="$lt_save_CFLAGS"
14131 echo "cannot
find nm_test_func
in $nlist" >&5
14134 echo "cannot
find nm_test_var
in $nlist" >&5
14137 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14140 echo "$progname: failed program was
:" >&5
14141 cat conftest.$ac_ext >&5
14143 rm -rf conftest* conftst*
14145 # Do not use the global_symbol_pipe unless it works.
14146 if test "$pipe_works" = yes; then
14149 lt_cv_sys_global_symbol_pipe=
14155 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14156 lt_cv_sys_global_symbol_to_cdecl=
14158 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14160 $as_echo "failed
" >&6; }
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14163 $as_echo "ok
" >&6; }
14187 # Check whether --enable-libtool-lock was given.
14188 if test "${enable_libtool_lock+set}" = set; then :
14189 enableval=$enable_libtool_lock;
14192 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14194 # Some flags need to be propagated to the compiler or linker for good
14198 # Find out which ABI we are using.
14199 echo 'int i;' > conftest.$ac_ext
14200 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14201 (eval $ac_compile) 2>&5
14203 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14204 test $ac_status = 0; }; then
14205 case `/usr/bin/file conftest.$ac_objext` in
14207 HPUX_IA64_MODE="32"
14210 HPUX_IA64_MODE="64"
14217 # Find out which ABI we are using.
14218 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14219 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14220 (eval $ac_compile) 2>&5
14222 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14223 test $ac_status = 0; }; then
14224 if test "$lt_cv_prog_gnu_ld" = yes; then
14225 case `/usr/bin/file conftest.$ac_objext` in
14227 LD="${LD-ld} -melf32bsmip"
14230 LD="${LD-ld} -melf32bmipn32"
14233 LD="${LD-ld} -melf64bmip"
14237 case `/usr/bin/file conftest.$ac_objext` in
14253 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14254 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14255 # Find out which ABI we are using.
14256 echo 'int i;' > conftest.$ac_ext
14257 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14258 (eval $ac_compile) 2>&5
14260 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14261 test $ac_status = 0; }; then
14262 case `/usr/bin/file conftest.o` in
14265 x86_64-*kfreebsd*-gnu)
14266 LD="${LD-ld} -m elf_i386_fbsd
"
14269 case `/usr/bin/file conftest.o` in
14271 LD="${LD-ld} -m elf32_x86_64
"
14274 LD="${LD-ld} -m elf_i386
"
14278 powerpc64le-*linux*)
14279 LD="${LD-ld} -m elf32lppclinux
"
14282 LD="${LD-ld} -m elf32ppclinux
"
14285 LD="${LD-ld} -m elf_s390
"
14288 LD="${LD-ld} -m elf32_sparc
"
14294 x86_64-*kfreebsd*-gnu)
14295 LD="${LD-ld} -m elf_x86_64_fbsd
"
14298 LD="${LD-ld} -m elf_x86_64
"
14301 LD="${LD-ld} -m elf64lppc
"
14304 LD="${LD-ld} -m elf64ppc
"
14306 s390*-*linux*|s390*-*tpf*)
14307 LD="${LD-ld} -m elf64_s390
"
14310 LD="${LD-ld} -m elf64_sparc
"
14320 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14321 SAVE_CFLAGS="$CFLAGS"
14322 CFLAGS="$CFLAGS -belf"
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14324 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14325 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14326 $as_echo_n "(cached
) " >&6
14329 ac_cpp='$CPP $CPPFLAGS'
14330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14345 if ac_fn_c_try_link "$LINENO"; then :
14346 lt_cv_cc_needs_belf=yes
14348 lt_cv_cc_needs_belf=no
14350 rm -f core conftest.err conftest.$ac_objext \
14351 conftest$ac_exeext conftest.$ac_ext
14353 ac_cpp='$CPP $CPPFLAGS'
14354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14360 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14361 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14362 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14363 CFLAGS="$SAVE_CFLAGS"
14367 # Find out which ABI we are using.
14368 echo 'int i;' > conftest.$ac_ext
14369 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14370 (eval $ac_compile) 2>&5
14372 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14373 test $ac_status = 0; }; then
14374 case `/usr/bin/file conftest.o` in
14376 case $lt_cv_prog_gnu_ld in
14377 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14379 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14391 need_locks="$enable_libtool_lock"
14395 rhapsody* | darwin*)
14396 if test -n "$ac_tool_prefix"; then
14397 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14398 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14400 $as_echo_n "checking
for $ac_word...
" >&6; }
14401 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14402 $as_echo_n "(cached
) " >&6
14404 if test -n "$DSYMUTIL"; then
14405 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14408 for as_dir in $PATH
14411 test -z "$as_dir" && as_dir=.
14412 for ac_exec_ext in '' $ac_executable_extensions; do
14413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14414 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14415 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14424 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14425 if test -n "$DSYMUTIL"; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14427 $as_echo "$DSYMUTIL" >&6; }
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14430 $as_echo "no
" >&6; }
14435 if test -z "$ac_cv_prog_DSYMUTIL"; then
14436 ac_ct_DSYMUTIL=$DSYMUTIL
14437 # Extract the first word of "dsymutil
", so it can be a program name with args.
14438 set dummy dsymutil; ac_word=$2
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14440 $as_echo_n "checking
for $ac_word...
" >&6; }
14441 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14442 $as_echo_n "(cached
) " >&6
14444 if test -n "$ac_ct_DSYMUTIL"; then
14445 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14448 for as_dir in $PATH
14451 test -z "$as_dir" && as_dir=.
14452 for ac_exec_ext in '' $ac_executable_extensions; do
14453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14454 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14455 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14464 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14465 if test -n "$ac_ct_DSYMUTIL"; then
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14467 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14470 $as_echo "no
" >&6; }
14473 if test "x
$ac_ct_DSYMUTIL" = x; then
14476 case $cross_compiling:$ac_tool_warned in
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14479 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14480 ac_tool_warned=yes ;;
14482 DSYMUTIL=$ac_ct_DSYMUTIL
14485 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14488 if test -n "$ac_tool_prefix"; then
14489 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14490 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14492 $as_echo_n "checking
for $ac_word...
" >&6; }
14493 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14494 $as_echo_n "(cached
) " >&6
14496 if test -n "$NMEDIT"; then
14497 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14500 for as_dir in $PATH
14503 test -z "$as_dir" && as_dir=.
14504 for ac_exec_ext in '' $ac_executable_extensions; do
14505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14506 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14507 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14516 NMEDIT=$ac_cv_prog_NMEDIT
14517 if test -n "$NMEDIT"; then
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14519 $as_echo "$NMEDIT" >&6; }
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14522 $as_echo "no
" >&6; }
14527 if test -z "$ac_cv_prog_NMEDIT"; then
14528 ac_ct_NMEDIT=$NMEDIT
14529 # Extract the first word of "nmedit
", so it can be a program name with args.
14530 set dummy nmedit; ac_word=$2
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14532 $as_echo_n "checking
for $ac_word...
" >&6; }
14533 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14534 $as_echo_n "(cached
) " >&6
14536 if test -n "$ac_ct_NMEDIT"; then
14537 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14540 for as_dir in $PATH
14543 test -z "$as_dir" && as_dir=.
14544 for ac_exec_ext in '' $ac_executable_extensions; do
14545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14546 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14547 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14556 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14557 if test -n "$ac_ct_NMEDIT"; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14559 $as_echo "$ac_ct_NMEDIT" >&6; }
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14562 $as_echo "no
" >&6; }
14565 if test "x
$ac_ct_NMEDIT" = x; then
14568 case $cross_compiling:$ac_tool_warned in
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14571 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14572 ac_tool_warned=yes ;;
14574 NMEDIT=$ac_ct_NMEDIT
14577 NMEDIT="$ac_cv_prog_NMEDIT"
14580 if test -n "$ac_tool_prefix"; then
14581 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14582 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14584 $as_echo_n "checking
for $ac_word...
" >&6; }
14585 if test "${ac_cv_prog_LIPO+set}" = set; then :
14586 $as_echo_n "(cached
) " >&6
14588 if test -n "$LIPO"; then
14589 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14592 for as_dir in $PATH
14595 test -z "$as_dir" && as_dir=.
14596 for ac_exec_ext in '' $ac_executable_extensions; do
14597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14598 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14599 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14608 LIPO=$ac_cv_prog_LIPO
14609 if test -n "$LIPO"; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14611 $as_echo "$LIPO" >&6; }
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14614 $as_echo "no
" >&6; }
14619 if test -z "$ac_cv_prog_LIPO"; then
14621 # Extract the first word of "lipo
", so it can be a program name with args.
14622 set dummy lipo; ac_word=$2
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14624 $as_echo_n "checking
for $ac_word...
" >&6; }
14625 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14626 $as_echo_n "(cached
) " >&6
14628 if test -n "$ac_ct_LIPO"; then
14629 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14632 for as_dir in $PATH
14635 test -z "$as_dir" && as_dir=.
14636 for ac_exec_ext in '' $ac_executable_extensions; do
14637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14638 ac_cv_prog_ac_ct_LIPO="lipo
"
14639 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14648 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14649 if test -n "$ac_ct_LIPO"; then
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14651 $as_echo "$ac_ct_LIPO" >&6; }
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14654 $as_echo "no
" >&6; }
14657 if test "x
$ac_ct_LIPO" = x; then
14660 case $cross_compiling:$ac_tool_warned in
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14663 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14664 ac_tool_warned=yes ;;
14669 LIPO="$ac_cv_prog_LIPO"
14672 if test -n "$ac_tool_prefix"; then
14673 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14674 set dummy ${ac_tool_prefix}otool; ac_word=$2
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14676 $as_echo_n "checking
for $ac_word...
" >&6; }
14677 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14678 $as_echo_n "(cached
) " >&6
14680 if test -n "$OTOOL"; then
14681 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14684 for as_dir in $PATH
14687 test -z "$as_dir" && as_dir=.
14688 for ac_exec_ext in '' $ac_executable_extensions; do
14689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14690 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14691 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14700 OTOOL=$ac_cv_prog_OTOOL
14701 if test -n "$OTOOL"; then
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14703 $as_echo "$OTOOL" >&6; }
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14706 $as_echo "no
" >&6; }
14711 if test -z "$ac_cv_prog_OTOOL"; then
14713 # Extract the first word of "otool
", so it can be a program name with args.
14714 set dummy otool; ac_word=$2
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14716 $as_echo_n "checking
for $ac_word...
" >&6; }
14717 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14718 $as_echo_n "(cached
) " >&6
14720 if test -n "$ac_ct_OTOOL"; then
14721 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14724 for as_dir in $PATH
14727 test -z "$as_dir" && as_dir=.
14728 for ac_exec_ext in '' $ac_executable_extensions; do
14729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14730 ac_cv_prog_ac_ct_OTOOL="otool
"
14731 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14740 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14741 if test -n "$ac_ct_OTOOL"; then
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14743 $as_echo "$ac_ct_OTOOL" >&6; }
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14746 $as_echo "no
" >&6; }
14749 if test "x
$ac_ct_OTOOL" = x; then
14752 case $cross_compiling:$ac_tool_warned in
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14755 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14756 ac_tool_warned=yes ;;
14761 OTOOL="$ac_cv_prog_OTOOL"
14764 if test -n "$ac_tool_prefix"; then
14765 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14766 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14768 $as_echo_n "checking
for $ac_word...
" >&6; }
14769 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14770 $as_echo_n "(cached
) " >&6
14772 if test -n "$OTOOL64"; then
14773 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14776 for as_dir in $PATH
14779 test -z "$as_dir" && as_dir=.
14780 for ac_exec_ext in '' $ac_executable_extensions; do
14781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14782 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14783 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14792 OTOOL64=$ac_cv_prog_OTOOL64
14793 if test -n "$OTOOL64"; then
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14795 $as_echo "$OTOOL64" >&6; }
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14798 $as_echo "no
" >&6; }
14803 if test -z "$ac_cv_prog_OTOOL64"; then
14804 ac_ct_OTOOL64=$OTOOL64
14805 # Extract the first word of "otool64
", so it can be a program name with args.
14806 set dummy otool64; ac_word=$2
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14808 $as_echo_n "checking
for $ac_word...
" >&6; }
14809 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14810 $as_echo_n "(cached
) " >&6
14812 if test -n "$ac_ct_OTOOL64"; then
14813 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816 for as_dir in $PATH
14819 test -z "$as_dir" && as_dir=.
14820 for ac_exec_ext in '' $ac_executable_extensions; do
14821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14822 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14823 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14832 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14833 if test -n "$ac_ct_OTOOL64"; then
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14835 $as_echo "$ac_ct_OTOOL64" >&6; }
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14838 $as_echo "no
" >&6; }
14841 if test "x
$ac_ct_OTOOL64" = x; then
14844 case $cross_compiling:$ac_tool_warned in
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14847 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14848 ac_tool_warned=yes ;;
14850 OTOOL64=$ac_ct_OTOOL64
14853 OTOOL64="$ac_cv_prog_OTOOL64"
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14883 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14884 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14885 $as_echo_n "(cached
) " >&6
14887 lt_cv_apple_cc_single_mod=no
14888 if test -z "${LT_MULTI_MODULE}"; then
14889 # By default we will add the -single_module flag. You can override
14890 # by either setting the environment variable LT_MULTI_MODULE
14891 # non-empty at configure time, or by adding -multi_module to the
14893 rm -rf libconftest.dylib*
14894 echo "int foo
(void
){return 1;}" > conftest.c
14895 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14896 -dynamiclib -Wl,-single_module conftest.c
" >&5
14897 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14898 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14900 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14901 lt_cv_apple_cc_single_mod=yes
14903 cat conftest.err >&5
14905 rm -rf libconftest.dylib*
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14910 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14912 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14913 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14914 $as_echo_n "(cached
) " >&6
14916 lt_cv_ld_exported_symbols_list=no
14917 save_LDFLAGS=$LDFLAGS
14918 echo "_main
" > conftest.sym
14919 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14931 if ac_fn_c_try_link "$LINENO"; then :
14932 lt_cv_ld_exported_symbols_list=yes
14934 lt_cv_ld_exported_symbols_list=no
14936 rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14938 LDFLAGS="$save_LDFLAGS"
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14942 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14944 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14945 if test "${lt_cv_ld_force_load+set}" = set; then :
14946 $as_echo_n "(cached
) " >&6
14948 lt_cv_ld_force_load=no
14949 cat > conftest.c << _LT_EOF
14950 int forced_loaded() { return 2;}
14952 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14953 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14954 echo "$AR cru libconftest.a conftest.o
" >&5
14955 $AR cru libconftest.a conftest.o 2>&5
14956 cat > conftest.c << _LT_EOF
14957 int main() { return 0;}
14959 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14960 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14962 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14963 lt_cv_ld_force_load=yes
14965 cat conftest.err >&5
14967 rm -f conftest.err libconftest.a conftest conftest.c
14968 rm -rf conftest.dSYM
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14972 $as_echo "$lt_cv_ld_force_load" >&6; }
14974 rhapsody* | darwin1.[012])
14975 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14977 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14978 darwin*) # darwin 5.x on
14979 # if running on 10.5 or later, the deployment target defaults
14980 # to the OS version, if on x86, and 10.4, the deployment
14981 # target defaults to 10.4. Don't you love it?
14982 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14983 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14984 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14986 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14988 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14992 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14993 _lt_dar_single_mod='$single_module'
14995 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14996 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14998 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15000 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15001 _lt_dsymutil='~$DSYMUTIL $lib || :'
15009 for ac_header in dlfcn.h
15011 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15012 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
15013 cat >>confdefs.h <<_ACEOF
15014 #define HAVE_DLFCN_H 1
15031 enable_win32_dll=no
15034 # Check whether --enable-shared was given.
15035 if test "${enable_shared+set}" = set; then :
15036 enableval=$enable_shared; p=${PACKAGE-default}
15038 yes) enable_shared=yes ;;
15039 no) enable_shared=no ;;
15042 # Look at the argument we got. We use all the common list separators.
15043 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15044 for pkg in $enableval; do
15046 if test "X
$pkg" = "X
$p"; then
15065 # Check whether --enable-static was given.
15066 if test "${enable_static+set}" = set; then :
15067 enableval=$enable_static; p=${PACKAGE-default}
15069 yes) enable_static=yes ;;
15070 no) enable_static=no ;;
15073 # Look at the argument we got. We use all the common list separators.
15074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15075 for pkg in $enableval; do
15077 if test "X
$pkg" = "X
$p"; then
15097 # Check whether --with-pic was given.
15098 if test "${with_pic+set}" = set; then :
15099 withval=$with_pic; pic_mode="$withval"
15105 test -z "$pic_mode" && pic_mode=default
15113 # Check whether --enable-fast-install was given.
15114 if test "${enable_fast_install+set}" = set; then :
15115 enableval=$enable_fast_install; p=${PACKAGE-default}
15117 yes) enable_fast_install=yes ;;
15118 no) enable_fast_install=no ;;
15120 enable_fast_install=no
15121 # Look at the argument we got. We use all the common list separators.
15122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15123 for pkg in $enableval; do
15125 if test "X
$pkg" = "X
$p"; then
15126 enable_fast_install=yes
15133 enable_fast_install=yes
15146 # This can be used to rebuild libtool when needed
15147 LIBTOOL_DEPS="$ltmain"
15149 # Always use our own libtool.
15150 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15177 test -z "$LN_S" && LN_S="ln -s"
15192 if test -n "${ZSH_VERSION+set}" ; then
15193 setopt NO_GLOB_SUBST
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15197 $as_echo_n "checking
for objdir...
" >&6; }
15198 if test "${lt_cv_objdir+set}" = set; then :
15199 $as_echo_n "(cached
) " >&6
15201 rm -f .libs 2>/dev/null
15202 mkdir .libs 2>/dev/null
15203 if test -d .libs; then
15206 # MS-DOS does not allow filenames that begin with a dot.
15209 rmdir .libs 2>/dev/null
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15212 $as_echo "$lt_cv_objdir" >&6; }
15213 objdir=$lt_cv_objdir
15219 cat >>confdefs.h <<_ACEOF
15220 #define LT_OBJDIR "$lt_cv_objdir/"
15228 # AIX sometimes has problems with the GCC collect2 program. For some
15229 # reason, if we set the COLLECT_NAMES environment variable, the problems
15230 # vanish in a puff of smoke.
15231 if test "X
${COLLECT_NAMES+set}" != Xset; then
15233 export COLLECT_NAMES
15238 # Global variables:
15240 can_build_shared=yes
15242 # All known linkers require a `.a' archive for static linking (except MSVC,
15243 # which needs '.lib').
15246 with_gnu_ld="$lt_cv_prog_gnu_ld"
15249 old_CFLAGS="$CFLAGS"
15251 # Set sane defaults for various variables
15252 test -z "$CC" && CC=cc
15253 test -z "$LTCC" && LTCC=$CC
15254 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15255 test -z "$LD" && LD=ld
15256 test -z "$ac_objext" && ac_objext=o
15258 for cc_temp in $compiler""; do
15260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15266 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15269 # Only perform the check for file, if the check method requires it
15270 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15271 case $deplibs_check_method in
15273 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15275 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15277 $as_echo_n "(cached
) " >&6
15281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15284 lt_save_MAGIC_CMD="$MAGIC_CMD"
15285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15286 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15287 for ac_dir in $ac_dummy; do
15289 test -z "$ac_dir" && ac_dir=.
15290 if test -f $ac_dir/${ac_tool_prefix}file; then
15291 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15292 if test -n "$file_magic_test_file"; then
15293 case $deplibs_check_method in
15295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15298 $EGREP "$file_magic_regex" > /dev/null; then
15303 *** Warning: the command libtool uses to detect shared libraries,
15304 *** $file_magic_cmd, produces output that libtool cannot recognize.
15305 *** The result is that libtool may fail to recognize shared libraries
15306 *** as such. This will affect the creation of libtool libraries that
15307 *** depend on shared libraries, but programs linked with such libtool
15308 *** libraries will work regardless of this problem. Nevertheless, you
15309 *** may want to report the problem to your system manager and/or to
15310 *** bug-libtool@gnu.org
15320 MAGIC_CMD="$lt_save_MAGIC_CMD"
15325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15326 if test -n "$MAGIC_CMD"; then
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15328 $as_echo "$MAGIC_CMD" >&6; }
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15331 $as_echo "no
" >&6; }
15338 if test -z "$lt_cv_path_MAGIC_CMD"; then
15339 if test -n "$ac_tool_prefix"; then
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15341 $as_echo_n "checking
for file...
" >&6; }
15342 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15343 $as_echo_n "(cached
) " >&6
15347 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15350 lt_save_MAGIC_CMD="$MAGIC_CMD"
15351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15352 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15353 for ac_dir in $ac_dummy; do
15355 test -z "$ac_dir" && ac_dir=.
15356 if test -f $ac_dir/file; then
15357 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15358 if test -n "$file_magic_test_file"; then
15359 case $deplibs_check_method in
15361 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15362 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15363 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15364 $EGREP "$file_magic_regex" > /dev/null; then
15369 *** Warning: the command libtool uses to detect shared libraries,
15370 *** $file_magic_cmd, produces output that libtool cannot recognize.
15371 *** The result is that libtool may fail to recognize shared libraries
15372 *** as such. This will affect the creation of libtool libraries that
15373 *** depend on shared libraries, but programs linked with such libtool
15374 *** libraries will work regardless of this problem. Nevertheless, you
15375 *** may want to report the problem to your system manager and/or to
15376 *** bug-libtool@gnu.org
15386 MAGIC_CMD="$lt_save_MAGIC_CMD"
15391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15392 if test -n "$MAGIC_CMD"; then
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15394 $as_echo "$MAGIC_CMD" >&6; }
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15397 $as_echo "no
" >&6; }
15410 # Use C for the default configuration in the libtool script
15414 ac_cpp='$CPP $CPPFLAGS'
15415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15420 # Source file extension for C test sources.
15423 # Object file extension for compiled C test sources.
15427 # Code to be used in simple compile tests
15428 lt_simple_compile_test_code="int some_variable
= 0;"
15430 # Code to be used in simple link tests
15431 lt_simple_link_test_code='int main(){return(0);}'
15439 # If no C compiler was specified, use CC.
15442 # If no C compiler flags were specified, use CFLAGS.
15443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15445 # Allow CC to be a program name with arguments.
15448 # Save the default compiler, since it gets overwritten when the other
15449 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15450 compiler_DEFAULT=$CC
15452 # save warnings/boilerplate of simple test code
15453 ac_outfile=conftest.$ac_objext
15454 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15455 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15456 _lt_compiler_boilerplate=`cat conftest.err`
15459 ac_outfile=conftest.$ac_objext
15460 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15461 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15462 _lt_linker_boilerplate=`cat conftest.err`
15467 ## There is no encapsulation within the following macros, do not change
15468 ## the running order or otherwise move them around unless you know exactly
15469 ## what you are doing...
15470 if test -n "$compiler"; then
15472 lt_prog_compiler_no_builtin_flag=
15474 if test "$GCC" = yes; then
15475 case $cc_basename in
15477 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15479 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15483 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15484 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15485 $as_echo_n "(cached
) " >&6
15487 lt_cv_prog_compiler_rtti_exceptions=no
15488 ac_outfile=conftest.$ac_objext
15489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15490 lt_compiler_flag="-fno-rtti -fno-exceptions"
15491 # Insert the option either (1) after the last *FLAGS variable, or
15492 # (2) before a word containing "conftest.
", or (3) at the end.
15493 # Note that $ac_compile itself does not contain backslashes and begins
15494 # with a dollar sign (not a hyphen), so the echo should work correctly.
15495 # The option is referenced via a variable to avoid confusing sed.
15496 lt_compile=`echo "$ac_compile" | $SED \
15497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15499 -e 's:$: $lt_compiler_flag:'`
15500 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15501 (eval "$lt_compile" 2>conftest.err)
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15505 if (exit $ac_status) && test -s "$ac_outfile"; then
15506 # The compiler can only warn and ignore the option if not recognized
15507 # So say no if there are warnings other than the usual output.
15508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15510 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15511 lt_cv_prog_compiler_rtti_exceptions=yes
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15518 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15520 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15521 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15533 lt_prog_compiler_wl=
15534 lt_prog_compiler_pic=
15535 lt_prog_compiler_static=
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15538 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15540 if test "$GCC" = yes; then
15541 lt_prog_compiler_wl='-Wl,'
15542 lt_prog_compiler_static='-static'
15546 # All AIX code is PIC.
15547 if test "$host_cpu" = ia64; then
15548 # AIX 5 now supports IA64 processor
15549 lt_prog_compiler_static='-Bstatic'
15551 lt_prog_compiler_pic='-fPIC'
15557 # see comment about AmigaOS4 .so support
15558 lt_prog_compiler_pic='-fPIC'
15561 # FIXME: we need at least 68020 code to build shared libraries, but
15562 # adding the `-m68020' flag to GCC prevents building anything better,
15564 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15569 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15570 # PIC is the default for these OSes.
15573 mingw* | cygwin* | pw32* | os2* | cegcc*)
15574 # This hack is so that the source file can tell whether it is being
15575 # built for inclusion in a dll (and should export symbols for example).
15576 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15577 # (--disable-auto-import) libraries
15578 lt_prog_compiler_pic='-DDLL_EXPORT'
15581 darwin* | rhapsody*)
15582 # PIC is the default on this platform
15583 # Common symbols not allowed in MH_DYLIB files
15584 lt_prog_compiler_pic='-fno-common'
15588 # PIC is the default for Haiku.
15589 # The "-static" flag exists, but is broken.
15590 lt_prog_compiler_static=
15594 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15595 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15596 # sets the default TLS model and affects inlining.
15602 lt_prog_compiler_pic='-fPIC'
15608 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15609 # Instead, we relocate shared libraries at runtime.
15613 # Just because we use GCC doesn't mean we suddenly get shared libraries
15614 # on systems that don't support them.
15615 lt_prog_compiler_can_build_shared=no
15620 # QNX uses GNU C++, but need to define -shared option too, otherwise
15621 # it will coredump.
15622 lt_prog_compiler_pic='-fPIC -shared'
15626 if test -d /usr/nec; then
15627 lt_prog_compiler_pic=-Kconform_pic
15632 lt_prog_compiler_pic='-fPIC'
15636 case $cc_basename in
15637 nvcc*) # Cuda Compiler Driver 2.2
15638 lt_prog_compiler_wl='-Xlinker '
15639 lt_prog_compiler_pic='-Xcompiler -fPIC'
15643 # PORTME Check for flag to pass linker flags through the system compiler.
15646 lt_prog_compiler_wl='-Wl,'
15647 if test "$host_cpu" = ia64; then
15648 # AIX 5 now supports IA64 processor
15649 lt_prog_compiler_static='-Bstatic'
15651 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15655 mingw* | cygwin* | pw32* | os2* | cegcc*)
15656 # This hack is so that the source file can tell whether it is being
15657 # built for inclusion in a dll (and should export symbols for example).
15658 lt_prog_compiler_pic='-DDLL_EXPORT'
15661 hpux9* | hpux10* | hpux11*)
15662 lt_prog_compiler_wl='-Wl,'
15663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15664 # not for PA HP-UX.
15670 lt_prog_compiler_pic='+Z'
15673 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15674 lt_prog_compiler_static='${wl}-a ${wl}archive'
15677 irix5* | irix6* | nonstopux*)
15678 lt_prog_compiler_wl='-Wl,'
15679 # PIC (with -KPIC) is the default.
15680 lt_prog_compiler_static='-non_shared'
15683 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15684 case $cc_basename in
15685 # old Intel for x86_64 which still supported -KPIC.
15687 lt_prog_compiler_wl='-Wl,'
15688 lt_prog_compiler_pic='-KPIC'
15689 lt_prog_compiler_static='-static'
15691 # icc used to be incompatible with GCC.
15692 # ICC 10 doesn't accept -KPIC any more.
15694 lt_prog_compiler_wl='-Wl,'
15695 lt_prog_compiler_pic='-fPIC'
15696 lt_prog_compiler_static='-static'
15698 # Lahey Fortran 8.1.
15700 lt_prog_compiler_wl='-Wl,'
15701 lt_prog_compiler_pic='--shared'
15702 lt_prog_compiler_static='--static'
15704 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15705 # Portland Group compilers (*not* the Pentium gcc compiler,
15706 # which looks to be a dead project)
15707 lt_prog_compiler_wl='-Wl,'
15708 lt_prog_compiler_pic='-fpic'
15709 lt_prog_compiler_static='-Bstatic'
15712 lt_prog_compiler_wl='-Wl,'
15713 # All Alpha code is PIC.
15714 lt_prog_compiler_static='-non_shared'
15716 xl* | bgxl* | bgf* | mpixl*)
15717 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15718 lt_prog_compiler_wl='-Wl,'
15719 lt_prog_compiler_pic='-qpic'
15720 lt_prog_compiler_static='-qstaticlink'
15723 case `$CC -V 2>&1 | sed 5q` in
15724 *Sun\ F* | *Sun*Fortran*)
15725 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15726 lt_prog_compiler_pic='-KPIC'
15727 lt_prog_compiler_static='-Bstatic'
15728 lt_prog_compiler_wl=''
15732 lt_prog_compiler_pic='-KPIC'
15733 lt_prog_compiler_static='-Bstatic'
15734 lt_prog_compiler_wl='-Wl,'
15742 lt_prog_compiler_pic='-KPIC'
15743 lt_prog_compiler_static='-Bstatic'
15747 # QNX uses GNU C++, but need to define -shared option too, otherwise
15748 # it will coredump.
15749 lt_prog_compiler_pic='-fPIC -shared'
15752 osf3* | osf4* | osf5*)
15753 lt_prog_compiler_wl='-Wl,'
15754 # All OSF/1 code is PIC.
15755 lt_prog_compiler_static='-non_shared'
15759 lt_prog_compiler_static='-non_shared'
15763 lt_prog_compiler_pic='-KPIC'
15764 lt_prog_compiler_static='-Bstatic'
15765 case $cc_basename in
15766 f77* | f90* | f95*)
15767 lt_prog_compiler_wl='-Qoption ld ';;
15769 lt_prog_compiler_wl='-Wl,';;
15774 lt_prog_compiler_wl='-Qoption ld '
15775 lt_prog_compiler_pic='-PIC'
15776 lt_prog_compiler_static='-Bstatic'
15779 sysv4 | sysv4.2uw2* | sysv4.3*)
15780 lt_prog_compiler_wl='-Wl,'
15781 lt_prog_compiler_pic='-KPIC'
15782 lt_prog_compiler_static='-Bstatic'
15786 if test -d /usr/nec ;then
15787 lt_prog_compiler_pic='-Kconform_pic'
15788 lt_prog_compiler_static='-Bstatic'
15792 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15793 lt_prog_compiler_wl='-Wl,'
15794 lt_prog_compiler_pic='-KPIC'
15795 lt_prog_compiler_static='-Bstatic'
15799 lt_prog_compiler_wl='-Wl,'
15800 lt_prog_compiler_can_build_shared=no
15804 lt_prog_compiler_pic='-pic'
15805 lt_prog_compiler_static='-Bstatic'
15809 lt_prog_compiler_can_build_shared=no
15815 # For platforms which do not support PIC, -DPIC is meaningless:
15817 lt_prog_compiler_pic=
15820 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15824 $as_echo "$lt_prog_compiler_pic" >&6; }
15832 # Check to make sure the PIC flag actually works.
15834 if test -n "$lt_prog_compiler_pic"; then
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15836 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15837 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15838 $as_echo_n "(cached
) " >&6
15840 lt_cv_prog_compiler_pic_works=no
15841 ac_outfile=conftest.$ac_objext
15842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15843 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15844 # Insert the option either (1) after the last *FLAGS variable, or
15845 # (2) before a word containing "conftest.
", or (3) at the end.
15846 # Note that $ac_compile itself does not contain backslashes and begins
15847 # with a dollar sign (not a hyphen), so the echo should work correctly.
15848 # The option is referenced via a variable to avoid confusing sed.
15849 lt_compile=`echo "$ac_compile" | $SED \
15850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15852 -e 's:$: $lt_compiler_flag:'`
15853 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15854 (eval "$lt_compile" 2>conftest.err)
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15858 if (exit $ac_status) && test -s "$ac_outfile"; then
15859 # The compiler can only warn and ignore the option if not recognized
15860 # So say no if there are warnings other than the usual output.
15861 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15864 lt_cv_prog_compiler_pic_works=yes
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15871 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15873 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15874 case $lt_prog_compiler_pic in
15876 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15879 lt_prog_compiler_pic=
15880 lt_prog_compiler_can_build_shared=no
15891 # Check to make sure the static flag actually works.
15893 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15895 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15896 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15897 $as_echo_n "(cached
) " >&6
15899 lt_cv_prog_compiler_static_works=no
15900 save_LDFLAGS="$LDFLAGS"
15901 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15902 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15903 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15904 # The linker can only warn and ignore the option if not recognized
15905 # So say no if there are warnings
15906 if test -s conftest.err; then
15907 # Append any errors to the config.log.
15908 cat conftest.err 1>&5
15909 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15911 if diff conftest.exp conftest.er2 >/dev/null; then
15912 lt_cv_prog_compiler_static_works=yes
15915 lt_cv_prog_compiler_static_works=yes
15919 LDFLAGS="$save_LDFLAGS"
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15923 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15925 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15928 lt_prog_compiler_static=
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15938 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15939 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15940 $as_echo_n "(cached
) " >&6
15942 lt_cv_prog_compiler_c_o=no
15943 $RM -r conftest 2>/dev/null
15947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15949 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15950 # Insert the option either (1) after the last *FLAGS variable, or
15951 # (2) before a word containing "conftest.
", or (3) at the end.
15952 # Note that $ac_compile itself does not contain backslashes and begins
15953 # with a dollar sign (not a hyphen), so the echo should work correctly.
15954 lt_compile=`echo "$ac_compile" | $SED \
15955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15957 -e 's:$: $lt_compiler_flag:'`
15958 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15959 (eval "$lt_compile" 2>out/conftest.err)
15961 cat out/conftest.err >&5
15962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15963 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15965 # The compiler can only warn and ignore the option if not recognized
15966 # So say no if there are warnings
15967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15968 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15969 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15970 lt_cv_prog_compiler_c_o=yes
15975 # SGI C++ compiler will create directory out/ii_files/ for
15976 # template instantiation
15977 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15978 $RM out/* && rmdir out
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15985 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15993 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15994 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15995 $as_echo_n "(cached
) " >&6
15997 lt_cv_prog_compiler_c_o=no
15998 $RM -r conftest 2>/dev/null
16002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16004 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16005 # Insert the option either (1) after the last *FLAGS variable, or
16006 # (2) before a word containing "conftest.
", or (3) at the end.
16007 # Note that $ac_compile itself does not contain backslashes and begins
16008 # with a dollar sign (not a hyphen), so the echo should work correctly.
16009 lt_compile=`echo "$ac_compile" | $SED \
16010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16012 -e 's:$: $lt_compiler_flag:'`
16013 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16014 (eval "$lt_compile" 2>out/conftest.err)
16016 cat out/conftest.err >&5
16017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16020 # The compiler can only warn and ignore the option if not recognized
16021 # So say no if there are warnings
16022 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16025 lt_cv_prog_compiler_c_o=yes
16030 # SGI C++ compiler will create directory out/ii_files/ for
16031 # template instantiation
16032 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16033 $RM out/* && rmdir out
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16040 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16045 hard_links="nottested
"
16046 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16047 # do not overwrite the value of need_locks provided by the user
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16049 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16054 ln conftest.a conftest.b 2>&5 || hard_links=no
16055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16057 $as_echo "$hard_links" >&6; }
16058 if test "$hard_links" = no; then
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16060 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16073 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16076 allow_undefined_flag=
16077 always_export_symbols=no
16079 archive_expsym_cmds=
16080 compiler_needs_object=no
16081 enable_shared_with_static_runtimes=no
16082 export_dynamic_flag_spec=
16083 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16084 hardcode_automatic=no
16086 hardcode_direct_absolute=no
16087 hardcode_libdir_flag_spec=
16088 hardcode_libdir_flag_spec_ld=
16089 hardcode_libdir_separator=
16090 hardcode_minus_L=no
16091 hardcode_shlibpath_var=unsupported
16093 link_all_deplibs=unknown
16095 module_expsym_cmds=
16096 old_archive_from_new_cmds=
16097 old_archive_from_expsyms_cmds=
16098 thread_safe_flag_spec=
16099 whole_archive_flag_spec=
16100 # include_expsyms should be a list of space-separated symbols to be *always*
16101 # included in the symbol list
16103 # exclude_expsyms can be an extended regexp of symbols to exclude
16104 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16105 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16106 # as well as any symbol that contains `d'.
16107 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16108 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16109 # platforms (ab)use it in PIC code, but their linkers get confused if
16110 # the symbol is explicitly referenced. Since portable code cannot
16111 # rely on this symbol name, it's probably fine to never include it in
16112 # preloaded symbol tables.
16113 # Exclude shared library initialization/finalization symbols.
16114 extract_expsyms_cmds=
16117 cygwin* | mingw* | pw32* | cegcc*)
16118 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16119 # When not using gcc, we currently assume that we are using
16120 # Microsoft Visual C++.
16121 if test "$GCC" != yes; then
16126 # we just hope/assume this is gcc and not c89 (= MSVC++)
16136 # On some targets, GNU ld is compatible enough with the native linker
16137 # that we're better off using the native interface for both.
16138 lt_use_gnu_ld_interface=no
16139 if test "$with_gnu_ld" = yes; then
16142 # The AIX port of GNU ld has always aspired to compatibility
16143 # with the native linker. However, as the warning in the GNU ld
16144 # block says, versions before 2.19.5* couldn't really create working
16145 # shared libraries, regardless of the interface used.
16146 case `$LD -v 2>&1` in
16147 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16148 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16149 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16151 lt_use_gnu_ld_interface=yes
16156 lt_use_gnu_ld_interface=yes
16161 if test "$lt_use_gnu_ld_interface" = yes; then
16162 # If archive_cmds runs LD, not CC, wlarc should be empty
16165 # Set some defaults for GNU ld with shared library support. These
16166 # are reset later if shared libraries are not supported. Putting them
16167 # here allows them to be overridden if necessary.
16168 runpath_var=LD_RUN_PATH
16169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16170 export_dynamic_flag_spec='${wl}--export-dynamic'
16171 # ancient GNU ld didn't support --whole-archive et. al.
16172 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16173 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16175 whole_archive_flag_spec=
16177 supports_anon_versioning=no
16178 case `$LD -v 2>&1` in
16179 *GNU\ gold*) supports_anon_versioning=yes ;;
16180 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16181 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16182 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16183 *\ 2.11.*) ;; # other 2.11 versions
16184 *) supports_anon_versioning=yes ;;
16187 # See if GNU ld supports shared libraries.
16190 # On AIX/PPC, the GNU linker is very broken
16191 if test "$host_cpu" != ia64; then
16195 *** Warning: the GNU linker, at least up to release 2.19, is reported
16196 *** to be unable to reliably create shared libraries on AIX.
16197 *** Therefore, libtool is disabling shared libraries support. If you
16198 *** really care for shared libraries, you may want to install binutils
16199 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16200 *** You will then need to restart the configuration process.
16209 # see comment about AmigaOS4 .so support
16210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16211 archive_expsym_cmds=''
16214 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)'
16215 hardcode_libdir_flag_spec
='-L$libdir'
16216 hardcode_minus_L
=yes
16222 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16223 allow_undefined_flag
=unsupported
16224 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16225 # support --undefined. This deserves some investigation. FIXME
16226 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16232 cygwin
* | mingw
* | pw32
* | cegcc
*)
16233 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16234 # as there is no search path for DLLs.
16235 hardcode_libdir_flag_spec
='-L$libdir'
16236 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16237 allow_undefined_flag
=unsupported
16238 always_export_symbols
=no
16239 enable_shared_with_static_runtimes
=yes
16240 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16242 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16243 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16244 # If the export-symbols file already is a .def file (1st line
16245 # is EXPORTS), use it as is; otherwise, prepend...
16246 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16247 cp $export_symbols $output_objdir/$soname.def;
16249 echo EXPORTS > $output_objdir/$soname.def;
16250 cat $export_symbols >> $output_objdir/$soname.def;
16252 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16259 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16260 link_all_deplibs
=yes
16265 hardcode_shlibpath_var
=no
16266 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16267 export_dynamic_flag_spec
='${wl}-E'
16268 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16269 # Instead, shared libraries are loaded at an image base (0x10000000 by
16270 # default) and relocated if they conflict, which is a slow very memory
16271 # consuming and fragmenting process. To avoid this, we pick a random,
16272 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16273 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16274 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16275 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'
16278 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16280 if test "$host_os" = linux-dietlibc
; then
16281 case $cc_basename in
16282 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16285 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16286 && test "$tmp_diet" = no
16288 tmp_addflag
=' $pic_flag'
16289 tmp_sharedflag
='-shared'
16290 case $cc_basename,$host_cpu in
16291 pgcc
*) # Portland Group C compiler
16292 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'
16293 tmp_addflag
=' $pic_flag'
16295 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16296 # Portland Group f77 and f90 compilers
16297 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'
16298 tmp_addflag
=' $pic_flag -Mnomain' ;;
16299 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16300 tmp_addflag
=' -i_dynamic' ;;
16301 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16302 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16303 ifc
* | ifort
*) # Intel Fortran compiler
16304 tmp_addflag
=' -nofor_main' ;;
16305 lf95
*) # Lahey Fortran 8.1
16306 whole_archive_flag_spec
=
16307 tmp_sharedflag
='--shared' ;;
16308 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16309 tmp_sharedflag
='-qmkshrobj'
16311 nvcc
*) # Cuda Compiler Driver 2.2
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 compiler_needs_object
=yes
16316 case `$CC -V 2>&1 | sed 5q` in
16317 *Sun\ C
*) # Sun C 5.9
16318 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'
16319 compiler_needs_object
=yes
16320 tmp_sharedflag
='-G' ;;
16321 *Sun\ F
*) # Sun Fortran 8.3
16322 tmp_sharedflag
='-G' ;;
16324 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16326 if test "x$supports_anon_versioning" = xyes
; then
16327 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16328 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16329 echo "local: *; };" >> $output_objdir/$libname.ver~
16330 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16333 case $cc_basename in
16334 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16335 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16336 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16337 hardcode_libdir_flag_spec
=
16338 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16339 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16340 if test "x$supports_anon_versioning" = xyes
; then
16341 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16343 echo "local: *; };" >> $output_objdir/$libname.ver~
16344 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16354 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16355 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16358 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16359 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16364 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16368 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16369 *** create shared libraries on Solaris systems. Therefore, libtool
16370 *** is disabling shared libraries support. We urge you to upgrade GNU
16371 *** binutils to release 2.9.1 or newer. Another option is to modify
16372 *** your PATH or compiler configuration so that the native linker is
16373 *** used, and then restart.
16376 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16377 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16378 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16384 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16385 case `$LD -v 2>&1` in
16386 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16390 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16391 *** reliably create shared libraries on SCO systems. Therefore, libtool
16392 *** is disabling shared libraries support. We urge you to upgrade GNU
16393 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16394 *** your PATH or compiler configuration so that the native linker is
16395 *** used, and then restart.
16400 # For security reasons, it is highly recommended that you always
16401 # use absolute paths for naming shared libraries, and exclude the
16402 # DT_RUNPATH tag from executables and libraries. But doing so
16403 # requires that you compile everything twice, which is a pain.
16404 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16405 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16406 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16407 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16416 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16418 hardcode_direct
=yes
16419 hardcode_shlibpath_var
=no
16423 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16424 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16425 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16432 if test "$ld_shlibs" = no
; then
16434 hardcode_libdir_flag_spec
=
16435 export_dynamic_flag_spec
=
16436 whole_archive_flag_spec
=
16439 # PORTME fill in a description of your system's linker (not GNU ld)
16442 allow_undefined_flag
=unsupported
16443 always_export_symbols
=yes
16444 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'
16445 # Note: this linker hardcodes the directories in LIBPATH if there
16446 # are no directories specified by -L.
16447 hardcode_minus_L
=yes
16448 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16449 # Neither direct hardcoding nor static linking is supported with a
16451 hardcode_direct
=unsupported
16456 if test "$host_cpu" = ia64
; then
16457 # On IA64, the linker does run time linking by default, so we don't
16458 # have to do anything special.
16459 aix_use_runtimelinking
=no
16460 exp_sym_flag
='-Bexport'
16463 # If we're using GNU nm, then we don't want the "-C" option.
16464 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16465 # Also, AIX nm treats weak defined symbols like other global
16466 # defined symbols, whereas GNU nm marks them as "W".
16467 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16468 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'
16470 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'
16472 aix_use_runtimelinking
=no
16474 # Test if we are trying to use run time linking or normal
16475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16476 # need to do runtime linking.
16477 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16478 for ld_flag
in $LDFLAGS; do
16479 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16480 aix_use_runtimelinking
=yes
16487 exp_sym_flag
='-bexport'
16488 no_entry_flag
='-bnoentry'
16491 # When large executables or shared objects are built, AIX ld can
16492 # have problems creating the table of contents. If linking a library
16493 # or program results in "error TOC overflow" add -mminimal-toc to
16494 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16495 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16498 hardcode_direct
=yes
16499 hardcode_direct_absolute
=yes
16500 hardcode_libdir_separator
=':'
16501 link_all_deplibs
=yes
16502 file_list_spec
='${wl}-f,'
16504 if test "$GCC" = yes; then
16505 case $host_os in aix4.
[012]|aix4.
[012].
*)
16506 # We only want to do this on AIX 4.2 and lower, the check
16507 # below for broken collect2 doesn't work under 4.3+
16508 collect2name
=`${CC} -print-prog-name=collect2`
16509 if test -f "$collect2name" &&
16510 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16512 # We have reworked collect2
16515 # We have old collect2
16516 hardcode_direct
=unsupported
16517 # It fails to find uninstalled libraries when the uninstalled
16518 # path is not listed in the libpath. Setting hardcode_minus_L
16519 # to unsupported forces relinking
16520 hardcode_minus_L
=yes
16521 hardcode_libdir_flag_spec
='-L$libdir'
16522 hardcode_libdir_separator
=
16526 shared_flag
='-shared'
16527 if test "$aix_use_runtimelinking" = yes; then
16528 shared_flag
="$shared_flag "'${wl}-G'
16532 if test "$host_cpu" = ia64
; then
16533 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16534 # chokes on -Wl,-G. The following line is correct:
16537 if test "$aix_use_runtimelinking" = yes; then
16538 shared_flag
='${wl}-G'
16540 shared_flag
='${wl}-bM:SRE'
16545 export_dynamic_flag_spec
='${wl}-bexpall'
16546 # It seems that -bexpall does not export symbols beginning with
16547 # underscore (_), so it is better to generate a list of symbols to export.
16548 always_export_symbols
=yes
16549 if test "$aix_use_runtimelinking" = yes; then
16550 # Warning - without using the other runtime loading flags (-brtl),
16551 # -berok will link without error, but may produce a broken library.
16552 allow_undefined_flag
='-berok'
16553 # Determine the default libpath from the value encoded in an
16554 # empty executable.
16555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16566 if ac_fn_c_try_link
"$LINENO"; then :
16568 lt_aix_libpath_sed
='
16569 /Import File Strings/,/^$/ {
16575 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16576 # Check for a 64-bit object if we didn't find anything.
16577 if test -z "$aix_libpath"; then
16578 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16581 rm -f core conftest.err conftest.
$ac_objext \
16582 conftest
$ac_exeext conftest.
$ac_ext
16583 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16585 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16586 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"
16588 if test "$host_cpu" = ia64
; then
16589 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16590 allow_undefined_flag
="-z nodefs"
16591 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"
16593 # Determine the default libpath from the value encoded in an
16594 # empty executable.
16595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16606 if ac_fn_c_try_link
"$LINENO"; then :
16608 lt_aix_libpath_sed
='
16609 /Import File Strings/,/^$/ {
16615 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16616 # Check for a 64-bit object if we didn't find anything.
16617 if test -z "$aix_libpath"; then
16618 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16621 rm -f core conftest.err conftest.
$ac_objext \
16622 conftest
$ac_exeext conftest.
$ac_ext
16623 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16625 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16626 # Warning - without using the other run time loading flags,
16627 # -berok will link without error, but may produce a broken library.
16628 no_undefined_flag
=' ${wl}-bernotok'
16629 allow_undefined_flag
=' ${wl}-berok'
16630 if test "$with_gnu_ld" = yes; then
16631 # We only use this code for GNU lds that support --whole-archive.
16632 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16634 # Exported symbols can be pulled into shared objects from archives
16635 whole_archive_flag_spec
='$convenience'
16637 archive_cmds_need_lc
=yes
16638 # This is similar to how AIX traditionally builds its shared libraries.
16639 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'
16647 # see comment about AmigaOS4 .so support
16648 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16649 archive_expsym_cmds
=''
16652 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)'
16653 hardcode_libdir_flag_spec
='-L$libdir'
16654 hardcode_minus_L
=yes
16660 export_dynamic_flag_spec
=-rdynamic
16663 cygwin
* | mingw
* | pw32
* | cegcc
*)
16664 # When not using gcc, we currently assume that we are using
16665 # Microsoft Visual C++.
16666 # hardcode_libdir_flag_spec is actually meaningless, as there is
16667 # no search path for DLLs.
16668 hardcode_libdir_flag_spec
=' '
16669 allow_undefined_flag
=unsupported
16670 # Tell ltmain to make .lib files, not .a files.
16672 # Tell ltmain to make .dll files, not .so files.
16674 # FIXME: Setting linknames here is a bad hack.
16675 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16676 # The linker will automatically build a .lib file if we build a DLL.
16677 old_archive_from_new_cmds
='true'
16678 # FIXME: Should let the user specify the lib program.
16679 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16680 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16681 enable_shared_with_static_runtimes
=yes
16684 darwin
* | rhapsody
*)
16687 archive_cmds_need_lc
=no
16689 hardcode_automatic
=yes
16690 hardcode_shlibpath_var
=unsupported
16691 if test "$lt_cv_ld_force_load" = "yes"; then
16692 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\"`'
16694 whole_archive_flag_spec
=''
16696 link_all_deplibs
=yes
16697 allow_undefined_flag
="$_lt_dar_allow_undefined"
16698 case $cc_basename in
16699 ifort
*) _lt_dar_can_shared
=yes ;;
16700 *) _lt_dar_can_shared
=$GCC ;;
16702 if test "$_lt_dar_can_shared" = "yes"; then
16703 output_verbose_link_cmd
=func_echo_all
16704 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16705 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16706 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}"
16707 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}"
16716 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_libdir_flag_spec
='-L$libdir'
16718 hardcode_shlibpath_var
=no
16721 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16722 # support. Future versions do this automatically, but an explicit c++rt0.o
16723 # does not break anything, and helps significantly (at the cost of a little
16726 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16727 hardcode_libdir_flag_spec
='-R$libdir'
16728 hardcode_direct
=yes
16729 hardcode_shlibpath_var
=no
16732 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16734 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16735 hardcode_direct
=yes
16736 hardcode_minus_L
=yes
16737 hardcode_shlibpath_var
=no
16740 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16741 freebsd
* | dragonfly
*)
16742 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16743 hardcode_libdir_flag_spec
='-R$libdir'
16744 hardcode_direct
=yes
16745 hardcode_shlibpath_var
=no
16749 if test "$GCC" = yes; then
16750 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'
16752 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'
16754 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16755 hardcode_libdir_separator
=:
16756 hardcode_direct
=yes
16758 # hardcode_minus_L: Not really in the search PATH,
16759 # but as the default location of the library.
16760 hardcode_minus_L
=yes
16761 export_dynamic_flag_spec
='${wl}-E'
16765 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16766 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16768 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16770 if test "$with_gnu_ld" = no
; then
16771 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16772 hardcode_libdir_flag_spec_ld
='+b $libdir'
16773 hardcode_libdir_separator
=:
16774 hardcode_direct
=yes
16775 hardcode_direct_absolute
=yes
16776 export_dynamic_flag_spec
='${wl}-E'
16777 # hardcode_minus_L: Not really in the search PATH,
16778 # but as the default location of the library.
16779 hardcode_minus_L
=yes
16784 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16787 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16790 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16793 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16799 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16802 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16806 # Older versions of the 11.00 compiler do not understand -b yet
16807 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16809 $as_echo_n "checking if $CC understands -b... " >&6; }
16810 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16811 $as_echo_n "(cached) " >&6
16813 lt_cv_prog_compiler__b
=no
16814 save_LDFLAGS
="$LDFLAGS"
16815 LDFLAGS
="$LDFLAGS -b"
16816 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16817 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16818 # The linker can only warn and ignore the option if not recognized
16819 # So say no if there are warnings
16820 if test -s conftest.err
; then
16821 # Append any errors to the config.log.
16822 cat conftest.err
1>&5
16823 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16824 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16825 if diff conftest.exp conftest.er2
>/dev
/null
; then
16826 lt_cv_prog_compiler__b
=yes
16829 lt_cv_prog_compiler__b
=yes
16833 LDFLAGS
="$save_LDFLAGS"
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16837 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16839 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16840 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16842 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16848 if test "$with_gnu_ld" = no
; then
16849 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16850 hardcode_libdir_separator
=:
16855 hardcode_shlibpath_var
=no
16858 hardcode_direct
=yes
16859 hardcode_direct_absolute
=yes
16860 export_dynamic_flag_spec
='${wl}-E'
16862 # hardcode_minus_L: Not really in the search PATH,
16863 # but as the default location of the library.
16864 hardcode_minus_L
=yes
16870 irix5
* | irix6
* | nonstopux
*)
16871 if test "$GCC" = yes; then
16872 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'
16873 # Try to use the -exported_symbol ld option, if it does not
16874 # work, assume that -exports_file does not work either and
16875 # implicitly export all symbols.
16876 save_LDFLAGS
="$LDFLAGS"
16877 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h. */
16882 if ac_fn_c_try_link
"$LINENO"; then :
16883 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'
16886 rm -f core conftest.err conftest.
$ac_objext \
16887 conftest
$ac_exeext conftest.
$ac_ext
16888 LDFLAGS
="$save_LDFLAGS"
16890 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'
16891 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'
16893 archive_cmds_need_lc
='no'
16894 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16895 hardcode_libdir_separator
=:
16897 link_all_deplibs
=yes
16901 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16902 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16904 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16906 hardcode_libdir_flag_spec
='-R$libdir'
16907 hardcode_direct
=yes
16908 hardcode_shlibpath_var
=no
16912 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16913 hardcode_direct
=yes
16914 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16915 hardcode_libdir_separator
=:
16916 hardcode_shlibpath_var
=no
16923 if test -f /usr
/libexec
/ld.so
; then
16924 hardcode_direct
=yes
16925 hardcode_shlibpath_var
=no
16926 hardcode_direct_absolute
=yes
16927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16928 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16929 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16930 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16931 export_dynamic_flag_spec
='${wl}-E'
16934 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16935 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16936 hardcode_libdir_flag_spec
='-R$libdir'
16939 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16940 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16950 hardcode_libdir_flag_spec
='-L$libdir'
16951 hardcode_minus_L
=yes
16952 allow_undefined_flag
=unsupported
16953 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'
16954 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16958 if test "$GCC" = yes; then
16959 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16960 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'
16962 allow_undefined_flag
=' -expect_unresolved \*'
16963 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'
16965 archive_cmds_need_lc
='no'
16966 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16967 hardcode_libdir_separator
=:
16970 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16971 if test "$GCC" = yes; then
16972 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16973 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'
16974 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16976 allow_undefined_flag
=' -expect_unresolved \*'
16977 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'
16978 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~
16979 $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'
16981 # Both c and cxx compiler support -rpath directly
16982 hardcode_libdir_flag_spec
='-rpath $libdir'
16984 archive_cmds_need_lc
='no'
16985 hardcode_libdir_separator
=:
16989 no_undefined_flag
=' -z defs'
16990 if test "$GCC" = yes; then
16992 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16993 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16994 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16996 case `$CC -V 2>&1` in
16999 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17000 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17001 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17005 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17006 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17007 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17011 hardcode_libdir_flag_spec
='-R$libdir'
17012 hardcode_shlibpath_var
=no
17014 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17016 # The compiler driver will combine and reorder linker options,
17017 # but understands `-z linker_flag'. GCC discards it without `$wl',
17018 # but is careful enough not to reorder.
17019 # Supported since Solaris 2.6 (maybe 2.5.1?)
17020 if test "$GCC" = yes; then
17021 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17023 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17027 link_all_deplibs
=yes
17031 if test "x$host_vendor" = xsequent
; then
17032 # Use $CC to link under sequent, because it throws in some extra .o
17033 # files that make .init and .fini sections work.
17034 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17036 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17038 hardcode_libdir_flag_spec
='-L$libdir'
17039 hardcode_direct
=yes
17040 hardcode_minus_L
=yes
17041 hardcode_shlibpath_var
=no
17045 case $host_vendor in
17047 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17048 hardcode_direct
=yes # is this really true???
17051 ## LD is ld it makes a PLAMLIB
17052 ## CC just makes a GrossModule.
17053 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17054 reload_cmds
='$CC -r -o $output$reload_objs'
17058 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17059 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17062 runpath_var
='LD_RUN_PATH'
17063 hardcode_shlibpath_var
=no
17067 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17068 hardcode_shlibpath_var
=no
17069 export_dynamic_flag_spec
='-Bexport'
17073 if test -d /usr
/nec
; then
17074 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17075 hardcode_shlibpath_var
=no
17076 runpath_var
=LD_RUN_PATH
17077 hardcode_runpath_var
=yes
17082 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17083 no_undefined_flag
='${wl}-z,text'
17084 archive_cmds_need_lc
=no
17085 hardcode_shlibpath_var
=no
17086 runpath_var
='LD_RUN_PATH'
17088 if test "$GCC" = yes; then
17089 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17090 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17092 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17093 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17097 sysv5
* | sco3.2v5
* | sco5v6
*)
17098 # Note: We can NOT use -z defs as we might desire, because we do not
17099 # link with -lc, and that would cause any symbols used from libc to
17100 # always be unresolved, which means just about no library would
17101 # ever link correctly. If we're not using GNU ld we use -z text
17102 # though, which does catch some bad symbols but isn't as heavy-handed
17104 no_undefined_flag
='${wl}-z,text'
17105 allow_undefined_flag
='${wl}-z,nodefs'
17106 archive_cmds_need_lc
=no
17107 hardcode_shlibpath_var
=no
17108 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17109 hardcode_libdir_separator
=':'
17110 link_all_deplibs
=yes
17111 export_dynamic_flag_spec
='${wl}-Bexport'
17112 runpath_var
='LD_RUN_PATH'
17114 if test "$GCC" = yes; then
17115 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17116 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17118 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17119 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17124 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17125 hardcode_libdir_flag_spec
='-L$libdir'
17126 hardcode_shlibpath_var
=no
17134 if test x
$host_vendor = xsni
; then
17136 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17137 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17144 $as_echo "$ld_shlibs" >&6; }
17145 test "$ld_shlibs" = no
&& can_build_shared
=no
17147 with_gnu_ld
=$with_gnu_ld
17164 # Do we need to explicitly link libc?
17166 case "x$archive_cmds_need_lc" in
17168 # Assume -lc should be added
17169 archive_cmds_need_lc
=yes
17171 if test "$enable_shared" = yes && test "$GCC" = yes; then
17172 case $archive_cmds in
17174 # FIXME: we may have to deal with multi-command sequences.
17177 # Test whether the compiler implicitly links with -lc since on some
17178 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17179 # to ld, don't add -lc before -lgcc.
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17181 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17182 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17183 $as_echo_n "(cached) " >&6
17186 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17189 (eval $ac_compile) 2>&5
17191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17192 test $ac_status = 0; } 2>conftest.err
; then
17195 libobjs
=conftest.
$ac_objext
17197 wl
=$lt_prog_compiler_wl
17198 pic_flag
=$lt_prog_compiler_pic
17204 lt_save_allow_undefined_flag
=$allow_undefined_flag
17205 allow_undefined_flag
=
17206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17207 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17210 test $ac_status = 0; }
17212 lt_cv_archive_cmds_need_lc
=no
17214 lt_cv_archive_cmds_need_lc
=yes
17216 allow_undefined_flag
=$lt_save_allow_undefined_flag
17218 cat conftest.err
1>&5
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17224 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17225 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17389 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17391 if test "$GCC" = yes; then
17393 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17394 *) lt_awk_arg
="/^libraries:/" ;;
17397 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17398 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17400 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17401 case $lt_search_path_spec in
17403 # if the path contains ";" then we assume it to be the separator
17404 # otherwise default to the standard path separator (i.e. ":") - it is
17405 # assumed that no part of a normal pathname contains ";" but that should
17406 # okay in the real world where ";" in dirpaths is itself problematic.
17407 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17410 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17413 # Ok, now we have the path, separated by spaces, we can step through it
17414 # and add multilib dir if necessary.
17415 lt_tmp_lt_search_path_spec
=
17416 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17417 for lt_sys_path
in $lt_search_path_spec; do
17418 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17419 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17421 test -d "$lt_sys_path" && \
17422 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17425 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17426 BEGIN {RS=" "; FS="/|\n";} {
17429 for (lt_i = NF; lt_i > 0; lt_i--) {
17430 if ($lt_i != "" && $lt_i != ".") {
17431 if ($lt_i == "..") {
17434 if (lt_count == 0) {
17435 lt_foo="/" $lt_i lt_foo;
17442 if (lt_foo != "") { lt_freq[lt_foo]++; }
17443 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17445 # AWK program above erroneously prepends '/' to C:/dos/paths
17448 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17449 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17451 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17453 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17455 library_names_spec
=
17456 libname_spec
='lib$name'
17460 postuninstall_cmds
=
17464 shlibpath_overrides_runpath
=unknown
17466 dynamic_linker
="$host_os ld.so"
17467 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17468 need_lib_prefix
=unknown
17469 hardcode_into_libs
=no
17471 # when you set need_version to no, make sure it does not cause -set_version
17472 # flags to be left without arguments
17473 need_version
=unknown
17478 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17479 shlibpath_var
=LIBPATH
17481 # AIX 3 has no versioning support, so we append a major version to the name.
17482 soname_spec
='${libname}${release}${shared_ext}$major'
17489 hardcode_into_libs
=yes
17490 if test "$host_cpu" = ia64
; then
17491 # AIX 5 supports IA64
17492 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17493 shlibpath_var
=LD_LIBRARY_PATH
17495 # With GCC up to 2.95.x, collect2 would create an import file
17496 # for dependence libraries. The import file would start with
17497 # the line `#! .'. This would cause the generated library to
17498 # depend on `.', always an invalid library. This was fixed in
17499 # development snapshots of GCC prior to 3.0.
17501 aix4 | aix4.
[01] | aix4.
[01].
*)
17502 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17504 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17507 can_build_shared
=no
17511 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17512 # soname into executable. Probably we can add versioning support to
17513 # collect2, so additional links can be useful in future.
17514 if test "$aix_use_runtimelinking" = yes; then
17515 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17516 # instead of lib<name>.a to let people know that these are not
17517 # typical AIX shared libraries.
17518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520 # We preserve .a as extension for shared libraries through AIX4.2
17521 # and later when we are not doing run time linking.
17522 library_names_spec
='${libname}${release}.a $libname.a'
17523 soname_spec
='${libname}${release}${shared_ext}$major'
17525 shlibpath_var
=LIBPATH
17532 # Since July 2007 AmigaOS4 officially supports .so libraries.
17533 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17534 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17537 library_names_spec
='$libname.ixlibrary $libname.a'
17538 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17539 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'
17545 library_names_spec
='${libname}${shared_ext}'
17546 dynamic_linker
="$host_os ld.so"
17547 shlibpath_var
=LIBRARY_PATH
17553 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec
='${libname}${release}${shared_ext}$major'
17555 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17556 shlibpath_var
=LD_LIBRARY_PATH
17557 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17558 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17559 # the default ld.so.conf also contains /usr/contrib/lib and
17560 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17561 # libtool to hard-code these into programs
17564 cygwin
* | mingw
* | pw32
* | cegcc
*)
17565 version_type
=windows
17570 case $GCC,$host_os in
17571 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17572 library_names_spec
='$libname.dll.a'
17573 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17574 postinstall_cmds
='base_file=`basename \${file}`~
17575 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17576 dldir=$destdir/`dirname \$dlpath`~
17577 test -d \$dldir || mkdir -p \$dldir~
17578 $install_prog $dir/$dlname \$dldir/$dlname~
17579 chmod a+x \$dldir/$dlname~
17580 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17581 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17583 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17584 dlpath=$dir/\$dldll~
17586 shlibpath_overrides_runpath
=yes
17590 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17591 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17593 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17596 # MinGW DLLs use traditional 'lib' prefix
17597 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17600 # pw32 DLLs use 'pw' prefix rather than 'lib'
17601 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17607 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17610 dynamic_linker
='Win32 ld.exe'
17611 # FIXME: first we should search . and the directory the executable is in
17615 darwin
* | rhapsody
*)
17616 dynamic_linker
="$host_os dyld"
17617 version_type
=darwin
17620 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17621 soname_spec
='${libname}${release}${major}$shared_ext'
17622 shlibpath_overrides_runpath
=yes
17623 shlibpath_var
=DYLD_LIBRARY_PATH
17624 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17626 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17627 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17634 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17635 soname_spec
='${libname}${release}${shared_ext}$major'
17636 shlibpath_var
=LD_LIBRARY_PATH
17639 freebsd
* | dragonfly
*)
17640 # DragonFly does not have aout. When/if they implement a new
17641 # versioning mechanism, adjust this.
17642 if test -x /usr
/bin
/objformat
; then
17643 objformat
=`/usr/bin/objformat`
17646 freebsd
[23].
*) objformat
=aout
;;
17647 *) objformat
=elf
;;
17650 version_type
=freebsd-
$objformat
17651 case $version_type in
17653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17658 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17662 shlibpath_var
=LD_LIBRARY_PATH
17665 shlibpath_overrides_runpath
=yes
17667 freebsd3.
[01]* | freebsdelf3.
[01]*)
17668 shlibpath_overrides_runpath
=yes
17669 hardcode_into_libs
=yes
17671 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17672 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17673 shlibpath_overrides_runpath
=no
17674 hardcode_into_libs
=yes
17676 *) # from 4.6 on, and DragonFly
17677 shlibpath_overrides_runpath
=yes
17678 hardcode_into_libs
=yes
17687 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17688 soname_spec
='${libname}${release}${shared_ext}$major'
17689 shlibpath_var
=LD_LIBRARY_PATH
17690 hardcode_into_libs
=yes
17697 dynamic_linker
="$host_os runtime_loader"
17698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17699 soname_spec
='${libname}${release}${shared_ext}$major'
17700 shlibpath_var
=LIBRARY_PATH
17701 shlibpath_overrides_runpath
=yes
17702 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17703 hardcode_into_libs
=yes
17706 hpux9
* | hpux10
* | hpux11
*)
17707 # Give a soname corresponding to the major version so that dld.sl refuses to
17708 # link against other versions.
17715 hardcode_into_libs
=yes
17716 dynamic_linker
="$host_os dld.so"
17717 shlibpath_var
=LD_LIBRARY_PATH
17718 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17719 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17720 soname_spec
='${libname}${release}${shared_ext}$major'
17721 if test "X$HPUX_IA64_MODE" = X32
; then
17722 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17724 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17726 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17730 hardcode_into_libs
=yes
17731 dynamic_linker
="$host_os dld.sl"
17732 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_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 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17737 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17741 dynamic_linker
="$host_os dld.sl"
17742 shlibpath_var
=SHLIB_PATH
17743 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17744 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17745 soname_spec
='${libname}${release}${shared_ext}$major'
17748 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17749 postinstall_cmds
='chmod 555 $lib'
17750 # or fails outright, so override atomically:
17751 install_override_mode
=555
17758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17759 soname_spec
='${libname}${release}${shared_ext}$major'
17760 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17761 shlibpath_var
=LD_LIBRARY_PATH
17762 shlibpath_overrides_runpath
=no
17763 hardcode_into_libs
=yes
17766 irix5
* | irix6
* | nonstopux
*)
17768 nonstopux
*) version_type
=nonstopux
;;
17770 if test "$lt_cv_prog_gnu_ld" = yes; then
17778 soname_spec
='${libname}${release}${shared_ext}$major'
17779 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17781 irix5
* | nonstopux
*)
17782 libsuff
= shlibsuff
=
17785 case $LD in # libtool.m4 will add one of these switches to LD
17786 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17787 libsuff
= shlibsuff
= libmagic
=32-bit;;
17788 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17789 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17790 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17791 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17792 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17796 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17797 shlibpath_overrides_runpath
=no
17798 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17799 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17800 hardcode_into_libs
=yes
17803 # No shared lib support for Linux oldld, aout, or coff.
17804 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17808 # This must be Linux ELF.
17809 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814 soname_spec
='${libname}${release}${shared_ext}$major'
17815 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17816 shlibpath_var
=LD_LIBRARY_PATH
17817 shlibpath_overrides_runpath
=no
17819 # Some binutils ld are patched to set DT_RUNPATH
17820 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17821 $as_echo_n "(cached) " >&6
17823 lt_cv_shlibpath_overrides_runpath
=no
17824 save_LDFLAGS
=$LDFLAGS
17825 save_libdir
=$libdir
17826 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17827 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17829 /* end confdefs.h. */
17839 if ac_fn_c_try_link
"$LINENO"; then :
17840 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17841 lt_cv_shlibpath_overrides_runpath
=yes
17844 rm -f core conftest.err conftest.
$ac_objext \
17845 conftest
$ac_exeext conftest.
$ac_ext
17846 LDFLAGS
=$save_LDFLAGS
17847 libdir
=$save_libdir
17851 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17853 # This implies no fast_install, which is unacceptable.
17854 # Some rework will be needed to allow for fast_install
17855 # before this can be enabled.
17856 hardcode_into_libs
=yes
17858 # Append ld.so.conf contents to the search path
17859 if test -f /etc
/ld.so.conf
; then
17860 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' ' '`
17861 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17864 # We used to test for /lib/ld.so.1 and disable shared libraries on
17865 # powerpc, because MkLinux only supported shared libraries with the
17866 # GNU dynamic linker. Since this was broken with cross compilers,
17867 # most powerpc-linux boxes support dynamic linking these days and
17868 # people can always --disable-shared, the test was removed, and we
17869 # assume the GNU/Linux dynamic linker is in use.
17870 dynamic_linker
='GNU/Linux ld.so'
17877 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17879 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17880 dynamic_linker
='NetBSD (a.out) ld.so'
17882 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17883 soname_spec
='${libname}${release}${shared_ext}$major'
17884 dynamic_linker
='NetBSD ld.elf_so'
17886 shlibpath_var
=LD_LIBRARY_PATH
17887 shlibpath_overrides_runpath
=yes
17888 hardcode_into_libs
=yes
17893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17894 shlibpath_var
=LD_LIBRARY_PATH
17895 shlibpath_overrides_runpath
=yes
17902 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17903 soname_spec
='${libname}${release}${shared_ext}$major'
17904 shlibpath_var
=LD_LIBRARY_PATH
17905 shlibpath_overrides_runpath
=no
17906 hardcode_into_libs
=yes
17907 dynamic_linker
='ldqnx.so'
17912 sys_lib_dlsearch_path_spec
="/usr/lib"
17914 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17916 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17917 *) need_version
=no
;;
17919 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17920 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17921 shlibpath_var
=LD_LIBRARY_PATH
17922 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17924 openbsd2.
[89] | openbsd2.
[89].
*)
17925 shlibpath_overrides_runpath
=no
17928 shlibpath_overrides_runpath
=yes
17932 shlibpath_overrides_runpath
=yes
17937 libname_spec
='$name'
17940 library_names_spec
='$libname${shared_ext} $libname.a'
17941 dynamic_linker
='OS/2 ld.exe'
17942 shlibpath_var
=LIBPATH
17945 osf3
* | osf4
* | osf5
*)
17949 soname_spec
='${libname}${release}${shared_ext}$major'
17950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17951 shlibpath_var
=LD_LIBRARY_PATH
17952 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17953 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965 soname_spec
='${libname}${release}${shared_ext}$major'
17966 shlibpath_var
=LD_LIBRARY_PATH
17967 shlibpath_overrides_runpath
=yes
17968 hardcode_into_libs
=yes
17969 # ldd complains unless libraries are executable
17970 postinstall_cmds
='chmod +x $lib'
17975 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17976 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17977 shlibpath_var
=LD_LIBRARY_PATH
17978 shlibpath_overrides_runpath
=yes
17979 if test "$with_gnu_ld" = yes; then
17987 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17988 soname_spec
='${libname}${release}${shared_ext}$major'
17989 shlibpath_var
=LD_LIBRARY_PATH
17990 case $host_vendor in
17992 shlibpath_overrides_runpath
=no
17994 runpath_var
=LD_RUN_PATH
18002 shlibpath_overrides_runpath
=no
18003 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18009 if test -d /usr
/nec
;then
18011 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18012 soname_spec
='$libname${shared_ext}.$major'
18013 shlibpath_var
=LD_LIBRARY_PATH
18017 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18018 version_type
=freebsd-elf
18021 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18022 soname_spec
='${libname}${release}${shared_ext}$major'
18023 shlibpath_var
=LD_LIBRARY_PATH
18024 shlibpath_overrides_runpath
=yes
18025 hardcode_into_libs
=yes
18026 if test "$with_gnu_ld" = yes; then
18027 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18029 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18032 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18036 sys_lib_dlsearch_path_spec
='/usr/lib'
18040 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18044 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18045 shlibpath_var
=LD_LIBRARY_PATH
18046 shlibpath_overrides_runpath
=no
18047 hardcode_into_libs
=yes
18052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053 soname_spec
='${libname}${release}${shared_ext}$major'
18054 shlibpath_var
=LD_LIBRARY_PATH
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18062 $as_echo "$dynamic_linker" >&6; }
18063 test "$dynamic_linker" = no
&& can_build_shared
=no
18065 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18066 if test "$GCC" = yes; then
18067 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18070 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18071 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18073 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18074 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18169 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18171 if test -n "$hardcode_libdir_flag_spec" ||
18172 test -n "$runpath_var" ||
18173 test "X$hardcode_automatic" = "Xyes" ; then
18175 # We can hardcode non-existent directories.
18176 if test "$hardcode_direct" != no
&&
18177 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18178 # have to relink, otherwise we might link with an installed library
18179 # when we should be linking with a yet-to-be-installed one
18180 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18181 test "$hardcode_minus_L" != no
; then
18182 # Linking always hardcodes the temporary library directory.
18183 hardcode_action
=relink
18185 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18186 hardcode_action
=immediate
18189 # We cannot hardcode anything, or else we can only hardcode existing
18191 hardcode_action
=unsupported
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18194 $as_echo "$hardcode_action" >&6; }
18196 if test "$hardcode_action" = relink ||
18197 test "$inherit_rpath" = yes; then
18198 # Fast installation is not supported
18199 enable_fast_install
=no
18200 elif test "$shlibpath_overrides_runpath" = yes ||
18201 test "$enable_shared" = no
; then
18202 # Fast installation is not necessary
18203 enable_fast_install
=needless
18211 if test "x$enable_dlopen" != xyes
; then
18212 enable_dlopen
=unknown
18213 enable_dlopen_self
=unknown
18214 enable_dlopen_self_static
=unknown
18221 lt_cv_dlopen
="load_add_on"
18223 lt_cv_dlopen_self
=yes
18226 mingw
* | pw32
* | cegcc
*)
18227 lt_cv_dlopen
="LoadLibrary"
18232 lt_cv_dlopen
="dlopen"
18237 # if libdl is installed we need to link against it
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18239 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18240 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18241 $as_echo_n "(cached) " >&6
18243 ac_check_lib_save_LIBS
=$LIBS
18245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h. */
18248 /* Override any GCC internal prototype to avoid an error.
18249 Use char because int might match the return type of a GCC
18250 builtin and then its argument prototype would still apply. */
18263 if ac_fn_c_try_link
"$LINENO"; then :
18264 ac_cv_lib_dl_dlopen
=yes
18266 ac_cv_lib_dl_dlopen
=no
18268 rm -f core conftest.err conftest.
$ac_objext \
18269 conftest
$ac_exeext conftest.
$ac_ext
18270 LIBS
=$ac_check_lib_save_LIBS
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18273 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18274 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18275 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18278 lt_cv_dlopen
="dyld"
18280 lt_cv_dlopen_self
=yes
18287 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18288 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18289 lt_cv_dlopen
="shl_load"
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18292 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18293 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18294 $as_echo_n "(cached) " >&6
18296 ac_check_lib_save_LIBS
=$LIBS
18298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h. */
18301 /* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18311 return shl_load ();
18316 if ac_fn_c_try_link
"$LINENO"; then :
18317 ac_cv_lib_dld_shl_load
=yes
18319 ac_cv_lib_dld_shl_load
=no
18321 rm -f core conftest.err conftest.
$ac_objext \
18322 conftest
$ac_exeext conftest.
$ac_ext
18323 LIBS
=$ac_check_lib_save_LIBS
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18326 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18327 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18328 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18330 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18331 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18332 lt_cv_dlopen
="dlopen"
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18335 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18336 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18337 $as_echo_n "(cached) " >&6
18339 ac_check_lib_save_LIBS
=$LIBS
18341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18344 /* Override any GCC internal prototype to avoid an error.
18345 Use char because int might match the return type of a GCC
18346 builtin and then its argument prototype would still apply. */
18359 if ac_fn_c_try_link
"$LINENO"; then :
18360 ac_cv_lib_dl_dlopen
=yes
18362 ac_cv_lib_dl_dlopen
=no
18364 rm -f core conftest.err conftest.
$ac_objext \
18365 conftest
$ac_exeext conftest.
$ac_ext
18366 LIBS
=$ac_check_lib_save_LIBS
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18369 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18370 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18371 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18374 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18375 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18376 $as_echo_n "(cached) " >&6
18378 ac_check_lib_save_LIBS
=$LIBS
18379 LIBS
="-lsvld $LIBS"
18380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18381 /* end confdefs.h. */
18383 /* Override any GCC internal prototype to avoid an error.
18384 Use char because int might match the return type of a GCC
18385 builtin and then its argument prototype would still apply. */
18398 if ac_fn_c_try_link
"$LINENO"; then :
18399 ac_cv_lib_svld_dlopen
=yes
18401 ac_cv_lib_svld_dlopen
=no
18403 rm -f core conftest.err conftest.
$ac_objext \
18404 conftest
$ac_exeext conftest.
$ac_ext
18405 LIBS
=$ac_check_lib_save_LIBS
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18408 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18409 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18410 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18413 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18414 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18415 $as_echo_n "(cached) " >&6
18417 ac_check_lib_save_LIBS
=$LIBS
18419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18420 /* end confdefs.h. */
18422 /* Override any GCC internal prototype to avoid an error.
18423 Use char because int might match the return type of a GCC
18424 builtin and then its argument prototype would still apply. */
18432 return dld_link ();
18437 if ac_fn_c_try_link
"$LINENO"; then :
18438 ac_cv_lib_dld_dld_link
=yes
18440 ac_cv_lib_dld_dld_link
=no
18442 rm -f core conftest.err conftest.
$ac_objext \
18443 conftest
$ac_exeext conftest.
$ac_ext
18444 LIBS
=$ac_check_lib_save_LIBS
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18447 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18448 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18449 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18470 if test "x$lt_cv_dlopen" != xno
; then
18476 case $lt_cv_dlopen in
18478 save_CPPFLAGS
="$CPPFLAGS"
18479 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18481 save_LDFLAGS
="$LDFLAGS"
18482 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18485 LIBS
="$lt_cv_dlopen_libs $LIBS"
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18488 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18489 if test "${lt_cv_dlopen_self+set}" = set; then :
18490 $as_echo_n "(cached) " >&6
18492 if test "$cross_compiling" = yes; then :
18493 lt_cv_dlopen_self
=cross
18495 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18496 lt_status
=$lt_dlunknown
18497 cat > conftest.
$ac_ext <<_LT_EOF
18498 #line 18498 "configure"
18499 #include "confdefs.h"
18508 # define LT_DLGLOBAL RTLD_GLOBAL
18511 # define LT_DLGLOBAL DL_GLOBAL
18513 # define LT_DLGLOBAL 0
18517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18518 find out it does not work in some platform. */
18519 #ifndef LT_DLLAZY_OR_NOW
18521 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18524 # define LT_DLLAZY_OR_NOW DL_LAZY
18527 # define LT_DLLAZY_OR_NOW RTLD_NOW
18530 # define LT_DLLAZY_OR_NOW DL_NOW
18532 # define LT_DLLAZY_OR_NOW 0
18539 /* When -fvisbility=hidden is used, assume the code has been annotated
18540 correspondingly for the symbols needed. */
18541 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18542 void fnord () __attribute__((visibility("default")));
18545 void fnord () { int i=42; }
18548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18549 int status = $lt_dlunknown;
18553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18556 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18557 else puts (dlerror ());
18559 /* dlclose (self); */
18567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18568 (eval $ac_link) 2>&5
18570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18571 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18572 (.
/conftest
; exit; ) >&5 2>/dev
/null
18574 case x
$lt_status in
18575 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18576 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18577 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18580 # compilation failed
18581 lt_cv_dlopen_self
=no
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18589 $as_echo "$lt_cv_dlopen_self" >&6; }
18591 if test "x$lt_cv_dlopen_self" = xyes
; then
18592 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18594 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18595 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18596 $as_echo_n "(cached) " >&6
18598 if test "$cross_compiling" = yes; then :
18599 lt_cv_dlopen_self_static
=cross
18601 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18602 lt_status
=$lt_dlunknown
18603 cat > conftest.
$ac_ext <<_LT_EOF
18604 #line 18604 "configure"
18605 #include "confdefs.h"
18614 # define LT_DLGLOBAL RTLD_GLOBAL
18617 # define LT_DLGLOBAL DL_GLOBAL
18619 # define LT_DLGLOBAL 0
18623 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18624 find out it does not work in some platform. */
18625 #ifndef LT_DLLAZY_OR_NOW
18627 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18630 # define LT_DLLAZY_OR_NOW DL_LAZY
18633 # define LT_DLLAZY_OR_NOW RTLD_NOW
18636 # define LT_DLLAZY_OR_NOW DL_NOW
18638 # define LT_DLLAZY_OR_NOW 0
18645 /* When -fvisbility=hidden is used, assume the code has been annotated
18646 correspondingly for the symbols needed. */
18647 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18648 void fnord () __attribute__((visibility("default")));
18651 void fnord () { int i=42; }
18654 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18655 int status = $lt_dlunknown;
18659 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18662 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18663 else puts (dlerror ());
18665 /* dlclose (self); */
18673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18674 (eval $ac_link) 2>&5
18676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18677 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18678 (.
/conftest
; exit; ) >&5 2>/dev
/null
18680 case x
$lt_status in
18681 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18682 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18683 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18686 # compilation failed
18687 lt_cv_dlopen_self_static
=no
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18695 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18698 CPPFLAGS
="$save_CPPFLAGS"
18699 LDFLAGS
="$save_LDFLAGS"
18704 case $lt_cv_dlopen_self in
18705 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18706 *) enable_dlopen_self
=unknown
;;
18709 case $lt_cv_dlopen_self_static in
18710 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18711 *) enable_dlopen_self_static
=unknown
;;
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18734 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18735 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18736 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18737 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18739 $as_echo "yes" >&6; }
18741 # FIXME - insert some real tests, host_os isn't really good enough
18744 if test -n "$STRIP" ; then
18745 striplib
="$STRIP -x"
18746 old_striplib
="$STRIP -S"
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18748 $as_echo "yes" >&6; }
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18751 $as_echo "no" >&6; }
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18756 $as_echo "no" >&6; }
18772 # Report which library types will actually be built
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18774 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18776 $as_echo "$can_build_shared" >&6; }
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18779 $as_echo_n "checking whether to build shared libraries... " >&6; }
18780 test "$can_build_shared" = "no" && enable_shared
=no
18782 # On AIX, shared libraries and static libraries use the same namespace, and
18783 # are all built from PIC.
18786 test "$enable_shared" = yes && enable_static
=no
18787 if test -n "$RANLIB"; then
18788 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18789 postinstall_cmds
='$RANLIB $lib'
18794 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18795 test "$enable_shared" = yes && enable_static
=no
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18800 $as_echo "$enable_shared" >&6; }
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18803 $as_echo_n "checking whether to build static libraries... " >&6; }
18804 # Make sure either enable_shared or enable_static is yes.
18805 test "$enable_shared" = yes || enable_static
=yes
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18807 $as_echo "$enable_static" >&6; }
18814 ac_cpp
='$CXXCPP $CPPFLAGS'
18815 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18816 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18817 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18821 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18822 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18823 (test "X$CXX" != "Xg++"))) ; then
18825 ac_cpp
='$CXXCPP $CPPFLAGS'
18826 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18827 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18828 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18830 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18831 if test -z "$CXXCPP"; then
18832 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18833 $as_echo_n "(cached) " >&6
18835 # Double quotes because CXXCPP needs to be expanded
18836 for CXXCPP
in "$CXX -E" "/lib/cpp"
18838 ac_preproc_ok
=false
18839 for ac_cxx_preproc_warn_flag
in '' yes
18841 # Use a header file that comes with gcc, so configuring glibc
18842 # with a fresh cross-compiler works.
18843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18844 # <limits.h> exists even on freestanding compilers.
18845 # On the NeXT, cc -E runs the code through the compiler's parser,
18846 # not just through cpp. "Syntax error" is here to catch this case.
18847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18848 /* end confdefs.h. */
18850 # include <limits.h>
18852 # include <assert.h>
18856 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18859 # Broken: fails on valid input.
18862 rm -f conftest.err conftest.
$ac_ext
18864 # OK, works on sane cases. Now check whether nonexistent headers
18865 # can be detected and how.
18866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18867 /* end confdefs.h. */
18868 #include <ac_nonexistent.h>
18870 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18871 # Broken: success on invalid input.
18874 # Passes both tests.
18878 rm -f conftest.err conftest.
$ac_ext
18881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18882 rm -f conftest.err conftest.
$ac_ext
18883 if $ac_preproc_ok; then :
18888 ac_cv_prog_CXXCPP
=$CXXCPP
18891 CXXCPP
=$ac_cv_prog_CXXCPP
18893 ac_cv_prog_CXXCPP
=$CXXCPP
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18896 $as_echo "$CXXCPP" >&6; }
18897 ac_preproc_ok
=false
18898 for ac_cxx_preproc_warn_flag
in '' yes
18900 # Use a header file that comes with gcc, so configuring glibc
18901 # with a fresh cross-compiler works.
18902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18903 # <limits.h> exists even on freestanding compilers.
18904 # On the NeXT, cc -E runs the code through the compiler's parser,
18905 # not just through cpp. "Syntax error" is here to catch this case.
18906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18907 /* end confdefs.h. */
18909 # include <limits.h>
18911 # include <assert.h>
18915 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18918 # Broken: fails on valid input.
18921 rm -f conftest.err conftest.
$ac_ext
18923 # OK, works on sane cases. Now check whether nonexistent headers
18924 # can be detected and how.
18925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h. */
18927 #include <ac_nonexistent.h>
18929 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18930 # Broken: success on invalid input.
18933 # Passes both tests.
18937 rm -f conftest.err conftest.
$ac_ext
18940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18941 rm -f conftest.err conftest.
$ac_ext
18942 if $ac_preproc_ok; then :
18945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18947 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18948 See \`config.log' for more details." "$LINENO" 5; }
18952 ac_cpp
='$CXXCPP $CPPFLAGS'
18953 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18954 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18955 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18958 _lt_caught_CXX_error
=yes
18962 ac_cpp
='$CXXCPP $CPPFLAGS'
18963 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18964 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18965 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18967 archive_cmds_need_lc_CXX
=no
18968 allow_undefined_flag_CXX
=
18969 always_export_symbols_CXX
=no
18970 archive_expsym_cmds_CXX
=
18971 compiler_needs_object_CXX
=no
18972 export_dynamic_flag_spec_CXX
=
18973 hardcode_direct_CXX
=no
18974 hardcode_direct_absolute_CXX
=no
18975 hardcode_libdir_flag_spec_CXX
=
18976 hardcode_libdir_flag_spec_ld_CXX
=
18977 hardcode_libdir_separator_CXX
=
18978 hardcode_minus_L_CXX
=no
18979 hardcode_shlibpath_var_CXX
=unsupported
18980 hardcode_automatic_CXX
=no
18981 inherit_rpath_CXX
=no
18983 module_expsym_cmds_CXX
=
18984 link_all_deplibs_CXX
=unknown
18985 old_archive_cmds_CXX
=$old_archive_cmds
18986 reload_flag_CXX
=$reload_flag
18987 reload_cmds_CXX
=$reload_cmds
18988 no_undefined_flag_CXX
=
18989 whole_archive_flag_spec_CXX
=
18990 enable_shared_with_static_runtimes_CXX
=no
18992 # Source file extension for C++ test sources.
18995 # Object file extension for compiled C++ test sources.
18999 # No sense in running all these tests if we already determined that
19000 # the CXX compiler isn't working. Some variables (like enable_shared)
19001 # are currently assumed to apply to all compilers on this platform,
19002 # and will be corrupted by setting them based on a non-working compiler.
19003 if test "$_lt_caught_CXX_error" != yes; then
19004 # Code to be used in simple compile tests
19005 lt_simple_compile_test_code
="int some_variable = 0;"
19007 # Code to be used in simple link tests
19008 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19010 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19017 # If no C compiler was specified, use CC.
19020 # If no C compiler flags were specified, use CFLAGS.
19021 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19023 # Allow CC to be a program name with arguments.
19027 # save warnings/boilerplate of simple test code
19028 ac_outfile
=conftest.
$ac_objext
19029 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19030 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19031 _lt_compiler_boilerplate
=`cat conftest.err`
19034 ac_outfile
=conftest.
$ac_objext
19035 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19036 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19037 _lt_linker_boilerplate
=`cat conftest.err`
19041 # Allow CC to be a program name with arguments.
19046 lt_save_with_gnu_ld
=$with_gnu_ld
19047 lt_save_path_LD
=$lt_cv_path_LD
19048 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19049 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19051 $as_unset lt_cv_prog_gnu_ld
19053 if test -n "${lt_cv_path_LDCXX+set}"; then
19054 lt_cv_path_LD
=$lt_cv_path_LDCXX
19056 $as_unset lt_cv_path_LD
19058 test -z "${LDCXX+set}" || LD
=$LDCXX
19062 for cc_temp
in $compiler""; do
19064 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19065 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19070 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19073 if test -n "$compiler"; then
19074 # We don't want -fno-exception when compiling C++ code, so set the
19075 # no_builtin_flag separately
19076 if test "$GXX" = yes; then
19077 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19079 lt_prog_compiler_no_builtin_flag_CXX
=
19082 if test "$GXX" = yes; then
19083 # Set up default GNU C++ configuration
19087 # Check whether --with-gnu-ld was given.
19088 if test "${with_gnu_ld+set}" = set; then :
19089 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19095 if test "$GCC" = yes; then
19096 # Check if gcc -print-prog-name=ld gives a path.
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19098 $as_echo_n "checking for ld used by $CC... " >&6; }
19101 # gcc leaves a trailing carriage return which upsets mingw
19102 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19104 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19107 # Accept absolute paths.
19109 re_direlt
='/[^/][^/]*/\.\./'
19110 # Canonicalize the pathname of ld
19111 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19112 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19113 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19115 test -z "$LD" && LD
="$ac_prog"
19118 # If it fails, then pretend we aren't using GCC.
19122 # If it is relative, then search for the first ld in PATH.
19123 with_gnu_ld
=unknown
19126 elif test "$with_gnu_ld" = yes; then
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19128 $as_echo_n "checking for GNU ld... " >&6; }
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19131 $as_echo_n "checking for non-GNU ld... " >&6; }
19133 if test "${lt_cv_path_LD+set}" = set; then :
19134 $as_echo_n "(cached) " >&6
19136 if test -z "$LD"; then
19137 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19138 for ac_dir
in $PATH; do
19140 test -z "$ac_dir" && ac_dir
=.
19141 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19142 lt_cv_path_LD
="$ac_dir/$ac_prog"
19143 # Check to see if the program is GNU ld. I'd rather use --version,
19144 # but apparently some variants of GNU ld only accept -v.
19145 # Break only if it was the GNU/non-GNU ld that we prefer.
19146 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19147 *GNU
* |
*'with BFD'*)
19148 test "$with_gnu_ld" != no
&& break
19151 test "$with_gnu_ld" != yes && break
19158 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19162 LD
="$lt_cv_path_LD"
19163 if test -n "$LD"; then
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19165 $as_echo "$LD" >&6; }
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19168 $as_echo "no" >&6; }
19170 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19173 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19174 $as_echo_n "(cached) " >&6
19176 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19177 case `$LD -v 2>&1 </dev/null` in
19178 *GNU
* |
*'with BFD'*)
19179 lt_cv_prog_gnu_ld
=yes
19182 lt_cv_prog_gnu_ld
=no
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19187 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19188 with_gnu_ld
=$lt_cv_prog_gnu_ld
19196 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19197 # archiving commands below assume that GNU ld is being used.
19198 if test "$with_gnu_ld" = yes; then
19199 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19200 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'
19202 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19203 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19205 # If archive_cmds runs LD, not CC, wlarc should be empty
19206 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19207 # investigate it a little bit more. (MM)
19210 # ancient GNU ld didn't support --whole-archive et. al.
19211 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19212 $GREP 'no-whole-archive' > /dev
/null
; then
19213 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19215 whole_archive_flag_spec_CXX
=
19221 # A generic and very simple default shared library creation
19222 # command for GNU C++ for the case where it uses the native
19223 # linker, instead of GNU ld. If possible, this setting should
19224 # overridden to take advantage of the native linker features on
19225 # the platform it is being used on.
19226 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19229 # Commands to make compiler produce verbose output that lists
19230 # what "hidden" libraries, object files and flags are used when
19231 # linking a shared library.
19232 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19240 # PORTME: fill in a description of your system's C++ link characteristics
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19242 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19246 # FIXME: insert proper C++ library support
19250 if test "$host_cpu" = ia64
; then
19251 # On IA64, the linker does run time linking by default, so we don't
19252 # have to do anything special.
19253 aix_use_runtimelinking
=no
19254 exp_sym_flag
='-Bexport'
19257 aix_use_runtimelinking
=no
19259 # Test if we are trying to use run time linking or normal
19260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19261 # need to do runtime linking.
19262 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19263 for ld_flag
in $LDFLAGS; do
19266 aix_use_runtimelinking
=yes
19274 exp_sym_flag
='-bexport'
19275 no_entry_flag
='-bnoentry'
19278 # When large executables or shared objects are built, AIX ld can
19279 # have problems creating the table of contents. If linking a library
19280 # or program results in "error TOC overflow" add -mminimal-toc to
19281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19284 archive_cmds_CXX
=''
19285 hardcode_direct_CXX
=yes
19286 hardcode_direct_absolute_CXX
=yes
19287 hardcode_libdir_separator_CXX
=':'
19288 link_all_deplibs_CXX
=yes
19289 file_list_spec_CXX
='${wl}-f,'
19291 if test "$GXX" = yes; then
19292 case $host_os in aix4.
[012]|aix4.
[012].
*)
19293 # We only want to do this on AIX 4.2 and lower, the check
19294 # below for broken collect2 doesn't work under 4.3+
19295 collect2name
=`${CC} -print-prog-name=collect2`
19296 if test -f "$collect2name" &&
19297 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19299 # We have reworked collect2
19302 # We have old collect2
19303 hardcode_direct_CXX
=unsupported
19304 # It fails to find uninstalled libraries when the uninstalled
19305 # path is not listed in the libpath. Setting hardcode_minus_L
19306 # to unsupported forces relinking
19307 hardcode_minus_L_CXX
=yes
19308 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19309 hardcode_libdir_separator_CXX
=
19312 shared_flag
='-shared'
19313 if test "$aix_use_runtimelinking" = yes; then
19314 shared_flag
="$shared_flag "'${wl}-G'
19318 if test "$host_cpu" = ia64
; then
19319 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19320 # chokes on -Wl,-G. The following line is correct:
19323 if test "$aix_use_runtimelinking" = yes; then
19324 shared_flag
='${wl}-G'
19326 shared_flag
='${wl}-bM:SRE'
19331 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19332 # It seems that -bexpall does not export symbols beginning with
19333 # underscore (_), so it is better to generate a list of symbols to
19335 always_export_symbols_CXX
=yes
19336 if test "$aix_use_runtimelinking" = yes; then
19337 # Warning - without using the other runtime loading flags (-brtl),
19338 # -berok will link without error, but may produce a broken library.
19339 allow_undefined_flag_CXX
='-berok'
19340 # Determine the default libpath from the value encoded in an empty
19342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19343 /* end confdefs.h. */
19353 if ac_fn_cxx_try_link
"$LINENO"; then :
19355 lt_aix_libpath_sed
='
19356 /Import File Strings/,/^$/ {
19362 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19363 # Check for a 64-bit object if we didn't find anything.
19364 if test -z "$aix_libpath"; then
19365 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19368 rm -f core conftest.err conftest.
$ac_objext \
19369 conftest
$ac_exeext conftest.
$ac_ext
19370 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19372 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19374 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"
19376 if test "$host_cpu" = ia64
; then
19377 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19378 allow_undefined_flag_CXX
="-z nodefs"
19379 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"
19381 # Determine the default libpath from the value encoded in an
19382 # empty executable.
19383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19384 /* end confdefs.h. */
19394 if ac_fn_cxx_try_link
"$LINENO"; then :
19396 lt_aix_libpath_sed
='
19397 /Import File Strings/,/^$/ {
19403 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19404 # Check for a 64-bit object if we didn't find anything.
19405 if test -z "$aix_libpath"; then
19406 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19409 rm -f core conftest.err conftest.
$ac_objext \
19410 conftest
$ac_exeext conftest.
$ac_ext
19411 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19413 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19414 # Warning - without using the other run time loading flags,
19415 # -berok will link without error, but may produce a broken library.
19416 no_undefined_flag_CXX
=' ${wl}-bernotok'
19417 allow_undefined_flag_CXX
=' ${wl}-berok'
19418 if test "$with_gnu_ld" = yes; then
19419 # We only use this code for GNU lds that support --whole-archive.
19420 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19422 # Exported symbols can be pulled into shared objects from archives
19423 whole_archive_flag_spec_CXX
='$convenience'
19425 archive_cmds_need_lc_CXX
=yes
19426 # This is similar to how AIX traditionally builds its shared
19428 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'
19434 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19435 allow_undefined_flag_CXX
=unsupported
19436 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19437 # support --undefined. This deserves some investigation. FIXME
19438 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19445 case $cc_basename in
19447 # FIXME: insert proper C++ library support
19453 cygwin
* | mingw
* | pw32
* | cegcc
*)
19454 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19455 # as there is no search path for DLLs.
19456 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19457 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19458 allow_undefined_flag_CXX
=unsupported
19459 always_export_symbols_CXX
=no
19460 enable_shared_with_static_runtimes_CXX
=yes
19462 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19463 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'
19464 # If the export-symbols file already is a .def file (1st line
19465 # is EXPORTS), use it as is; otherwise, prepend...
19466 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19467 cp $export_symbols $output_objdir/$soname.def;
19469 echo EXPORTS > $output_objdir/$soname.def;
19470 cat $export_symbols >> $output_objdir/$soname.def;
19472 $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'
19477 darwin
* | rhapsody
*)
19480 archive_cmds_need_lc_CXX
=no
19481 hardcode_direct_CXX
=no
19482 hardcode_automatic_CXX
=yes
19483 hardcode_shlibpath_var_CXX
=unsupported
19484 if test "$lt_cv_ld_force_load" = "yes"; then
19485 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\"`'
19487 whole_archive_flag_spec_CXX
=''
19489 link_all_deplibs_CXX
=yes
19490 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19491 case $cc_basename in
19492 ifort
*) _lt_dar_can_shared
=yes ;;
19493 *) _lt_dar_can_shared
=$GCC ;;
19495 if test "$_lt_dar_can_shared" = "yes"; then
19496 output_verbose_link_cmd
=func_echo_all
19497 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}"
19498 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19499 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}"
19500 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}"
19501 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19502 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}"
19503 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}"
19513 case $cc_basename in
19515 # FIXME: insert proper C++ library support
19519 # Green Hills C++ Compiler
19520 # FIXME: insert proper C++ library support
19524 # FIXME: insert proper C++ library support
19531 # C++ shared libraries reported to be fairly broken before
19537 archive_cmds_need_lc_CXX
=no
19540 freebsd
* | dragonfly
*)
19541 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19550 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19551 link_all_deplibs_CXX
=yes
19555 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19556 hardcode_libdir_separator_CXX
=:
19557 export_dynamic_flag_spec_CXX
='${wl}-E'
19558 hardcode_direct_CXX
=yes
19559 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19560 # but as the default
19561 # location of the library.
19563 case $cc_basename in
19565 # FIXME: insert proper C++ library support
19569 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'
19570 # Commands to make compiler produce verbose output that lists
19571 # what "hidden" libraries, object files and flags are used when
19572 # linking a shared library.
19574 # There doesn't appear to be a way to prevent this compiler from
19575 # explicitly linking system object files so we need to strip them
19576 # from the output so that they don't get included in the library
19578 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"'
19581 if test "$GXX" = yes; then
19582 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'
19584 # FIXME: insert proper C++ library support
19592 if test $with_gnu_ld = no
; then
19593 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19594 hardcode_libdir_separator_CXX
=:
19600 export_dynamic_flag_spec_CXX
='${wl}-E'
19606 hardcode_direct_CXX
=no
19607 hardcode_shlibpath_var_CXX
=no
19610 hardcode_direct_CXX
=yes
19611 hardcode_direct_absolute_CXX
=yes
19612 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19613 # but as the default
19614 # location of the library.
19618 case $cc_basename in
19620 # FIXME: insert proper C++ library support
19626 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19629 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19632 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19635 # Commands to make compiler produce verbose output that lists
19636 # what "hidden" libraries, object files and flags are used when
19637 # linking a shared library.
19639 # There doesn't appear to be a way to prevent this compiler from
19640 # explicitly linking system object files so we need to strip them
19641 # from the output so that they don't get included in the library
19643 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"'
19646 if test "$GXX" = yes; then
19647 if test $with_gnu_ld = no
; then
19650 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19653 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19656 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'
19661 # FIXME: insert proper C++ library support
19669 hardcode_direct_CXX
=no
19670 hardcode_shlibpath_var_CXX
=no
19671 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19672 export_dynamic_flag_spec_CXX
='${wl}-E'
19673 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19674 # Instead, shared libraries are loaded at an image base (0x10000000 by
19675 # default) and relocated if they conflict, which is a slow very memory
19676 # consuming and fragmenting process. To avoid this, we pick a random,
19677 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19678 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19679 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'
19680 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'
19683 case $cc_basename in
19686 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'
19688 # Archives containing C++ object files must be created using
19689 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19690 # necessary to make sure instantiated templates are included
19692 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19695 if test "$GXX" = yes; then
19696 if test "$with_gnu_ld" = no
; then
19697 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'
19699 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'
19702 link_all_deplibs_CXX
=yes
19705 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19706 hardcode_libdir_separator_CXX
=:
19707 inherit_rpath_CXX
=yes
19710 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19711 case $cc_basename in
19713 # Kuck and Associates, Inc. (KAI) C++ Compiler
19715 # KCC will only create a shared library if the output file
19716 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19717 # to its proper name (with version) after linking.
19718 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'
19719 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'
19720 # Commands to make compiler produce verbose output that lists
19721 # what "hidden" libraries, object files and flags are used when
19722 # linking a shared library.
19724 # There doesn't appear to be a way to prevent this compiler from
19725 # explicitly linking system object files so we need to strip them
19726 # from the output so that they don't get included in the library
19728 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"'
19730 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19731 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19733 # Archives containing C++ object files must be created using
19734 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19735 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19740 # version 8.0 and above of icpc choke on multiply defined symbols
19741 # if we add $predep_objects and $postdep_objects, however 7.1 and
19742 # earlier do not add the objects themselves.
19743 case `$CC -V 2>&1` in
19745 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19746 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'
19748 *) # Version 8.0 or newer
19751 ia64
*) tmp_idyn
=' -i_dynamic';;
19753 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19754 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'
19757 archive_cmds_need_lc_CXX
=no
19758 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19759 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19760 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19763 # Portland Group C++ compiler
19765 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19766 prelink_cmds_CXX
='tpldir=Template.dir~
19768 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19769 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19770 old_archive_cmds_CXX
='tpldir=Template.dir~
19772 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19773 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19775 archive_cmds_CXX
='tpldir=Template.dir~
19777 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19778 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19779 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19781 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19782 $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'
19784 *) # Version 6 and above use weak symbols
19785 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19786 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'
19790 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19791 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19792 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'
19796 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19797 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'
19799 runpath_var
=LD_RUN_PATH
19800 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19801 hardcode_libdir_separator_CXX
=:
19803 # Commands to make compiler produce verbose output that lists
19804 # what "hidden" libraries, object files and flags are used when
19805 # linking a shared library.
19807 # There doesn't appear to be a way to prevent this compiler from
19808 # explicitly linking system object files so we need to strip them
19809 # from the output so that they don't get included in the library
19811 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'
19813 xl
* | mpixl
* | bgxl
*)
19814 # IBM XL 8.0 on PPC, with GNU ld
19815 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19816 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19817 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19818 if test "x$supports_anon_versioning" = xyes
; then
19819 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19821 echo "local: *; };" >> $output_objdir/$libname.ver~
19822 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19826 case `$CC -V 2>&1 | sed 5q` in
19829 no_undefined_flag_CXX
=' -zdefs'
19830 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19831 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'
19832 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19833 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'
19834 compiler_needs_object_CXX
=yes
19836 # Not sure whether something based on
19837 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19839 output_verbose_link_cmd
='func_echo_all'
19841 # Archives containing C++ object files must be created using
19842 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19843 # necessary to make sure instantiated templates are included
19845 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19853 # FIXME: insert proper C++ library support
19858 # FIXME: insert proper C++ library support
19863 case $cc_basename in
19865 # FIXME: insert proper C++ library support
19869 # FIXME: insert proper C++ library support
19876 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19877 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19879 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19880 hardcode_direct_CXX
=yes
19881 hardcode_shlibpath_var_CXX
=no
19883 # Workaround some broken pre-1.5 toolchains
19884 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19892 # C++ shared libraries are fairly broken
19897 if test -f /usr
/libexec
/ld.so
; then
19898 hardcode_direct_CXX
=yes
19899 hardcode_shlibpath_var_CXX
=no
19900 hardcode_direct_absolute_CXX
=yes
19901 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19902 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19904 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19905 export_dynamic_flag_spec_CXX
='${wl}-E'
19906 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19908 output_verbose_link_cmd
=func_echo_all
19914 osf3
* | osf4
* | osf5
*)
19915 case $cc_basename in
19917 # Kuck and Associates, Inc. (KAI) C++ Compiler
19919 # KCC will only create a shared library if the output file
19920 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19921 # to its proper name (with version) after linking.
19922 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'
19924 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19925 hardcode_libdir_separator_CXX
=:
19927 # Archives containing C++ object files must be created using
19928 # the KAI C++ compiler.
19930 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19931 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19935 # Rational C++ 2.4.1
19936 # FIXME: insert proper C++ library support
19942 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19943 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'
19944 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19947 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19948 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'
19949 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19950 echo "-hidden">> $lib.exp~
19951 $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~
19953 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19957 hardcode_libdir_separator_CXX
=:
19959 # Commands to make compiler produce verbose output that lists
19960 # what "hidden" libraries, object files and flags are used when
19961 # linking a shared library.
19963 # There doesn't appear to be a way to prevent this compiler from
19964 # explicitly linking system object files so we need to strip them
19965 # from the output so that they don't get included in the library
19967 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"'
19970 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19971 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19974 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'
19977 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'
19981 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19982 hardcode_libdir_separator_CXX
=:
19984 # Commands to make compiler produce verbose output that lists
19985 # what "hidden" libraries, object files and flags are used when
19986 # linking a shared library.
19987 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19990 # FIXME: insert proper C++ library support
19998 # FIXME: insert proper C++ library support
20003 case $cc_basename in
20006 # FIXME: insert proper C++ library support
20011 # FIXME: insert proper C++ library support
20015 # FIXME: insert proper C++ library support
20022 case $cc_basename in
20024 # Sun C++ 4.2, 5.x and Centerline C++
20025 archive_cmds_need_lc_CXX
=yes
20026 no_undefined_flag_CXX
=' -zdefs'
20027 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20028 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20029 $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'
20031 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20032 hardcode_shlibpath_var_CXX
=no
20034 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20036 # The compiler driver will combine and reorder linker options,
20037 # but understands `-z linker_flag'.
20038 # Supported since Solaris 2.6 (maybe 2.5.1?)
20039 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20042 link_all_deplibs_CXX
=yes
20044 output_verbose_link_cmd
='func_echo_all'
20046 # Archives containing C++ object files must be created using
20047 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20048 # necessary to make sure instantiated templates are included
20050 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20053 # Green Hills C++ Compiler
20054 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20056 # The C++ compiler must be used to create the archive.
20057 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20060 # GNU C++ compiler with Solaris linker
20061 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20062 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20063 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20064 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20065 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20066 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20068 # Commands to make compiler produce verbose output that lists
20069 # what "hidden" libraries, object files and flags are used when
20070 # linking a shared library.
20071 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20073 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20075 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20076 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20077 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20079 # Commands to make compiler produce verbose output that lists
20080 # what "hidden" libraries, object files and flags are used when
20081 # linking a shared library.
20082 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20085 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20087 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20089 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20097 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20098 no_undefined_flag_CXX
='${wl}-z,text'
20099 archive_cmds_need_lc_CXX
=no
20100 hardcode_shlibpath_var_CXX
=no
20101 runpath_var
='LD_RUN_PATH'
20103 case $cc_basename in
20105 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20106 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20109 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20110 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20115 sysv5
* | sco3.2v5
* | sco5v6
*)
20116 # Note: We can NOT use -z defs as we might desire, because we do not
20117 # link with -lc, and that would cause any symbols used from libc to
20118 # always be unresolved, which means just about no library would
20119 # ever link correctly. If we're not using GNU ld we use -z text
20120 # though, which does catch some bad symbols but isn't as heavy-handed
20122 no_undefined_flag_CXX
='${wl}-z,text'
20123 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20124 archive_cmds_need_lc_CXX
=no
20125 hardcode_shlibpath_var_CXX
=no
20126 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20127 hardcode_libdir_separator_CXX
=':'
20128 link_all_deplibs_CXX
=yes
20129 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20130 runpath_var
='LD_RUN_PATH'
20132 case $cc_basename in
20134 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20135 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20136 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20137 '"$old_archive_cmds_CXX"
20138 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20139 '"$reload_cmds_CXX"
20142 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20143 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20149 case $cc_basename in
20151 # NonStop-UX NCC 3.20
20152 # FIXME: insert proper C++ library support
20156 # FIXME: insert proper C++ library support
20163 # FIXME: insert proper C++ library support
20168 # FIXME: insert proper C++ library support
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20174 $as_echo "$ld_shlibs_CXX" >&6; }
20175 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20181 ## There is no encapsulation within the following macros, do not change
20182 ## the running order or otherwise move them around unless you know exactly
20183 ## what you are doing...
20184 # Dependencies to place before and after the object being linked:
20185 predep_objects_CXX
=
20186 postdep_objects_CXX
=
20189 compiler_lib_search_path_CXX
=
20191 cat > conftest.
$ac_ext <<_LT_EOF
20195 Foo (void) { a = 0; }
20201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20202 (eval $ac_compile) 2>&5
20204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20205 test $ac_status = 0; }; then
20206 # Parse the compiler output and extract the necessary
20207 # objects, libraries and library flags.
20209 # Sentinel used to keep track of whether or not we are before
20210 # the conftest object file.
20211 pre_test_object_deps_done
=no
20213 for p
in `eval "$output_verbose_link_cmd"`; do
20217 # Some compilers place space between "-{L,R}" and the path.
20218 # Remove the space.
20219 if test $p = "-L" ||
20220 test $p = "-R"; then
20227 if test "$pre_test_object_deps_done" = no
; then
20230 # Internal compiler library paths should come after those
20231 # provided the user. The postdeps already come after the
20232 # user supplied libs so there is no need to process them.
20233 if test -z "$compiler_lib_search_path_CXX"; then
20234 compiler_lib_search_path_CXX
="${prev}${p}"
20236 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20239 # The "-l" case would never come before the object being
20240 # linked, so don't bother handling this case.
20243 if test -z "$postdeps_CXX"; then
20244 postdeps_CXX
="${prev}${p}"
20246 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20252 # This assumes that the test object file only shows up
20253 # once in the compiler output.
20254 if test "$p" = "conftest.$objext"; then
20255 pre_test_object_deps_done
=yes
20259 if test "$pre_test_object_deps_done" = no
; then
20260 if test -z "$predep_objects_CXX"; then
20261 predep_objects_CXX
="$p"
20263 predep_objects_CXX
="$predep_objects_CXX $p"
20266 if test -z "$postdep_objects_CXX"; then
20267 postdep_objects_CXX
="$p"
20269 postdep_objects_CXX
="$postdep_objects_CXX $p"
20274 *) ;; # Ignore the rest.
20282 echo "libtool.m4: error: problem compiling CXX test program"
20285 $RM -f confest.
$objext
20287 # PORTME: override above test on systems where it is broken
20290 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20291 # hack all around it, let's just trust "g++" to DTRT.
20292 predep_objects_CXX
=
20293 postdep_objects_CXX
=
20298 case `$CC -V 2>&1 | sed 5q` in
20302 # The more standards-conforming stlport4 library is
20303 # incompatible with the Cstd library. Avoid specifying
20304 # it if it's in CXXFLAGS. Ignore libCrun as
20305 # -library=stlport4 depends on it.
20306 case " $CXX $CXXFLAGS " in
20307 *" -library=stlport4 "*)
20308 solaris_use_stlport4
=yes
20312 if test "$solaris_use_stlport4" != yes; then
20313 postdeps_CXX
='-library=Cstd -library=Crun'
20320 case $cc_basename in
20322 # The more standards-conforming stlport4 library is
20323 # incompatible with the Cstd library. Avoid specifying
20324 # it if it's in CXXFLAGS. Ignore libCrun as
20325 # -library=stlport4 depends on it.
20326 case " $CXX $CXXFLAGS " in
20327 *" -library=stlport4 "*)
20328 solaris_use_stlport4
=yes
20332 # Adding this requires a known-good setup of shared libraries for
20333 # Sun compiler versions before 5.6, else PIC objects from an old
20334 # archive will be linked into the output, leading to subtle bugs.
20335 if test "$solaris_use_stlport4" != yes; then
20336 postdeps_CXX
='-library=Cstd -library=Crun'
20344 case " $postdeps_CXX " in
20345 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20347 compiler_lib_search_dirs_CXX
=
20348 if test -n "${compiler_lib_search_path_CXX}"; then
20349 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20382 lt_prog_compiler_wl_CXX
=
20383 lt_prog_compiler_pic_CXX
=
20384 lt_prog_compiler_static_CXX
=
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20387 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20389 # C++ specific cases for pic, static, wl, etc.
20390 if test "$GXX" = yes; then
20391 lt_prog_compiler_wl_CXX
='-Wl,'
20392 lt_prog_compiler_static_CXX
='-static'
20396 # All AIX code is PIC.
20397 if test "$host_cpu" = ia64
; then
20398 # AIX 5 now supports IA64 processor
20399 lt_prog_compiler_static_CXX
='-Bstatic'
20401 lt_prog_compiler_pic_CXX
='-fPIC'
20407 # see comment about AmigaOS4 .so support
20408 lt_prog_compiler_pic_CXX
='-fPIC'
20411 # FIXME: we need at least 68020 code to build shared libraries, but
20412 # adding the `-m68020' flag to GCC prevents building anything better,
20414 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20419 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20420 # PIC is the default for these OSes.
20422 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20423 # This hack is so that the source file can tell whether it is being
20424 # built for inclusion in a dll (and should export symbols for example).
20425 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20426 # (--disable-auto-import) libraries
20427 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20429 darwin
* | rhapsody
*)
20430 # PIC is the default on this platform
20431 # Common symbols not allowed in MH_DYLIB files
20432 lt_prog_compiler_pic_CXX
='-fno-common'
20435 # DJGPP does not support shared libraries at all
20436 lt_prog_compiler_pic_CXX
=
20439 # PIC is the default for Haiku.
20440 # The "-static" flag exists, but is broken.
20441 lt_prog_compiler_static_CXX
=
20444 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20445 # Instead, we relocate shared libraries at runtime.
20448 if test -d /usr
/nec
; then
20449 lt_prog_compiler_pic_CXX
=-Kconform_pic
20453 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20454 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20455 # sets the default TLS model and affects inlining.
20460 lt_prog_compiler_pic_CXX
='-fPIC'
20465 # QNX uses GNU C++, but need to define -shared option too, otherwise
20466 # it will coredump.
20467 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20470 lt_prog_compiler_pic_CXX
='-fPIC'
20476 # All AIX code is PIC.
20477 if test "$host_cpu" = ia64
; then
20478 # AIX 5 now supports IA64 processor
20479 lt_prog_compiler_static_CXX
='-Bstatic'
20481 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20485 case $cc_basename in
20487 # Green Hills C++ Compiler
20488 # _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"
20493 case $cc_basename in
20495 lt_prog_compiler_pic_CXX
='-KPIC'
20498 # Green Hills C++ Compiler
20499 lt_prog_compiler_pic_CXX
='-pic'
20505 freebsd
* | dragonfly
*)
20506 # FreeBSD uses GNU C++
20508 hpux9
* | hpux10
* | hpux11
*)
20509 case $cc_basename in
20511 lt_prog_compiler_wl_CXX
='-Wl,'
20512 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20513 if test "$host_cpu" != ia64
; then
20514 lt_prog_compiler_pic_CXX
='+Z'
20518 lt_prog_compiler_wl_CXX
='-Wl,'
20519 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20525 lt_prog_compiler_pic_CXX
='+Z'
20534 # This is c89, which is MS Visual C++ (no shared libs)
20535 # Anyone wants to do a port?
20537 irix5
* | irix6
* | nonstopux
*)
20538 case $cc_basename in
20540 lt_prog_compiler_wl_CXX
='-Wl,'
20541 lt_prog_compiler_static_CXX
='-non_shared'
20542 # CC pic flag -KPIC is the default.
20548 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20549 case $cc_basename in
20552 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20553 lt_prog_compiler_pic_CXX
='-fPIC'
20556 # old Intel C++ for x86_64 which still supported -KPIC.
20557 lt_prog_compiler_wl_CXX
='-Wl,'
20558 lt_prog_compiler_pic_CXX
='-KPIC'
20559 lt_prog_compiler_static_CXX
='-static'
20562 # Intel C++, used to be incompatible with GCC.
20563 # ICC 10 doesn't accept -KPIC any more.
20564 lt_prog_compiler_wl_CXX
='-Wl,'
20565 lt_prog_compiler_pic_CXX
='-fPIC'
20566 lt_prog_compiler_static_CXX
='-static'
20569 # Portland Group C++ compiler
20570 lt_prog_compiler_wl_CXX
='-Wl,'
20571 lt_prog_compiler_pic_CXX
='-fpic'
20572 lt_prog_compiler_static_CXX
='-Bstatic'
20576 # Make sure the PIC flag is empty. It appears that all Alpha
20577 # Linux and Compaq Tru64 Unix objects are PIC.
20578 lt_prog_compiler_pic_CXX
=
20579 lt_prog_compiler_static_CXX
='-non_shared'
20581 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20582 # IBM XL 8.0, 9.0 on PPC and BlueGene
20583 lt_prog_compiler_wl_CXX
='-Wl,'
20584 lt_prog_compiler_pic_CXX
='-qpic'
20585 lt_prog_compiler_static_CXX
='-qstaticlink'
20588 case `$CC -V 2>&1 | sed 5q` in
20591 lt_prog_compiler_pic_CXX
='-KPIC'
20592 lt_prog_compiler_static_CXX
='-Bstatic'
20593 lt_prog_compiler_wl_CXX
='-Qoption ld '
20604 case $cc_basename in
20606 lt_prog_compiler_pic_CXX
='-W c,exportall'
20615 # QNX uses GNU C++, but need to define -shared option too, otherwise
20616 # it will coredump.
20617 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20619 osf3
* | osf4
* | osf5
*)
20620 case $cc_basename in
20622 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20625 # Rational C++ 2.4.1
20626 lt_prog_compiler_pic_CXX
='-pic'
20629 # Digital/Compaq C++
20630 lt_prog_compiler_wl_CXX
='-Wl,'
20631 # Make sure the PIC flag is empty. It appears that all Alpha
20632 # Linux and Compaq Tru64 Unix objects are PIC.
20633 lt_prog_compiler_pic_CXX
=
20634 lt_prog_compiler_static_CXX
='-non_shared'
20643 case $cc_basename in
20645 # Sun C++ 4.2, 5.x and Centerline C++
20646 lt_prog_compiler_pic_CXX
='-KPIC'
20647 lt_prog_compiler_static_CXX
='-Bstatic'
20648 lt_prog_compiler_wl_CXX
='-Qoption ld '
20651 # Green Hills C++ Compiler
20652 lt_prog_compiler_pic_CXX
='-PIC'
20659 case $cc_basename in
20662 lt_prog_compiler_pic_CXX
='-pic'
20663 lt_prog_compiler_static_CXX
='-Bstatic'
20667 lt_prog_compiler_pic_CXX
='-pic'
20673 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20674 case $cc_basename in
20676 lt_prog_compiler_wl_CXX
='-Wl,'
20677 lt_prog_compiler_pic_CXX
='-KPIC'
20678 lt_prog_compiler_static_CXX
='-Bstatic'
20683 case $cc_basename in
20685 # NonStop-UX NCC 3.20
20686 lt_prog_compiler_pic_CXX
='-KPIC'
20695 lt_prog_compiler_can_build_shared_CXX
=no
20701 # For platforms which do not support PIC, -DPIC is meaningless:
20703 lt_prog_compiler_pic_CXX
=
20706 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20710 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20715 # Check to make sure the PIC flag actually works.
20717 if test -n "$lt_prog_compiler_pic_CXX"; then
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20719 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20720 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20721 $as_echo_n "(cached) " >&6
20723 lt_cv_prog_compiler_pic_works_CXX
=no
20724 ac_outfile
=conftest.
$ac_objext
20725 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20726 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20727 # Insert the option either (1) after the last *FLAGS variable, or
20728 # (2) before a word containing "conftest.", or (3) at the end.
20729 # Note that $ac_compile itself does not contain backslashes and begins
20730 # with a dollar sign (not a hyphen), so the echo should work correctly.
20731 # The option is referenced via a variable to avoid confusing sed.
20732 lt_compile
=`echo "$ac_compile" | $SED \
20733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20735 -e 's:$: $lt_compiler_flag:'`
20736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20737 (eval "$lt_compile" 2>conftest.err
)
20739 cat conftest.err
>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 if (exit $ac_status) && test -s "$ac_outfile"; then
20742 # The compiler can only warn and ignore the option if not recognized
20743 # So say no if there are warnings other than the usual output.
20744 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20745 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20746 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20747 lt_cv_prog_compiler_pic_works_CXX
=yes
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20754 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20756 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20757 case $lt_prog_compiler_pic_CXX in
20759 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20762 lt_prog_compiler_pic_CXX
=
20763 lt_prog_compiler_can_build_shared_CXX
=no
20771 # Check to make sure the static flag actually works.
20773 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20775 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20776 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20777 $as_echo_n "(cached) " >&6
20779 lt_cv_prog_compiler_static_works_CXX
=no
20780 save_LDFLAGS
="$LDFLAGS"
20781 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20782 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20783 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20784 # The linker can only warn and ignore the option if not recognized
20785 # So say no if there are warnings
20786 if test -s conftest.err
; then
20787 # Append any errors to the config.log.
20788 cat conftest.err
1>&5
20789 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20790 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20791 if diff conftest.exp conftest.er2
>/dev
/null
; then
20792 lt_cv_prog_compiler_static_works_CXX
=yes
20795 lt_cv_prog_compiler_static_works_CXX
=yes
20799 LDFLAGS
="$save_LDFLAGS"
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20803 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20805 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20808 lt_prog_compiler_static_CXX
=
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20815 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20816 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20817 $as_echo_n "(cached) " >&6
20819 lt_cv_prog_compiler_c_o_CXX
=no
20820 $RM -r conftest
2>/dev
/null
20824 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20826 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20827 # Insert the option either (1) after the last *FLAGS variable, or
20828 # (2) before a word containing "conftest.", or (3) at the end.
20829 # Note that $ac_compile itself does not contain backslashes and begins
20830 # with a dollar sign (not a hyphen), so the echo should work correctly.
20831 lt_compile
=`echo "$ac_compile" | $SED \
20832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20834 -e 's:$: $lt_compiler_flag:'`
20835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20836 (eval "$lt_compile" 2>out
/conftest.err
)
20838 cat out
/conftest.err
>&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20842 # The compiler can only warn and ignore the option if not recognized
20843 # So say no if there are warnings
20844 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20845 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20846 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20847 lt_cv_prog_compiler_c_o_CXX
=yes
20852 # SGI C++ compiler will create directory out/ii_files/ for
20853 # template instantiation
20854 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20855 $RM out
/* && rmdir out
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20862 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20867 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20868 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20869 $as_echo_n "(cached) " >&6
20871 lt_cv_prog_compiler_c_o_CXX
=no
20872 $RM -r conftest
2>/dev
/null
20876 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20878 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20879 # Insert the option either (1) after the last *FLAGS variable, or
20880 # (2) before a word containing "conftest.", or (3) at the end.
20881 # Note that $ac_compile itself does not contain backslashes and begins
20882 # with a dollar sign (not a hyphen), so the echo should work correctly.
20883 lt_compile
=`echo "$ac_compile" | $SED \
20884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20886 -e 's:$: $lt_compiler_flag:'`
20887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20888 (eval "$lt_compile" 2>out
/conftest.err
)
20890 cat out
/conftest.err
>&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20894 # The compiler can only warn and ignore the option if not recognized
20895 # So say no if there are warnings
20896 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20897 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20898 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20899 lt_cv_prog_compiler_c_o_CXX
=yes
20904 # SGI C++ compiler will create directory out/ii_files/ for
20905 # template instantiation
20906 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20907 $RM out
/* && rmdir out
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20914 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20919 hard_links
="nottested"
20920 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20921 # do not overwrite the value of need_locks provided by the user
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20923 $as_echo_n "checking if we can lock with hard links... " >&6; }
20926 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20928 ln conftest.a conftest.b
2>&5 || hard_links
=no
20929 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20931 $as_echo "$hard_links" >&6; }
20932 if test "$hard_links" = no
; then
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20934 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20944 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20946 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20949 # If we're using GNU nm, then we don't want the "-C" option.
20950 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20951 # Also, AIX nm treats weak defined symbols like other global defined
20952 # symbols, whereas GNU nm marks them as "W".
20953 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20954 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'
20956 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'
20960 export_symbols_cmds_CXX
="$ltdll_cmds"
20962 cygwin
* | mingw
* | cegcc
*)
20963 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'
20966 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20969 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20972 $as_echo "$ld_shlibs_CXX" >&6; }
20973 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20975 with_gnu_ld_CXX
=$with_gnu_ld
20983 # Do we need to explicitly link libc?
20985 case "x$archive_cmds_need_lc_CXX" in
20987 # Assume -lc should be added
20988 archive_cmds_need_lc_CXX
=yes
20990 if test "$enable_shared" = yes && test "$GCC" = yes; then
20991 case $archive_cmds_CXX in
20993 # FIXME: we may have to deal with multi-command sequences.
20996 # Test whether the compiler implicitly links with -lc since on some
20997 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20998 # to ld, don't add -lc before -lgcc.
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21000 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21001 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
21002 $as_echo_n "(cached) " >&6
21005 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21008 (eval $ac_compile) 2>&5
21010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21011 test $ac_status = 0; } 2>conftest.err
; then
21014 libobjs
=conftest.
$ac_objext
21016 wl
=$lt_prog_compiler_wl_CXX
21017 pic_flag
=$lt_prog_compiler_pic_CXX
21023 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21024 allow_undefined_flag_CXX
=
21025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21026 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21029 test $ac_status = 0; }
21031 lt_cv_archive_cmds_need_lc_CXX
=no
21033 lt_cv_archive_cmds_need_lc_CXX
=yes
21035 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21037 cat conftest.err
1>&5
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21043 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21044 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21115 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21117 library_names_spec
=
21118 libname_spec
='lib$name'
21122 postuninstall_cmds
=
21126 shlibpath_overrides_runpath
=unknown
21128 dynamic_linker
="$host_os ld.so"
21129 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21130 need_lib_prefix
=unknown
21131 hardcode_into_libs
=no
21133 # when you set need_version to no, make sure it does not cause -set_version
21134 # flags to be left without arguments
21135 need_version
=unknown
21140 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21141 shlibpath_var
=LIBPATH
21143 # AIX 3 has no versioning support, so we append a major version to the name.
21144 soname_spec
='${libname}${release}${shared_ext}$major'
21151 hardcode_into_libs
=yes
21152 if test "$host_cpu" = ia64
; then
21153 # AIX 5 supports IA64
21154 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21155 shlibpath_var
=LD_LIBRARY_PATH
21157 # With GCC up to 2.95.x, collect2 would create an import file
21158 # for dependence libraries. The import file would start with
21159 # the line `#! .'. This would cause the generated library to
21160 # depend on `.', always an invalid library. This was fixed in
21161 # development snapshots of GCC prior to 3.0.
21163 aix4 | aix4.
[01] | aix4.
[01].
*)
21164 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21166 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21169 can_build_shared
=no
21173 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21174 # soname into executable. Probably we can add versioning support to
21175 # collect2, so additional links can be useful in future.
21176 if test "$aix_use_runtimelinking" = yes; then
21177 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21178 # instead of lib<name>.a to let people know that these are not
21179 # typical AIX shared libraries.
21180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21182 # We preserve .a as extension for shared libraries through AIX4.2
21183 # and later when we are not doing run time linking.
21184 library_names_spec
='${libname}${release}.a $libname.a'
21185 soname_spec
='${libname}${release}${shared_ext}$major'
21187 shlibpath_var
=LIBPATH
21194 # Since July 2007 AmigaOS4 officially supports .so libraries.
21195 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21196 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21199 library_names_spec
='$libname.ixlibrary $libname.a'
21200 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21201 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'
21207 library_names_spec
='${libname}${shared_ext}'
21208 dynamic_linker
="$host_os ld.so"
21209 shlibpath_var
=LIBRARY_PATH
21215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21216 soname_spec
='${libname}${release}${shared_ext}$major'
21217 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21218 shlibpath_var
=LD_LIBRARY_PATH
21219 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21220 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21221 # the default ld.so.conf also contains /usr/contrib/lib and
21222 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21223 # libtool to hard-code these into programs
21226 cygwin
* | mingw
* | pw32
* | cegcc
*)
21227 version_type
=windows
21232 case $GCC,$host_os in
21233 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21234 library_names_spec
='$libname.dll.a'
21235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21236 postinstall_cmds
='base_file=`basename \${file}`~
21237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21238 dldir=$destdir/`dirname \$dlpath`~
21239 test -d \$dldir || mkdir -p \$dldir~
21240 $install_prog $dir/$dlname \$dldir/$dlname~
21241 chmod a+x \$dldir/$dlname~
21242 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21243 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21245 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21246 dlpath=$dir/\$dldll~
21248 shlibpath_overrides_runpath
=yes
21252 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21253 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21257 # MinGW DLLs use traditional 'lib' prefix
21258 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21261 # pw32 DLLs use 'pw' prefix rather than 'lib'
21262 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21268 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21271 dynamic_linker
='Win32 ld.exe'
21272 # FIXME: first we should search . and the directory the executable is in
21276 darwin
* | rhapsody
*)
21277 dynamic_linker
="$host_os dyld"
21278 version_type
=darwin
21281 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21282 soname_spec
='${libname}${release}${major}$shared_ext'
21283 shlibpath_overrides_runpath
=yes
21284 shlibpath_var
=DYLD_LIBRARY_PATH
21285 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21287 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21294 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21295 soname_spec
='${libname}${release}${shared_ext}$major'
21296 shlibpath_var
=LD_LIBRARY_PATH
21299 freebsd
* | dragonfly
*)
21300 # DragonFly does not have aout. When/if they implement a new
21301 # versioning mechanism, adjust this.
21302 if test -x /usr
/bin
/objformat
; then
21303 objformat
=`/usr/bin/objformat`
21306 freebsd
[23].
*) objformat
=aout
;;
21307 *) objformat
=elf
;;
21310 version_type
=freebsd-
$objformat
21311 case $version_type in
21313 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21318 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21322 shlibpath_var
=LD_LIBRARY_PATH
21325 shlibpath_overrides_runpath
=yes
21327 freebsd3.
[01]* | freebsdelf3.
[01]*)
21328 shlibpath_overrides_runpath
=yes
21329 hardcode_into_libs
=yes
21331 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21332 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21333 shlibpath_overrides_runpath
=no
21334 hardcode_into_libs
=yes
21336 *) # from 4.6 on, and DragonFly
21337 shlibpath_overrides_runpath
=yes
21338 hardcode_into_libs
=yes
21347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21348 soname_spec
='${libname}${release}${shared_ext}$major'
21349 shlibpath_var
=LD_LIBRARY_PATH
21350 hardcode_into_libs
=yes
21357 dynamic_linker
="$host_os runtime_loader"
21358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21359 soname_spec
='${libname}${release}${shared_ext}$major'
21360 shlibpath_var
=LIBRARY_PATH
21361 shlibpath_overrides_runpath
=yes
21362 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21363 hardcode_into_libs
=yes
21366 hpux9
* | hpux10
* | hpux11
*)
21367 # Give a soname corresponding to the major version so that dld.sl refuses to
21368 # link against other versions.
21375 hardcode_into_libs
=yes
21376 dynamic_linker
="$host_os dld.so"
21377 shlibpath_var
=LD_LIBRARY_PATH
21378 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21380 soname_spec
='${libname}${release}${shared_ext}$major'
21381 if test "X$HPUX_IA64_MODE" = X32
; then
21382 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21384 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21386 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21390 hardcode_into_libs
=yes
21391 dynamic_linker
="$host_os dld.sl"
21392 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_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 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21397 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21401 dynamic_linker
="$host_os dld.sl"
21402 shlibpath_var
=SHLIB_PATH
21403 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21404 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21405 soname_spec
='${libname}${release}${shared_ext}$major'
21408 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21409 postinstall_cmds
='chmod 555 $lib'
21410 # or fails outright, so override atomically:
21411 install_override_mode
=555
21418 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21419 soname_spec
='${libname}${release}${shared_ext}$major'
21420 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21421 shlibpath_var
=LD_LIBRARY_PATH
21422 shlibpath_overrides_runpath
=no
21423 hardcode_into_libs
=yes
21426 irix5
* | irix6
* | nonstopux
*)
21428 nonstopux
*) version_type
=nonstopux
;;
21430 if test "$lt_cv_prog_gnu_ld" = yes; then
21438 soname_spec
='${libname}${release}${shared_ext}$major'
21439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21441 irix5
* | nonstopux
*)
21442 libsuff
= shlibsuff
=
21445 case $LD in # libtool.m4 will add one of these switches to LD
21446 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21447 libsuff
= shlibsuff
= libmagic
=32-bit;;
21448 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21449 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21450 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21451 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21452 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21456 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21457 shlibpath_overrides_runpath
=no
21458 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21459 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21460 hardcode_into_libs
=yes
21463 # No shared lib support for Linux oldld, aout, or coff.
21464 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21468 # This must be Linux ELF.
21469 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21474 soname_spec
='${libname}${release}${shared_ext}$major'
21475 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21476 shlibpath_var
=LD_LIBRARY_PATH
21477 shlibpath_overrides_runpath
=no
21479 # Some binutils ld are patched to set DT_RUNPATH
21480 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21481 $as_echo_n "(cached) " >&6
21483 lt_cv_shlibpath_overrides_runpath
=no
21484 save_LDFLAGS
=$LDFLAGS
21485 save_libdir
=$libdir
21486 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21487 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h. */
21499 if ac_fn_cxx_try_link
"$LINENO"; then :
21500 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21501 lt_cv_shlibpath_overrides_runpath
=yes
21504 rm -f core conftest.err conftest.
$ac_objext \
21505 conftest
$ac_exeext conftest.
$ac_ext
21506 LDFLAGS
=$save_LDFLAGS
21507 libdir
=$save_libdir
21511 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21513 # This implies no fast_install, which is unacceptable.
21514 # Some rework will be needed to allow for fast_install
21515 # before this can be enabled.
21516 hardcode_into_libs
=yes
21518 # Append ld.so.conf contents to the search path
21519 if test -f /etc
/ld.so.conf
; then
21520 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' ' '`
21521 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21524 # We used to test for /lib/ld.so.1 and disable shared libraries on
21525 # powerpc, because MkLinux only supported shared libraries with the
21526 # GNU dynamic linker. Since this was broken with cross compilers,
21527 # most powerpc-linux boxes support dynamic linking these days and
21528 # people can always --disable-shared, the test was removed, and we
21529 # assume the GNU/Linux dynamic linker is in use.
21530 dynamic_linker
='GNU/Linux ld.so'
21537 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21538 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21539 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21540 dynamic_linker
='NetBSD (a.out) ld.so'
21542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21543 soname_spec
='${libname}${release}${shared_ext}$major'
21544 dynamic_linker
='NetBSD ld.elf_so'
21546 shlibpath_var
=LD_LIBRARY_PATH
21547 shlibpath_overrides_runpath
=yes
21548 hardcode_into_libs
=yes
21553 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21554 shlibpath_var
=LD_LIBRARY_PATH
21555 shlibpath_overrides_runpath
=yes
21562 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21563 soname_spec
='${libname}${release}${shared_ext}$major'
21564 shlibpath_var
=LD_LIBRARY_PATH
21565 shlibpath_overrides_runpath
=no
21566 hardcode_into_libs
=yes
21567 dynamic_linker
='ldqnx.so'
21572 sys_lib_dlsearch_path_spec
="/usr/lib"
21574 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21576 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21577 *) need_version
=no
;;
21579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21580 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21581 shlibpath_var
=LD_LIBRARY_PATH
21582 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21584 openbsd2.
[89] | openbsd2.
[89].
*)
21585 shlibpath_overrides_runpath
=no
21588 shlibpath_overrides_runpath
=yes
21592 shlibpath_overrides_runpath
=yes
21597 libname_spec
='$name'
21600 library_names_spec
='$libname${shared_ext} $libname.a'
21601 dynamic_linker
='OS/2 ld.exe'
21602 shlibpath_var
=LIBPATH
21605 osf3
* | osf4
* | osf5
*)
21609 soname_spec
='${libname}${release}${shared_ext}$major'
21610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21611 shlibpath_var
=LD_LIBRARY_PATH
21612 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21613 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21625 soname_spec
='${libname}${release}${shared_ext}$major'
21626 shlibpath_var
=LD_LIBRARY_PATH
21627 shlibpath_overrides_runpath
=yes
21628 hardcode_into_libs
=yes
21629 # ldd complains unless libraries are executable
21630 postinstall_cmds
='chmod +x $lib'
21635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21636 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21637 shlibpath_var
=LD_LIBRARY_PATH
21638 shlibpath_overrides_runpath
=yes
21639 if test "$with_gnu_ld" = yes; then
21647 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21648 soname_spec
='${libname}${release}${shared_ext}$major'
21649 shlibpath_var
=LD_LIBRARY_PATH
21650 case $host_vendor in
21652 shlibpath_overrides_runpath
=no
21654 runpath_var
=LD_RUN_PATH
21662 shlibpath_overrides_runpath
=no
21663 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21669 if test -d /usr
/nec
;then
21671 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21672 soname_spec
='$libname${shared_ext}.$major'
21673 shlibpath_var
=LD_LIBRARY_PATH
21677 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21678 version_type
=freebsd-elf
21681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21682 soname_spec
='${libname}${release}${shared_ext}$major'
21683 shlibpath_var
=LD_LIBRARY_PATH
21684 shlibpath_overrides_runpath
=yes
21685 hardcode_into_libs
=yes
21686 if test "$with_gnu_ld" = yes; then
21687 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21689 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21692 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21696 sys_lib_dlsearch_path_spec
='/usr/lib'
21700 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21704 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21705 shlibpath_var
=LD_LIBRARY_PATH
21706 shlibpath_overrides_runpath
=no
21707 hardcode_into_libs
=yes
21712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21713 soname_spec
='${libname}${release}${shared_ext}$major'
21714 shlibpath_var
=LD_LIBRARY_PATH
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21722 $as_echo "$dynamic_linker" >&6; }
21723 test "$dynamic_linker" = no
&& can_build_shared
=no
21725 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21726 if test "$GCC" = yes; then
21727 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21730 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21731 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21733 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21734 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21775 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21776 hardcode_action_CXX
=
21777 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21778 test -n "$runpath_var_CXX" ||
21779 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21781 # We can hardcode non-existent directories.
21782 if test "$hardcode_direct_CXX" != no
&&
21783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21784 # have to relink, otherwise we might link with an installed library
21785 # when we should be linking with a yet-to-be-installed one
21786 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21787 test "$hardcode_minus_L_CXX" != no
; then
21788 # Linking always hardcodes the temporary library directory.
21789 hardcode_action_CXX
=relink
21791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21792 hardcode_action_CXX
=immediate
21795 # We cannot hardcode anything, or else we can only hardcode existing
21797 hardcode_action_CXX
=unsupported
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21800 $as_echo "$hardcode_action_CXX" >&6; }
21802 if test "$hardcode_action_CXX" = relink ||
21803 test "$inherit_rpath_CXX" = yes; then
21804 # Fast installation is not supported
21805 enable_fast_install
=no
21806 elif test "$shlibpath_overrides_runpath" = yes ||
21807 test "$enable_shared" = no
; then
21808 # Fast installation is not necessary
21809 enable_fast_install
=needless
21818 fi # test -n "$compiler"
21824 with_gnu_ld
=$lt_save_with_gnu_ld
21825 lt_cv_path_LDCXX
=$lt_cv_path_LD
21826 lt_cv_path_LD
=$lt_save_path_LD
21827 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21828 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21829 fi # test "$_lt_caught_CXX_error" != yes
21832 ac_cpp
='$CXXCPP $CPPFLAGS'
21833 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21834 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21835 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21852 # Only expand once:
21858 # Identify the assembler which will work hand-in-glove with the newly
21859 # built GCC, so that we can examine its features. This is the assembler
21860 # which will be driven by the driver program.
21862 # If build != host, and we aren't building gas in-tree, we identify a
21863 # build->target assembler and hope that it will have the same features
21864 # as the host->target assembler we'll be using.
21865 gcc_cv_gas_major_version
=
21866 gcc_cv_gas_minor_version
=
21867 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21869 if test "${gcc_cv_as+set}" = set; then :
21873 if test -x "$DEFAULT_ASSEMBLER"; then
21874 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21875 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21876 && test -f ..
/gas
/Makefile \
21877 && test x
$build = x
$host; then
21878 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21879 elif test -x as
$build_exeext; then
21880 # Build using assembler in the current directory.
21881 gcc_cv_as
=.
/as
$build_exeext
21882 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21883 gcc_cv_as
="$AS_FOR_TARGET"
21885 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21886 set dummy
$AS_FOR_TARGET; ac_word
=$2
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21888 $as_echo_n "checking for $ac_word... " >&6; }
21889 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21890 $as_echo_n "(cached) " >&6
21894 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21898 for as_dir
in $PATH
21901 test -z "$as_dir" && as_dir
=.
21902 for ac_exec_ext
in '' $ac_executable_extensions; do
21903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21904 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21915 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21916 if test -n "$gcc_cv_as"; then
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21918 $as_echo "$gcc_cv_as" >&6; }
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21921 $as_echo "no" >&6; }
21928 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21930 case "$ORIGINAL_AS_FOR_TARGET" in
21931 .
/as | .
/as
$build_exeext) ;;
21932 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21937 $as_echo_n "checking what assembler to use... " >&6; }
21938 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21939 # Single tree build which includes gas. We want to prefer it
21940 # over whatever linker top-level may have detected, since
21941 # we'll use what we're building after installation anyway.
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21943 $as_echo "newly built gas" >&6; }
21945 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21946 for f
in $gcc_cv_as_bfd_srcdir/configure \
21947 $gcc_cv_as_gas_srcdir/configure \
21948 $gcc_cv_as_gas_srcdir/configure.ac \
21949 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21950 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21951 if test x
$gcc_cv_gas_version != x
; then
21955 case $gcc_cv_gas_version in
21957 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21959 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21960 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21961 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21962 case $gcc_cv_gas_patch_version in
21963 "") gcc_cv_gas_patch_version
="0" ;;
21965 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21966 + $gcc_cv_gas_minor_version \) \* 1000 \
21967 + $gcc_cv_gas_patch_version`
21969 in_tree_gas_is_elf
=no
21970 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21971 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21972 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21974 in_tree_gas_is_elf
=yes
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21978 $as_echo "$gcc_cv_as" >&6; }
21983 # Check whether --enable-ld was given.
21984 if test "${enable_ld+set}" = set; then :
21985 enableval
=$enable_ld; case "${enableval}" in
21993 install_gold_as_default
=no
21994 # Check whether --enable-gold was given.
21995 if test "${enable_gold+set}" = set; then :
21996 enableval
=$enable_gold; case "${enableval}" in
21998 install_gold_as_default
=yes
22001 if test x
${default_ld} != x
; then
22002 install_gold_as_default
=yes
22008 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
22014 # Identify the linker which will work hand-in-glove with the newly
22015 # built GCC, so that we can examine its features. This is the linker
22016 # which will be driven by the driver program.
22018 # If build != host, and we aren't building gas in-tree, we identify a
22019 # build->target linker and hope that it will have the same features
22020 # as the host->target linker we'll be using.
22021 gcc_cv_gld_major_version
=
22022 gcc_cv_gld_minor_version
=
22023 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22024 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22025 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22027 if test "${gcc_cv_ld+set}" = set; then :
22031 if test -x "$DEFAULT_LINKER"; then
22032 gcc_cv_ld
="$DEFAULT_LINKER"
22033 elif test $install_gold_as_default = yes \
22034 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22035 && test -f ..
/gold
/Makefile \
22036 && test x
$build = x
$host; then
22037 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22038 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22039 && test -f ..
/ld
/Makefile \
22040 && test x
$build = x
$host; then
22041 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22042 elif test -x collect-ld
$build_exeext; then
22043 # Build using linker in the current directory.
22044 gcc_cv_ld
=.
/collect-ld
$build_exeext
22045 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22046 gcc_cv_ld
="$LD_FOR_TARGET"
22048 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22049 set dummy
$LD_FOR_TARGET; ac_word
=$2
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22051 $as_echo_n "checking for $ac_word... " >&6; }
22052 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22053 $as_echo_n "(cached) " >&6
22057 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22061 for as_dir
in $PATH
22064 test -z "$as_dir" && as_dir
=.
22065 for ac_exec_ext
in '' $ac_executable_extensions; do
22066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22067 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22078 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22079 if test -n "$gcc_cv_ld"; then
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22081 $as_echo "$gcc_cv_ld" >&6; }
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22084 $as_echo "no" >&6; }
22091 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22092 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22093 # if the PLUGIN_LD is set ld-new, just have it as ld
22094 # as that is the installed named.
22095 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22096 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22097 PLUGIN_LD_SUFFIX
=ld
22100 # Check whether --with-plugin-ld was given.
22101 if test "${with_plugin_ld+set}" = set; then :
22102 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22103 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22104 PLUGIN_LD_SUFFIX
="$withval"
22110 cat >>confdefs.h
<<_ACEOF
22111 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22115 # Check to see if we are using gold instead of ld
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22117 $as_echo_n "checking whether we are using gold... " >&6; }
22119 if test x
$gcc_cv_ld != x
; then
22120 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22121 |
grep "GNU gold" > /dev
/null
; then
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22126 $as_echo "$ld_is_gold" >&6; }
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22129 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22130 # Check to see if default ld is not gold, but gold is
22131 # available and has support for split stack. If gcc was configured
22132 # with gold then no checking is done.
22134 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22136 # For platforms other than powerpc64*, enable as appropriate.
22138 gold_non_default
=no
22139 ld_gold
=`which ${gcc_cv_ld}.gold`
22140 # Make sure this gold has minimal split stack support
22141 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22142 ld_vers
=`$ld_gold --version | sed 1q`
22143 gold_vers
=`echo $ld_vers | sed -n \
22144 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22146 # check that the gold version contains the complete split stack support
22147 # on powerpc64 big and little endian
22149 case "$gold_vers" in
22150 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22152 *) gold_non_default
=no
22158 if test $gold_non_default = yes; then
22160 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22165 $as_echo "$gold_non_default" >&6; }
22167 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22169 case "$ORIGINAL_LD_FOR_TARGET" in
22170 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22171 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22176 $as_echo_n "checking what linker to use... " >&6; }
22177 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22178 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22179 # Single tree build which includes ld. We want to prefer it
22180 # over whatever linker top-level may have detected, since
22181 # we'll use what we're building after installation anyway.
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22183 $as_echo "newly built ld" >&6; }
22185 in_tree_ld_is_elf
=no
22186 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22187 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22188 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22189 in_tree_ld_is_elf
=yes
22190 elif test "$ld_is_gold" = yes; then
22191 in_tree_ld_is_elf
=yes
22193 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
22195 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22196 if test x
$gcc_cv_gld_version != x
; then
22200 case $gcc_cv_gld_version in
22202 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22204 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22205 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22206 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22207 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22210 $as_echo "$gcc_cv_ld" >&6; }
22212 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22213 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22214 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22220 # Figure out what nm we will be using.
22221 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22222 if test "${gcc_cv_nm+set}" = set; then :
22226 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22227 && test -f ..
/binutils
/Makefile \
22228 && test x
$build = x
$host; then
22229 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22230 elif test -x nm
$build_exeext; then
22231 gcc_cv_nm
=.
/nm
$build_exeext
22232 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22233 gcc_cv_nm
="$NM_FOR_TARGET"
22235 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22236 set dummy
$NM_FOR_TARGET; ac_word
=$2
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22238 $as_echo_n "checking for $ac_word... " >&6; }
22239 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22240 $as_echo_n "(cached) " >&6
22244 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22248 for as_dir
in $PATH
22251 test -z "$as_dir" && as_dir
=.
22252 for ac_exec_ext
in '' $ac_executable_extensions; do
22253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22254 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22265 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22266 if test -n "$gcc_cv_nm"; then
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22268 $as_echo "$gcc_cv_nm" >&6; }
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22271 $as_echo "no" >&6; }
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22279 $as_echo_n "checking what nm to use... " >&6; }
22280 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22281 # Single tree build which includes binutils.
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22283 $as_echo "newly built nm" >&6; }
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22287 $as_echo "$gcc_cv_nm" >&6; }
22291 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22293 case "$ORIGINAL_NM_FOR_TARGET" in
22294 .
/nm | .
/nm
$build_exeext) ;;
22295 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22300 # Figure out what objdump we will be using.
22301 if test "${gcc_cv_objdump+set}" = set; then :
22305 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22306 && test -f ..
/binutils
/Makefile \
22307 && test x
$build = x
$host; then
22308 # Single tree build which includes binutils.
22309 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22310 elif test -x objdump
$build_exeext; then
22311 gcc_cv_objdump
=.
/objdump
$build_exeext
22312 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22313 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22315 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22316 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22318 $as_echo_n "checking for $ac_word... " >&6; }
22319 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22320 $as_echo_n "(cached) " >&6
22322 case $gcc_cv_objdump in
22324 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22328 for as_dir
in $PATH
22331 test -z "$as_dir" && as_dir
=.
22332 for ac_exec_ext
in '' $ac_executable_extensions; do
22333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22334 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22345 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22346 if test -n "$gcc_cv_objdump"; then
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22348 $as_echo "$gcc_cv_objdump" >&6; }
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22351 $as_echo "no" >&6; }
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22359 $as_echo_n "checking what objdump to use... " >&6; }
22360 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22361 # Single tree build which includes binutils.
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22363 $as_echo "newly built objdump" >&6; }
22364 elif test x
$gcc_cv_objdump = x
; then
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22366 $as_echo "not found" >&6; }
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22369 $as_echo "$gcc_cv_objdump" >&6; }
22372 # Figure out what readelf we will be using.
22373 if test "${gcc_cv_readelf+set}" = set; then :
22377 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22378 && test -f ..
/binutils
/Makefile \
22379 && test x
$build = x
$host; then
22380 # Single tree build which includes binutils.
22381 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22382 elif test -x readelf
$build_exeext; then
22383 gcc_cv_readelf
=.
/readelf
$build_exeext
22384 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22385 gcc_cv_readelf
="$READELF_FOR_TARGET"
22387 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22388 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22390 $as_echo_n "checking for $ac_word... " >&6; }
22391 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22392 $as_echo_n "(cached) " >&6
22394 case $gcc_cv_readelf in
22396 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22400 for as_dir
in $PATH
22403 test -z "$as_dir" && as_dir
=.
22404 for ac_exec_ext
in '' $ac_executable_extensions; do
22405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22406 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22417 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22418 if test -n "$gcc_cv_readelf"; then
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22420 $as_echo "$gcc_cv_readelf" >&6; }
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22423 $as_echo "no" >&6; }
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22431 $as_echo_n "checking what readelf to use... " >&6; }
22432 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22433 # Single tree build which includes binutils.
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22435 $as_echo "newly built readelf" >&6; }
22436 elif test x
$gcc_cv_readelf = x
; then
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22438 $as_echo "not found" >&6; }
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22441 $as_echo "$gcc_cv_readelf" >&6; }
22444 # Figure out what assembler alignment features are present.
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22446 $as_echo_n "checking assembler flags... " >&6; }
22447 if test "${gcc_cv_as_flags+set}" = set; then :
22448 $as_echo_n "(cached) " >&6
22451 i
[34567]86-*-linux*)
22452 gcc_cv_as_flags
=--32
22454 x86_64-
*-linux-gnux32)
22455 gcc_cv_as_flags
=--x32
22458 gcc_cv_as_flags
=--64
22460 powerpc
*-*-darwin*)
22461 gcc_cv_as_flags
="-arch ppc"
22464 gcc_cv_as_flags
=" "
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22469 $as_echo "$gcc_cv_as_flags" >&6; }
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22472 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22473 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22476 gcc_cv_as_balign_and_p2align
=no
22477 if test $in_tree_gas = yes; then
22478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22479 then gcc_cv_as_balign_and_p2align
=yes
22481 elif test x
$gcc_cv_as != x
; then
22482 $as_echo '.balign 4
22483 .p2align 2' > conftest.s
22484 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22486 (eval $ac_try) 2>&5
22488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22489 test $ac_status = 0; }; }
22491 gcc_cv_as_balign_and_p2align
=yes
22493 echo "configure: failed program was" >&5
22496 rm -f conftest.o conftest.s
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22500 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22501 if test $gcc_cv_as_balign_and_p2align = yes; then
22503 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22509 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22510 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22511 $as_echo_n "(cached) " >&6
22513 gcc_cv_as_max_skip_p2align
=no
22514 if test $in_tree_gas = yes; then
22515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22516 then gcc_cv_as_max_skip_p2align
=yes
22518 elif test x
$gcc_cv_as != x
; then
22519 $as_echo '.p2align 4,,7' > conftest.s
22520 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22522 (eval $ac_try) 2>&5
22524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22525 test $ac_status = 0; }; }
22527 gcc_cv_as_max_skip_p2align
=yes
22529 echo "configure: failed program was" >&5
22532 rm -f conftest.o conftest.s
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22536 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22537 if test $gcc_cv_as_max_skip_p2align = yes; then
22539 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22545 $as_echo_n "checking assembler for .literal16... " >&6; }
22546 if test "${gcc_cv_as_literal16+set}" = set; then :
22547 $as_echo_n "(cached) " >&6
22549 gcc_cv_as_literal16
=no
22550 if test $in_tree_gas = yes; then
22551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22552 then gcc_cv_as_literal16
=yes
22554 elif test x
$gcc_cv_as != x
; then
22555 $as_echo '.literal16' > conftest.s
22556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22558 (eval $ac_try) 2>&5
22560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22561 test $ac_status = 0; }; }
22563 gcc_cv_as_literal16
=yes
22565 echo "configure: failed program was" >&5
22568 rm -f conftest.o conftest.s
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22572 $as_echo "$gcc_cv_as_literal16" >&6; }
22573 if test $gcc_cv_as_literal16 = yes; then
22575 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22581 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22582 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22583 $as_echo_n "(cached) " >&6
22585 gcc_cv_as_subsection_m1
=no
22586 if test $in_tree_gas = yes; then
22587 if test $in_tree_gas_is_elf = yes \
22588 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22589 then gcc_cv_as_subsection_m1
=yes
22591 elif test x
$gcc_cv_as != x
; then
22592 $as_echo 'conftest_label1: .word 0
22594 conftest_label2: .word 0
22595 .previous' > conftest.s
22596 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22598 (eval $ac_try) 2>&5
22600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22601 test $ac_status = 0; }; }
22603 if test x
$gcc_cv_nm != x
; then
22604 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22605 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22606 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22608 else gcc_cv_as_subsection_m1
=yes
22610 rm -f conftest.nm1 conftest.nm2
22613 echo "configure: failed program was" >&5
22616 rm -f conftest.o conftest.s
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22620 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22621 if test $gcc_cv_as_subsection_m1 = yes; then
22623 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22629 $as_echo_n "checking assembler for .weak... " >&6; }
22630 if test "${gcc_cv_as_weak+set}" = set; then :
22631 $as_echo_n "(cached) " >&6
22634 if test $in_tree_gas = yes; then
22635 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22636 then gcc_cv_as_weak
=yes
22638 elif test x
$gcc_cv_as != x
; then
22639 $as_echo ' .weak foobar' > conftest.s
22640 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22642 (eval $ac_try) 2>&5
22644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22645 test $ac_status = 0; }; }
22649 echo "configure: failed program was" >&5
22652 rm -f conftest.o conftest.s
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22656 $as_echo "$gcc_cv_as_weak" >&6; }
22657 if test $gcc_cv_as_weak = yes; then
22659 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22665 $as_echo_n "checking assembler for .weakref... " >&6; }
22666 if test "${gcc_cv_as_weakref+set}" = set; then :
22667 $as_echo_n "(cached) " >&6
22669 gcc_cv_as_weakref
=no
22670 if test $in_tree_gas = yes; then
22671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22672 then gcc_cv_as_weakref
=yes
22674 elif test x
$gcc_cv_as != x
; then
22675 $as_echo ' .weakref foobar, barfnot' > conftest.s
22676 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22678 (eval $ac_try) 2>&5
22680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22681 test $ac_status = 0; }; }
22683 gcc_cv_as_weakref
=yes
22685 echo "configure: failed program was" >&5
22688 rm -f conftest.o conftest.s
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22692 $as_echo "$gcc_cv_as_weakref" >&6; }
22693 if test $gcc_cv_as_weakref = yes; then
22695 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22701 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22702 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22703 $as_echo_n "(cached) " >&6
22705 gcc_cv_as_nsubspa_comdat
=no
22706 if test $in_tree_gas = yes; then
22707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22708 then gcc_cv_as_nsubspa_comdat
=yes
22710 elif test x
$gcc_cv_as != x
; then
22711 $as_echo ' .SPACE $TEXT$
22712 .NSUBSPA $CODE$,COMDAT' > conftest.s
22713 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22715 (eval $ac_try) 2>&5
22717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718 test $ac_status = 0; }; }
22720 gcc_cv_as_nsubspa_comdat
=yes
22722 echo "configure: failed program was" >&5
22725 rm -f conftest.o conftest.s
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22729 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22730 if test $gcc_cv_as_nsubspa_comdat = yes; then
22732 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22737 # .hidden needs to be supported in both the assembler and the linker,
22738 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22739 # This is irritatingly difficult to feature test for; we have to check the
22740 # date string after the version number. If we've got an in-tree
22741 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22743 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22744 case "${target}" in
22746 conftest_s
=' .globl foobar,hidden'
22749 conftest_s
=' .hidden foobar
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22754 $as_echo_n "checking assembler for .hidden... " >&6; }
22755 if test "${gcc_cv_as_hidden+set}" = set; then :
22756 $as_echo_n "(cached) " >&6
22758 gcc_cv_as_hidden
=no
22759 if test $in_tree_gas = yes; then
22760 if test $in_tree_gas_is_elf = yes \
22761 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22762 then gcc_cv_as_hidden
=yes
22764 elif test x
$gcc_cv_as != x
; then
22765 $as_echo "$conftest_s" > conftest.s
22766 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22768 (eval $ac_try) 2>&5
22770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22771 test $ac_status = 0; }; }
22773 gcc_cv_as_hidden
=yes
22775 echo "configure: failed program was" >&5
22778 rm -f conftest.o conftest.s
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22782 $as_echo "$gcc_cv_as_hidden" >&6; }
22785 case "${target}" in
22787 # Darwin as has some visibility support, though with a different syntax.
22788 gcc_cv_as_hidden
=yes
22792 # gnu_indirect_function type is an extension proposed at
22793 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22794 # selection of function implementation
22795 # Check whether --enable-gnu-indirect-function was given.
22796 if test "${enable_gnu_indirect_function+set}" = set; then :
22797 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22799 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22800 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22803 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22807 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22809 cat >>confdefs.h
<<_ACEOF
22810 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22815 if test $in_tree_ld != yes ; then
22816 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22817 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22818 if test x
"$ld_is_gold" = xyes
; then
22819 # GNU gold --version looks like this:
22821 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22823 # We extract the binutils version which is more familiar and specific
22824 # than the gold version.
22825 ld_vers
=`echo $ld_ver | sed -n \
22826 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22828 # GNU ld --version looks like this:
22830 # GNU ld (GNU Binutils) 2.21.51.20110225
22831 ld_vers
=`echo $ld_ver | sed -n \
22832 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22834 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'`
22835 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22836 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22837 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22839 case "${target}" in
22841 # Solaris 2 ld -V output looks like this for a regular version:
22843 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22845 # but test versions add stuff at the end:
22847 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22849 # In Solaris 11.4, this was changed to
22851 # ld: Solaris ELF Utilities: 11.4-1.3123
22853 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22854 # numbers can be used in ld.so.1 feature checks even if a different
22855 # linker is configured.
22856 ld_ver
=`$gcc_cv_ld -V 2>&1`
22857 if echo "$ld_ver" |
$EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev
/null
; then
22858 ld_vers
=`echo $ld_ver | sed -n \
22859 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22860 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22861 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22869 $as_echo_n "checking linker for .hidden support... " >&6; }
22870 if test "${gcc_cv_ld_hidden+set}" = set; then :
22871 $as_echo_n "(cached) " >&6
22873 if test $in_tree_ld = yes ; then
22874 gcc_cv_ld_hidden
=no
22875 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 \
22876 && test $in_tree_ld_is_elf = yes; then
22877 gcc_cv_ld_hidden
=yes
22880 gcc_cv_ld_hidden
=yes
22881 if test x
"$ld_is_gold" = xyes
; then
22883 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22884 case "${target}" in
22885 mmix-knuth-mmixware
)
22886 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22887 gcc_cv_ld_hidden
=no
22890 if test 0"$ld_date" -lt 20020404; then
22891 if test -n "$ld_date"; then
22892 # If there was date string, but was earlier than 2002-04-04, fail
22893 gcc_cv_ld_hidden
=no
22894 elif test -z "$ld_vers"; then
22895 # If there was no date string nor ld version number, something is wrong
22896 gcc_cv_ld_hidden
=no
22898 test -z "$ld_vers_patch" && ld_vers_patch
=0
22899 if test "$ld_vers_major" -lt 2; then
22900 gcc_cv_ld_hidden
=no
22901 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22902 gcc_cv_ld_hidden
="no"
22903 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22904 gcc_cv_ld_hidden
=no
22909 case "${target}" in
22911 gcc_cv_ld_hidden
=yes
22914 # Darwin ld has some visibility support.
22915 gcc_cv_ld_hidden
=yes
22917 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22918 gcc_cv_ld_hidden
=yes
22920 *-*-solaris2.1
[0-9]*)
22921 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22922 # .symbolic was only added in Solaris 9 12/02.
22923 gcc_cv_ld_hidden
=yes
22926 gcc_cv_ld_hidden
=no
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22933 $as_echo "$gcc_cv_ld_hidden" >&6; }
22934 libgcc_visibility
=no
22937 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22938 libgcc_visibility
=yes
22940 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22945 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22946 gcc_cv_ld_ro_rw_mix
=unknown
22947 if test $in_tree_ld = yes ; then
22948 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 \
22949 && test $in_tree_ld_is_elf = yes; then
22950 gcc_cv_ld_ro_rw_mix
=read-write
22952 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22953 echo '.section myfoosect, "a"' > conftest1.s
22954 echo '.section myfoosect, "aw"' > conftest2.s
22955 echo '.byte 1' >> conftest2.s
22956 echo '.section myfoosect, "a"' > conftest3.s
22957 echo '.byte 0' >> conftest3.s
22958 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22959 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22960 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22961 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22962 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22963 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22964 | sed -e '/myfoosect/!d' -e N`
22965 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22966 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22967 gcc_cv_ld_ro_rw_mix
=read-only
22969 gcc_cv_ld_ro_rw_mix
=read-write
22973 rm -f conftest.
* conftest
[123].
*
22975 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22977 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22981 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22983 # Check whether --enable-initfini-array was given.
22984 if test "${enable_initfini_array+set}" = set; then :
22985 enableval
=$enable_initfini_array;
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22989 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22990 if test "${gcc_cv_initfini_array+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22993 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22994 case "${target}" in
22996 if test "$cross_compiling" = yes; then :
22997 gcc_cv_initfini_array
=no
22999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23000 /* end confdefs.h. */
23003 #error Not an ELF OS
23005 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23006 if it can be used. */
23008 int main (void) { return x; }
23009 int foo (void) { x = 0; }
23010 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23013 if ac_fn_cxx_try_run
"$LINENO"; then :
23014 gcc_cv_initfini_array
=yes
23016 gcc_cv_initfini_array
=no
23018 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23019 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23023 gcc_cv_initfini_array
=no
23024 if test $in_tree_ld = yes ; then
23025 if test "$gcc_cv_gld_major_version" -eq 2 \
23026 -a "$gcc_cv_gld_minor_version" -ge 22 \
23027 -o "$gcc_cv_gld_major_version" -gt 2 \
23028 && test $in_tree_ld_is_elf = yes; then
23029 gcc_cv_initfini_array
=yes
23031 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23032 case $target:$gas in
23035 sh_type
='%progbits'
23037 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23039 sh_type
='@progbits'
23041 sparc
*-*-solaris2*:no
)
23043 sh_type
='#progbits'
23047 case "$target:$gnu_ld" in
23049 cat > conftest.s
<<EOF
23050 .section .dtors,$sh_flags,$sh_type
23052 .byte 'A', 'A', 'A', 'A'
23053 .section .ctors,$sh_flags,$sh_type
23055 .byte 'B', 'B', 'B', 'B'
23056 .section .fini_array.65530,$sh_flags,$sh_type
23058 .byte 'C', 'C', 'C', 'C'
23059 .section .init_array.65530,$sh_flags,$sh_type
23061 .byte 'D', 'D', 'D', 'D'
23062 .section .dtors.64528,$sh_flags,$sh_type
23064 .byte 'E', 'E', 'E', 'E'
23065 .section .ctors.64528,$sh_flags,$sh_type
23067 .byte 'F', 'F', 'F', 'F'
23068 .section .fini_array.01005,$sh_flags,$sh_type
23070 .byte 'G', 'G', 'G', 'G'
23071 .section .init_array.01005,$sh_flags,$sh_type
23073 .byte 'H', 'H', 'H', 'H'
23078 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23079 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23080 && $gcc_cv_objdump -s -j .init_array conftest \
23081 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23082 && $gcc_cv_objdump -s -j .fini_array conftest \
23083 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23084 gcc_cv_initfini_array
=yes
23088 # When Solaris ld added constructor priority support, it was
23089 # decided to only handle .init_array.N/.fini_array.N since
23090 # there was no need for backwards compatibility with
23091 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23092 # sections with correct execution order resp. to
23093 # .init_array/.fini_array, while gld merges them into
23094 # .init_array/.fini_array.
23095 cat > conftest.s
<<EOF
23096 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23098 .byte 'C', 'C', 'C', 'C'
23099 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23101 .byte 'D', 'D', 'D', 'D'
23102 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23104 .byte 'G', 'G', 'G', 'G'
23105 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23107 .byte 'H', 'H', 'H', 'H'
23112 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23113 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23114 && $gcc_cv_objdump -s -j .init_array conftest \
23115 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23116 && $gcc_cv_objdump -s -j .fini_array conftest \
23117 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23118 gcc_cv_initfini_array
=yes
23122 rm -f conftest conftest.
*
23124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23125 /* end confdefs.h. */
23128 # error Not an ELF OS
23130 #include <stdlib.h>
23131 #if defined __GLIBC_PREREQ
23132 # if __GLIBC_PREREQ (2, 4)
23134 # error GLIBC 2.4 required
23137 # if defined __sun__ && defined __svr4__
23138 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23140 # error The C library not known to support .init_array/.fini_array
23145 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23148 gcc_cv_initfini_array
=no
23150 rm -f conftest.err conftest.
$ac_ext;;
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23154 $as_echo_n "checking cross compile... guessing... " >&6; }
23155 gcc_cv_initfini_array
=no
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23159 $as_echo "$gcc_cv_initfini_array" >&6; }
23160 enable_initfini_array
=$gcc_cv_initfini_array
23165 cat >>confdefs.h
<<_ACEOF
23166 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23171 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23173 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23174 if test "${gcc_cv_as_leb128+set}" = set; then :
23175 $as_echo_n "(cached) " >&6
23177 gcc_cv_as_leb128
=no
23178 if test $in_tree_gas = yes; then
23179 if test $in_tree_gas_is_elf = yes \
23180 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23181 then gcc_cv_as_leb128
=yes
23183 elif test x
$gcc_cv_as != x
; then
23190 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23192 (eval $ac_try) 2>&5
23194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23195 test $ac_status = 0; }; }
23197 # GAS versions before 2.11 do not support uleb128,
23198 # despite appearing to.
23199 # ??? There exists an elf-specific test that will crash
23200 # the assembler. Perhaps it's better to figure out whether
23201 # arbitrary sections are supported and try the test.
23202 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23203 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23204 as_vers
=`echo $as_ver | sed -n \
23205 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23206 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23207 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23208 if test $as_major -eq 2 && test $as_minor -lt 11
23210 else gcc_cv_as_leb128
=yes
23214 echo "configure: failed program was" >&5
23217 rm -f conftest.o conftest.s
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23221 $as_echo "$gcc_cv_as_leb128" >&6; }
23222 if test $gcc_cv_as_leb128 = yes; then
23224 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23227 if test $gcc_cv_as_leb128 != yes; then
23229 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23233 # Determine if an .eh_frame section is read-only.
23234 gcc_fn_eh_frame_ro
() {
23235 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23236 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23237 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23240 # Check if we have assembler support for unwind directives.
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23242 $as_echo_n "checking assembler for cfi directives... " >&6; }
23243 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23244 $as_echo_n "(cached) " >&6
23246 gcc_cv_as_cfi_directive
=no
23247 if test x
$gcc_cv_as != x
; then
23253 .cfi_escape 1, 2, 3, 4, 5
23254 .cfi_endproc' > conftest.s
23255 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23257 (eval $ac_try) 2>&5
23259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23260 test $ac_status = 0; }; }
23264 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23265 # read-only and read-write sections, we need to make sure that the
23266 # assembler used emits read-write .eh_frame sections.
23267 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23268 gcc_cv_as_cfi_directive
=yes
23269 elif test "x$gcc_cv_objdump" = x
; then
23270 # No objdump, err on the side of caution.
23271 gcc_cv_as_cfi_directive
=no
23273 if test x
$gas = xyes
; then
23281 sparc
*-*-solaris2.
*)
23282 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23283 if gcc_fn_eh_frame_ro
$as_32_opt \
23284 || gcc_fn_eh_frame_ro
$as_64_opt; then
23285 gcc_cv_as_cfi_directive
=no
23287 gcc_cv_as_cfi_directive
=yes
23290 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23291 # On Solaris/x86, make sure that GCC and assembler agree on using
23292 # read-only .eh_frame sections for 64-bit.
23293 if gcc_fn_eh_frame_ro
$as_32_opt; then
23294 gcc_cv_as_cfi_directive
=no
23295 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23296 gcc_cv_as_cfi_directive
=yes
23298 gcc_cv_as_cfi_directive
=no
23305 gcc_cv_as_cfi_directive
=yes
23309 echo "configure: failed program was" >&5
23312 rm -f conftest.o conftest.s
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23316 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23319 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23321 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23322 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23323 $as_echo_n "(cached) " >&6
23325 gcc_cv_as_cfi_advance_working
=no
23326 if test x
$gcc_cv_as != x
; then
23329 .cfi_adjust_cfa_offset 64
23331 .cfi_adjust_cfa_offset 128
23332 .cfi_endproc' > conftest.s
23333 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23335 (eval $ac_try) 2>&5
23337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23338 test $ac_status = 0; }; }
23341 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23342 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23343 gcc_cv_as_cfi_advance_working
=yes
23347 echo "configure: failed program was" >&5
23350 rm -f conftest.o conftest.s
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23354 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23358 # no objdump, err on the side of caution
23359 gcc_cv_as_cfi_advance_working
=no
23363 cat >>confdefs.h
<<_ACEOF
23364 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23365 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23371 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23372 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23373 $as_echo_n "(cached) " >&6
23375 gcc_cv_as_cfi_personality_directive
=no
23376 if test x
$gcc_cv_as != x
; then
23379 .cfi_personality 0, symbol
23380 .cfi_endproc' > conftest.s
23381 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23383 (eval $ac_try) 2>&5
23385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23386 test $ac_status = 0; }; }
23388 gcc_cv_as_cfi_personality_directive
=yes
23390 echo "configure: failed program was" >&5
23393 rm -f conftest.o conftest.s
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23397 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23401 cat >>confdefs.h
<<_ACEOF
23402 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23403 then echo 1; else echo 0; fi`
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23408 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23409 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23410 $as_echo_n "(cached) " >&6
23412 gcc_cv_as_cfi_sections_directive
=no
23413 if test x
$gcc_cv_as != x
; then
23415 .cfi_sections .debug_frame, .eh_frame
23417 .cfi_endproc' > conftest.s
23418 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23420 (eval $ac_try) 2>&5
23422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23423 test $ac_status = 0; }; }
23426 win32 | pe | cygwin
* | mingw32
*)
23427 # Need to check that we generated the correct relocation for the
23428 # .debug_frame section. This was fixed for binutils 2.21.
23429 gcc_cv_as_cfi_sections_directive
=no
23430 if test "x$gcc_cv_objdump" != x
; then
23431 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23432 grep secrel
> /dev
/null
; then
23433 gcc_cv_as_cfi_sections_directive
=yes
23438 gcc_cv_as_cfi_sections_directive
=yes
23442 echo "configure: failed program was" >&5
23445 rm -f conftest.o conftest.s
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23449 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23454 cat >>confdefs.h
<<_ACEOF
23455 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23456 then echo 1; else echo 0; fi`
23460 # GAS versions up to and including 2.11.0 may mis-optimize
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23463 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23464 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23465 $as_echo_n "(cached) " >&6
23467 gcc_cv_as_eh_frame
=no
23468 if test $in_tree_gas = yes; then
23469 if test $in_tree_gas_is_elf = yes \
23470 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23471 then gcc_cv_as_eh_frame
=yes
23473 elif test x
$gcc_cv_as != x
; then
23480 .section .eh_frame,"aw",@progbits
23482 .4byte .LECIE1-.LSCIE1
23496 .4byte .LEFDE1-.LASFDE1
23498 .4byte .LASFDE1-__FRAME_BEGIN__
23505 .LEFDE1:' > conftest.s
23506 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23508 (eval $ac_try) 2>&5
23510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23511 test $ac_status = 0; }; }
23513 cat > conftest.lit
<<EOF
23514 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23515 0010 01000000 12000000 18000000 00000000 ................
23516 0020 08000000 04080000 0044 .........D
23518 cat > conftest.big
<<EOF
23519 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23520 0010 00000001 00000012 00000018 00000000 ................
23521 0020 00000008 04000000 0844 .........D
23523 # If the assembler didn't choke, and we can objdump,
23524 # and we got the correct data, then succeed.
23525 # The text in the here-document typically retains its unix-style line
23526 # endings, while the output of objdump will use host line endings.
23527 # Therefore, use diff -b for the comparisons.
23528 if test x
$gcc_cv_objdump != x \
23529 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23530 |
tail -3 > conftest.got \
23531 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23532 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23534 gcc_cv_as_eh_frame
=yes
23535 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23537 (eval $ac_try) 2>&5
23539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23540 test $ac_status = 0; }; }; then
23541 gcc_cv_as_eh_frame
=buggy
23543 # Uh oh, what do we do now?
23544 gcc_cv_as_eh_frame
=no
23547 echo "configure: failed program was" >&5
23550 rm -f conftest.o conftest.s
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23554 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23558 if test $gcc_cv_as_eh_frame = buggy
; then
23560 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23564 # Test if the assembler supports the section flag 'e' or #exclude for
23565 # specifying an excluded section.
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23567 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23568 if test "${gcc_cv_as_section_exclude_e+set}" = set; then :
23569 $as_echo_n "(cached) " >&6
23571 gcc_cv_as_section_exclude_e
=no
23572 if test $in_tree_gas = yes; then
23573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23574 then gcc_cv_as_section_exclude_e
=yes
23576 elif test x
$gcc_cv_as != x
; then
23577 $as_echo '.section foo1,"e"
23578 .byte 0,0,0,0' > conftest.s
23579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23581 (eval $ac_try) 2>&5
23583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23584 test $ac_status = 0; }; }
23586 gcc_cv_as_section_exclude_e
=yes
23588 echo "configure: failed program was" >&5
23591 rm -f conftest.o conftest.s
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23595 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23598 if test $gcc_cv_as_section_exclude_e = no
; then
23599 case "${target}" in
23600 # Solaris as uses #exclude instead.
23602 case "${target}" in
23603 sparc
*-*-solaris2*)
23604 conftest_s
='.section "foo1", #exclude'
23606 i?
86-*-solaris2* | x86_64-
*-solaris2*)
23607 conftest_s
='.section foo1, #exclude'
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23613 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23614 if test "${gcc_cv_as_section_exclude_hash+set}" = set; then :
23615 $as_echo_n "(cached) " >&6
23617 gcc_cv_as_section_exclude_hash
=no
23618 if test x
$gcc_cv_as != x
; then
23619 $as_echo "$conftest_s
23620 .byte 0,0,0,0" > conftest.s
23621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23623 (eval $ac_try) 2>&5
23625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23626 test $ac_status = 0; }; }
23628 gcc_cv_as_section_exclude_hash
=yes
23630 echo "configure: failed program was" >&5
23633 rm -f conftest.o conftest.s
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23637 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23642 cat >>confdefs.h
<<_ACEOF
23643 #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`
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23648 $as_echo_n "checking assembler for section merging support... " >&6; }
23649 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23650 $as_echo_n "(cached) " >&6
23652 gcc_cv_as_shf_merge
=no
23653 if test $in_tree_gas = yes; then
23654 if test $in_tree_gas_is_elf = yes \
23655 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23656 then gcc_cv_as_shf_merge
=yes
23658 elif test x
$gcc_cv_as != x
; then
23659 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23660 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23662 (eval $ac_try) 2>&5
23664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23665 test $ac_status = 0; }; }
23667 gcc_cv_as_shf_merge
=yes
23669 echo "configure: failed program was" >&5
23672 rm -f conftest.o conftest.s
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23676 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23679 if test $gcc_cv_as_shf_merge = no
; then
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23681 $as_echo_n "checking assembler for section merging support... " >&6; }
23682 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23683 $as_echo_n "(cached) " >&6
23685 gcc_cv_as_shf_merge
=no
23686 if test $in_tree_gas = yes; then
23687 if test $in_tree_gas_is_elf = yes \
23688 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23689 then gcc_cv_as_shf_merge
=yes
23691 elif test x
$gcc_cv_as != x
; then
23692 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23695 (eval $ac_try) 2>&5
23697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23698 test $ac_status = 0; }; }
23700 gcc_cv_as_shf_merge
=yes
23702 echo "configure: failed program was" >&5
23705 rm -f conftest.o conftest.s
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23709 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23714 i?
86-*-solaris2.10
* | x86_64-
*-solaris2.10
*)
23715 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23716 if test x
"$gnu_ld" = xno
; then
23717 gcc_cv_as_shf_merge
=no
23722 cat >>confdefs.h
<<_ACEOF
23723 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23728 $as_echo_n "checking assembler for stabs directive... " >&6; }
23729 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23730 $as_echo_n "(cached) " >&6
23732 gcc_cv_as_stabs_directive
=no
23733 if test x
$gcc_cv_as != x
; then
23734 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23735 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23737 (eval $ac_try) 2>&5
23739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23740 test $ac_status = 0; }; }
23742 gcc_cv_as_stabs_directive
=yes
23744 echo "configure: failed program was" >&5
23747 rm -f conftest.o conftest.s
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23751 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23752 if test $gcc_cv_as_stabs_directive = yes; then
23754 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23760 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23761 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23762 $as_echo_n "(cached) " >&6
23764 gcc_cv_as_comdat_group
=no
23765 if test $in_tree_gas = yes; then
23766 if test $in_tree_gas_is_elf = yes \
23767 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23768 then gcc_cv_as_comdat_group
=yes
23770 elif test x
$gcc_cv_as != x
; then
23771 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23772 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23774 (eval $ac_try) 2>&5
23776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23777 test $ac_status = 0; }; }
23779 gcc_cv_as_comdat_group
=yes
23781 echo "configure: failed program was" >&5
23784 rm -f conftest.o conftest.s
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23788 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23791 if test $gcc_cv_as_comdat_group = yes; then
23792 gcc_cv_as_comdat_group_percent
=no
23793 gcc_cv_as_comdat_group_group
=no
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23796 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23797 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23798 $as_echo_n "(cached) " >&6
23800 gcc_cv_as_comdat_group_percent
=no
23801 if test $in_tree_gas = yes; then
23802 if test $in_tree_gas_is_elf = yes \
23803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23804 then gcc_cv_as_comdat_group_percent
=yes
23806 elif test x
$gcc_cv_as != x
; then
23807 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23808 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23810 (eval $ac_try) 2>&5
23812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23813 test $ac_status = 0; }; }
23815 gcc_cv_as_comdat_group_percent
=yes
23817 echo "configure: failed program was" >&5
23820 rm -f conftest.o conftest.s
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23824 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23827 if test $gcc_cv_as_comdat_group_percent = yes; then
23828 gcc_cv_as_comdat_group_group
=no
23830 case "${target}" in
23831 # Sun as uses a completely different syntax.
23833 case "${target}" in
23834 sparc
*-*-solaris2*)
23836 .group foo,".text%foo",#comdat
23837 .section ".text%foo", #alloc,#execinstr,#progbits
23842 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23844 .group foo,.text%foo,#comdat
23845 .section .text%foo, "ax", @progbits
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23852 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23853 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23854 $as_echo_n "(cached) " >&6
23856 gcc_cv_as_comdat_group_group
=no
23857 if test x
$gcc_cv_as != x
; then
23858 $as_echo "$conftest_s" > conftest.s
23859 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23861 (eval $ac_try) 2>&5
23863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23864 test $ac_status = 0; }; }
23866 gcc_cv_as_comdat_group_group
=yes
23868 echo "configure: failed program was" >&5
23871 rm -f conftest.o conftest.s
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23875 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23880 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23881 gcc_cv_as_comdat_group_group
=no
23885 if test x
"$ld_is_gold" = xyes
; then
23887 elif test $in_tree_ld = yes ; then
23889 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 \
23890 && test $in_tree_ld_is_elf = yes; then
23893 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23895 if test 0"$ld_date" -lt 20050308; then
23896 if test -n "$ld_date"; then
23897 # If there was date string, but was earlier than 2005-03-08, fail
23899 elif test "$ld_vers_major" -lt 2; then
23901 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23906 case "${target}" in
23907 *-*-solaris2.1
[1-9]*)
23909 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23910 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23913 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23914 # least ld version 1.2267.
23915 if test "$ld_vers_major" -gt 1; then
23917 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23919 elif test "$ld_vers_minor" -ge 2267; then
23924 # Assume linkers other than GNU ld don't support COMDAT group.
23929 # Allow overriding the automatic COMDAT group tests above.
23930 # Check whether --enable-comdat was given.
23931 if test "${enable_comdat+set}" = set; then :
23932 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23935 if test $comdat_group = no
; then
23936 gcc_cv_as_comdat_group
=no
23937 gcc_cv_as_comdat_group_percent
=no
23938 gcc_cv_as_comdat_group_group
=no
23941 cat >>confdefs.h
<<_ACEOF
23942 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23943 || test $gcc_cv_as_comdat_group_percent = yes \
23944 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23948 # Restrict this test to Solaris/x86: other targets define this statically.
23949 case "${target}" in
23950 i?
86-*-solaris2* | x86_64-
*-solaris2*)
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
23952 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
23953 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23954 hidden_linkonce
=yes
23956 case "${target}" in
23957 # Full support for hidden thunks in linkonce sections only appeared in
23958 # Solaris 11/OpenSolaris.
23959 *-*-solaris2.1
[1-9]*)
23960 hidden_linkonce
=yes
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
23968 $as_echo "$hidden_linkonce" >&6; }
23970 cat >>confdefs.h
<<_ACEOF
23971 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
23978 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
23979 if test "${gcc_cv_as_is_stmt+set}" = set; then :
23980 $as_echo_n "(cached) " >&6
23982 gcc_cv_as_is_stmt
=no
23983 if test $in_tree_gas = yes; then
23984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
23985 then gcc_cv_as_is_stmt
=yes
23987 elif test x
$gcc_cv_as != x
; then
23990 .loc 1 1 0 is_stmt 1' > conftest.s
23991 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23993 (eval $ac_try) 2>&5
23995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23996 test $ac_status = 0; }; }
23998 gcc_cv_as_is_stmt
=yes
24000 echo "configure: failed program was" >&5
24003 rm -f conftest.o conftest.s
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24007 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24008 if test $gcc_cv_as_is_stmt = yes; then
24010 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24016 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24017 if test "${gcc_cv_as_discriminator+set}" = set; then :
24018 $as_echo_n "(cached) " >&6
24020 gcc_cv_as_discriminator
=no
24021 if test $in_tree_gas = yes; then
24022 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24023 then gcc_cv_as_discriminator
=yes
24025 elif test x
$gcc_cv_as != x
; then
24028 .loc 1 1 0 discriminator 1' > conftest.s
24029 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24031 (eval $ac_try) 2>&5
24033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24034 test $ac_status = 0; }; }
24036 gcc_cv_as_discriminator
=yes
24038 echo "configure: failed program was" >&5
24041 rm -f conftest.o conftest.s
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24045 $as_echo "$gcc_cv_as_discriminator" >&6; }
24046 if test $gcc_cv_as_discriminator = yes; then
24048 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24053 # Thread-local storage - the check is heavily parameterized.
24061 .section ".tdata","awT",@progbits
24064 ldq $27,__tls_get_addr($29) !literal!1
24065 lda $16,foo($29) !tlsgd!1
24066 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24067 ldq $27,__tls_get_addr($29) !literal!2
24068 lda $16,foo($29) !tlsldm!2
24069 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24070 ldq $1,foo($29) !gotdtprel
24071 ldah $2,foo($29) !dtprelhi
24072 lda $3,foo($2) !dtprello
24073 lda $4,foo($29) !dtprel
24074 ldq $1,foo($29) !gottprel
24075 ldah $2,foo($29) !tprelhi
24076 lda $3,foo($2) !tprello
24077 lda $4,foo($29) !tprel'
24080 tls_as_opt
=--fatal-warnings
24084 add_s r0,r0, @foo@tpoff'
24088 cris-
*-*|crisv32-
*-*)
24090 .section ".tdata","awT",@progbits
24097 tls_as_opt
=--fatal-warnings
24101 .section ".tdata","awT",@progbits
24104 call #gettlsoff(x)'
24113 .section ".tdata","awT",@progbits
24117 addil LT%foo-$tls_gdidx$,gp
24118 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24121 addil LT%foo-$tls_ldidx$,gp
24123 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24124 addil LR%foo-$tls_dtpoff$,%ret0
24125 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24127 addil LT%foo-$tls_ieoff$,gp
24128 ldw RT%foo-$tls_ieoff$(%r1),%t2
24131 addil LR%foo-$tls_leoff$,%t1
24132 ldo RR%foo-$tls_leoff$(%r1),%t2'
24135 tls_as_opt
=--fatal-warnings
24139 .section ".tdata","awT",%progbits
24142 .word foo(gottpoff)
24150 i
[34567]86-*-* | x86_64-
*-*)
24152 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
24159 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24161 .section .tdata,"awt",@progbits'
24166 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24170 .section ".tdata","awT",@progbits'
24174 tls_as_opt
="--fatal-warnings"
24178 conftest_s
="$conftest_s
24182 leal foo@tlsgd(,%ebx,1), %eax
24183 leal foo@tlsldm(%ebx), %eax
24184 leal foo@dtpoff(%eax), %edx
24185 movl foo@gottpoff(%ebx), %eax
24186 subl foo@gottpoff(%ebx), %eax
24187 addl foo@gotntpoff(%ebx), %eax
24188 movl foo@indntpoff, %eax
24189 movl \$foo@tpoff, %eax
24190 subl \$foo@tpoff, %eax
24191 leal foo@ntpoff(%ecx), %eax"
24194 if test x
$on_solaris = xyes
; then
24196 yes) tls_as_opt
="$tls_as_opt --64" ;;
24197 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24200 conftest_s
="$conftest_s
24204 leaq foo@tlsgd(%rip), %rdi
24205 leaq foo@tlsld(%rip), %rdi
24206 leaq foo@dtpoff(%rax), %rdx
24207 movq foo@gottpoff(%rip), %rax
24208 movq \$foo@tpoff, %rax"
24214 .section ".tdata","awT",@progbits
24217 addl r16 = @ltoff(@dtpmod(foo#)), gp
24218 addl r17 = @ltoff(@dtprel(foo#)), gp
24219 addl r18 = @ltoff(@tprel(foo#)), gp
24220 addl r19 = @dtprel(foo#), gp
24221 adds r21 = @dtprel(foo#), r13
24222 movl r23 = @dtprel(foo#)
24223 addl r20 = @tprel(foo#), gp
24224 adds r22 = @tprel(foo#), r13
24225 movl r24 = @tprel(foo#)'
24228 tls_as_opt
=--fatal-warnings
24232 .section .tdata,"awT",@progbits
24236 addik r5,r20,x@TLSGD
24237 addik r5,r20,x@TLSLDM'
24240 tls_as_opt
='--fatal-warnings'
24244 .section .tdata,"awT",@progbits
24248 addiu $4, $28, %tlsgd(x)
24249 addiu $4, $28, %tlsldm(x)
24250 lui $4, %dtprel_hi(x)
24251 addiu $4, $4, %dtprel_lo(x)
24252 lw $4, %gottprel(x)($28)
24253 lui $4, %tprel_hi(x)
24254 addiu $4, $4, %tprel_lo(x)'
24257 tls_as_opt
='-32 --fatal-warnings'
24261 .section .tdata,"awT",@progbits
24266 move.l x@TLSGD(%a5),%a0
24267 move.l x@TLSLDM(%a5),%a0
24268 move.l x@TLSLDO(%a5),%a0
24269 move.l x@TLSIE(%a5),%a0
24270 move.l x@TLSLE(%a5),%a0'
24273 tls_as_opt
='--fatal-warnings'
24277 .section ".tdata","awT",@progbits'
24280 tls_as_opt
="--fatal-warnings"
24284 .section ".tdata","awT",%progbits
24288 add x0, x0, #:tlsgd_lo12:x
24293 tls_as_opt
='--fatal-warnings'
24297 .extern __get_tpointer
24315 .section ".tdata","awT",@progbits
24323 addi 3,2,ld0@got@tlsgd
24329 addi 3,2,x1@got@tlsld
24335 addis 9,3,x2@dtprel@ha
24336 addi 9,9,x2@dtprel@l
24339 ld 9,x3@got@dtprel(2)
24345 tls_as_opt
="-a64 --fatal-warnings"
24349 .section ".tdata","awT",@progbits
24357 addi 3,31,ld0@got@tlsgd
24359 addi 3,31,x1@got@tlsld
24362 addis 9,3,x2@dtprel@ha
24363 addi 9,9,x2@dtprel@l
24364 lwz 9,x3@got@tprel(31)
24367 addis 9,2,x2@tprel@ha
24368 addi 9,9,x2@tprel@l'
24371 tls_as_opt
="-a32 --fatal-warnings"
24375 .section .tdata,"awT",@progbits
24379 call __tls_get_addr'
24382 tls_as_opt
='--fatal-warnings'
24386 .section ".tdata","awT",@progbits
24393 .long foo@GOTNTPOFF
24394 .long foo@INDNTPOFF
24395 l %r1,foo@GOTNTPOFF(%r12)
24396 l %r1,0(%r1):tls_load:foo
24397 bas %r14,0(%r1,%r13):tls_gdcall:foo
24398 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24401 tls_as_opt
="-m31 --fatal-warnings"
24405 .section ".tdata","awT",@progbits
24412 .quad foo@GOTNTPOFF
24413 lg %r1,foo@GOTNTPOFF(%r12)
24414 larl %r1,foo@INDNTPOFF
24415 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24416 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24419 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24421 sh-
*-* | sh
[123456789lbe
]*-*-*)
24423 .section ".tdata","awT",@progbits
24433 tls_as_opt
=--fatal-warnings
24437 sparc
*-sun-solaris2.
*)
24444 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24446 .section ".tdata",#alloc,#write,#tls'
24451 .section ".tdata","awT",@progbits'
24454 tls_as_opt
="-32 --fatal-warnings"
24456 conftest_s
="$conftest_s
24459 sethi %tgd_hi22(foo), %o0
24460 add %o0, %tgd_lo10(foo), %o1
24461 add %l7, %o1, %o0, %tgd_add(foo)
24462 call __tls_get_addr, %tgd_call(foo)
24463 sethi %tldm_hi22(foo), %l1
24464 add %l1, %tldm_lo10(foo), %l2
24465 add %l7, %l2, %o0, %tldm_add(foo)
24466 call __tls_get_addr, %tldm_call(foo)
24467 sethi %tldo_hix22(foo), %l3
24468 xor %l3, %tldo_lox10(foo), %l4
24469 add %o0, %l4, %l5, %tldo_add(foo)
24470 sethi %tie_hi22(foo), %o3
24471 add %o3, %tie_lo10(foo), %o3
24472 ld [%l7 + %o3], %o2, %tie_ld(foo)
24473 add %g7, %o2, %o4, %tie_add(foo)
24474 sethi %tle_hix22(foo), %l1
24475 xor %l1, %tle_lox10(foo), %o5
24476 ld [%g7 + %o5], %o1"
24480 .section ".tdata","awT",@progbits
24483 addli r0, zero, tls_gd(foo)
24484 auli r0, zero, tls_gd_ha16(foo)
24485 addli r0, r0, tls_gd_lo16(foo)
24487 addli r0, zero, tls_ie(foo)
24488 auli r0, r0, tls_ie_ha16(foo)
24489 addli r0, r0, tls_ie_lo16(foo)'
24492 tls_as_opt
="--fatal-warnings"
24496 .section ".tdata","awT",@progbits
24499 shl16insli r0, zero, hw0_last_tls_gd(foo)
24500 shl16insli r0, zero, hw1_last_tls_gd(foo)
24501 shl16insli r0, r0, hw0_tls_gd(foo)
24503 shl16insli r0, zero, hw1_last_tls_ie(foo)
24504 shl16insli r0, r0, hw0_tls_ie(foo)'
24507 tls_as_opt
="--fatal-warnings"
24511 .section ".tdata","awT",@progbits
24514 movi a8, foo@TLSFUNC
24515 movi a10, foo@TLSARG
24516 callx8.tls a8, foo@TLSCALL'
24522 if test "x$enable_tls" = xno
; then
24523 : # TLS explicitly disabled.
24524 elif test "x$enable_tls" = xyes
; then
24525 set_have_as_tls
=yes # TLS explicitly enabled.
24526 elif test -z "$tls_first_major"; then
24527 : # If we don't have a check, assume no support.
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24530 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24531 if test "${gcc_cv_as_tls+set}" = set; then :
24532 $as_echo_n "(cached) " >&6
24535 if test $in_tree_gas = yes; then
24536 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24537 then gcc_cv_as_tls
=yes
24539 elif test x
$gcc_cv_as != x
; then
24540 $as_echo "$conftest_s" > conftest.s
24541 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24543 (eval $ac_try) 2>&5
24545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24546 test $ac_status = 0; }; }
24550 echo "configure: failed program was" >&5
24553 rm -f conftest.o conftest.s
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24557 $as_echo "$gcc_cv_as_tls" >&6; }
24558 if test $gcc_cv_as_tls = yes; then
24559 set_have_as_tls
=yes
24563 if test $set_have_as_tls = yes ; then
24565 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24569 # Target-specific assembler checks.
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24572 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24573 gcc_cv_ld_static_dynamic
=no
24574 gcc_cv_ld_static_option
='-Bstatic'
24575 gcc_cv_ld_dynamic_option
='-Bdynamic'
24576 if test $in_tree_ld = yes ; then
24577 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
24578 gcc_cv_ld_static_dynamic
=yes
24580 elif test x
$gcc_cv_ld != x
; then
24581 # Check if linker supports -Bstatic/-Bdynamic option
24582 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
24583 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
24584 gcc_cv_ld_static_dynamic
=yes
24587 # AIX ld uses -b flags
24588 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24589 gcc_cv_ld_static_dynamic
=yes
24590 gcc_cv_ld_static_option
="-bstatic"
24591 gcc_cv_ld_dynamic_option
="-bdynamic"
24593 # HP-UX ld uses -a flags to select between shared and archive.
24595 if test x
"$gnu_ld" = xno
; then
24596 gcc_cv_ld_static_dynamic
=yes
24597 gcc_cv_ld_static_option
="-aarchive_shared"
24598 gcc_cv_ld_dynamic_option
="-adefault"
24601 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24603 gcc_cv_ld_static_dynamic
=yes
24608 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24610 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24613 cat >>confdefs.h
<<_ACEOF
24614 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24618 cat >>confdefs.h
<<_ACEOF
24619 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24624 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24627 $as_echo_n "checking linker --version-script option... " >&6; }
24628 gcc_cv_ld_version_script
=no
24629 ld_version_script_option
=''
24630 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
24631 gcc_cv_ld_version_script
=yes
24632 ld_version_script_option
='--version-script'
24633 elif test x
$gcc_cv_ld != x
; then
24635 # Solaris 2 ld always supports -M. It also supports a subset of
24636 # --version-script since Solaris 11.4, but requires
24637 # -z gnu-version-script-compat to activate.
24639 gcc_cv_ld_version_script
=yes
24640 ld_version_script_option
='-M'
24644 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24646 $as_echo "$gcc_cv_ld_version_script" >&6; }
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24650 $as_echo_n "checking linker soname option... " >&6; }
24651 gcc_cv_ld_soname
=no
24652 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
24653 gcc_cv_ld_soname
=yes
24654 ld_soname_option
='-soname'
24655 elif test x
$gcc_cv_ld != x
; then
24658 gcc_cv_ld_soname
=yes
24659 ld_soname_option
='-install_name'
24661 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24662 # ld compatiblity since some Solaris 10 update.
24664 gcc_cv_ld_soname
=yes
24665 ld_soname_option
='-h'
24669 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24671 $as_echo "$gcc_cv_ld_soname" >&6; }
24674 if test x
"$demangler_in_ld" = xyes
; then
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24676 $as_echo_n "checking linker --demangle support... " >&6; }
24677 gcc_cv_ld_demangle
=no
24678 if test $in_tree_ld = yes; then
24679 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 \
24680 gcc_cv_ld_demangle
=yes
24682 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24683 # Check if the GNU linker supports --demangle option
24684 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
24685 gcc_cv_ld_demangle
=yes
24688 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24690 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24694 $as_echo "$gcc_cv_ld_demangle" >&6; }
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24698 $as_echo_n "checking linker plugin support... " >&6; }
24699 gcc_cv_lto_plugin
=0
24700 if test -f liblto_plugin.la
; then
24701 save_ld_ver
="$ld_ver"
24702 save_ld_vers_major
="$ld_vers_major"
24703 save_ld_vers_minor
="$ld_vers_minor"
24704 save_ld_is_gold
="$ld_is_gold"
24708 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24710 # FIXME: ld_is_gold?
24711 ld_vers_major
="$gcc_cv_gld_major_version"
24712 ld_vers_minor
="$gcc_cv_gld_minor_version"
24714 # Determine plugin linker version.
24715 # FIXME: Partial duplicate from above, generalize.
24716 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24717 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24718 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24720 ld_vers
=`echo $ld_ver | sed -n \
24721 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24723 ld_vers
=`echo $ld_ver | sed -n \
24724 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24726 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24727 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24731 # Determine plugin support.
24732 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24733 # Require GNU ld or gold 2.21+ for plugin support by default.
24734 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24735 gcc_cv_lto_plugin
=2
24736 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24737 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24738 gcc_cv_lto_plugin
=1
24742 ld_ver
="$save_ld_ver"
24743 ld_vers_major
="$save_ld_vers_major"
24744 ld_vers_minor
="$save_ld_vers_minor"
24745 ld_is_gold
="$save_ld_is_gold"
24748 cat >>confdefs.h
<<_ACEOF
24749 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24753 $as_echo "$gcc_cv_lto_plugin" >&6; }
24755 # Target OS-specific assembler checks.
24757 case "$target_os" in
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24760 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24761 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24762 $as_echo_n "(cached) " >&6
24764 gcc_cv_as_mmacosx_version_min
=no
24765 if test x
$gcc_cv_as != x
; then
24766 $as_echo '.text' > conftest.s
24767 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24769 (eval $ac_try) 2>&5
24771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24772 test $ac_status = 0; }; }
24774 gcc_cv_as_mmacosx_version_min
=yes
24776 echo "configure: failed program was" >&5
24779 rm -f conftest.o conftest.s
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24783 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24784 if test $gcc_cv_as_mmacosx_version_min = yes; then
24786 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24793 # Target CPU-specific assembler checks.
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24798 $as_echo_n "checking assembler for -mabi option... " >&6; }
24799 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24800 $as_echo_n "(cached) " >&6
24802 gcc_cv_as_aarch64_mabi
=no
24803 if test x
$gcc_cv_as != x
; then
24804 $as_echo '.text' > conftest.s
24805 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24807 (eval $ac_try) 2>&5
24809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24810 test $ac_status = 0; }; }
24812 gcc_cv_as_aarch64_mabi
=yes
24814 echo "configure: failed program was" >&5
24817 rm -f conftest.o conftest.s
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24821 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24824 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24826 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24829 if test x
$with_abi = xilp32
; then
24830 as_fn_error
"Assembler does not support -mabi=ilp32.\
24831 Upgrade the Assembler." "$LINENO" 5
24833 if test x
"$with_multilib_list" = xdefault
; then
24834 TM_MULTILIB_CONFIG
=lp64
24836 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24837 for aarch64_multilib
in ${aarch64_multilibs}; do
24838 case ${aarch64_multilib} in
24840 as_fn_error
"Assembler does not support -mabi=ilp32.\
24841 Upgrade the Assembler." "$LINENO" 5
24849 # Check if we have binutils support for relocations types needed by -fpic
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24851 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24852 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24855 gcc_cv_as_aarch64_picreloc
=no
24856 if test x
$gcc_cv_as != x
; then
24859 ldr x0, [x2, #:gotpage_lo15:globalsym]
24861 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24863 (eval $ac_try) 2>&5
24865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24866 test $ac_status = 0; }; }
24868 gcc_cv_as_aarch64_picreloc
=yes
24870 echo "configure: failed program was" >&5
24873 rm -f conftest.o conftest.s
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24877 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24878 if test $gcc_cv_as_aarch64_picreloc = yes; then
24880 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24884 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24885 # Check whether --enable-fix-cortex-a53-835769 was given.
24886 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24887 enableval
=$enable_fix_cortex_a53_835769;
24890 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24895 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24896 Valid choices are 'yes' and 'no'." "$LINENO" 5
24903 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24904 # Check whether --enable-fix-cortex-a53-843419 was given.
24905 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24906 enableval
=$enable_fix_cortex_a53_843419;
24909 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24914 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24915 Valid choices are 'yes' and 'no'." "$LINENO" 5
24924 # All TARGET_ABI_OSF targets.
24925 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24927 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24928 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24929 $as_echo_n "(cached) " >&6
24931 gcc_cv_as_alpha_explicit_relocs
=no
24932 if test $in_tree_gas = yes; then
24933 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24934 then gcc_cv_as_alpha_explicit_relocs
=yes
24936 elif test x
$gcc_cv_as != x
; then
24937 $as_echo ' .set nomacro
24939 extbl $3, $2, $3 !lituse_bytoff!1
24940 ldq $2, a($29) !literal!1
24941 ldq $4, b($29) !literal!2
24942 ldq_u $3, 0($2) !lituse_base!1
24943 ldq $27, f($29) !literal!5
24944 jsr $26, ($27), f !lituse_jsr!5
24945 ldah $29, 0($26) !gpdisp!3
24946 lda $0, c($29) !gprel
24947 ldah $1, d($29) !gprelhigh
24948 lda $1, d($1) !gprellow
24949 lda $29, 0($29) !gpdisp!3' > conftest.s
24950 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24952 (eval $ac_try) 2>&5
24954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24955 test $ac_status = 0; }; }
24957 gcc_cv_as_alpha_explicit_relocs
=yes
24959 echo "configure: failed program was" >&5
24962 rm -f conftest.o conftest.s
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24966 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24967 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24969 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24974 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24975 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24978 gcc_cv_as_alpha_jsrdirect_relocs
=no
24979 if test $in_tree_gas = yes; then
24980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24981 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24983 elif test x
$gcc_cv_as != x
; then
24984 $as_echo ' .set nomacro
24986 ldq $27, a($29) !literal!1
24987 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24990 (eval $ac_try) 2>&5
24992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24993 test $ac_status = 0; }; }
24995 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24997 echo "configure: failed program was" >&5
25000 rm -f conftest.o conftest.s
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25004 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25005 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25007 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25015 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25016 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
25017 $as_echo_n "(cached) " >&6
25019 gcc_cv_as_avr_mlink_relax
=no
25020 if test x
$gcc_cv_as != x
; then
25021 $as_echo '.text' > conftest.s
25022 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25024 (eval $ac_try) 2>&5
25026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25027 test $ac_status = 0; }; }
25029 gcc_cv_as_avr_mlink_relax
=yes
25031 echo "configure: failed program was" >&5
25034 rm -f conftest.o conftest.s
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25038 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25039 if test $gcc_cv_as_avr_mlink_relax = yes; then
25041 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25047 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25048 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
25049 $as_echo_n "(cached) " >&6
25051 gcc_cv_as_avr_mrmw
=no
25052 if test x
$gcc_cv_as != x
; then
25053 $as_echo '.text' > conftest.s
25054 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25056 (eval $ac_try) 2>&5
25058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25059 test $ac_status = 0; }; }
25061 gcc_cv_as_avr_mrmw
=yes
25063 echo "configure: failed program was" >&5
25066 rm -f conftest.o conftest.s
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25070 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25071 if test $gcc_cv_as_avr_mrmw = yes; then
25073 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25079 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25080 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
25081 $as_echo_n "(cached) " >&6
25083 gcc_cv_as_avr_mgccisr
=no
25084 if test x
$gcc_cv_as != x
; then
25090 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25092 (eval $ac_try) 2>&5
25094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25095 test $ac_status = 0; }; }
25097 gcc_cv_as_avr_mgccisr
=yes
25099 echo "configure: failed program was" >&5
25102 rm -f conftest.o conftest.s
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25106 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25107 if test $gcc_cv_as_avr_mgccisr = yes; then
25109 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25114 # Check how default linker description file implements .rodata for
25115 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25116 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25118 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25119 cat > conftest.s
<<EOF
25120 .section .rodata,"a",@progbits
25122 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25127 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129 (eval $ac_try) 2>&5
25131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132 test $ac_status = 0; }; }
25133 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25135 (eval $ac_try) 2>&5
25137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25138 test $ac_status = 0; }; }
25139 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
25140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25141 (eval $ac_try) 2>&5
25143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25144 test $ac_status = 0; }; }
25145 if test -s conftest.nm
25147 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25149 $as_echo "yes" >&6; }
25151 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25155 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25156 echo "$as_me: nm output was" >&5
25157 cat conftest.nm
>&5
25158 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25159 { $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
25160 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25164 $as_echo "test failed" >&6; }
25165 echo "$as_me: failed program was" >&5
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25168 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25170 rm -f conftest.s conftest.o conftest.elf conftest.nm
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25175 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25176 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
25177 $as_echo_n "(cached) " >&6
25179 gcc_cv_as_cris_no_mul_bug
=no
25180 if test $in_tree_gas = yes; then
25181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25182 then gcc_cv_as_cris_no_mul_bug
=yes
25184 elif test x
$gcc_cv_as != x
; then
25185 $as_echo '.text' > conftest.s
25186 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25188 (eval $ac_try) 2>&5
25190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25191 test $ac_status = 0; }; }
25193 gcc_cv_as_cris_no_mul_bug
=yes
25195 echo "configure: failed program was" >&5
25198 rm -f conftest.o conftest.s
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25202 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25203 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25205 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
25213 $as_echo_n "checking assembler for .register... " >&6; }
25214 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
25215 $as_echo_n "(cached) " >&6
25217 gcc_cv_as_sparc_register_op
=no
25218 if test x
$gcc_cv_as != x
; then
25219 $as_echo '.register %g2, #scratch' > conftest.s
25220 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25222 (eval $ac_try) 2>&5
25224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25225 test $ac_status = 0; }; }
25227 gcc_cv_as_sparc_register_op
=yes
25229 echo "configure: failed program was" >&5
25232 rm -f conftest.o conftest.s
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25236 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25237 if test $gcc_cv_as_sparc_register_op = yes; then
25239 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25245 $as_echo_n "checking assembler for -relax option... " >&6; }
25246 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25247 $as_echo_n "(cached) " >&6
25249 gcc_cv_as_sparc_relax
=no
25250 if test x
$gcc_cv_as != x
; then
25251 $as_echo '.text' > conftest.s
25252 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25254 (eval $ac_try) 2>&5
25256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25257 test $ac_status = 0; }; }
25259 gcc_cv_as_sparc_relax
=yes
25261 echo "configure: failed program was" >&5
25264 rm -f conftest.o conftest.s
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25268 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25269 if test $gcc_cv_as_sparc_relax = yes; then
25271 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25277 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25278 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25279 $as_echo_n "(cached) " >&6
25281 gcc_cv_as_sparc_gotdata_op
=no
25282 if test x
$gcc_cv_as != x
; then
25288 sethi %gdop_hix22(foo), %g1
25289 xor %g1, %gdop_lox10(foo), %g1
25290 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x
$gcc_cv_ld != x \
25299 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25300 if test x
$gcc_cv_objdump != x
; then
25301 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25302 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25303 gcc_cv_as_sparc_gotdata_op
=no
25305 gcc_cv_as_sparc_gotdata_op
=yes
25311 echo "configure: failed program was" >&5
25314 rm -f conftest.o conftest.s
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25318 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25319 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25321 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25327 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25328 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25329 $as_echo_n "(cached) " >&6
25331 gcc_cv_as_sparc_ua_pcrel
=no
25332 if test x
$gcc_cv_as != x
; then
25339 .uaword %r_disp32(foo)' > conftest.s
25340 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25342 (eval $ac_try) 2>&5
25344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25345 test $ac_status = 0; }; }
25347 if test x
$gcc_cv_ld != x \
25348 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25349 gcc_cv_as_sparc_ua_pcrel
=yes
25353 echo "configure: failed program was" >&5
25356 rm -f conftest.o conftest.s
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25360 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25361 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25363 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25367 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25368 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25369 $as_echo_n "(cached) " >&6
25371 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25372 if test x
$gcc_cv_as != x
; then
25376 .uaword %r_disp32(foo)
25377 .byte 0x32, 0x33, 0x34
25381 .skip 4' > conftest.s
25382 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25384 (eval $ac_try) 2>&5
25386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25387 test $ac_status = 0; }; }
25389 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25390 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25391 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25392 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25393 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25394 |
grep 'DISP32' > /dev
/null
2>&1; then
25397 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25402 echo "configure: failed program was" >&5
25405 rm -f conftest.o conftest.s
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25409 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25410 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25412 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25418 # unaligned pcrel relocs
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25421 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25422 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25423 $as_echo_n "(cached) " >&6
25425 gcc_cv_as_sparc_offsetable_lo10
=no
25426 if test x
$gcc_cv_as != x
; then
25428 or %g1, %lo(ab) + 12, %g1
25429 or %g1, %lo(ab + 12), %g1' > conftest.s
25430 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432 (eval $ac_try) 2>&5
25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435 test $ac_status = 0; }; }
25437 if test x
$gcc_cv_objdump != x \
25438 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25439 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25440 gcc_cv_as_sparc_offsetable_lo10
=yes
25443 echo "configure: failed program was" >&5
25446 rm -f conftest.o conftest.s
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25450 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25451 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25453 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25459 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25460 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25461 $as_echo_n "(cached) " >&6
25463 gcc_cv_as_sparc_fmaf
=no
25464 if test x
$gcc_cv_as != x
; then
25466 .register %g2, #scratch
25467 .register %g3, #scratch
25469 fmaddd %f0, %f2, %f4, %f6
25470 addxccc %g1, %g2, %g3
25471 fsrl32 %f2, %f4, %f8
25472 fnaddd %f10, %f12, %f14' > conftest.s
25473 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25475 (eval $ac_try) 2>&5
25477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25478 test $ac_status = 0; }; }
25480 gcc_cv_as_sparc_fmaf
=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_fmaf" >&5
25489 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25490 if test $gcc_cv_as_sparc_fmaf = yes; then
25492 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25498 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25499 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25500 $as_echo_n "(cached) " >&6
25502 gcc_cv_as_sparc_sparc4
=no
25503 if test x
$gcc_cv_as != x
; then
25505 .register %g2, #scratch
25506 .register %g3, #scratch
25509 1: cwbneg %g2, %g3, 1f
25512 aes_kexpand0 %f4, %f6, %f8
25513 des_round %f38, %f40, %f42, %f44
25514 camellia_f %f54, %f56, %f58, %f60
25515 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25516 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25518 (eval $ac_try) 2>&5
25520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25521 test $ac_status = 0; }; }
25523 gcc_cv_as_sparc_sparc4
=yes
25525 echo "configure: failed program was" >&5
25528 rm -f conftest.o conftest.s
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25532 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25533 if test $gcc_cv_as_sparc_sparc4 = yes; then
25535 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25541 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25542 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25543 $as_echo_n "(cached) " >&6
25545 gcc_cv_as_sparc_sparc5
=no
25546 if test x
$gcc_cv_as != x
; then
25548 .register %g2, #scratch
25549 .register %g3, #scratch
25551 subxc %g1, %g2, %g3
25552 fpadd8 %f0, %f2, %f4' > conftest.s
25553 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25555 (eval $ac_try) 2>&5
25557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25558 test $ac_status = 0; }; }
25560 gcc_cv_as_sparc_sparc5
=yes
25562 echo "configure: failed program was" >&5
25565 rm -f conftest.o conftest.s
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25569 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25570 if test $gcc_cv_as_sparc_sparc5 = yes; then
25572 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25578 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25579 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25580 $as_echo_n "(cached) " >&6
25582 gcc_cv_as_sparc_sparc6
=no
25583 if test x
$gcc_cv_as != x
; then
25585 .register %g2, #scratch
25586 .register %g3, #scratch
25589 fpsll64x %f0, %f2, %f4' > conftest.s
25590 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25592 (eval $ac_try) 2>&5
25594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25595 test $ac_status = 0; }; }
25597 gcc_cv_as_sparc_sparc6
=yes
25599 echo "configure: failed program was" >&5
25602 rm -f conftest.o conftest.s
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25606 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25607 if test $gcc_cv_as_sparc_sparc6 = yes; then
25609 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25615 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25616 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25617 $as_echo_n "(cached) " >&6
25619 gcc_cv_as_sparc_leon
=no
25620 if test x
$gcc_cv_as != x
; then
25622 .register %g2, #scratch
25623 .register %g3, #scratch
25627 casa [%g2] 0xb, %g3, %g1' > conftest.s
25628 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25630 (eval $ac_try) 2>&5
25632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25633 test $ac_status = 0; }; }
25635 gcc_cv_as_sparc_leon
=yes
25637 echo "configure: failed program was" >&5
25640 rm -f conftest.o conftest.s
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25644 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25645 if test $gcc_cv_as_sparc_leon = yes; then
25647 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25653 i
[34567]86-*-* | x86_64-
*-*)
25656 # Full C++ conformance when using a shared libstdc++-v3 requires some
25657 # support from the Cygwin DLL, which in more recent versions exports
25658 # wrappers to aid in interposing and redirecting operators new, delete,
25659 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25660 # are configuring for a version of Cygwin that exports the wrappers.
25661 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25662 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25663 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25664 gcc_ac_cygwin_dll_wrappers
=yes
25666 gcc_ac_cygwin_dll_wrappers
=no
25670 # Can't check presence of libc functions during cross-compile, so
25671 # we just have to assume we're building for an up-to-date target.
25672 gcc_ac_cygwin_dll_wrappers
=yes
25675 cat >>confdefs.h
<<_ACEOF
25676 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25681 cygwin
* | pe | mingw32
*)
25682 # Recent binutils allows the three-operand form of ".comm" on PE. This
25683 # definition is used unconditionally to initialise the default state of
25684 # the target option variable that governs usage of the feature.
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25686 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25687 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25690 gcc_cv_as_comm_has_align
=no
25691 if test $in_tree_gas = yes; then
25692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25693 then gcc_cv_as_comm_has_align
=yes
25695 elif test x
$gcc_cv_as != x
; then
25696 $as_echo '.comm foo,1,32' > conftest.s
25697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25699 (eval $ac_try) 2>&5
25701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25702 test $ac_status = 0; }; }
25704 gcc_cv_as_comm_has_align
=yes
25706 echo "configure: failed program was" >&5
25709 rm -f conftest.o conftest.s
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25713 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25717 cat >>confdefs.h
<<_ACEOF
25718 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25721 # Used for DWARF 2 in PE
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25723 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25724 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25725 $as_echo_n "(cached) " >&6
25727 gcc_cv_as_ix86_pe_secrel32
=no
25728 if test $in_tree_gas = yes; then
25729 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25730 then gcc_cv_as_ix86_pe_secrel32
=yes
25732 elif test x
$gcc_cv_as != x
; then
25736 .secrel32 foo' > conftest.s
25737 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25739 (eval $ac_try) 2>&5
25741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25742 test $ac_status = 0; }; }
25744 if test x
$gcc_cv_ld != x \
25745 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25746 gcc_cv_as_ix86_pe_secrel32
=yes
25750 echo "configure: failed program was" >&5
25753 rm -f conftest.o conftest.s
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25757 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25758 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25760 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25764 # Test if the assembler supports the extended form of the .section
25765 # directive that specifies section alignment. LTO support uses this,
25766 # but normally only after installation, so we warn but don't fail the
25767 # configure if LTO is enabled but the assembler does not support it.
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25769 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25770 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25771 $as_echo_n "(cached) " >&6
25773 gcc_cv_as_section_has_align
=no
25774 if test $in_tree_gas = yes; then
25775 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25776 then gcc_cv_as_section_has_align
=yes
25778 elif test x
$gcc_cv_as != x
; then
25779 $as_echo '.section lto_test,"dr0"' > conftest.s
25780 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25782 (eval $ac_try) 2>&5
25784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25785 test $ac_status = 0; }; }
25787 gcc_cv_as_section_has_align
=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_section_has_align" >&5
25796 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25799 if test x
$gcc_cv_as_section_has_align != xyes
; then
25800 case ",$enable_languages," in
25802 { $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
25803 $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;}
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25811 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25812 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25813 $as_echo_n "(cached) " >&6
25815 gcc_cv_as_ix86_xbrace_comment
=no
25816 if test x
$gcc_cv_as != x
; then
25817 $as_echo '.text' > conftest.s
25818 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25820 (eval $ac_try) 2>&5
25822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25823 test $ac_status = 0; }; }
25825 gcc_cv_as_ix86_xbrace_comment
=yes
25827 echo "configure: failed program was" >&5
25830 rm -f conftest.o conftest.s
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25834 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25835 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25837 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25843 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25844 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25845 $as_echo_n "(cached) " >&6
25847 gcc_cv_as_ix86_filds
=no
25848 if test x
$gcc_cv_as != x
; then
25849 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25850 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25852 (eval $ac_try) 2>&5
25854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25855 test $ac_status = 0; }; }
25857 gcc_cv_as_ix86_filds
=yes
25859 echo "configure: failed program was" >&5
25862 rm -f conftest.o conftest.s
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25866 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25867 if test $gcc_cv_as_ix86_filds = yes; then
25869 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25875 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25876 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25877 $as_echo_n "(cached) " >&6
25879 gcc_cv_as_ix86_fildq
=no
25880 if test x
$gcc_cv_as != x
; then
25881 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25882 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25884 (eval $ac_try) 2>&5
25886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25887 test $ac_status = 0; }; }
25889 gcc_cv_as_ix86_fildq
=yes
25891 echo "configure: failed program was" >&5
25894 rm -f conftest.o conftest.s
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25898 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25899 if test $gcc_cv_as_ix86_fildq = yes; then
25901 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25907 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25908 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25909 $as_echo_n "(cached) " >&6
25911 gcc_cv_as_ix86_cmov_sun_syntax
=no
25912 if test x
$gcc_cv_as != x
; then
25913 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25914 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25916 (eval $ac_try) 2>&5
25918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25919 test $ac_status = 0; }; }
25921 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25923 echo "configure: failed program was" >&5
25926 rm -f conftest.o conftest.s
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25930 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25931 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25933 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25939 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25940 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25941 $as_echo_n "(cached) " >&6
25943 gcc_cv_as_ix86_ffreep
=no
25944 if test x
$gcc_cv_as != x
; then
25945 $as_echo 'ffreep %st(1)' > conftest.s
25946 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25948 (eval $ac_try) 2>&5
25950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25951 test $ac_status = 0; }; }
25953 gcc_cv_as_ix86_ffreep
=yes
25955 echo "configure: failed program was" >&5
25958 rm -f conftest.o conftest.s
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25962 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25963 if test $gcc_cv_as_ix86_ffreep = yes; then
25965 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25971 $as_echo_n "checking assembler for .quad directive... " >&6; }
25972 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25973 $as_echo_n "(cached) " >&6
25975 gcc_cv_as_ix86_quad
=no
25976 if test x
$gcc_cv_as != x
; then
25977 $as_echo '.quad 0' > conftest.s
25978 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25980 (eval $ac_try) 2>&5
25982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25983 test $ac_status = 0; }; }
25985 gcc_cv_as_ix86_quad
=yes
25987 echo "configure: failed program was" >&5
25990 rm -f conftest.o conftest.s
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25994 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25995 if test $gcc_cv_as_ix86_quad = yes; then
25997 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26003 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26004 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
26005 $as_echo_n "(cached) " >&6
26007 gcc_cv_as_ix86_sahf
=no
26008 if test x
$gcc_cv_as != x
; then
26011 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26013 (eval $ac_try) 2>&5
26015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26016 test $ac_status = 0; }; }
26018 gcc_cv_as_ix86_sahf
=yes
26020 echo "configure: failed program was" >&5
26023 rm -f conftest.o conftest.s
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26027 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26028 if test $gcc_cv_as_ix86_sahf = yes; then
26030 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26036 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26037 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
26038 $as_echo_n "(cached) " >&6
26040 gcc_cv_as_ix86_interunit_movq
=no
26041 if test x
$gcc_cv_as != x
; then
26044 movq %rax, %xmm0' > conftest.s
26045 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26047 (eval $ac_try) 2>&5
26049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26050 test $ac_status = 0; }; }
26052 gcc_cv_as_ix86_interunit_movq
=yes
26054 echo "configure: failed program was" >&5
26057 rm -f conftest.o conftest.s
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26061 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26065 cat >>confdefs.h
<<_ACEOF
26066 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26071 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26072 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
26073 $as_echo_n "(cached) " >&6
26075 gcc_cv_as_ix86_hle
=no
26076 if test x
$gcc_cv_as != x
; then
26077 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26078 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26080 (eval $ac_try) 2>&5
26082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26083 test $ac_status = 0; }; }
26085 gcc_cv_as_ix86_hle
=yes
26087 echo "configure: failed program was" >&5
26090 rm -f conftest.o conftest.s
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26094 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26095 if test $gcc_cv_as_ix86_hle = yes; then
26097 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26103 $as_echo_n "checking assembler for swap suffix... " >&6; }
26104 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
26105 $as_echo_n "(cached) " >&6
26107 gcc_cv_as_ix86_swap
=no
26108 if test x
$gcc_cv_as != x
; then
26109 $as_echo 'movl.s %esp, %ebp' > conftest.s
26110 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26112 (eval $ac_try) 2>&5
26114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26115 test $ac_status = 0; }; }
26117 gcc_cv_as_ix86_swap
=yes
26119 echo "configure: failed program was" >&5
26122 rm -f conftest.o conftest.s
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26126 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26127 if test $gcc_cv_as_ix86_swap = yes; then
26129 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26135 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26136 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
26137 $as_echo_n "(cached) " >&6
26139 gcc_cv_as_ix86_diff_sect_delta
=no
26140 if test x
$gcc_cv_as != x
; then
26141 $as_echo '.section .rodata
26147 .L2: nop' > conftest.s
26148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26150 (eval $ac_try) 2>&5
26152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26153 test $ac_status = 0; }; }
26155 gcc_cv_as_ix86_diff_sect_delta
=yes
26157 echo "configure: failed program was" >&5
26160 rm -f conftest.o conftest.s
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26164 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26165 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26167 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26173 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26174 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
26175 $as_echo_n "(cached) " >&6
26177 gcc_cv_as_ix86_rep_lock_prefix
=no
26178 if test x
$gcc_cv_as != x
; then
26179 $as_echo 'rep movsl
26184 lock addl %edi, (%eax,%esi)
26185 lock orl $0, (%esp)' > conftest.s
26186 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26188 (eval $ac_try) 2>&5
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; }
26193 gcc_cv_as_ix86_rep_lock_prefix
=yes
26195 echo "configure: failed program was" >&5
26198 rm -f conftest.o conftest.s
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26202 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26203 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26205 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26211 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26212 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26213 $as_echo_n "(cached) " >&6
26215 gcc_cv_as_ix86_ud2
=no
26216 if test x
$gcc_cv_as != x
; then
26217 $as_echo 'ud2' > conftest.s
26218 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26220 (eval $ac_try) 2>&5
26222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26223 test $ac_status = 0; }; }
26225 gcc_cv_as_ix86_ud2
=yes
26227 echo "configure: failed program was" >&5
26230 rm -f conftest.o conftest.s
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26234 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26235 if test $gcc_cv_as_ix86_ud2 = yes; then
26237 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26242 # Enforce 32-bit output with gas and gld.
26243 if test x
$gas = xyes
; then
26244 as_ix86_gas_32_opt
="--32"
26246 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26247 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26248 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26250 ld_ix86_gld_32_opt
="-melf_i386"
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26255 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26256 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26257 $as_echo_n "(cached) " >&6
26259 gcc_cv_as_ix86_tlsgdplt
=no
26260 if test x
$gcc_cv_as != x
; then
26261 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26262 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26264 (eval $ac_try) 2>&5
26266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26267 test $ac_status = 0; }; }
26269 if test x
$gcc_cv_ld != x \
26270 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26271 gcc_cv_as_ix86_tlsgdplt
=yes
26275 echo "configure: failed program was" >&5
26278 rm -f conftest.o conftest.s
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26282 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26283 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26285 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26291 .section .tdata,"aw'$tls_section_flag'",@progbits
26293 .section .text,"ax",@progbits
26294 call tls_ld@tlsldmplt'
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26297 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26298 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26299 $as_echo_n "(cached) " >&6
26301 gcc_cv_as_ix86_tlsldmplt
=no
26302 if test x
$gcc_cv_as != x
; then
26303 $as_echo "$conftest_s" > conftest.s
26304 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26306 (eval $ac_try) 2>&5
26308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26309 test $ac_status = 0; }; }
26311 if test x
$gcc_cv_ld != x \
26312 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26313 gcc_cv_as_ix86_tlsldmplt
=yes
26317 echo "configure: failed program was" >&5
26320 rm -f conftest.o conftest.s
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26324 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26328 cat >>confdefs.h
<<_ACEOF
26329 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26334 .section .text,"ax",@progbits
26336 .type _start, @function
26338 leal value@tlsldm(%ebx), %eax
26339 call ___tls_get_addr@plt
26341 .section .tdata,"aw'$tls_section_flag'",@progbits
26342 .type value, @object
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26345 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26346 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26347 $as_echo_n "(cached) " >&6
26349 gcc_cv_as_ix86_tlsldm
=no
26350 if test x
$gcc_cv_as != x
; then
26351 $as_echo "$conftest_s" > conftest.s
26352 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26354 (eval $ac_try) 2>&5
26356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26357 test $ac_status = 0; }; }
26359 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26360 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26361 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26362 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26363 gcc_cv_as_ix86_tlsldm
=yes
26368 echo "configure: failed program was" >&5
26371 rm -f conftest.o conftest.s
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26375 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26379 cat >>confdefs.h
<<_ACEOF
26380 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26394 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26395 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26396 $as_echo_n "(cached) " >&6
26398 gcc_cv_as_ix86_got32x
=no
26399 if test x
$gcc_cv_as != x
; then
26400 $as_echo "$conftest_s" > conftest.s
26401 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26403 (eval $ac_try) 2>&5
26405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26406 test $ac_status = 0; }; }
26408 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26409 && test x
$gcc_cv_readelf != x \
26410 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26411 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26412 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26413 if $gcc_cv_objdump -dw conftest
2>&1 \
26414 |
grep 0xffffff > /dev
/null
2>&1; then
26415 gcc_cv_as_ix86_got32x
=no
26417 gcc_cv_as_ix86_got32x
=yes
26422 echo "configure: failed program was" >&5
26425 rm -f conftest.o conftest.s
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26429 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26433 cat >>confdefs.h
<<_ACEOF
26434 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26439 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26440 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26441 $as_echo_n "(cached) " >&6
26443 gcc_cv_as_ix86_gotoff_in_data
=no
26444 if test $in_tree_gas = yes; then
26445 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26446 then gcc_cv_as_ix86_gotoff_in_data
=yes
26448 elif test x
$gcc_cv_as != x
; then
26453 .long .L0@GOTOFF' > conftest.s
26454 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26456 (eval $ac_try) 2>&5
26458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26459 test $ac_status = 0; }; }
26461 gcc_cv_as_ix86_gotoff_in_data
=yes
26463 echo "configure: failed program was" >&5
26466 rm -f conftest.o conftest.s
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26470 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26474 cat >>confdefs.h
<<_ACEOF
26475 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26480 .section .text,"ax",@progbits
26482 .type _start, @function
26484 leal ld@tlsldm(%ecx), %eax
26485 call *___tls_get_addr@GOT(%ecx)
26486 leal gd@tlsgd(%ecx), %eax
26487 call *___tls_get_addr@GOT(%ecx)
26489 .section .tdata,"aw'$tls_section_flag'",@progbits
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26498 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26499 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26500 $as_echo_n "(cached) " >&6
26502 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26503 if test x
$gcc_cv_as != x
; then
26504 $as_echo "$conftest_s" > conftest.s
26505 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26507 (eval $ac_try) 2>&5
26509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26510 test $ac_status = 0; }; }
26512 if test x
$gcc_cv_ld != x \
26513 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26514 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26518 echo "configure: failed program was" >&5
26521 rm -f conftest.o conftest.s
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26525 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26529 cat >>confdefs.h
<<_ACEOF
26530 #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`
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26537 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26538 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26539 $as_echo_n "(cached) " >&6
26541 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26542 if test $in_tree_gas = yes; then
26543 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26544 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26546 elif test x
$gcc_cv_as != x
; then
26548 addl r15 = @ltoffx(x#), gp
26550 ld8.mov r16 = [r15], x#' > conftest.s
26551 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26553 (eval $ac_try) 2>&5
26555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26556 test $ac_status = 0; }; }
26558 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26560 echo "configure: failed program was" >&5
26563 rm -f conftest.o conftest.s
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26567 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26568 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26570 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26582 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26583 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26584 $as_echo_n "(cached) " >&6
26586 gcc_cv_as_machine_directive
=no
26587 if test x
$gcc_cv_as != x
; then
26588 $as_echo ' .machine ppc7400' > conftest.s
26589 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26591 (eval $ac_try) 2>&5
26593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26594 test $ac_status = 0; }; }
26596 gcc_cv_as_machine_directive
=yes
26598 echo "configure: failed program was" >&5
26601 rm -f conftest.o conftest.s
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26605 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26608 if test x
$gcc_cv_as_machine_directive != xyes
; then
26609 echo "*** This target requires an assembler supporting \".machine\"" >&2
26610 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26611 test x
$build = x
$target && exit 1
26617 *-*-aix*) conftest_s
=' .machine "pwr5"
26620 *-*-darwin*) conftest_s
=' .text
26622 *) conftest_s
=' .machine power4
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26628 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26629 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26630 $as_echo_n "(cached) " >&6
26632 gcc_cv_as_powerpc_mfcrf
=no
26633 if test $in_tree_gas = yes; then
26634 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26635 then gcc_cv_as_powerpc_mfcrf
=yes
26637 elif test x
$gcc_cv_as != x
; then
26638 $as_echo "$conftest_s" > conftest.s
26639 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26641 (eval $ac_try) 2>&5
26643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26644 test $ac_status = 0; }; }
26646 gcc_cv_as_powerpc_mfcrf
=yes
26648 echo "configure: failed program was" >&5
26651 rm -f conftest.o conftest.s
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26655 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26656 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26658 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26664 *-*-aix*) conftest_s
=' .csect .text[PR]
26666 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26670 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26671 *) conftest_s
=' .text
26673 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26677 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26678 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26679 $as_echo_n "(cached) " >&6
26681 gcc_cv_as_powerpc_rel16
=no
26682 if test $in_tree_gas = yes; then
26683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26684 then gcc_cv_as_powerpc_rel16
=yes
26686 elif test x
$gcc_cv_as != x
; then
26687 $as_echo "$conftest_s" > conftest.s
26688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26690 (eval $ac_try) 2>&5
26692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26693 test $ac_status = 0; }; }
26695 gcc_cv_as_powerpc_rel16
=yes
26697 echo "configure: failed program was" >&5
26700 rm -f conftest.o conftest.s
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26704 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26705 if test $gcc_cv_as_powerpc_rel16 = yes; then
26707 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26713 *-*-aix*) conftest_s
=' .machine "pwr7"
26716 *) conftest_s
=' .machine power7
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26722 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26723 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26724 $as_echo_n "(cached) " >&6
26726 gcc_cv_as_powerpc_vsx
=no
26727 if test $in_tree_gas = yes; then
26728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26729 then gcc_cv_as_powerpc_vsx
=yes
26731 elif test x
$gcc_cv_as != x
; then
26732 $as_echo "$conftest_s" > conftest.s
26733 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26735 (eval $ac_try) 2>&5
26737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26738 test $ac_status = 0; }; }
26740 gcc_cv_as_powerpc_vsx
=yes
26742 echo "configure: failed program was" >&5
26745 rm -f conftest.o conftest.s
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26749 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26750 if test $gcc_cv_as_powerpc_vsx = yes; then
26752 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26758 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26759 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26760 $as_echo_n "(cached) " >&6
26762 gcc_cv_as_powerpc_gnu_attribute
=no
26763 if test $in_tree_gas = yes; then
26764 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26765 then gcc_cv_as_powerpc_gnu_attribute
=yes
26767 elif test x
$gcc_cv_as != x
; then
26768 $as_echo '.gnu_attribute 4,1' > conftest.s
26769 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26771 (eval $ac_try) 2>&5
26773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26774 test $ac_status = 0; }; }
26776 gcc_cv_as_powerpc_gnu_attribute
=yes
26778 echo "configure: failed program was" >&5
26781 rm -f conftest.o conftest.s
26784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26785 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26786 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26788 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26794 $as_echo_n "checking assembler for tls marker support... " >&6; }
26795 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26796 $as_echo_n "(cached) " >&6
26798 gcc_cv_as_powerpc_tls_markers
=no
26799 if test $in_tree_gas = yes; then
26800 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26801 then gcc_cv_as_powerpc_tls_markers
=yes
26803 elif test x
$gcc_cv_as != x
; then
26804 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26805 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26807 (eval $ac_try) 2>&5
26809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26810 test $ac_status = 0; }; }
26812 gcc_cv_as_powerpc_tls_markers
=yes
26814 echo "configure: failed program was" >&5
26817 rm -f conftest.o conftest.s
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26821 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26822 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26824 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26830 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26831 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26832 $as_echo_n "(cached) " >&6
26834 gcc_cv_as_powerpc_entry_markers
=no
26835 if test $in_tree_gas = yes; then
26836 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26837 then gcc_cv_as_powerpc_entry_markers
=yes
26839 elif test x
$gcc_cv_as != x
; then
26840 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26841 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26843 (eval $ac_try) 2>&5
26845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26846 test $ac_status = 0; }; }
26848 gcc_cv_as_powerpc_entry_markers
=yes
26850 echo "configure: failed program was" >&5
26853 rm -f conftest.o conftest.s
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26857 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26858 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26860 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26868 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26869 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26870 $as_echo_n "(cached) " >&6
26872 gcc_cv_as_aix_ref
=no
26873 if test $in_tree_gas = yes; then
26874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26875 then gcc_cv_as_aix_ref
=yes
26877 elif test x
$gcc_cv_as != x
; then
26878 $as_echo ' .csect stuff[rw]
26884 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26886 (eval $ac_try) 2>&5
26888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26889 test $ac_status = 0; }; }
26891 gcc_cv_as_aix_ref
=yes
26893 echo "configure: failed program was" >&5
26896 rm -f conftest.o conftest.s
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26900 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26901 if test $gcc_cv_as_aix_ref = yes; then
26903 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26909 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26910 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26911 $as_echo_n "(cached) " >&6
26913 gcc_cv_as_aix_dwloc
=no
26914 if test $in_tree_gas = yes; then
26915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26916 then gcc_cv_as_aix_dwloc
=yes
26918 elif test x
$gcc_cv_as != x
; then
26919 $as_echo ' .dwsect 0xA0000
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_dwloc
=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_dwloc" >&5
26939 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26940 if test $gcc_cv_as_aix_dwloc = yes; then
26942 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26952 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26953 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26954 $as_echo_n "(cached) " >&6
26956 gcc_cv_as_mips_explicit_relocs
=no
26957 if test $in_tree_gas = yes; then
26958 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26959 then gcc_cv_as_mips_explicit_relocs
=yes
26961 elif test x
$gcc_cv_as != x
; then
26962 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26963 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26965 (eval $ac_try) 2>&5
26967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26968 test $ac_status = 0; }; }
26970 gcc_cv_as_mips_explicit_relocs
=yes
26972 echo "configure: failed program was" >&5
26975 rm -f conftest.o conftest.s
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26979 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26980 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26981 if test x
$target_cpu_default = x
26982 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26983 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26989 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26990 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26991 $as_echo_n "(cached) " >&6
26993 gcc_cv_as_mips_no_shared
=no
26994 if test $in_tree_gas = yes; then
26995 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26996 then gcc_cv_as_mips_no_shared
=yes
26998 elif test x
$gcc_cv_as != x
; then
26999 $as_echo 'nop' > conftest.s
27000 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27002 (eval $ac_try) 2>&5
27004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27005 test $ac_status = 0; }; }
27007 gcc_cv_as_mips_no_shared
=yes
27009 echo "configure: failed program was" >&5
27012 rm -f conftest.o conftest.s
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27016 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27017 if test $gcc_cv_as_mips_no_shared = yes; then
27019 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27025 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27026 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27027 $as_echo_n "(cached) " >&6
27029 gcc_cv_as_mips_gnu_attribute
=no
27030 if test $in_tree_gas = yes; then
27031 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27032 then gcc_cv_as_mips_gnu_attribute
=yes
27034 elif test x
$gcc_cv_as != x
; then
27035 $as_echo '.gnu_attribute 4,1' > conftest.s
27036 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27038 (eval $ac_try) 2>&5
27040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27041 test $ac_status = 0; }; }
27043 gcc_cv_as_mips_gnu_attribute
=yes
27045 echo "configure: failed program was" >&5
27048 rm -f conftest.o conftest.s
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27052 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27053 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27055 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27061 $as_echo_n "checking assembler for .module support... " >&6; }
27062 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27063 $as_echo_n "(cached) " >&6
27065 gcc_cv_as_mips_dot_module
=no
27066 if test x
$gcc_cv_as != x
; then
27067 $as_echo '.module mips2
27068 .module fp=xx' > conftest.s
27069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27071 (eval $ac_try) 2>&5
27073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27074 test $ac_status = 0; }; }
27076 gcc_cv_as_mips_dot_module
=yes
27078 echo "configure: failed program was" >&5
27081 rm -f conftest.o conftest.s
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27085 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27086 if test $gcc_cv_as_mips_dot_module = yes; then
27088 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27092 if test x
$gcc_cv_as_mips_dot_module = xno \
27093 && test x
$with_fp_32 != x
; then
27094 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27098 $as_echo_n "checking assembler for .micromips support... " >&6; }
27099 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27100 $as_echo_n "(cached) " >&6
27102 gcc_cv_as_micromips_support
=no
27103 if test x
$gcc_cv_as != x
; then
27104 $as_echo '.set micromips' > conftest.s
27105 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27107 (eval $ac_try) 2>&5
27109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27110 test $ac_status = 0; }; }
27112 gcc_cv_as_micromips_support
=yes
27114 echo "configure: failed program was" >&5
27117 rm -f conftest.o conftest.s
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27121 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27122 if test $gcc_cv_as_micromips_support = yes; then
27124 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27130 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27131 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27132 $as_echo_n "(cached) " >&6
27134 gcc_cv_as_mips_dtprelword
=no
27135 if test $in_tree_gas = yes; then
27136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27137 then gcc_cv_as_mips_dtprelword
=yes
27139 elif test x
$gcc_cv_as != x
; then
27140 $as_echo '.section .tdata,"awT",@progbits
27144 .dtprelword x+0x8000' > conftest.s
27145 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27147 (eval $ac_try) 2>&5
27149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27150 test $ac_status = 0; }; }
27152 gcc_cv_as_mips_dtprelword
=yes
27154 echo "configure: failed program was" >&5
27157 rm -f conftest.o conftest.s
27160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27161 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27162 if test $gcc_cv_as_mips_dtprelword = yes; then
27164 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27170 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27171 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27172 $as_echo_n "(cached) " >&6
27174 gcc_cv_as_mips_dspr1_mult
=no
27175 if test x
$gcc_cv_as != x
; then
27176 $as_echo ' .set mips32r2
27184 multu $ac3,$4,$5' > conftest.s
27185 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27187 (eval $ac_try) 2>&5
27189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27190 test $ac_status = 0; }; }
27192 gcc_cv_as_mips_dspr1_mult
=yes
27194 echo "configure: failed program was" >&5
27197 rm -f conftest.o conftest.s
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27201 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27202 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27204 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27210 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27211 gcc_cv_as_ld_jalr_reloc
=no
27212 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27213 if test $in_tree_ld = yes ; then
27214 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 \
27215 && test $in_tree_ld_is_elf = yes; then
27216 gcc_cv_as_ld_jalr_reloc
=yes
27218 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27219 echo ' .ent x' > conftest.s
27220 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27221 echo ' lw $25,%call16(y)($28)' >> conftest.s
27222 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27223 echo '1: jalr $25' >> conftest.s
27224 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27225 echo '1: jalr $25' >> conftest.s
27226 echo ' .end x' >> conftest.s
27227 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27228 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27229 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27230 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27231 gcc_cv_as_ld_jalr_reloc
=yes
27237 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27238 if test x
$target_cpu_default = x
; then
27239 target_cpu_default
=MASK_RELAX_PIC_CALLS
27241 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27245 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27248 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27249 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27250 $as_echo_n "(cached) " >&6
27252 gcc_cv_ld_mips_personality_relaxation
=no
27253 if test $in_tree_ld = yes ; then
27254 if test "$gcc_cv_gld_major_version" -eq 2 \
27255 -a "$gcc_cv_gld_minor_version" -ge 21 \
27256 -o "$gcc_cv_gld_major_version" -gt 2; then
27257 gcc_cv_ld_mips_personality_relaxation
=yes
27259 elif test x
$gcc_cv_as != x \
27260 -a x
$gcc_cv_ld != x \
27261 -a x
$gcc_cv_readelf != x
; then
27262 cat > conftest.s
<<EOF
27264 .cfi_personality 0x80,indirect_ptr
27271 .section .data,"aw",@progbits
27275 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27276 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27277 if $gcc_cv_readelf -d conftest
2>&1 \
27278 |
grep TEXTREL
> /dev
/null
2>&1; then
27280 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27281 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27284 gcc_cv_ld_mips_personality_relaxation
=yes
27288 rm -f conftest.s conftest.o conftest
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27291 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27292 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27294 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27299 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27300 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27301 $as_echo_n "(cached) " >&6
27303 gcc_cv_as_mips_nan
=no
27304 if test x
$gcc_cv_as != x
; then
27305 $as_echo '' > conftest.s
27306 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27308 (eval $ac_try) 2>&5
27310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27311 test $ac_status = 0; }; }
27313 gcc_cv_as_mips_nan
=yes
27315 echo "configure: failed program was" >&5
27318 rm -f conftest.o conftest.s
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27322 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27323 if test $gcc_cv_as_mips_nan = yes; then
27325 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27329 if test x
$gcc_cv_as_mips_nan = xno \
27330 && test x
$with_nan != x
; then
27331 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27336 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27337 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27338 $as_echo_n "(cached) " >&6
27340 gcc_cv_as_s390_gnu_attribute
=no
27341 if test $in_tree_gas = yes; then
27342 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27343 then gcc_cv_as_s390_gnu_attribute
=yes
27345 elif test x
$gcc_cv_as != x
; then
27346 $as_echo '.gnu_attribute 8,1' > conftest.s
27347 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27349 (eval $ac_try) 2>&5
27351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27352 test $ac_status = 0; }; }
27354 gcc_cv_as_s390_gnu_attribute
=yes
27356 echo "configure: failed program was" >&5
27359 rm -f conftest.o conftest.s
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27363 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27364 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27366 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27371 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27372 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27373 $as_echo_n "(cached) " >&6
27375 gcc_cv_as_s390_machine_machinemode
=no
27376 if test $in_tree_gas = yes; then
27377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27378 then gcc_cv_as_s390_machine_machinemode
=yes
27380 elif test x
$gcc_cv_as != x
; then
27381 $as_echo ' .machinemode push
27384 .machine pop' > conftest.s
27385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27387 (eval $ac_try) 2>&5
27389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27390 test $ac_status = 0; }; }
27392 gcc_cv_as_s390_machine_machinemode
=yes
27394 echo "configure: failed program was" >&5
27397 rm -f conftest.o conftest.s
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27401 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27402 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27404 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27409 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27410 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27411 $as_echo_n "(cached) " >&6
27413 gcc_cv_as_s390_architecture_modifiers
=no
27414 if test $in_tree_gas = yes; then
27415 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27416 then gcc_cv_as_s390_architecture_modifiers
=yes
27418 elif test x
$gcc_cv_as != x
; then
27419 $as_echo ' .machine z13+vx ' > conftest.s
27420 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27422 (eval $ac_try) 2>&5
27424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27425 test $ac_status = 0; }; }
27427 gcc_cv_as_s390_architecture_modifiers
=yes
27429 echo "configure: failed program was" >&5
27432 rm -f conftest.o conftest.s
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27436 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27437 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27439 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27446 # Mips and HP-UX need the GNU assembler.
27447 # Linux on IA64 might be able to use the Intel assembler.
27450 mips
*-*-* |
*-*-hpux* )
27451 if test x
$gas_flag = xyes \
27452 ||
test x
"$host" != x
"$build" \
27453 ||
test ! -x "$gcc_cv_as" \
27454 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27457 echo "*** This configuration requires the GNU assembler" >&2
27463 # ??? Not all targets support dwarf2 debug_line, even within a version
27464 # of gas. Moreover, we need to emit a valid instruction to trigger any
27465 # info to the output file. So, as supported targets are added to gas 2.11,
27466 # add some instruction here to (also) show we expect this might work.
27467 # ??? Once 2.11 is released, probably need to add first known working
27468 # version to the per-target configury.
27469 case "$cpu_type" in
27470 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27471 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27472 | tilegx | tilepro | visium | xstormy16 | xtensa
)
27482 if test x
"$insn" != x
; then
27484 .file 1 \"conftest.s\"
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27488 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27489 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27490 $as_echo_n "(cached) " >&6
27492 gcc_cv_as_dwarf2_debug_line
=no
27493 if test $in_tree_gas = yes; then
27494 if test $in_tree_gas_is_elf = yes \
27495 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27496 then gcc_cv_as_dwarf2_debug_line
=yes
27498 elif test x
$gcc_cv_as != x
; then
27499 $as_echo "$conftest_s" > conftest.s
27500 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27502 (eval $ac_try) 2>&5
27504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27505 test $ac_status = 0; }; }
27507 if test x
$gcc_cv_objdump != x \
27508 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27509 |
grep debug_line
> /dev
/null
2>&1; then
27510 gcc_cv_as_dwarf2_debug_line
=yes
27513 echo "configure: failed program was" >&5
27516 rm -f conftest.o conftest.s
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27520 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27524 # The .debug_line file table must be in the exact order that
27525 # we specified the files, since these indices are also used
27526 # by DW_AT_decl_file. Approximate this test by testing if
27527 # the assembler bitches if the same index is assigned twice.
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27529 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27530 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27531 $as_echo_n "(cached) " >&6
27533 gcc_cv_as_dwarf2_file_buggy
=no
27534 if test x
$gcc_cv_as != x
; then
27535 $as_echo ' .file 1 "foo.s"
27536 .file 1 "bar.s"' > conftest.s
27537 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27539 (eval $ac_try) 2>&5
27541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27542 test $ac_status = 0; }; }
27544 gcc_cv_as_dwarf2_file_buggy
=yes
27546 echo "configure: failed program was" >&5
27549 rm -f conftest.o conftest.s
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27553 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27557 if test $gcc_cv_as_dwarf2_debug_line = yes \
27558 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27560 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27563 if test $gcc_cv_as_leb128 = yes; then
27565 .file 1 \"conftest.s\"
27566 .loc 1 3 0 view .LVU1
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27573 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27574 if test "${gcc_cv_as_dwarf2_debug_view+set}" = set; then :
27575 $as_echo_n "(cached) " >&6
27577 gcc_cv_as_dwarf2_debug_view
=no
27578 if test $in_tree_gas = yes; then
27579 if test $in_tree_gas_is_elf = yes \
27580 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27581 then gcc_cv_as_dwarf2_debug_view
=yes
27583 elif test x
$gcc_cv_as != x
; then
27584 $as_echo "$conftest_s" > conftest.s
27585 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27587 (eval $ac_try) 2>&5
27589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27590 test $ac_status = 0; }; }
27592 gcc_cv_as_dwarf2_debug_view
=yes
27594 echo "configure: failed program was" >&5
27597 rm -f conftest.o conftest.s
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27601 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27602 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27604 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27612 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27613 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27614 $as_echo_n "(cached) " >&6
27616 gcc_cv_as_gdwarf2_flag
=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 \) + 11 \) \* 1000 + 0`
27620 then gcc_cv_as_gdwarf2_flag
=yes
27622 elif test x
$gcc_cv_as != x
; then
27623 $as_echo "$insn" > conftest.s
27624 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -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_gdwarf2_flag
=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_gdwarf2_flag" >&5
27640 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27641 if test $gcc_cv_as_gdwarf2_flag = yes; then
27643 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27649 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27650 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27651 $as_echo_n "(cached) " >&6
27653 gcc_cv_as_gstabs_flag
=no
27654 if test $in_tree_gas = yes; then
27655 if test $in_tree_gas_is_elf = yes \
27656 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27657 then gcc_cv_as_gstabs_flag
=yes
27659 elif test x
$gcc_cv_as != x
; then
27660 $as_echo "$insn" > conftest.s
27661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27663 (eval $ac_try) 2>&5
27665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27666 test $ac_status = 0; }; }
27668 gcc_cv_as_gstabs_flag
=yes
27670 echo "configure: failed program was" >&5
27673 rm -f conftest.o conftest.s
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27677 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27678 if test $gcc_cv_as_gstabs_flag = yes; then
27680 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27686 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27687 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27688 $as_echo_n "(cached) " >&6
27690 gcc_cv_as_debug_prefix_map_flag
=no
27691 if test $in_tree_gas = yes; then
27692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27693 then gcc_cv_as_debug_prefix_map_flag
=yes
27695 elif test x
$gcc_cv_as != x
; then
27696 $as_echo "$insn" > conftest.s
27697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27699 (eval $ac_try) 2>&5
27701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27702 test $ac_status = 0; }; }
27704 gcc_cv_as_debug_prefix_map_flag
=yes
27706 echo "configure: failed program was" >&5
27709 rm -f conftest.o conftest.s
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27713 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27714 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27716 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27723 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27724 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27725 $as_echo_n "(cached) " >&6
27727 gcc_cv_as_compress_debug
=no
27728 if test x
$gcc_cv_as != x
; then
27729 $as_echo '' > conftest.s
27730 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27732 (eval $ac_try) 2>&5
27734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27735 test $ac_status = 0; }; }
27737 # gas compiled without zlib cannot compress debug sections and warns
27738 # about it, but still exits successfully. So check for this, too.
27739 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27741 gcc_cv_as_compress_debug
=0
27742 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27743 # defaulting to the ELF gABI format.
27744 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
27746 gcc_cv_as_compress_debug
=2
27747 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27748 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27749 # Before binutils 2.26, gas only supported --compress-debug-options and
27750 # emitted the traditional GNU format.
27751 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27753 gcc_cv_as_compress_debug
=1
27754 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27755 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27757 gcc_cv_as_compress_debug
=0
27760 echo "configure: failed program was" >&5
27763 rm -f conftest.o conftest.s
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27767 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27771 cat >>confdefs.h
<<_ACEOF
27772 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27776 cat >>confdefs.h
<<_ACEOF
27777 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27781 cat >>confdefs.h
<<_ACEOF
27782 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27787 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27788 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27789 $as_echo_n "(cached) " >&6
27791 gcc_cv_as_lcomm_with_alignment
=no
27792 if test x
$gcc_cv_as != x
; then
27793 $as_echo '.lcomm bar,4,16' > conftest.s
27794 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27796 (eval $ac_try) 2>&5
27798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27799 test $ac_status = 0; }; }
27801 gcc_cv_as_lcomm_with_alignment
=yes
27803 echo "configure: failed program was" >&5
27806 rm -f conftest.o conftest.s
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27810 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27811 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27813 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27818 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27819 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27820 && test "$prefix" != "NONE"; then
27822 cat >>confdefs.h
<<_ACEOF
27823 #define PREFIX_INCLUDE_DIR "$prefix/include"
27828 # Determine the version of glibc, if any, used on the target.
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27830 $as_echo_n "checking for target glibc version... " >&6; }
27832 # Check whether --with-glibc-version was given.
27833 if test "${with_glibc_version+set}" = set; then :
27834 withval
=$with_glibc_version;
27835 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27836 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27837 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27839 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27843 glibc_version_major
=0
27844 glibc_version_minor
=0
27845 if test -f $target_header_dir/features.h \
27846 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27847 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27848 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27849 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27854 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27856 cat >>confdefs.h
<<_ACEOF
27857 #define TARGET_GLIBC_MAJOR $glibc_version_major
27861 cat >>confdefs.h
<<_ACEOF
27862 #define TARGET_GLIBC_MINOR $glibc_version_minor
27866 # Check whether --enable-gnu-unique-object was given.
27867 if test "${enable_gnu_unique_object+set}" = set; then :
27868 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27870 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27871 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27875 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27876 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27877 $as_echo_n "(cached) " >&6
27879 gcc_cv_as_gnu_unique_object
=no
27880 if test $in_tree_gas = yes; then
27881 if test $in_tree_gas_is_elf = yes \
27882 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27883 then gcc_cv_as_gnu_unique_object
=yes
27885 elif test x
$gcc_cv_as != x
; then
27886 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27887 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27889 (eval $ac_try) 2>&5
27891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27892 test $ac_status = 0; }; }
27894 gcc_cv_as_gnu_unique_object
=yes
27896 echo "configure: failed program was" >&5
27899 rm -f conftest.o conftest.s
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27903 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27904 if test $gcc_cv_as_gnu_unique_object = yes; then
27905 # We need to unquote above to to use the definition from config.gcc.
27906 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27908 if test $glibc_version_major -gt 2 \
27909 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27910 enable_gnu_unique_object
=yes
27917 if test x
$enable_gnu_unique_object = xyes
; then
27919 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27924 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27925 if test "${gcc_cv_as_line_zero+set}" = set; then :
27926 $as_echo_n "(cached) " >&6
27928 gcc_cv_as_line_zero
=no
27929 if test $in_tree_gas = yes; then
27930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27931 then gcc_cv_as_line_zero
=yes
27933 elif test "x$gcc_cv_as" != x
; then
27934 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27935 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27937 (eval $ac_try) 2>&5
27939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27940 test $ac_status = 0; }; } &&
27941 test "x`cat conftest.out`" = x
27943 gcc_cv_as_line_zero
=yes
27945 echo "configure: failed program was" >&5
27947 echo "configure: error output was" >&5
27948 cat conftest.out
>&5
27950 rm -f conftest.o conftest.s conftest.out
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27954 $as_echo "$gcc_cv_as_line_zero" >&6; }
27955 if test "x$gcc_cv_as_line_zero" = xyes
; then
27957 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27962 $as_echo_n "checking support for thin archives... " >&6; }
27963 thin_archive_support
=no
27964 echo 'int main (void) { return 0; }' > conftest.c
27965 if ($AR --version |
sed 1q |
grep "GNU ar" \
27966 && $CC $CFLAGS -c conftest.c \
27967 && $AR rcT conftest.a conftest.o \
27968 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
27969 thin_archive_support
=yes
27971 rm -f conftest.c conftest.o conftest.a conftest
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27973 $as_echo "$thin_archive_support" >&6; }
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27977 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27978 gcc_cv_ld_eh_frame_hdr
=no
27979 if test $in_tree_ld = yes ; then
27980 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 \
27981 && test $in_tree_ld_is_elf = yes; then
27982 gcc_cv_ld_eh_frame_hdr
=yes
27984 elif test x
$gcc_cv_ld != x
; then
27985 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27986 # Check if linker supports --eh-frame-hdr option
27987 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
27988 gcc_cv_ld_eh_frame_hdr
=yes
27993 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27994 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27995 gcc_cv_ld_eh_frame_hdr
=yes
28002 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28004 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28008 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28011 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28012 gcc_cv_ld_eh_frame_ciev3
=no
28013 if test $in_tree_ld = yes ; then
28014 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 \
28015 && test $in_tree_ld_is_elf = yes; then
28016 gcc_cv_ld_eh_frame_ciev3
=yes
28018 elif test x
$gcc_cv_ld != x
; then
28019 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28020 gcc_cv_ld_eh_frame_ciev3
=yes
28021 if test 0"$ld_date" -lt 20040513; then
28022 if test -n "$ld_date"; then
28023 # If there was date string, but was earlier than 2004-05-13, fail
28024 gcc_cv_ld_eh_frame_ciev3
=no
28025 elif test "$ld_vers_major" -lt 2; then
28026 gcc_cv_ld_eh_frame_ciev3
=no
28027 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28028 gcc_cv_ld_eh_frame_ciev3
=no
28034 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28035 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28036 gcc_cv_ld_eh_frame_ciev3
=yes
28043 cat >>confdefs.h
<<_ACEOF
28044 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28048 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28051 $as_echo_n "checking linker position independent executable support... " >&6; }
28053 if test $in_tree_ld = yes ; then
28055 # Full PIE support on Solaris was only introduced in gld 2.26.
28056 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28057 *) gcc_gld_pie_min_version
=15 ;;
28059 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 \
28060 && test $in_tree_ld_is_elf = yes; then
28063 elif test x
$gcc_cv_ld != x
; then
28064 # Check if linker supports -pie option
28065 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28069 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28070 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28077 *-*-solaris2.1
[1-9]*)
28078 # Solaris 11.3 added PIE support.
28079 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28086 if test x
"$gcc_cv_ld_pie" = xyes
; then
28088 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28092 $as_echo "$gcc_cv_ld_pie" >&6; }
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28095 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28096 gcc_cv_ld_pie_copyreloc
=no
28097 if test $gcc_cv_ld_pie = yes ; then
28098 if test $in_tree_ld = yes ; then
28099 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
28100 gcc_cv_ld_pie_copyreloc
=yes
28102 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28103 # Check if linker supports -pie option with copy reloc
28105 i?
86-*-linux* | x86_64-
*-linux*)
28106 cat > conftest1.s
<<EOF
28109 .type a_glob, @object
28114 cat > conftest2.s
<<EOF
28117 .type main, @function
28119 movl %eax, a_glob(%rip)
28122 .section .data.rel,"aw",@progbits
28127 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28128 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28129 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28130 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28131 gcc_cv_ld_pie_copyreloc
=yes
28133 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28139 cat >>confdefs.h
<<_ACEOF
28140 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28144 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28147 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28148 gcc_cv_ld_eh_gc_sections
=no
28149 if test $in_tree_ld = yes ; then
28150 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 \
28151 && test $in_tree_ld_is_elf = yes; then
28152 gcc_cv_ld_eh_gc_sections
=yes
28154 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28155 cat > conftest.s
<<EOF
28158 .type _start, @function
28161 .size _start, .-_start
28162 .section .text.foo,"ax",@progbits
28163 .type foo, @function
28167 .section .gcc_except_table.foo,"a",@progbits
28170 .section .eh_frame,"a",@progbits
28173 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28174 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28175 |
grep "gc-sections option ignored" > /dev
/null
; then
28176 gcc_cv_ld_eh_gc_sections
=no
28177 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28178 |
grep gcc_except_table
> /dev
/null
; then
28179 gcc_cv_ld_eh_gc_sections
=yes
28180 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28181 if test x
$gcc_cv_as_comdat_group != xyes
; then
28182 gcc_cv_ld_eh_gc_sections
=no
28183 cat > conftest.s
<<EOF
28186 .type _start, @function
28189 .size _start, .-_start
28190 .section .gnu.linkonce.t.foo,"ax",@progbits
28191 .type foo, @function
28195 .section .gcc_except_table.foo,"a",@progbits
28198 .section .eh_frame,"a",@progbits
28201 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28202 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28203 |
grep "gc-sections option ignored" > /dev
/null
; then
28204 gcc_cv_ld_eh_gc_sections
=no
28205 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28206 |
grep gcc_except_table
> /dev
/null
; then
28207 gcc_cv_ld_eh_gc_sections
=yes
28213 rm -f conftest.s conftest.o conftest
28217 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28218 gcc_cv_ld_eh_gc_sections
=no
28221 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28223 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28227 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28230 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28231 gcc_cv_ld_eh_gc_sections_bug
=no
28232 if test $in_tree_ld = yes ; then
28233 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 \
28234 && test $in_tree_ld_is_elf = yes; then
28235 gcc_cv_ld_eh_gc_sections_bug
=yes
28237 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
28238 gcc_cv_ld_eh_gc_sections_bug
=yes
28239 cat > conftest.s
<<EOF
28242 .type _start, @function
28245 .size _start, .-_start
28246 .section .text.startup.foo,"ax",@progbits
28247 .type foo, @function
28251 .section .gcc_except_table.foo,"a",@progbits
28254 .section .eh_frame,"a",@progbits
28257 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28258 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28259 |
grep "gc-sections option ignored" > /dev
/null
; then
28261 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28262 |
grep gcc_except_table
> /dev
/null
; then
28263 gcc_cv_ld_eh_gc_sections_bug
=no
28266 rm -f conftest.s conftest.o conftest
28268 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28270 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28274 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28277 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28278 # gold/gld support compressed debug sections since binutils 2.19/2.21
28279 # In binutils 2.26, gld gained support for the ELF gABI format.
28280 if test $in_tree_ld = yes ; then
28281 gcc_cv_ld_compress_debug
=0
28282 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 \
28283 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28284 gcc_cv_ld_compress_debug
=2
28285 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28286 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 \
28287 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28288 gcc_cv_ld_compress_debug
=3
28289 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28290 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 \
28291 && test $in_tree_ld_is_elf = yes; then
28292 gcc_cv_ld_compress_debug
=1
28294 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28295 if test "$ld_vers_major" -lt 2 \
28296 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28297 gcc_cv_ld_compress_debug
=0
28298 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28299 gcc_cv_ld_compress_debug
=1
28301 gcc_cv_ld_compress_debug
=3
28302 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28304 if test $ld_is_gold = yes; then
28305 gcc_cv_ld_compress_debug
=2
28306 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28309 case "${target}" in
28311 # Introduced in Solaris 11.2.
28312 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28313 gcc_cv_ld_compress_debug
=3
28314 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28316 gcc_cv_ld_compress_debug
=0
28320 # Assume linkers other than GNU ld don't support compessed debug
28322 gcc_cv_ld_compress_debug
=0
28327 cat >>confdefs.h
<<_ACEOF
28328 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28332 cat >>confdefs.h
<<_ACEOF
28333 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28337 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28339 if test x
"$ld64_flag" = x
"yes"; then
28341 # Set defaults for possibly untestable items.
28342 gcc_cv_ld64_export_dynamic
=0
28344 if test "$build" = "$host"; then
28350 # On Darwin, because of FAT library support, it is often possible to execute
28351 # exes from compatible archs even when the host differs from the build system.
28352 case "$build","$host" in
28353 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28354 darwin_try_test
=1;;
28358 # If the configurer specified a minimum ld64 version to be supported, then use
28359 # that to determine feature support.
28360 if test x
"${gcc_cv_ld64_version}" != x
; then
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28362 $as_echo_n "checking ld64 specified version... " >&6; }
28363 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28365 $as_echo "$gcc_cv_ld64_major" >&6; }
28366 if test "$gcc_cv_ld64_major" -ge 236; then
28367 gcc_cv_ld64_export_dynamic
=1
28369 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28370 # If the version was not specified, try to find it.
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28372 $as_echo_n "checking linker version... " >&6; }
28373 if test x
"${gcc_cv_ld64_version}" = x
; then
28374 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28377 $as_echo "$gcc_cv_ld64_version" >&6; }
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28380 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28381 gcc_cv_ld64_export_dynamic
=1
28382 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28383 gcc_cv_ld64_export_dynamic
=0
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28386 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28389 if test x
"${gcc_cv_ld64_version}" != x
; then
28391 cat >>confdefs.h
<<_ACEOF
28392 #define LD64_VERSION "${gcc_cv_ld64_version}"
28398 cat >>confdefs.h
<<_ACEOF
28399 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28409 $as_echo_n "checking linker --as-needed support... " >&6; }
28410 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28411 $as_echo_n "(cached) " >&6
28413 gcc_cv_ld_as_needed
=no
28414 gcc_cv_ld_as_needed_option
='--as-needed'
28415 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28416 if test $in_tree_ld = yes ; then
28417 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 \
28418 && test $in_tree_ld_is_elf = yes; then
28419 gcc_cv_ld_as_needed
=yes
28420 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28421 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28422 gcc_cv_ld_no_as_needed_option
='--pop-state'
28425 elif test x
$gcc_cv_ld != x
; then
28426 # Check if linker supports --as-needed and --no-as-needed options
28427 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
28428 gcc_cv_ld_as_needed
=yes
28429 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
28430 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
28431 && echo "$ld_ver" |
grep GNU
> /dev
/null \
28432 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28433 # Use these options only when both ld.bfd and ld.gold support
28434 # --push-state/--pop-state, which unfortunately wasn't added
28435 # at the same time.
28436 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28437 gcc_cv_ld_no_as_needed_option
='--pop-state'
28440 case "$target:$gnu_ld" in
28442 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28444 gcc_cv_ld_as_needed
=yes
28445 gcc_cv_ld_as_needed_option
="-z ignore"
28446 gcc_cv_ld_no_as_needed_option
="-z record"
28450 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28451 # dl_iterate_phdr, i.e. since Solaris 11.
28453 *-*-solaris2.1
[1-9]*)
28455 i?
86-*-* | x86_64-
*-*)
28456 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28457 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28458 gcc_cv_ld_as_needed
=no
28464 gcc_cv_ld_as_needed
=no
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28470 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28471 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28473 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28476 cat >>confdefs.h
<<_ACEOF
28477 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28481 cat >>confdefs.h
<<_ACEOF
28482 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28488 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28489 saved_LDFLAGS
="$LDFLAGS"
28490 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28491 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28493 /* end confdefs.h. */
28494 int main(void) {return 0;}
28496 if ac_fn_cxx_try_link
"$LINENO"; then :
28497 gcc_cv_ld_clearcap
=yes; break
28499 gcc_cv_ld_clearcap
=no
28501 rm -f core conftest.err conftest.
$ac_objext \
28502 conftest
$ac_exeext conftest.
$ac_ext
28504 LDFLAGS
="$saved_LDFLAGS"
28505 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28507 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28509 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28513 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28519 emul_name
="-melf32lppc"
28522 emul_name
="-melf32ppc"
28525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28526 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28527 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28528 $as_echo_n "(cached) " >&6
28530 gcc_cv_ld_ppc_attr
=no
28531 if test x
"$ld_is_gold" = xyes
; then
28532 gcc_cv_ld_ppc_attr
=yes
28533 elif test $in_tree_ld = yes ; then
28534 if test "$gcc_cv_gld_major_version" -eq 2 \
28535 -a "$gcc_cv_gld_minor_version" -ge 28 \
28536 -o "$gcc_cv_gld_major_version" -gt 2; then
28537 gcc_cv_ld_ppc_attr
=yes
28539 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28540 # check that merging the long double .gnu_attribute doesn't warn
28541 cat > conftest1.s
<<EOF
28544 cat > conftest2.s
<<EOF
28547 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28548 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28549 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
28550 && test ! -s conftest.err
; then
28551 gcc_cv_ld_ppc_attr
=yes
28553 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28558 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28559 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
28561 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28567 case "$target:$tm_file" in
28568 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28571 emul_name
="-melf64lppc"
28574 emul_name
="-melf64ppc"
28577 emul_name
="-melf64ppc_fbsd"
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28581 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28582 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28583 $as_echo_n "(cached) " >&6
28585 gcc_cv_ld_no_dot_syms
=no
28586 if test x
"$ld_is_gold" = xyes
; then
28587 gcc_cv_ld_no_dot_syms
=yes
28588 elif test $in_tree_ld = yes ; then
28589 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
28590 gcc_cv_ld_no_dot_syms
=yes
28592 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28593 cat > conftest1.s
<<EOF
28597 cat > conftest2.s
<<EOF
28598 .section ".opd","aw"
28601 .type foo,@function
28603 .quad .LEfoo,.TOC.@tocbase,0
28609 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28610 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28611 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28612 gcc_cv_ld_no_dot_syms
=yes
28614 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28619 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28620 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28622 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28627 $as_echo_n "checking linker large toc support... " >&6; }
28628 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28629 $as_echo_n "(cached) " >&6
28631 gcc_cv_ld_large_toc
=no
28632 if test x
"$ld_is_gold" = xyes
; then
28633 gcc_cv_ld_large_toc
=yes
28634 elif test $in_tree_ld = yes ; then
28635 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
28636 gcc_cv_ld_large_toc
=yes
28638 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28639 cat > conftest.s
<<EOF
28640 .section ".tbss","awT",@nobits
28646 addis 9,13,ie0@got@tprel@ha
28647 ld 9,ie0@got@tprel@l(9)
28649 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28650 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28651 gcc_cv_ld_large_toc
=yes
28653 rm -f conftest conftest.o conftest.s
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28658 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28659 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28661 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28666 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28667 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28668 $as_echo_n "(cached) " >&6
28670 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28671 cat > conftest.s
<<EOF
28676 .section .data.rel.ro,"aw",@progbits
28681 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28682 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28683 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)) }'`
28685 rm -f conftest conftest.o conftest.s
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28690 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28691 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28693 cat >>confdefs.h
<<_ACEOF
28694 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28704 $as_echo_n "checking linker large toc support... " >&6; }
28705 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28706 $as_echo_n "(cached) " >&6
28708 gcc_cv_ld_large_toc
=no
28709 if test x
$gcc_cv_as != x
; then
28710 cat > conftest.s
<<EOF
28720 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28721 gcc_cv_ld_large_toc
=yes
28723 rm -f conftest conftest.o conftest.s
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28728 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28729 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28731 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28738 $as_echo_n "checking linker --build-id support... " >&6; }
28739 if test "${gcc_cv_ld_buildid+set}" = set; then :
28740 $as_echo_n "(cached) " >&6
28742 gcc_cv_ld_buildid
=no
28743 if test $in_tree_ld = yes ; then
28744 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28745 "$gcc_cv_gld_minor_version" -ge 18 -o \
28746 "$gcc_cv_gld_major_version" -gt 2 \
28747 && test $in_tree_ld_is_elf = yes; then
28748 gcc_cv_ld_buildid
=yes
28750 elif test x
$gcc_cv_ld != x
; then
28751 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
28752 gcc_cv_ld_buildid
=yes
28756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28757 $as_echo "$gcc_cv_ld_buildid" >&6; }
28758 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28760 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28764 # Check whether --enable-linker-build-id was given.
28765 if test "${enable_linker_build_id+set}" = set; then :
28766 enableval
=$enable_linker_build_id;
28768 enable_linker_build_id
=no
28772 if test x
"$enable_linker_build_id" = xyes
; then
28773 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28775 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28779 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28783 # In binutils 2.21, GNU ld gained support for new emulations fully
28784 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28786 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28787 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28788 $as_echo_n "(cached) " >&6
28790 gcc_cv_ld_sol2_emulation
=no
28791 if test $in_tree_ld = yes ; then
28792 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28793 "$gcc_cv_gld_minor_version" -ge 21 -o \
28794 "$gcc_cv_gld_major_version" -gt 2 \
28795 && test $in_tree_ld_is_elf = yes; then
28796 gcc_cv_ld_sol2_emulation
=yes
28798 elif test x
$gcc_cv_ld != x
; then
28799 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28800 grep _sol2
> /dev
/null
; then
28801 gcc_cv_ld_sol2_emulation
=yes
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28806 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28807 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28809 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28814 $as_echo_n "checking linker --sysroot support... " >&6; }
28815 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28816 $as_echo_n "(cached) " >&6
28818 gcc_cv_ld_sysroot
=no
28819 if test $in_tree_ld = yes ; then
28820 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
28821 gcc_cv_ld_sysroot
=yes
28823 elif test x
$gcc_cv_ld != x
; then
28824 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
28825 gcc_cv_ld_sysroot
=yes
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28830 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28831 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28833 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28839 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28841 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28842 if test "${gcc_cv_solaris_crts+set}" = set; then :
28843 $as_echo_n "(cached) " >&6
28845 gcc_cv_solaris_crts
=no
28846 if test x
$host != x
$target; then
28847 if test "x$with_sysroot" = xyes
; then
28848 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
28850 target_sysroot
="${with_sysroot}"
28853 target_libdir
="$target_sysroot/usr/lib"
28854 # At the time they were added, gcrt1.o became a symlink for backwards
28855 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28857 i?
86-*-solaris2* | x86_64-
*-solaris2*)
28858 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
28860 sparc
*-*-solaris2*)
28861 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28866 $as_echo "$gcc_cv_solaris_crts" >&6; }
28869 if test x
$gcc_cv_solaris_crts = xyes
; then
28871 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28875 # Check whether --enable-libssp was given.
28876 if test "${enable_libssp+set}" = set; then :
28877 enableval
=$enable_libssp; case "${enableval}" in
28881 as_fn_error
"unknown libssp setting $enableval" "$LINENO" 5
28887 # Test for stack protector support in target C library.
28888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28889 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28890 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28891 $as_echo_n "(cached) " >&6
28893 gcc_cv_libc_provides_ssp
=no
28894 if test "x$enable_libssp" = "xno"; then
28895 gcc_cv_libc_provides_ssp
=yes
28896 elif test "x$enable_libssp" = "xyes"; then
28897 gcc_cv_libc_provides_ssp
=no
28901 # All versions of musl provide stack protector
28902 gcc_cv_libc_provides_ssp
=yes;;
28903 *-*-linux* |
*-*-kfreebsd*-gnu)
28904 # glibc 2.4 and later provides __stack_chk_fail and
28905 # either __stack_chk_guard, or TLS access to stack guard canary.
28907 if test $glibc_version_major -gt 2 \
28908 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28909 gcc_cv_libc_provides_ssp
=yes
28912 if test -f $target_header_dir/features.h \
28913 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28914 $target_header_dir/features.h
> /dev
/null
; then
28915 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28916 $target_header_dir/features.h
> /dev
/null
&& \
28917 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28918 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28919 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28920 gcc_cv_libc_provides_ssp
=yes
28922 # all versions of Bionic support stack protector
28923 elif test -f $target_header_dir/sys
/cdefs.h \
28924 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28925 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28926 gcc_cv_libc_provides_ssp
=yes
28931 # Avoid complicated tests (see
28932 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28933 # simply assert that glibc does provide this, which is true for all
28934 # realistically usable GNU/Hurd configurations.
28935 # All supported versions of musl provide it as well
28936 gcc_cv_libc_provides_ssp
=yes;;
28937 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
28938 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28939 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28940 gcc_cv_libc_provides_ssp
=yes
28942 echo "no __stack_chk_fail on this target"
28946 *) gcc_cv_libc_provides_ssp
=no
;;
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28951 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28953 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28955 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28959 # Check whether --enable-default-ssp was given.
28960 # Check whether --enable-default-ssp was given.
28961 if test "${enable_default_ssp+set}" = set; then :
28962 enableval
=$enable_default_ssp;
28963 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28965 ia64
*-*-*) enable_default_ssp
=no
;;
28966 *) enable_default_ssp
=$enableval ;;
28969 enable_default_ssp
=no
28972 enable_default_ssp
=no
28975 if test x
$enable_default_ssp = xyes
; then
28977 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28982 # Test for <sys/sdt.h> on the target.
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28985 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28987 if test -f $target_header_dir/sys
/sdt.h
; then
28990 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28994 $as_echo "$have_sys_sdt_h" >&6; }
28996 # Check if TFmode long double should be used by default or not.
28997 # Some glibc targets used DFmode long double, but with glibc 2.4
28998 # and later they can use TFmode.
29000 powerpc
*-*-linux* | \
29001 sparc
*-*-linux* | \
29005 # Check whether --with-long-double-128 was given.
29006 if test "${with_long_double_128+set}" = set; then :
29007 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29010 if test $glibc_version_major -gt 2 \
29011 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29012 gcc_cv_target_ldbl128
=yes
29015 gcc_cv_target_ldbl128
=no
29016 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29017 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29018 && gcc_cv_target_ldbl128
=yes
29025 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29027 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29031 # Check if TFmode long double target should use the IBM extended double or IEEE
29032 # 128-bit floating point formats if long doubles are 128-bits long. The long
29033 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29034 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29037 # Check whether --with-long-double-format was given.
29038 if test "${with_long_double_format+set}" = set; then :
29039 withval
=$with_long_double_format;
29040 case "$target:$with_long_double_format" in
29041 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
29044 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
29045 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29046 case "$with_cpu" in
29047 power7 | power8 | power9 | power1
*)
29051 as_fn_error
"Configuration option --with-long-double-format is only \
29052 supported if the default cpu is power7 or newer" "$LINENO" 5
29053 with_long_double_format
=""
29057 xpowerpc64
*-*-linux*:*)
29058 as_fn_error
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29059 with_long_double_format
=""
29062 as_fn_error
"Configure option --with-long-double-format is only supported \
29063 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29064 with_long_double_format
=""
29070 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29071 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29072 gcc_cv_libc_provides_hwcap_in_tcb
=no
29076 if test $glibc_version_major -gt 2 \
29077 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29078 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29082 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29084 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29089 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29090 gcc_cv_target_dl_iterate_phdr
=unknown
29092 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29093 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29094 # libdl there, both complicating its use and breaking compatibility
29095 # between Solaris 10 updates.
29096 *-*-solaris2.1
[1-9]*)
29097 # <link.h> needs both a dl_iterate_phdr declaration and support for
29098 # compilation with largefile support.
29099 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29100 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29101 gcc_cv_target_dl_iterate_phdr
=yes
29103 gcc_cv_target_dl_iterate_phdr
=no
29106 *-*-dragonfly* |
*-*-freebsd*)
29107 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29108 gcc_cv_target_dl_iterate_phdr
=yes
29110 gcc_cv_target_dl_iterate_phdr
=no
29114 gcc_cv_target_dl_iterate_phdr
=yes
29118 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29120 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29124 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29126 # We no longer support different GC mechanisms. Emit an error if
29127 # the user configures with --with-gc.
29129 # Check whether --with-gc was given.
29130 if test "${with_gc+set}" = set; then :
29131 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29135 # Libraries to use on the host. This will normally be set by the top
29136 # level Makefile. Here we simply capture the value for our Makefile.
29137 if test -z "${HOST_LIBS+set}"; then
29142 # Use the system's zlib library.
29144 # Use the system's zlib library.
29145 zlibdir
="-L\$(top_builddir)/../zlib"
29146 zlibinc
="-I\$(top_srcdir)/../zlib"
29148 # Check whether --with-system-zlib was given.
29149 if test "${with_system_zlib+set}" = set; then :
29150 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29163 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29164 # Check whether --enable-maintainer-mode was given.
29165 if test "${enable_maintainer_mode+set}" = set; then :
29166 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29173 $as_echo "$maintainer_mode" >&6; }
29175 if test "$maintainer_mode" = "yes"; then
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29183 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29184 # Check whether --enable-link-mutex was given.
29185 if test "${enable_link_mutex+set}" = set; then :
29186 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29192 $as_echo "$do_link_mutex" >&6; }
29194 if test "$do_link_mutex" = "yes"; then
29197 DO_LINK_MUTEX
=false
29205 # Make empty files to contain the specs and options for each language.
29206 # Then add #include lines to for a compiler that has specs and/or options.
29212 # These (without "all_") are set in each config-lang.in.
29213 # `language' must be a single word so is spelled singularly.
29216 all_outputs
='Makefile'
29217 # List of language makefile fragments.
29218 all_lang_makefrags
=
29219 # Additional files for gengtype
29220 all_gtfiles
="$target_gtfiles"
29222 # These are the languages that are set in --enable-languages,
29223 # and are available in the GCC tree.
29224 all_selected_languages
=
29226 # Add the language fragments.
29227 # Languages are added via two mechanisms. Some information must be
29228 # recorded in makefile variables, these are defined in config-lang.in.
29229 # We accumulate them and plug them into the main Makefile.
29230 # The other mechanism is a set of hooks for each of the main targets
29231 # like `clean', `install', etc.
29233 language_hooks
="Make-hooks"
29235 for lang
in ${srcdir}/*/config-lang.
in
29237 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29239 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29240 if test "x$lang_alias" = x
29242 echo "$lang doesn't set \$language." 1>&2
29245 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29246 subdirs
="$subdirs $subdir"
29248 # $gcc_subdir is where the gcc integration files are to be found
29249 # for a language, both for internal compiler purposes (compiler
29250 # sources implementing front-end to GCC tree converters), and for
29251 # build infrastructure purposes (Make-lang.in, etc.)
29253 # This will be <subdir> (relative to $srcdir) if a line like
29254 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29255 # is found in <langdir>/config-lang.in, and will remain <langdir>
29258 # Except for the language alias (fetched above), the regular
29259 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29260 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29261 # only this and the language alias.
29263 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29264 if [ "$gcc_subdir" = "" ]; then
29265 gcc_subdir
="$subdir"
29268 case ",$enable_languages," in
29270 all_selected_languages
="$all_selected_languages $lang_alias"
29271 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29272 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29283 .
${srcdir}/$gcc_subdir/config-lang.
in
29284 if test "x$language" = x
29286 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29291 case ",$enable_languages," in
29292 *,$lang_alias,*) ;;
29294 for i
in $subdir_requires; do
29295 test -f "${srcdir}/$i/config-lang.in" && continue
29303 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29304 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29305 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29306 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29308 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29309 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29311 all_languages
="$all_languages $language"
29312 all_compilers
="$all_compilers $compilers"
29313 all_outputs
="$all_outputs $outputs"
29314 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29315 case ",$enable_languages," in
29318 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29328 for language
in $all_selected_languages
29330 check_languages
="$check_languages check-$language"
29333 # We link each language in with a set of hooks, reached indirectly via
29334 # lang.${target}. Only do so for selected languages.
29338 target_list
="all.cross start.encap rest.encap tags \
29339 install-common install-man install-info install-pdf install-html dvi \
29340 pdf html uninstall info man srcextra srcman srcinfo \
29341 mostlyclean clean distclean maintainer-clean install-plugin"
29343 for t
in $target_list
29346 for lang
in $all_selected_languages
29350 echo "lang.$t: $x" >> Make-hooks
29354 # Option include files
29357 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29358 option_includes
="option-includes.mk"
29367 echo "dir ." > .gdbinit
29368 echo "dir ${srcdir}" >> .gdbinit
29369 if test x
$gdb_needs_out_file_path = xyes
29371 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29373 if test "x$subdirs" != x
; then
29376 echo "dir ${srcdir}/$s" >> .gdbinit
29379 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29380 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29382 # Put a breakpoint on __asan_report_error to help with debugging buffer
29385 *-fsanitize=address
*)
29386 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29390 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29394 # Find a directory in which to install a shared libgcc.
29396 # Check whether --enable-version-specific-runtime-libs was given.
29397 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29398 enableval
=$enable_version_specific_runtime_libs;
29402 # Substitute configuration variables
29466 if test x
${build} = x
${host} ; then
29467 if test x
${host} = x
${target} ; then
29468 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29470 echo "Links are now set up to build a cross-compiler" 1>&2
29471 echo " from ${host} to ${target}." 1>&2
29474 if test x
${host} = x
${target} ; then
29475 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29476 echo " for ${target}." 1>&2
29478 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29479 echo " from ${host} to ${target}." 1>&2
29488 if test "x${ISLLIBS}" != "x" ; then
29490 $as_echo "#define HAVE_isl 1" >>confdefs.h
29494 # Check for plugin support
29495 # Check whether --enable-plugin was given.
29496 if test "${enable_plugin+set}" = set; then :
29497 enableval
=$enable_plugin; enable_plugin
=$enableval
29499 enable_plugin
=yes; default_plugin
=yes
29508 # Since plugin support under MinGW is not as straightforward as on
29509 # other platforms (e.g., we have to link import library, etc), we
29510 # only enable it if explicitly requested.
29511 if test x
"$default_plugin" = x
"yes"; then
29513 elif test x
"$enable_plugin" = x
"yes"; then
29514 # Use make's target variable to derive import library name.
29515 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29520 if test x
$build = x
$host; then
29521 export_sym_check
="nm${exeext} -g"
29522 elif test x
$host = x
$target; then
29523 export_sym_check
="$gcc_cv_nm -g"
29529 if test x
$build = x
$host; then
29530 export_sym_check
="objdump${exeext} -T"
29531 elif test x
$host = x
$target; then
29532 export_sym_check
="$gcc_cv_objdump -T"
29539 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
29541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29542 $as_echo_n "checking for exported symbols... " >&6; }
29543 if test "x$export_sym_check" != x
; then
29544 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29545 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29546 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
29547 : # No need to use a flag
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29549 $as_echo "yes" >&6; }
29551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29552 $as_echo "yes" >&6; }
29553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29554 $as_echo_n "checking for -rdynamic... " >&6; }
29555 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29556 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
29557 plugin_rdynamic
=yes
29558 pluginlibs
="-rdynamic"
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29564 $as_echo "$plugin_rdynamic" >&6; }
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29568 $as_echo "unable to check" >&6; }
29573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29574 $as_echo_n "checking for library containing dlopen... " >&6; }
29575 if test "${ac_cv_search_dlopen+set}" = set; then :
29576 $as_echo_n "(cached) " >&6
29578 ac_func_search_save_LIBS
=$LIBS
29579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29580 /* end confdefs.h. */
29582 /* Override any GCC internal prototype to avoid an error.
29583 Use char because int might match the return type of a GCC
29584 builtin and then its argument prototype would still apply. */
29597 for ac_lib
in '' dl
; do
29598 if test -z "$ac_lib"; then
29599 ac_res
="none required"
29602 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29604 if ac_fn_cxx_try_link
"$LINENO"; then :
29605 ac_cv_search_dlopen
=$ac_res
29607 rm -f core conftest.err conftest.
$ac_objext \
29609 if test "${ac_cv_search_dlopen+set}" = set; then :
29613 if test "${ac_cv_search_dlopen+set}" = set; then :
29616 ac_cv_search_dlopen
=no
29618 rm conftest.
$ac_ext
29619 LIBS
=$ac_func_search_save_LIBS
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29622 $as_echo "$ac_cv_search_dlopen" >&6; }
29623 ac_res
=$ac_cv_search_dlopen
29624 if test "$ac_res" != no
; then :
29625 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29629 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29630 pluginlibs
="$pluginlibs -ldl"
29634 # Check that we can build shared objects with -fPIC -shared
29635 saved_LDFLAGS
="$LDFLAGS"
29636 saved_CFLAGS
="$CFLAGS"
29639 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29640 CFLAGS
="$CFLAGS -fPIC"
29641 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29644 CFLAGS
="$CFLAGS -fPIC"
29645 LDFLAGS
="$LDFLAGS -fPIC -shared"
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29649 $as_echo_n "checking for -fPIC -shared... " >&6; }
29650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29651 /* end confdefs.h. */
29661 if ac_fn_cxx_try_link
"$LINENO"; then :
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29663 $as_echo "yes" >&6; }; have_pic_shared
=yes
29665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29666 $as_echo "no" >&6; }; have_pic_shared
=no
29668 rm -f core conftest.err conftest.
$ac_objext \
29669 conftest
$ac_exeext conftest.
$ac_ext
29670 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29674 LDFLAGS
="$saved_LDFLAGS"
29675 CFLAGS
="$saved_CFLAGS"
29677 # If plugin support had been requested but not available, fail.
29678 if test x
"$enable_plugin" = x
"no" ; then
29679 if test x
"$default_plugin" != x
"yes"; then
29681 Building GCC with plugin support requires a host that supports
29682 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29689 if test x
"$enable_plugin" = x
"yes"; then
29691 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29696 # Enable --enable-host-shared
29697 # Check whether --enable-host-shared was given.
29698 if test "${enable_host_shared+set}" = set; then :
29699 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29708 # Check whether --enable-libquadmath-support was given.
29709 if test "${enable_libquadmath_support+set}" = set; then :
29710 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29712 ENABLE_LIBQUADMATH_SUPPORT
=yes
29715 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29717 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29722 # Specify what hash style to use by default.
29724 # Check whether --with-linker-hash-style was given.
29725 if test "${with_linker_hash_style+set}" = set; then :
29726 withval
=$with_linker_hash_style; case x
"$withval" in
29728 LINKER_HASH_STYLE
=sysv
29731 LINKER_HASH_STYLE
=gnu
29734 LINKER_HASH_STYLE
=both
29737 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29741 LINKER_HASH_STYLE
=''
29744 if test x
"${LINKER_HASH_STYLE}" != x
; then
29746 cat >>confdefs.h
<<_ACEOF
29747 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29752 # Specify what should be the default of -fdiagnostics-color option.
29754 # Check whether --with-diagnostics-color was given.
29755 if test "${with_diagnostics_color+set}" = set; then :
29756 withval
=$with_diagnostics_color; case x
"$withval" in
29758 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29761 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29764 DIAGNOSTICS_COLOR_DEFAULT
=-1
29767 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29770 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29774 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29778 cat >>confdefs.h
<<_ACEOF
29779 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29783 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29784 # of jit/jit-playback.c.
29785 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
29786 echo "gcc_driver_version: ${gcc_driver_version}"
29787 cat > gcc-driver-name.h
<<EOF
29788 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
29791 # Check whether --enable-default-pie was given.
29792 # Check whether --enable-default-pie was given.
29793 if test "${enable_default_pie+set}" = set; then :
29794 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29796 enable_default_pie
=no
29799 if test x
$enable_default_pie = xyes
; then
29801 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29806 # Check if -fno-PIE works.
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29808 $as_echo_n "checking for -fno-PIE option... " >&6; }
29809 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29810 $as_echo_n "(cached) " >&6
29812 saved_CXXFLAGS
="$CXXFLAGS"
29813 CXXFLAGS
="$CXXFLAGS -fno-PIE"
29814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29815 /* end confdefs.h. */
29816 int main(void) {return 0;}
29818 if ac_fn_cxx_try_compile
"$LINENO"; then :
29819 gcc_cv_c_no_fpie
=yes
29821 gcc_cv_c_no_fpie
=no
29823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29824 CXXFLAGS
="$saved_CXXFLAGS"
29826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29827 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29828 if test "$gcc_cv_c_no_fpie" = "yes"; then
29829 NO_PIE_CFLAGS
="-fno-PIE"
29833 # Check if -no-pie works.
29834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29835 $as_echo_n "checking for -no-pie option... " >&6; }
29836 if test "${gcc_cv_no_pie+set}" = set; then :
29837 $as_echo_n "(cached) " >&6
29839 saved_LDFLAGS
="$LDFLAGS"
29840 LDFLAGS
="$LDFLAGS -no-pie"
29841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29842 /* end confdefs.h. */
29843 int main(void) {return 0;}
29845 if ac_fn_cxx_try_link
"$LINENO"; then :
29850 rm -f core conftest.err conftest.
$ac_objext \
29851 conftest
$ac_exeext conftest.
$ac_ext
29852 LDFLAGS
="$saved_LDFLAGS"
29854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29855 $as_echo "$gcc_cv_no_pie" >&6; }
29856 if test "$gcc_cv_no_pie" = "yes"; then
29857 NO_PIE_FLAG
="-no-pie"
29861 # Check linker supports '-z bndplt'
29862 ld_bndplt_support
=no
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29864 $as_echo_n "checking linker -z bndplt option... " >&6; }
29865 if test x
"$ld_is_gold" = xno
; then
29866 if test $in_tree_ld = yes ; then
29867 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
29868 ld_bndplt_support
=yes
29870 elif test x
$gcc_cv_ld != x
; then
29871 # Check if linker supports -a bndplt option
29872 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
29873 ld_bndplt_support
=yes
29877 if test x
"$ld_bndplt_support" = xyes
; then
29879 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29883 $as_echo "$ld_bndplt_support" >&6; }
29885 # Check linker supports '--push-state'/'--pop-state'
29886 ld_pushpopstate_support
=no
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29888 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29889 if test x
"$ld_is_gold" = xno
; then
29890 if test $in_tree_ld = yes ; then
29891 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
29892 ld_pushpopstate_support
=yes
29894 elif test x
$gcc_cv_ld != x
; then
29895 # Check if linker supports --push-state/--pop-state options
29896 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
29897 ld_pushpopstate_support
=yes
29901 if test x
"$ld_pushpopstate_support" = xyes
; then
29903 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29907 $as_echo "$ld_pushpopstate_support" >&6; }
29909 # Configure the subdirectories
29910 # AC_CONFIG_SUBDIRS($subdirs)
29912 # Create the Makefile
29913 # and configure language subdirectories
29914 ac_config_files
="$ac_config_files $all_outputs"
29917 ac_config_commands
="$ac_config_commands default"
29919 cat >confcache
<<\_ACEOF
29920 # This file is a shell script that caches the results of configure
29921 # tests run on this system so they can be shared between configure
29922 # scripts and configure runs, see configure's option --config-cache.
29923 # It is not useful on other systems. If it contains results you don't
29924 # want to keep, you may remove or edit it.
29926 # config.status only pays attention to the cache file if you give it
29927 # the --recheck option to rerun configure.
29929 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29930 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29931 # following values.
29935 # The following way of writing the cache mishandles newlines in values,
29936 # but we know of no workaround that is simple, portable, and efficient.
29937 # So, we kill variables containing newlines.
29938 # Ultrix sh set writes to stderr and can't be redirected directly,
29939 # and sets the high bit in the cache file unless we assign to the vars.
29941 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29942 eval ac_val
=\$
$ac_var
29946 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29947 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29950 _ | IFS | as_nl
) ;; #(
29951 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29952 *) { eval $ac_var=; unset $ac_var;} ;;
29958 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29959 *${as_nl}ac_space
=\
*)
29960 # `set' does not quote correctly, so add quotes: double-quote
29961 # substitution turns \\\\ into \\, and sed turns \\ into \.
29964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29967 # `set' quotes correctly as required by POSIX, so do not add quotes.
29968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29977 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29979 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29981 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29982 if test -w "$cache_file"; then
29983 test "x$cache_file" != "x/dev/null" &&
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29985 $as_echo "$as_me: updating cache $cache_file" >&6;}
29986 cat confcache
>$cache_file
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29989 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29994 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29995 # Let make expand exec_prefix.
29996 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29998 DEFS
=-DHAVE_CONFIG_H
30002 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30003 # 1. Remove the extension, and $U if already installed.
30004 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30005 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30006 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30007 # will be set to the directory where LIBOBJS objects are built.
30008 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30009 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30011 LIBOBJS
=$ac_libobjs
30013 LTLIBOBJS
=$ac_ltlibobjs
30018 : ${CONFIG_STATUS=./config.status}
30020 ac_clean_files_save
=$ac_clean_files
30021 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30023 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30025 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30027 # Generated by $as_me.
30028 # Run this file to recreate the current configuration.
30029 # Compiler output produced by configure, useful for debugging
30030 # configure, is in config.log if it exists.
30033 ac_cs_recheck=false
30036 SHELL=\${CONFIG_SHELL-$SHELL}
30039 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30040 ## -------------------- ##
30041 ## M4sh Initialization. ##
30042 ## -------------------- ##
30044 # Be more Bourne compatible
30045 DUALCASE
=1; export DUALCASE
# for MKS sh
30046 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30049 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30050 # is contrary to our usage. Disable this feature.
30051 alias -g '${1+"$@"}'='"$@"'
30052 setopt NO_GLOB_SUBST
30054 case `(set -o) 2>/dev/null` in #(
30066 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30067 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30070 # Prefer a ksh shell builtin over an external printf program on Solaris,
30071 # but without wasting forks for bash or zsh.
30072 if test -z "$BASH_VERSION$ZSH_VERSION" \
30073 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30074 as_echo='print
-r --'
30075 as_echo_n='print
-rn --'
30076 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30077 as_echo='printf %s
\n'
30078 as_echo_n='printf %s
'
30080 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30081 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30082 as_echo_n='/usr
/ucb
/echo -n'
30084 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30085 as_echo_n_body='eval
30089 expr "X$arg" : "X\\(.*\\)$as_nl";
30090 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30092 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30094 export as_echo_n_body
30095 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30097 export as_echo_body
30098 as_echo='sh
-c $as_echo_body as_echo
'
30101 # The user is always right.
30102 if test "${PATH_SEPARATOR+set}" != set; then
30104 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30105 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30112 # We need space, tab and new line, in precisely that order. Quoting is
30113 # there to prevent editors from complaining about space-tab.
30114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30115 # splitting by setting IFS to empty value.)
30118 # Find who we are. Look in the path if we contain no directory separator.
30120 *[\\/]* ) as_myself=$0 ;;
30121 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30122 for as_dir in $PATH
30125 test -z "$as_dir" && as_dir=.
30126 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30132 # We did not find ourselves, most probably we were run as `sh COMMAND'
30133 # in which case we are not to be found in the path.
30134 if test "x$as_myself" = x
; then
30137 if test ! -f "$as_myself"; then
30138 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30142 # Unset variables that we do not need and which cause bugs (e.g. in
30143 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30144 # suppresses any "Segmentation fault" message there. '((' could
30145 # trigger a bug in pdksh 5.2.14.
30146 for as_var
in BASH_ENV ENV MAIL MAILPATH
30147 do eval test x\
${$as_var+set} = xset \
30148 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30161 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30164 # as_fn_error ERROR [LINENO LOG_FD]
30165 # ---------------------------------
30166 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30167 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30168 # script with status $?, using 1 if that was 0.
30171 as_status
=$?
; test $as_status -eq 0 && as_status
=1
30173 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30174 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30176 $as_echo "$as_me: error: $1" >&2
30177 as_fn_exit
$as_status
30181 # as_fn_set_status STATUS
30182 # -----------------------
30183 # Set $? to STATUS, without forking.
30184 as_fn_set_status
()
30187 } # as_fn_set_status
30189 # as_fn_exit STATUS
30190 # -----------------
30191 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30195 as_fn_set_status
$1
30201 # Portably unset VAR.
30204 { eval $1=; unset $1;}
30206 as_unset
=as_fn_unset
30207 # as_fn_append VAR VALUE
30208 # ----------------------
30209 # Append the text in VALUE to the end of the definition contained in VAR. Take
30210 # advantage of any shell optimizations that allow amortized linear growth over
30211 # repeated appends, instead of the typical quadratic growth present in naive
30213 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30214 eval 'as_fn_append ()
30225 # as_fn_arith ARG...
30226 # ------------------
30227 # Perform arithmetic evaluation on the ARGs, and store the result in the
30228 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30229 # must be portable across $(()) and expr.
30230 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30231 eval 'as_fn_arith ()
30238 as_val
=`expr "$@" || test $? -eq 1`
30243 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30244 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30250 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30251 as_basename
=basename
30256 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30262 as_me
=`$as_basename -- "$0" ||
30263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30264 X"$0" : 'X\(//\)$' \| \
30265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30267 sed '/^.*\/\([^/][^/]*\)\/*$/{
30281 # Avoid depending upon Character Ranges.
30282 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30283 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30284 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30285 as_cr_digits
='0123456789'
30286 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30288 ECHO_C
= ECHO_N
= ECHO_T
=
30289 case `echo -n x` in #(((((
30291 case `echo 'xy\c'` in
30292 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30294 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30301 rm -f conf$$ conf$$.exe conf$$.
file
30302 if test -d conf$$.dir
; then
30303 rm -f conf$$.dir
/conf$$.
file
30306 mkdir conf$$.dir
2>/dev
/null
30308 if (echo >conf$$.
file) 2>/dev
/null
; then
30309 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30311 # ... but there are two gotchas:
30312 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30313 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30314 # In both cases, we have to default to `cp -p'.
30315 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30317 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30325 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30326 rmdir conf$$.dir
2>/dev
/null
30331 # Create "$as_dir" as a directory, including parents if necessary.
30336 -*) as_dir
=.
/$as_dir;;
30338 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30342 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30343 *) as_qdir
=$as_dir;;
30345 as_dirs
="'$as_qdir' $as_dirs"
30346 as_dir
=`$as_dirname -- "$as_dir" ||
30347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30348 X"$as_dir" : 'X\(//\)[^/]' \| \
30349 X"$as_dir" : 'X\(//\)$' \| \
30350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30351 $as_echo X"$as_dir" |
30352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30356 /^X\(\/\/\)[^/].*/{
30369 test -d "$as_dir" && break
30371 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30372 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30376 if mkdir
-p .
2>/dev
/null
; then
30377 as_mkdir_p
='mkdir -p "$as_dir"'
30379 test -d .
/-p && rmdir .
/-p
30383 if test -x / >/dev
/null
2>&1; then
30384 as_test_x
='test -x'
30386 if ls -dL / >/dev
/null
2>&1; then
30393 if test -d "$1"; then
30399 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30400 ???[sx]*):;;*)false;;esac;fi
30404 as_executable_p
=$as_test_x
30406 # Sed expression to map a string onto a valid CPP name.
30407 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30409 # Sed expression to map a string onto a valid variable name.
30410 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30414 ## ----------------------------------- ##
30415 ## Main body of $CONFIG_STATUS script. ##
30416 ## ----------------------------------- ##
30418 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30421 # Save the log message, to keep $0 and so on meaningful, and to
30422 # report actual input values of CONFIG_FILES etc. instead of their
30423 # values after options handling.
30425 This file was extended by $as_me, which was
30426 generated by GNU Autoconf 2.64. Invocation command line was
30428 CONFIG_FILES = $CONFIG_FILES
30429 CONFIG_HEADERS = $CONFIG_HEADERS
30430 CONFIG_LINKS = $CONFIG_LINKS
30431 CONFIG_COMMANDS = $CONFIG_COMMANDS
30434 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30439 case $ac_config_files in *"
30440 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30443 case $ac_config_headers in *"
30444 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30449 # Files that config.status was made for.
30450 config_files="$ac_config_files"
30451 config_headers="$ac_config_headers"
30452 config_links="$ac_config_links"
30453 config_commands="$ac_config_commands"
30457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30459 \`$as_me' instantiates files and other configuration actions
30460 from templates according to the current configuration. Unless the files
30461 and actions are specified as TAGs, all are instantiated by default.
30463 Usage: $0 [OPTION]... [TAG]...
30465 -h, --help print this help, then exit
30466 -V, --version print version number and configuration settings, then exit
30467 -q, --quiet, --silent
30468 do not print progress messages
30469 -d, --debug don't remove temporary files
30470 --recheck update $as_me by reconfiguring in the same conditions
30471 --file=FILE[:TEMPLATE]
30472 instantiate the configuration file FILE
30473 --header=FILE[:TEMPLATE]
30474 instantiate the configuration header FILE
30476 Configuration files:
30479 Configuration headers:
30482 Configuration links:
30485 Configuration commands:
30488 Report bugs to the package provider."
30491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30494 configured by $0, generated by GNU Autoconf 2.64,
30495 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30497 Copyright (C) 2009 Free Software Foundation, Inc.
30498 This config.status script is free software; the Free Software Foundation
30499 gives unlimited permission to copy, distribute and modify it."
30504 test -n "\$AWK" || AWK=awk
30507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30508 # The default lists apply if the user does not specify any file.
30514 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30515 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30526 # Handling of the options.
30527 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30529 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30530 $as_echo "$ac_cs_version"; exit ;;
30531 --debug |
--debu |
--deb |
--de |
--d |
-d )
30533 --file |
--fil |
--fi |
--f )
30536 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30538 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30539 ac_need_defaults
=false
;;
30540 --header |
--heade |
--head |
--hea )
30543 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30545 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30546 ac_need_defaults
=false
;;
30548 # Conflict between --help and --header
30549 as_fn_error
"ambiguous option: \`$1'
30550 Try \`$0 --help' for more information.";;
30551 --help |
--hel |
-h )
30552 $as_echo "$ac_cs_usage"; exit ;;
30553 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30554 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30557 # This is an error.
30558 -*) as_fn_error
"unrecognized option: \`$1'
30559 Try \`$0 --help' for more information." ;;
30561 *) as_fn_append ac_config_targets
" $1"
30562 ac_need_defaults
=false
;;
30568 ac_configure_extra_args
=
30570 if $ac_cs_silent; then
30572 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30577 if \$ac_cs_recheck; then
30578 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30580 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30581 CONFIG_SHELL='$SHELL'
30582 export CONFIG_SHELL
30587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30592 ## Running $as_me. ##
30598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30602 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30603 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30610 # Handling of arguments.
30611 for ac_config_target
in $ac_config_targets
30613 case $ac_config_target in
30614 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30615 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30616 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30617 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30618 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30619 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30620 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30621 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30622 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30624 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30629 # If the user did not use the arguments to specify the items to instantiate,
30630 # then the envvar interface is used. Set only those that are not.
30631 # We use the long form for the default assignment because of an extremely
30632 # bizarre bug on SunOS 4.1.3.
30633 if $ac_need_defaults; then
30634 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30635 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30636 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30637 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30640 # Have a temporary directory for convenience. Make it in the build tree
30641 # simply because there is no reason against having it here, and in addition,
30642 # creating and moving files from /tmp can sometimes cause problems.
30643 # Hook for its removal unless debugging.
30644 # Note that there is a small window in which the directory will not be cleaned:
30645 # after its creation but before its name has been assigned to `$tmp'.
30649 trap 'exit_status=$?
30650 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30652 trap 'as_fn_exit 1' 1 2 13 15
30654 # Create a (secure) tmp directory for tmp files.
30657 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30658 test -n "$tmp" && test -d "$tmp"
30661 tmp
=.
/conf$$
-$RANDOM
30662 (umask 077 && mkdir
"$tmp")
30663 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30665 # Set up the scripts for CONFIG_FILES section.
30666 # No need to generate them if there are no CONFIG_FILES.
30667 # This happens for instance with `./config.status config.h'.
30668 if test -n "$CONFIG_FILES"; then
30670 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30671 ac_cs_awk_getline
=:
30672 ac_cs_awk_pipe_init
=
30673 ac_cs_awk_read_file
='
30674 while ((getline aline < (F[key])) > 0)
30677 ac_cs_awk_pipe_fini
=
30679 ac_cs_awk_getline
=false
30680 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30681 ac_cs_awk_read_file
='
30683 print "cat " F[key] " &&"
30684 '$ac_cs_awk_pipe_init
30685 # The final `:' finishes the AND list.
30686 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30688 ac_cr
=`echo X | tr X '\015'`
30689 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30690 # But we know of no other shell where ac_cr would be empty at this
30691 # point, so we can use a bashism as a fallback.
30692 if test "x$ac_cr" = x
; then
30693 eval ac_cr
=\$
\'\\r
\'
30695 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30696 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30699 ac_cs_awk_cr
=$ac_cr
30702 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30705 # Create commands to substitute file output variables.
30707 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30708 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30709 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30712 } >conf$
$files.sh
&&
30713 . .
/conf$
$files.sh ||
30714 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30715 rm -f conf$
$files.sh
30718 echo "cat >conf$$subs.awk <<_ACEOF" &&
30719 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30721 } >conf$$subs.sh ||
30722 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30723 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30725 for ac_last_try in false false false false false :; do
30726 . ./conf$$subs.sh ||
30727 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30729 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30730 if test $ac_delim_n = $ac_delim_num; then
30732 elif $ac_last_try; then
30733 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30735 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30738 rm -f conf$$subs.sh
30740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30741 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30745 s/^/S["/; s
/!.
*/"]=/
30755 s/\(.\{148\}\).*/\1/
30757 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30762 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30769 s/\(.\{148\}\).*/\1/
30771 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30775 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30780 ' <conf$$subs.awk | sed '
30785 ' >>$CONFIG_STATUS || ac_write_fail=1
30786 rm -f conf$$subs.awk
30787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30789 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30790 for (key in S) S_is_set[key] = 1
30792 \$ac_cs_awk_pipe_init
30796 nfields = split(line, field, "@
")
30798 len = length(field[1])
30799 for (i = 2; i < nfields; i++) {
30801 keylen = length(key)
30802 if (S_is_set[key]) {
30804 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30805 len += length(value) + length(field[++i])
30810 if (nfields == 3 && !substed) {
30812 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30813 \$ac_cs_awk_read_file
30819 \$ac_cs_awk_pipe_fini
30822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30823 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30824 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30827 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30828 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30831 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30832 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30833 # trailing colons and then remove the whole line if VPATH becomes empty
30834 # (actually we leave an empty line to preserve line numbers).
30835 if test "x
$srcdir" = x.; then
30836 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30837 s/:*\$(srcdir):*/:/
30838 s/:*\${srcdir}:*/:/
30840 s/^\([^=]*=[ ]*\):*/\1/
30846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30847 fi # test -n "$CONFIG_FILES"
30849 # Set up the scripts for CONFIG_HEADERS section.
30850 # No need to generate them if there are no CONFIG_HEADERS.
30851 # This happens for instance with `./config.status Makefile'.
30852 if test -n "$CONFIG_HEADERS"; then
30853 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30857 # Transform confdefs.h into an awk script `defines.awk', embedded as
30858 # here-document in config.status, that substitutes the proper values into
30859 # config.h.in to produce config.h.
30861 # Create a delimiter string that does not exist in confdefs.h, to ease
30862 # handling of long lines.
30864 for ac_last_try in false false :; do
30865 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30866 if test -z "$ac_t"; then
30868 elif $ac_last_try; then
30869 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30871 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30875 # For the awk script, D is an array of macro values keyed by name,
30876 # likewise P contains macro parameters if any. Preserve backslash
30877 # newline sequences.
30879 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30881 s/.\{148\}/&'"$ac_delim"'/g
30884 s/^[ ]*#[ ]*define[ ][ ]*/ /
30891 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30893 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30897 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30898 D["\
1"]=" \
3\\\\\\n
"\\/p
30900 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30905 s/.\{148\}/&'"$ac_delim"'/g
30910 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30913 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30915 ' <confdefs.h | sed '
30916 s/'"$ac_delim"'/"\\\
30917 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30920 for (key in D) D_is_set[key] = 1
30923 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30925 split(line, arg, " ")
30926 if (arg[1] == "#") {
30930 defundef
= substr
(arg
[1], 2)
30933 split(mac1
, mac2
, "(") #)
30935 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30936 if (D_is_set
[macro
]) {
30937 # Preserve the white space surrounding the "#".
30938 print prefix
"define", macro P
[macro
] D
[macro
]
30941 # Replace #undef with comments. This is necessary, for example,
30942 # in the case of _POSIX_SOURCE, which is predefined and required
30943 # on some systems where configure will not decide to define it.
30944 if (defundef
== "undef") {
30945 print
"/*", prefix defundef
, macro
, "*/"
30953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30954 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30955 fi # test -n "$CONFIG_HEADERS"
30958 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30963 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30965 case $ac_mode$ac_tag in
30967 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30968 :[FH
]-) ac_tag
=-:-;;
30969 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30986 -) ac_f
="$tmp/stdin";;
30987 *) # Look for the file first in the build tree, then in the source tree
30988 # (if the path is not absolute). The absolute path cannot be DOS-style,
30989 # because $ac_f cannot contain `:'.
30993 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30995 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30997 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30998 as_fn_append ac_file_inputs
" '$ac_f'"
31001 # Let's still pretend it is `configure' which instantiates (i.e., don't
31002 # use $as_me), people would be surprised to read:
31003 # /* config.h. Generated by config.status. */
31004 configure_input
='Generated from '`
31005 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31007 if test x
"$ac_file" != x-
; then
31008 configure_input
="$ac_file. $configure_input"
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31010 $as_echo "$as_me: creating $ac_file" >&6;}
31012 # Neutralize special characters interpreted by sed in replacement strings.
31013 case $configure_input in #(
31014 *\
&* |
*\|
* |
*\\* )
31015 ac_sed_conf_input
=`$as_echo "$configure_input" |
31016 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31017 *) ac_sed_conf_input
=$configure_input;;
31021 *:-:* |
*:-) cat >"$tmp/stdin" \
31022 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
31027 ac_dir
=`$as_dirname -- "$ac_file" ||
31028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31029 X"$ac_file" : 'X\(//\)[^/]' \| \
31030 X"$ac_file" : 'X\(//\)$' \| \
31031 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31032 $as_echo X"$ac_file" |
31033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31037 /^X\(\/\/\)[^/].*/{
31050 as_dir
="$ac_dir"; as_fn_mkdir_p
31054 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31056 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31057 # A ".." for each directory in $ac_dir_suffix.
31058 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31059 case $ac_top_builddir_sub in
31060 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31061 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31064 ac_abs_top_builddir
=$ac_pwd
31065 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31066 # for backward compatibility:
31067 ac_top_builddir
=$ac_top_build_prefix
31070 .
) # We are building in place.
31072 ac_top_srcdir
=$ac_top_builddir_sub
31073 ac_abs_top_srcdir
=$ac_pwd ;;
31074 [\\/]* | ?
:[\\/]* ) # Absolute name.
31075 ac_srcdir
=$srcdir$ac_dir_suffix;
31076 ac_top_srcdir
=$srcdir
31077 ac_abs_top_srcdir
=$srcdir ;;
31078 *) # Relative name.
31079 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31080 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31081 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31083 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31095 # If the template does not know about datarootdir, expand it.
31096 # FIXME: This hack should be removed a few years after 2.60.
31097 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31108 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31109 *datarootdir
*) ac_datarootdir_seen
=yes;;
31110 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31112 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31115 ac_datarootdir_hack='
31116 s&@datadir@&$datadir&g
31117 s&@docdir@&$docdir&g
31118 s&@infodir@&$infodir&g
31119 s&@localedir@&$localedir&g
31120 s&@mandir@&$mandir&g
31121 s&\\\${datarootdir}&$datarootdir&g' ;;
31125 # Neutralize VPATH when `$srcdir' = `.'.
31126 # Shell code in configure.ac might set extrasub.
31127 # FIXME: do we really want to maintain this feature?
31128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31129 ac_sed_extra="$ac_vpsub
31132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31134 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31135 s|@configure_input@|
$ac_sed_conf_input|
;t t
31136 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31137 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31138 s
&@srcdir@
&$ac_srcdir&;t t
31139 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31140 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31141 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31142 s
&@builddir@
&$ac_builddir&;t t
31143 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31144 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31145 $ac_datarootdir_hack
31147 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31148 if $ac_cs_awk_getline; then
31149 $AWK -f "$tmp/subs.
awk"
31151 $AWK -f "$tmp/subs.
awk" | $SHELL
31153 || as_fn_error "could not create
$ac_file" "$LINENO" 5
31155 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31156 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
31157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
31158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31159 which seems to be undefined. Please make sure it is defined." >&5
31160 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31161 which seems to be undefined. Please make sure it is defined." >&2;}
31165 -) cat "$tmp/out" && rm -f "$tmp/out";;
31166 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31168 || as_fn_error "could not create $ac_file" "$LINENO" 5
31174 if test x"$ac_file" != x-; then
31176 $as_echo "/* $configure_input */" \
31177 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31178 } >"$tmp/config.h" \
31179 || as_fn_error "could not create $ac_file" "$LINENO" 5
31180 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31181 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31182 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31185 mv "$tmp/config.h" "$ac_file" \
31186 || as_fn_error "could not create $ac_file" "$LINENO" 5
31189 $as_echo "/* $configure_input */" \
31190 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31191 || as_fn_error "could not create -" "$LINENO" 5
31199 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31202 # Prefer the file from the source tree if names are identical.
31203 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31204 ac_source=$srcdir/$ac_source
31207 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31208 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31210 if test ! -r "$ac_source"; then
31211 as_fn_error "$ac_source: file not found" "$LINENO" 5
31215 # Try a relative symlink, then a hard link, then a copy.
31217 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31218 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31220 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31221 ln "$ac_source" "$ac_file" 2>/dev/null ||
31222 cp -p "$ac_source" "$ac_file" ||
31223 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31226 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31227 $as_echo "$as_me: executing $ac_file commands" >&6;}
31232 case $ac_file$ac_mode in
31233 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31235 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31236 for lang in $subdirs c-family common
31238 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31240 "as":F) chmod +x as ;;
31241 "collect-ld":F) chmod +x collect-ld ;;
31242 "nm":F) chmod +x nm ;;
31244 case ${CONFIG_HEADERS} in
31245 *auto-host.h:config.in*)
31248 # Make sure all the subdirs exist.
31249 for d in $subdirs doc build common c-family
31251 test -d $d || mkdir $d
31261 ac_clean_files=$ac_clean_files_save
31263 test $ac_write_fail = 0 ||
31264 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31267 # configure is writing to config.log, and then calls config.status.
31268 # config.status does its own redirection, appending to config.log.
31269 # Unfortunately, on DOS this fails, as config.log is still kept open
31270 # by configure, so config.status won't be able to
write to it
; its
31271 # output is simply discarded. So we exec the FD to /dev/null,
31272 # effectively closing config.log, so it can be properly (re)opened and
31273 # appended to by config.status. When coming back to configure, we
31274 # need to make the FD available again.
31275 if test "$no_create" != yes; then
31277 ac_config_status_args
=
31278 test "$silent" = yes &&
31279 ac_config_status_args
="$ac_config_status_args --quiet"
31281 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31284 # would make configure fail if this is the last instruction.
31285 $ac_cs_success || as_fn_exit $?
31287 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31289 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}