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
791 valgrind_path_defines
821 CROSS_SYSTEM_HEADER_DIR
822 TARGET_SYSTEM_ROOT_DEFINE
824 SYSROOT_CFLAGS_FOR_TARGET
870 program_transform_name
881 ac_subst_files
='option_includes
884 enable_option_checking
887 with_native_system_header_dir
892 enable_generated_files_in_srcdir
899 enable_build_format_warnings
903 enable_gather_detailed_mem_stats
904 enable_valgrind_annotations
924 enable_sjlj_exceptions
925 with_gcc_major_version_only
927 enable_mingw_wildcard
928 enable_leading_mingw64_underscores
931 enable_win32_registry
939 enable_gnu_indirect_function
940 enable_initfini_array
942 enable_fix_cortex_a53_835769
943 enable_fix_cortex_a53_843419
945 enable_gnu_unique_object
946 enable_linker_build_id
950 with_long_double_format
953 enable_maintainer_mode
955 enable_version_specific_runtime_libs
958 enable_libquadmath_support
959 with_linker_hash_style
960 with_diagnostics_color
963 ac_precious_vars
='build_alias
982 # Initialize some variables set by options.
984 ac_init_version
=false
985 ac_unrecognized_opts
=
987 # The variables have the same names as the options, with
988 # dashes changed to underlines.
996 program_transform_name
=s
,x
,x
,
1004 # Installation directory options.
1005 # These are left unexpanded so users can "make install exec_prefix=/foo"
1006 # and all the variables that are supposed to be based on exec_prefix
1007 # by default will actually change.
1008 # Use braces instead of parens because sh, perl, etc. also accept them.
1009 # (The list follows the same order as the GNU Coding Standards.)
1010 bindir
='${exec_prefix}/bin'
1011 sbindir
='${exec_prefix}/sbin'
1012 libexecdir
='${exec_prefix}/libexec'
1013 datarootdir
='${prefix}/share'
1014 datadir
='${datarootdir}'
1015 sysconfdir
='${prefix}/etc'
1016 sharedstatedir
='${prefix}/com'
1017 localstatedir
='${prefix}/var'
1018 includedir
='${prefix}/include'
1019 oldincludedir
='/usr/include'
1020 docdir
='${datarootdir}/doc/${PACKAGE}'
1021 infodir
='${datarootdir}/info'
1026 libdir
='${exec_prefix}/lib'
1027 localedir
='${datarootdir}/locale'
1028 mandir
='${datarootdir}/man'
1034 # If the previous option needs an argument, assign it.
1035 if test -n "$ac_prev"; then
1036 eval $ac_prev=\
$ac_option
1042 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1046 # Accept the important Cygnus configure options, so we can diagnose typos.
1048 case $ac_dashdash$ac_option in
1052 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1054 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1055 bindir
=$ac_optarg ;;
1057 -build |
--build |
--buil |
--bui |
--bu)
1058 ac_prev
=build_alias
;;
1059 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1060 build_alias
=$ac_optarg ;;
1062 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1063 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1064 ac_prev
=cache_file
;;
1065 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1066 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1067 cache_file
=$ac_optarg ;;
1069 --config-cache |
-C)
1070 cache_file
=config.cache
;;
1072 -datadir |
--datadir |
--datadi |
--datad)
1074 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1075 datadir
=$ac_optarg ;;
1077 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1078 |
--dataroo |
--dataro |
--datar)
1079 ac_prev
=datarootdir
;;
1080 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1081 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1082 datarootdir
=$ac_optarg ;;
1084 -disable-* |
--disable-*)
1085 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1088 as_fn_error
"invalid feature name: $ac_useropt"
1089 ac_useropt_orig
=$ac_useropt
1090 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1093 "enable_
$ac_useropt"
1095 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1096 ac_unrecognized_sep
=', ';;
1098 eval enable_
$ac_useropt=no
;;
1100 -docdir |
--docdir |
--docdi |
--doc |
--do)
1102 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1103 docdir
=$ac_optarg ;;
1105 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1107 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1108 dvidir
=$ac_optarg ;;
1110 -enable-* |
--enable-*)
1111 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1114 as_fn_error
"invalid feature name: $ac_useropt"
1115 ac_useropt_orig
=$ac_useropt
1116 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "enable_
$ac_useropt"
1121 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122 ac_unrecognized_sep
=', ';;
1124 eval enable_
$ac_useropt=\
$ac_optarg ;;
1126 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1127 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1128 |
--exec |
--exe |
--ex)
1129 ac_prev
=exec_prefix
;;
1130 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1131 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1132 |
--exec=* |
--exe=* |
--ex=*)
1133 exec_prefix
=$ac_optarg ;;
1135 -gas |
--gas |
--ga |
--g)
1136 # Obsolete; use --with-gas.
1139 -help |
--help |
--hel |
--he |
-h)
1140 ac_init_help
=long
;;
1141 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1142 ac_init_help
=recursive
;;
1143 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1144 ac_init_help
=short
;;
1146 -host |
--host |
--hos |
--ho)
1147 ac_prev
=host_alias
;;
1148 -host=* |
--host=* |
--hos=* |
--ho=*)
1149 host_alias
=$ac_optarg ;;
1151 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1153 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1155 htmldir
=$ac_optarg ;;
1157 -includedir |
--includedir |
--includedi |
--included |
--include \
1158 |
--includ |
--inclu |
--incl |
--inc)
1159 ac_prev
=includedir
;;
1160 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1161 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1162 includedir
=$ac_optarg ;;
1164 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1166 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1167 infodir
=$ac_optarg ;;
1169 -libdir |
--libdir |
--libdi |
--libd)
1171 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1172 libdir
=$ac_optarg ;;
1174 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1175 |
--libexe |
--libex |
--libe)
1176 ac_prev
=libexecdir
;;
1177 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1178 |
--libexe=* |
--libex=* |
--libe=*)
1179 libexecdir
=$ac_optarg ;;
1181 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1182 ac_prev
=localedir
;;
1183 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1184 localedir
=$ac_optarg ;;
1186 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1187 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1188 ac_prev
=localstatedir
;;
1189 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1190 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1191 localstatedir
=$ac_optarg ;;
1193 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1195 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1196 mandir
=$ac_optarg ;;
1198 -nfp |
--nfp |
--nf)
1199 # Obsolete; use --without-fp.
1202 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1203 |
--no-cr |
--no-c |
-n)
1206 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1207 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1210 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1211 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1212 |
--oldin |
--oldi |
--old |
--ol |
--o)
1213 ac_prev
=oldincludedir
;;
1214 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1215 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1216 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1217 oldincludedir
=$ac_optarg ;;
1219 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1221 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1222 prefix
=$ac_optarg ;;
1224 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1225 |
--program-pre |
--program-pr |
--program-p)
1226 ac_prev
=program_prefix
;;
1227 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1228 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1229 program_prefix
=$ac_optarg ;;
1231 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1232 |
--program-suf |
--program-su |
--program-s)
1233 ac_prev
=program_suffix
;;
1234 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1235 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1236 program_suffix
=$ac_optarg ;;
1238 -program-transform-name |
--program-transform-name \
1239 |
--program-transform-nam |
--program-transform-na \
1240 |
--program-transform-n |
--program-transform- \
1241 |
--program-transform |
--program-transfor \
1242 |
--program-transfo |
--program-transf \
1243 |
--program-trans |
--program-tran \
1244 |
--progr-tra |
--program-tr |
--program-t)
1245 ac_prev
=program_transform_name
;;
1246 -program-transform-name=* |
--program-transform-name=* \
1247 |
--program-transform-nam=* |
--program-transform-na=* \
1248 |
--program-transform-n=* |
--program-transform-=* \
1249 |
--program-transform=* |
--program-transfor=* \
1250 |
--program-transfo=* |
--program-transf=* \
1251 |
--program-trans=* |
--program-tran=* \
1252 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1253 program_transform_name
=$ac_optarg ;;
1255 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1257 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1258 pdfdir
=$ac_optarg ;;
1260 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1262 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1265 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1266 |
-silent |
--silent |
--silen |
--sile |
--sil)
1269 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1271 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1273 sbindir
=$ac_optarg ;;
1275 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1276 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1277 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1279 ac_prev
=sharedstatedir
;;
1280 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1281 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1282 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1284 sharedstatedir
=$ac_optarg ;;
1286 -site |
--site |
--sit)
1288 -site=* |
--site=* |
--sit=*)
1291 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1293 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1294 srcdir
=$ac_optarg ;;
1296 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1297 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1298 ac_prev
=sysconfdir
;;
1299 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1300 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1301 sysconfdir
=$ac_optarg ;;
1303 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1304 ac_prev
=target_alias
;;
1305 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1306 target_alias
=$ac_optarg ;;
1308 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1311 -version |
--version |
--versio |
--versi |
--vers |
-V)
1312 ac_init_version
=: ;;
1315 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1318 as_fn_error
"invalid package name: $ac_useropt"
1319 ac_useropt_orig
=$ac_useropt
1320 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1325 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326 ac_unrecognized_sep
=', ';;
1328 eval with_
$ac_useropt=\
$ac_optarg ;;
1330 -without-* |
--without-*)
1331 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1334 as_fn_error
"invalid package name: $ac_useropt"
1335 ac_useropt_orig
=$ac_useropt
1336 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1341 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1342 ac_unrecognized_sep
=', ';;
1344 eval with_
$ac_useropt=no
;;
1347 # Obsolete; use --with-x.
1350 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1351 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1352 ac_prev
=x_includes
;;
1353 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1354 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1355 x_includes
=$ac_optarg ;;
1357 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1358 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1359 ac_prev
=x_libraries
;;
1360 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1361 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1362 x_libraries
=$ac_optarg ;;
1364 -*) as_fn_error
"unrecognized option: \`$ac_option'
1365 Try \`$0 --help' for more information."
1369 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1370 # Reject names that are not valid shell variable names.
1371 case $ac_envvar in #(
1372 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1373 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1375 eval $ac_envvar=\
$ac_optarg
1376 export $ac_envvar ;;
1379 # FIXME: should be removed in autoconf 3.0.
1380 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1382 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1389 if test -n "$ac_prev"; then
1390 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1391 as_fn_error
"missing argument to $ac_option"
1394 if test -n "$ac_unrecognized_opts"; then
1395 case $enable_option_checking in
1397 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1398 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1402 # Check all directory arguments for consistency.
1403 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1404 datadir sysconfdir sharedstatedir localstatedir includedir \
1405 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1406 libdir localedir mandir
1408 eval ac_val
=\$
$ac_var
1409 # Remove trailing slashes.
1412 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1413 eval $ac_var=\
$ac_val;;
1415 # Be sure to have absolute directory names.
1417 [\\/$
]* | ?
:[\\/]* ) continue;;
1418 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1420 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1423 # There might be people who depend on the old broken behavior: `$host'
1424 # used to hold the argument of --host etc.
1425 # FIXME: To remove some day.
1428 target
=$target_alias
1430 # FIXME: To remove some day.
1431 if test "x$host_alias" != x
; then
1432 if test "x$build_alias" = x
; then
1433 cross_compiling
=maybe
1434 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1435 If a cross compiler is detected then cross compile mode will be used." >&2
1436 elif test "x$build_alias" != "x$host_alias"; then
1442 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1444 test "$silent" = yes && exec 6>/dev
/null
1447 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1448 ac_ls_di
=`ls -di .` &&
1449 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1450 as_fn_error
"working directory cannot be determined"
1451 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1452 as_fn_error
"pwd does not report name of working directory"
1455 # Find the source files, if location was not specified.
1456 if test -z "$srcdir"; then
1457 ac_srcdir_defaulted
=yes
1458 # Try the directory containing this script, then the parent directory.
1459 ac_confdir
=`$as_dirname -- "$as_myself" ||
1460 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1461 X"$as_myself" : 'X\(//\)[^/]' \| \
1462 X"$as_myself" : 'X\(//\)$' \| \
1463 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1464 $as_echo X"$as_myself" |
1465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1487 ac_srcdir_defaulted
=no
1489 if test ! -r "$srcdir/$ac_unique_file"; then
1490 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1491 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1493 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1495 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1497 # When building in place, set srcdir=.
1498 if test "$ac_abs_confdir" = "$ac_pwd"; then
1501 # Remove unnecessary trailing slashes from srcdir.
1502 # Double slashes in file names in object file debugging info
1503 # mess up M-x gdb in Emacs.
1505 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1507 for ac_var
in $ac_precious_vars; do
1508 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1509 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1510 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1511 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1515 # Report the --help message.
1517 if test "$ac_init_help" = "long"; then
1518 # Omit some internal or obsolete options to make the list less imposing.
1519 # This message is too long to be a string in the A/UX 3.1 sh.
1521 \`configure' configures this package to adapt to many kinds of systems.
1523 Usage: $0 [OPTION]... [VAR=VALUE]...
1525 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1526 VAR=VALUE. See below for descriptions of some of the useful variables.
1528 Defaults for the options are specified in brackets.
1531 -h, --help display this help and exit
1532 --help=short display options specific to this package
1533 --help=recursive display the short help of all the included packages
1534 -V, --version display version information and exit
1535 -q, --quiet, --silent do not print \`checking...' messages
1536 --cache-file=FILE cache test results in FILE [disabled]
1537 -C, --config-cache alias for \`--cache-file=config.cache'
1538 -n, --no-create do not create output files
1539 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1541 Installation directories:
1542 --prefix=PREFIX install architecture-independent files in PREFIX
1543 [$ac_default_prefix]
1544 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1547 By default, \`make install' will install all the files in
1548 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1549 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1550 for instance \`--prefix=\$HOME'.
1552 For better control, use the options below.
1554 Fine tuning of the installation directories:
1555 --bindir=DIR user executables [EPREFIX/bin]
1556 --sbindir=DIR system admin executables [EPREFIX/sbin]
1557 --libexecdir=DIR program executables [EPREFIX/libexec]
1558 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1559 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1560 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1561 --libdir=DIR object code libraries [EPREFIX/lib]
1562 --includedir=DIR C header files [PREFIX/include]
1563 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1564 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1565 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1566 --infodir=DIR info documentation [DATAROOTDIR/info]
1567 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1568 --mandir=DIR man documentation [DATAROOTDIR/man]
1569 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1570 --htmldir=DIR html documentation [DOCDIR]
1571 --dvidir=DIR dvi documentation [DOCDIR]
1572 --pdfdir=DIR pdf documentation [DOCDIR]
1573 --psdir=DIR ps documentation [DOCDIR]
1579 --program-prefix=PREFIX prepend PREFIX to installed program names
1580 --program-suffix=SUFFIX append SUFFIX to installed program names
1581 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1584 --build=BUILD configure
for building on BUILD
[guessed
]
1585 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1586 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1590 if test -n "$ac_init_help"; then
1595 --disable-option-checking ignore unrecognized
--enable/--with options
1596 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1597 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1598 --enable-generated-files-in-srcdir
1599 put copies of generated files
in source dir intended
1600 for creating
source tarballs
for users without
1601 texinfo bison or flex
1602 --disable-largefile omit support
for large files
1603 --disable-build-format-warnings
1604 don
't use -Wformat while building GCC
1605 --enable-werror-always enable -Werror despite compiler version
1606 --enable-checking[=LIST]
1607 enable expensive run-time checks. With LIST, enable
1608 only specific categories of checks. Categories are:
1609 yes,no,all,none,release. Flags are:
1610 assert,df,extra,fold,gc,gcac,gimple,misc,
1611 rtlflag,rtl,runtime,tree,valgrind,types
1612 --enable-coverage[=LEVEL]
1613 enable compiler's code coverage collection. Use to
1614 measure compiler performance and
locate unused parts
1615 of the compiler. With LEVEL
, specify optimization.
1616 Values are opt
, noopt
, default is noopt
1617 --enable-gather-detailed-mem-stats
1618 enable detailed memory allocation stats gathering
1619 --enable-valgrind-annotations
1620 enable valgrind runtime interaction
1621 --enable-multilib enable library support
for multiple ABIs
1622 --enable-multiarch enable support
for multiarch paths
1623 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1624 --enable-decimal-float={no
,yes,bid
,dpd
}
1625 enable decimal float extension to C. Selecting
'bid'
1626 or
'dpd' choses
which decimal floating point format
1628 --enable-fixed-point enable fixed-point arithmetic extension to C
1629 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1631 --enable-tls enable or disable generation of tls code overriding
1632 the assembler check
for tls support
1633 --enable-vtable-verify enable vtable verification feature
1634 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1635 GNU Objective-C runtime
1636 --disable-shared don't provide a shared libgcc
1637 --enable-languages=LIST specify
which front-ends to build
1638 --disable-rpath do not hardcode runtime library paths
1639 --enable-sjlj-exceptions
1640 arrange to use setjmp
/longjmp exception handling
1641 --enable-secureplt enable -msecure-plt by default
for PowerPC
1642 --enable-mingw-wildcard Set whether to
expand wildcard on command-line.
1643 Default to platform configuration
1644 --enable-leading-mingw64-underscores
1645 enable leading underscores on
64 bit mingw targets
1646 --enable-cld enable -mcld by default
for 32bit x86
1647 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1649 --disable-win32-registry
1650 disable lookup of installation paths
in the Registry
1652 --enable-win32-registry enable registry lookup
(default
)
1653 --enable-win32-registry=KEY
1654 use KEY instead of GCC version as the last portion
1656 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1657 --enable-static[=PKGS
] build static libraries
[default
=yes]
1658 --enable-fast-install[=PKGS
]
1659 optimize
for fast installation
[default
=yes]
1660 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1661 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1662 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1663 --enable-gnu-indirect-function
1664 enable the use of the @gnu_indirect_function to
1666 --enable-initfini-array use .init_array
/.fini_array sections
1667 --enable-comdat enable COMDAT group support
1669 --enable-fix-cortex-a53-835769
1670 enable workaround
for AArch64 Cortex-A53 erratum
1672 --disable-fix-cortex-a53-835769
1673 disable workaround
for AArch64 Cortex-A53 erratum
1677 --enable-fix-cortex-a53-843419
1678 enable workaround
for AArch64 Cortex-A53 erratum
1680 --disable-fix-cortex-a53-843419
1681 disable workaround
for AArch64 Cortex-A53 erratum
1684 --enable-gnu-unique-object
1685 enable the use of the @gnu_unique_object ELF
1686 extension on glibc systems
1687 --enable-linker-build-id
1688 compiler will always pass
--build-id to linker
1689 --enable-libssp enable linking against libssp
1690 --enable-default-ssp enable Stack Smashing Protection as default
1691 --enable-maintainer-mode
1692 enable make rules and dependencies not useful
(and
1693 sometimes confusing
) to the casual installer
1694 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1695 thrashing on the build machine
1696 --enable-version-specific-runtime-libs
1697 specify that runtime libraries should be installed
1698 in a compiler-specific directory
1699 --enable-plugin enable plugin support
1700 --enable-host-shared build
host code as shared libraries
1701 --disable-libquadmath-support
1702 disable libquadmath support
for Fortran
1703 --enable-default-pie enable Position Independent Executable as default
1706 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1707 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1708 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1709 --with-local-prefix=DIR specifies directory to put
local include
1710 --with-native-system-header-dir=dir
1711 use dir as the directory to
look for standard
1712 system header files
in. Defaults to
/usr
/include.
1713 --with-build-sysroot=sysroot
1714 use sysroot as the system root during the build
1715 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1716 --with-gxx-include-dir=DIR
1717 specifies directory to put g
++ header files
1718 --with-cpp-install-dir=DIR
1719 install the user visible C preprocessor
in DIR
1720 (relative to PREFIX
) as well as PREFIX
/bin
1721 --with-gnu-ld arrange to work with GNU ld
1722 --with-ld arrange to use the specified ld
(full pathname
)
1723 --with-demangler-in-ld try to use demangler
in GNU ld
1724 --with-gnu-as arrange to work with GNU as
1725 --with-as arrange to use the specified as
(full pathname
)
1726 --with-stabs arrange to use stabs instead of
host debug format
1727 --with-dwarf2 force the default debug format to be DWARF
2
1728 --with-specs=SPECS add SPECS to driver command-line processing
1729 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1730 --with-bugurl=URL Direct users to URL to report a bug
1731 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1732 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1733 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1734 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1735 --with-gcc-major-version-only
1736 use only GCC major number in filesystem paths
1737 --with-pic try to use only PIC/non-PIC objects [default=use
1739 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1740 --with-plugin-ld=[ARG] specify the plugin linker
1741 --with-glibc-version=M.N
1742 assume GCC used with glibc version M.N or later
1743 --with-long-double-128 use 128-bit long double by default
1744 --with-long-double-format={ieee,ibm}
1745 Specify whether PowerPC long double uses IEEE or IBM format
1747 --with-gc={page,zone} this option is not supported anymore. It used to
1748 choose the garbage collection mechanism to use with
1750 --with-system-zlib use installed libz
1751 --with-linker-hash-style={sysv,gnu,both}
1752 specify the linker hash style
1753 --with-diagnostics-color={never,auto,auto-if-env,always}
1754 specify the default of -fdiagnostics-color option
1755 auto-if-env stands for -fdiagnostics-color=auto if
1756 GCC_COLOR environment variable is present and
1757 -fdiagnostics-color=never otherwise
1759 Some influential environment variables:
1760 CC C compiler command
1761 CFLAGS C compiler flags
1762 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1763 nonstandard directory <lib dir>
1764 LIBS libraries to pass to the linker, e.g. -l<library>
1765 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1766 you have headers in a nonstandard directory <include dir>
1767 CXX C++ compiler command
1768 CXXFLAGS C++ compiler flags
1769 CXXCPP C++ preprocessor
1771 GMPLIBS How to link GMP
1772 GMPINC How to find GMP include files
1773 ISLLIBS How to link isl
1774 ISLINC How to find isl include files
1776 Use these variables to override the choices made by `configure' or to
help
1777 it to
find libraries and programs with nonstandard names
/locations.
1779 Report bugs to the package provider.
1784 if test "$ac_init_help" = "recursive"; then
1785 # If there are subdirs, report their specific --help.
1786 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1787 test -d "$ac_dir" ||
1788 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1793 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1795 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1796 # A ".." for each directory in $ac_dir_suffix.
1797 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1798 case $ac_top_builddir_sub in
1799 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1800 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1803 ac_abs_top_builddir
=$ac_pwd
1804 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1805 # for backward compatibility:
1806 ac_top_builddir
=$ac_top_build_prefix
1809 .
) # We are building in place.
1811 ac_top_srcdir
=$ac_top_builddir_sub
1812 ac_abs_top_srcdir
=$ac_pwd ;;
1813 [\\/]* | ?
:[\\/]* ) # Absolute name.
1814 ac_srcdir
=$srcdir$ac_dir_suffix;
1815 ac_top_srcdir
=$srcdir
1816 ac_abs_top_srcdir
=$srcdir ;;
1818 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1819 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1820 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1822 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1824 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1825 # Check for guested configure.
1826 if test -f "$ac_srcdir/configure.gnu"; then
1828 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1829 elif test -f "$ac_srcdir/configure"; then
1831 $SHELL "$ac_srcdir/configure" --help=recursive
1833 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1835 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1839 test -n "$ac_init_help" && exit $ac_status
1840 if $ac_init_version; then
1843 generated by GNU Autoconf
2.64
1845 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1846 This configure
script is free software
; the Free Software Foundation
1847 gives unlimited permission to copy
, distribute and modify it.
1852 ## ------------------------ ##
1853 ## Autoconf initialization. ##
1854 ## ------------------------ ##
1856 # ac_fn_c_try_compile LINENO
1857 # --------------------------
1858 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_c_try_compile
()
1861 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1862 rm -f conftest.
$ac_objext
1863 if { { ac_try
="$ac_compile"
1865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_compile") 2>conftest.err
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && {
1879 test -z "$ac_c_werror_flag" ||
1880 test ! -s conftest.err
1881 } && test -s conftest.$ac_objext; then :
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 } # ac_fn_c_try_compile
1894 # ac_fn_cxx_try_compile LINENO
1895 # ----------------------------
1896 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_cxx_try_compile ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext
1901 if { { ac_try="$ac_compile"
1903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1904 *) ac_try_echo
=$ac_try;;
1906 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_compile") 2>conftest.err
1910 if test -s conftest.err
; then
1911 grep -v '^ *+' conftest.err
>conftest.er1
1912 cat conftest.er1
>&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_cxx_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest.
$ac_objext; then :
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.
$ac_ext >&5
1927 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1930 } # ac_fn_cxx_try_compile
1932 # ac_fn_cxx_try_cpp LINENO
1933 # ------------------------
1934 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_cxx_try_cpp
()
1937 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1938 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1947 if test -s conftest.err; then
1948 grep -v '^ *+' conftest.err >conftest.er1
1949 cat conftest.er1 >&5
1950 mv -f conftest.er1 conftest.err
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } >/dev/null && {
1954 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1955 test ! -s conftest.err
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967 } # ac_fn_cxx_try_cpp
1969 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1970 # ---------------------------------------------------------
1971 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1972 # the include files in INCLUDES and setting the cache variable VAR
1974 ac_fn_cxx_check_header_mongrel ()
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1981 $as_echo_n "(cached) " >&6
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1987 # Is the header compilable?
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1989 $as_echo_n "checking $2 usability... " >&6; }
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1995 if ac_fn_cxx_try_compile "$LINENO"; then :
1996 ac_header_compiler=yes
1998 ac_header_compiler=no
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2002 $as_echo "$ac_header_compiler" >&6; }
2004 # Is the header present?
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2006 $as_echo_n "checking $2 presence... " >&6; }
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2011 if ac_fn_cxx_try_cpp "$LINENO"; then :
2012 ac_header_preproc=yes
2014 ac_header_preproc=no
2016 rm -f conftest.err conftest.$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2018 $as_echo "$ac_header_preproc" >&6; }
2020 # So? What about this header?
2021 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2024 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2026 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2030 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2032 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2034 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2036 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2038 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2044 $as_echo_n "(cached) " >&6
2046 eval "$3=\$ac_header_compiler"
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 } # ac_fn_cxx_check_header_mongrel
2056 # ac_fn_cxx_try_run LINENO
2057 # ------------------------
2058 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2059 # that executables *can* be run.
2060 ac_fn_cxx_try_run ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 if { { ac_try="$ac_link"
2065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2066 *) ac_try_echo
=$ac_try;;
2068 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 $as_echo "$ac_try_echo"; } >&5
2070 (eval "$ac_link") 2>&5
2072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2073 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2074 { { case "(($ac_try" in
2075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080 (eval "$ac_try") 2>&5
2082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083 test $ac_status = 0; }; }; then :
2086 $as_echo "$as_me: program exited with status $ac_status" >&5
2087 $as_echo "$as_me: failed program was:" >&5
2088 sed 's/^/| /' conftest.$ac_ext >&5
2090 ac_retval=$ac_status
2092 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2096 } # ac_fn_cxx_try_run
2098 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2099 # ---------------------------------------------------------
2100 # Tests whether HEADER exists and can be compiled using the include files in
2101 # INCLUDES, setting the cache variable VAR accordingly.
2102 ac_fn_cxx_check_header_compile ()
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106 $as_echo_n "checking for $2... " >&6; }
2107 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2108 $as_echo_n "(cached) " >&6
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2115 if ac_fn_cxx_try_compile "$LINENO"; then :
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2127 } # ac_fn_cxx_check_header_compile
2129 # ac_fn_c_try_cpp LINENO
2130 # ----------------------
2131 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 if { { ac_try="$ac_cpp conftest.$ac_ext"
2137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2138 *) ac_try_echo
=$ac_try;;
2140 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141 $as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2144 if test -s conftest.err
; then
2145 grep -v '^ *+' conftest.err
>conftest.er1
2146 cat conftest.er1
>&5
2147 mv -f conftest.er1 conftest.err
2149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150 test $ac_status = 0; } >/dev
/null
&& {
2151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2152 test ! -s conftest.err
2156 $as_echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.
$ac_ext >&5
2161 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2166 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2167 # ----------------------------------------------
2168 # Tries to find the compile-time value of EXPR in a program that includes
2169 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2171 ac_fn_cxx_compute_int
()
2173 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2174 if test "$cross_compiling" = yes; then
2175 # Depending upon the size, compute the lo and hi bounds.
2176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2182 static int test_array [1 - 2 * !(($2) >= 0)];
2189 if ac_fn_cxx_try_compile
"$LINENO"; then :
2192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2198 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2205 if ac_fn_cxx_try_compile
"$LINENO"; then :
2206 ac_hi
=$ac_mid; break
2208 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2209 if test $ac_lo -le $ac_mid; then
2213 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) < 0)];
2231 if ac_fn_cxx_try_compile
"$LINENO"; then :
2234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2240 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2247 if ac_fn_cxx_try_compile
"$LINENO"; then :
2248 ac_lo
=$ac_mid; break
2250 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2251 if test $ac_mid -le $ac_hi; then
2255 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2265 # Binary search between lo and hi bounds.
2266 while test "x$ac_lo" != "x$ac_hi"; do
2267 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2274 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2281 if ac_fn_cxx_try_compile
"$LINENO"; then :
2284 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2289 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2296 static long int longval () { return $2; }
2297 static unsigned long int ulongval () { return $2; }
2304 FILE *f = fopen ("conftest.val", "w");
2309 long int i = longval ();
2312 fprintf (f, "%ld", i);
2316 unsigned long int i = ulongval ();
2319 fprintf (f, "%lu", i);
2321 /* Do not output a trailing newline, as this causes \r\n confusion
2322 on some platforms. */
2323 return ferror (f) || fclose (f) != 0;
2329 if ac_fn_cxx_try_run
"$LINENO"; then :
2330 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2334 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2335 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2339 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2342 } # ac_fn_cxx_compute_int
2344 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2345 # ---------------------------------------------
2346 # Tests whether TYPE exists after having included INCLUDES, setting cache
2347 # variable VAR accordingly.
2348 ac_fn_cxx_check_type
()
2350 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2352 $as_echo_n "checking for $2... " >&6; }
2353 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2354 $as_echo_n "(cached) " >&6
2357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2369 if ac_fn_cxx_try_compile
"$LINENO"; then :
2370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2382 if ac_fn_cxx_try_compile
"$LINENO"; then :
2387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2393 $as_echo "$ac_res" >&6; }
2394 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2396 } # ac_fn_cxx_check_type
2398 # ac_fn_c_find_intX_t LINENO BITS VAR
2399 # -----------------------------------
2400 # Finds a signed integer type with width BITS, setting cache variable VAR
2402 ac_fn_c_find_intX_t
()
2404 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2406 $as_echo_n "checking for int$2_t... " >&6; }
2407 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408 $as_echo_n "(cached) " >&6
2411 for ac_type
in int
$2_t 'int' 'long int' \
2412 'long long int' 'short int' 'signed char'; do
2413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $ac_includes_default
2419 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2426 if ac_fn_cxx_try_compile
"$LINENO"; then :
2427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $ac_includes_default
2433 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2434 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2441 if ac_fn_cxx_try_compile
"$LINENO"; then :
2448 eval "$3=\$ac_type" ;;
2451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2455 if test "x$as_val" = x
""no
; then :
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2467 } # ac_fn_c_find_intX_t
2469 # ac_fn_cxx_try_link LINENO
2470 # -------------------------
2471 # Try to link conftest.$ac_ext, and return whether this succeeded.
2472 ac_fn_cxx_try_link
()
2474 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2475 rm -f conftest.
$ac_objext conftest
$ac_exeext
2476 if { { ac_try
="$ac_link"
2478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2482 $as_echo "$ac_try_echo"; } >&5
2483 (eval "$ac_link") 2>conftest.err
2485 if test -s conftest.err; then
2486 grep -v '^ *+' conftest.err >conftest.er1
2487 cat conftest.er1 >&5
2488 mv -f conftest.er1 conftest.err
2490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2491 test $ac_status = 0; } && {
2492 test -z "$ac_cxx_werror_flag" ||
2493 test ! -s conftest.err
2494 } && test -s conftest$ac_exeext && {
2495 test "$cross_compiling" = yes ||
2496 $as_test_x conftest$ac_exeext
2500 $as_echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2505 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2506 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2507 # interfere with the next link command; also delete a directory that is
2508 # left behind by Apple's compiler. We do this before executing the actions.
2509 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2513 } # ac_fn_cxx_try_link
2515 # ac_fn_c_find_uintX_t LINENO BITS VAR
2516 # ------------------------------------
2517 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2519 ac_fn_c_find_uintX_t ()
2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2523 $as_echo_n "checking for uint$2_t... " >&6; }
2524 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2525 $as_echo_n "(cached) " >&6
2528 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2529 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2532 $ac_includes_default
2536 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2543 if ac_fn_cxx_try_compile "$LINENO"; then :
2548 eval "$3=\$ac_type" ;;
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 if test "x$as_val" = x""no; then :
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2562 $as_echo "$ac_res" >&6; }
2563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565 } # ac_fn_c_find_uintX_t
2567 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2568 # ------------------------------------------------
2569 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2570 ac_fn_cxx_check_header_preproc ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2574 $as_echo_n "checking for $2... " >&6; }
2575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2576 $as_echo_n "(cached) " >&6
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2582 if ac_fn_cxx_try_cpp "$LINENO"; then :
2587 rm -f conftest.err conftest.$ac_ext
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2591 $as_echo "$ac_res" >&6; }
2592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2594 } # ac_fn_cxx_check_header_preproc
2596 # ac_fn_cxx_check_func LINENO FUNC VAR
2597 # ------------------------------------
2598 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2599 ac_fn_cxx_check_func ()
2601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603 $as_echo_n "checking for $2... " >&6; }
2604 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2605 $as_echo_n "(cached) " >&6
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2611 #define $2 innocuous_$2
2613 /* System header to define __stub macros and hopefully few prototypes,
2614 which can conflict with char $2 (); below.
2615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2616 <limits.h> exists even on freestanding compilers. */
2619 # include <limits.h>
2621 # include <assert.h>
2626 /* Override any GCC internal prototype to avoid an error.
2627 Use char because int might match the return type of a GCC
2628 builtin and then its argument prototype would still apply. */
2633 /* The GNU C library defines this for functions which it implements
2634 to always fail with ENOSYS. Some functions are actually named
2635 something starting with __ and the normal name is an alias. */
2636 #if defined __stub_$2 || defined __stub___$2
2648 if ac_fn_cxx_try_link "$LINENO"; then :
2653 rm -f core conftest.err conftest.$ac_objext \
2654 conftest$ac_exeext conftest.$ac_ext
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658 $as_echo "$ac_res" >&6; }
2659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2661 } # ac_fn_cxx_check_func
2663 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2664 # --------------------------------------
2665 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2666 ac_fn_cxx_check_decl ()
2668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2670 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2672 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2673 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2674 $as_echo_n "(cached) " >&6
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2682 #ifndef $as_decl_name
2684 (void) $as_decl_use;
2686 (void) $as_decl_name;
2694 if ac_fn_cxx_try_compile "$LINENO"; then :
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2703 $as_echo "$ac_res" >&6; }
2704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2706 } # ac_fn_cxx_check_decl
2708 # ac_fn_c_try_link LINENO
2709 # -----------------------
2710 # Try to link conftest.$ac_ext, and return whether this succeeded.
2713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2714 rm -f conftest.$ac_objext conftest$ac_exeext
2715 if { { ac_try="$ac_link"
2717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2718 *) ac_try_echo
=$ac_try;;
2720 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2721 $as_echo "$ac_try_echo"; } >&5
2722 (eval "$ac_link") 2>conftest.err
2724 if test -s conftest.err
; then
2725 grep -v '^ *+' conftest.err
>conftest.er1
2726 cat conftest.er1
>&5
2727 mv -f conftest.er1 conftest.err
2729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2730 test $ac_status = 0; } && {
2731 test -z "$ac_c_werror_flag" ||
2732 test ! -s conftest.err
2733 } && test -s conftest
$ac_exeext && {
2734 test "$cross_compiling" = yes ||
2735 $as_test_x conftest
$ac_exeext
2739 $as_echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.
$ac_ext >&5
2744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2746 # interfere with the next link command; also delete a directory that is
2747 # left behind by Apple's compiler. We do this before executing the actions.
2748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2749 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2752 } # ac_fn_c_try_link
2754 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2755 # ----------------------------------------------
2756 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2757 ac_fn_c_check_header_preproc
()
2759 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2761 $as_echo_n "checking for $2... " >&6; }
2762 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2763 $as_echo_n "(cached) " >&6
2765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h. */
2769 if ac_fn_c_try_cpp
"$LINENO"; then :
2774 rm -f conftest.err conftest.
$ac_ext
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2778 $as_echo "$ac_res" >&6; }
2779 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2781 } # ac_fn_c_check_header_preproc
2783 # ac_fn_c_check_func LINENO FUNC VAR
2784 # ----------------------------------
2785 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2786 ac_fn_c_check_func
()
2788 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2790 $as_echo_n "checking for $2... " >&6; }
2791 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2792 $as_echo_n "(cached) " >&6
2794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2796 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2798 #define $2 innocuous_$2
2800 /* System header to define __stub macros and hopefully few prototypes,
2801 which can conflict with char $2 (); below.
2802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2803 <limits.h> exists even on freestanding compilers. */
2806 # include <limits.h>
2808 # include <assert.h>
2813 /* Override any GCC internal prototype to avoid an error.
2814 Use char because int might match the return type of a GCC
2815 builtin and then its argument prototype would still apply. */
2820 /* The GNU C library defines this for functions which it implements
2821 to always fail with ENOSYS. Some functions are actually named
2822 something starting with __ and the normal name is an alias. */
2823 #if defined __stub_$2 || defined __stub___$2
2835 if ac_fn_c_try_link
"$LINENO"; then :
2840 rm -f core conftest.err conftest.
$ac_objext \
2841 conftest
$ac_exeext conftest.
$ac_ext
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2845 $as_echo "$ac_res" >&6; }
2846 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2848 } # ac_fn_c_check_func
2849 cat >config.log
<<_ACEOF
2850 This file contains any messages produced by compilers while
2851 running configure, to aid debugging if configure makes a mistake.
2853 It was created by $as_me, which was
2854 generated by GNU Autoconf 2.64. Invocation command line was
2866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2873 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2875 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2876 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2878 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2879 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2880 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2881 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir
=.
2890 $as_echo "PATH: $as_dir"
2906 # Keep a trace of the command line.
2907 # Strip out --no-create and --no-recursion so they do not pile up.
2908 # Strip out --silent because we don't want to record it for future runs.
2909 # Also quote any args containing shell meta-characters.
2910 # Make two passes to allow for proper duplicate-argument suppression.
2914 ac_must_keep_next
=false
2920 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2921 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2922 |
-silent |
--silent |
--silen |
--sile |
--sil)
2925 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2928 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2930 as_fn_append ac_configure_args1
" '$ac_arg'"
2931 if test $ac_must_keep_next = true
; then
2932 ac_must_keep_next
=false
# Got value, back to normal.
2935 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2936 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2937 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2938 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2939 case "$ac_configure_args0 " in
2940 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2943 -* ) ac_must_keep_next
=true
;;
2946 as_fn_append ac_configure_args
" '$ac_arg'"
2951 { ac_configure_args0
=; unset ac_configure_args0
;}
2952 { ac_configure_args1
=; unset ac_configure_args1
;}
2954 # When interrupted or exit'd, cleanup temporary files, and complete
2955 # config.log. We remove comments because anyway the quotes in there
2956 # would cause problems or look ugly.
2957 # WARNING: Use '\'' to represent an apostrophe within the trap.
2958 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2959 trap 'exit_status=$?
2960 # Save into config.log some information that might help in debugging.
2965 ## ---------------- ##
2966 ## Cache variables. ##
2967 ## ---------------- ##
2970 # The following way of writing the cache mishandles newlines in values,
2972 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2973 eval ac_val=\$$ac_var
2977 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2978 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2981 _ | IFS | as_nl) ;; #(
2982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2983 *) { eval $ac_var=; unset $ac_var;} ;;
2988 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2989 *${as_nl}ac_space=\ *)
2991 "s/'\''/'\''\\\\'\'''\''/g;
2992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3003 ## ----------------- ##
3004 ## Output variables. ##
3005 ## ----------------- ##
3008 for ac_var in $ac_subst_vars
3010 eval ac_val=\$$ac_var
3012 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3014 $as_echo "$ac_var='\''$ac_val'\''"
3018 if test -n "$ac_subst_files"; then
3020 ## ------------------- ##
3021 ## File substitutions. ##
3022 ## ------------------- ##
3025 for ac_var
in $ac_subst_files
3027 eval ac_val
=\$
$ac_var
3029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3031 $as_echo "$ac_var='\''$ac_val'\''"
3036 if test -s confdefs.h; then
3046 test "$ac_signal" != 0 &&
3047 $as_echo "$as_me: caught signal $ac_signal"
3048 $as_echo "$as_me: exit $exit_status"
3050 rm -f core *.core core.conftest.* &&
3051 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3054 for ac_signal
in 1 2 13 15; do
3055 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3060 rm -f -r conftest
* confdefs.h
3062 $as_echo "/* confdefs.h */" > confdefs.h
3064 # Predefined preprocessor variables.
3066 cat >>confdefs.h
<<_ACEOF
3067 #define PACKAGE_NAME "$PACKAGE_NAME"
3070 cat >>confdefs.h
<<_ACEOF
3071 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3074 cat >>confdefs.h
<<_ACEOF
3075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3078 cat >>confdefs.h
<<_ACEOF
3079 #define PACKAGE_STRING "$PACKAGE_STRING"
3082 cat >>confdefs.h
<<_ACEOF
3083 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3086 cat >>confdefs.h
<<_ACEOF
3087 #define PACKAGE_URL "$PACKAGE_URL"
3091 # Let the site file select an alternate cache file if it wants to.
3092 # Prefer an explicitly selected file to automatically selected ones.
3095 if test -n "$CONFIG_SITE"; then
3096 ac_site_file1
=$CONFIG_SITE
3097 elif test "x$prefix" != xNONE
; then
3098 ac_site_file1
=$prefix/share
/config.site
3099 ac_site_file2
=$prefix/etc
/config.site
3101 ac_site_file1
=$ac_default_prefix/share
/config.site
3102 ac_site_file2
=$ac_default_prefix/etc
/config.site
3104 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3106 test "x$ac_site_file" = xNONE
&& continue
3107 if test -r "$ac_site_file"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3109 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3110 sed 's/^/| /' "$ac_site_file" >&5
3115 if test -r "$cache_file"; then
3116 # Some versions of bash will fail to source /dev/null (special
3117 # files actually), so we avoid doing that.
3118 if test -f "$cache_file"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3120 $as_echo "$as_me: loading cache $cache_file" >&6;}
3122 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3123 *) .
"./$cache_file";;
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3128 $as_echo "$as_me: creating cache $cache_file" >&6;}
3132 # Check that the precious variables saved in the cache have kept the same
3134 ac_cache_corrupted
=false
3135 for ac_var
in $ac_precious_vars; do
3136 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3137 eval ac_new_set
=\
$ac_env_${ac_var}_set
3138 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3139 eval ac_new_val
=\
$ac_env_${ac_var}_value
3140 case $ac_old_set,$ac_new_set in
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3143 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3144 ac_cache_corrupted
=: ;;
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3147 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3148 ac_cache_corrupted
=: ;;
3151 if test "x$ac_old_val" != "x$ac_new_val"; then
3152 # differences in whitespace do not lead to failure.
3153 ac_old_val_w
=`echo x $ac_old_val`
3154 ac_new_val_w
=`echo x $ac_new_val`
3155 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3157 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3158 ac_cache_corrupted
=:
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3161 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3162 eval $ac_var=\
$ac_old_val
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3165 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3167 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3170 # Pass precious variables to config.status.
3171 if test "$ac_new_set" = set; then
3173 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3174 *) ac_arg
=$ac_var=$ac_new_val ;;
3176 case " $ac_configure_args " in
3177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3178 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3182 if $ac_cache_corrupted; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3186 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3187 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3189 ## -------------------- ##
3190 ## Main body of script. ##
3191 ## -------------------- ##
3194 ac_cpp
='$CPP $CPPFLAGS'
3195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3204 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3207 gcc_version
=`cat $srcdir/BASE-VER`
3209 # Determine the host, build, and target systems
3211 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3212 for ac_t
in install-sh
install.sh shtool
; do
3213 if test -f "$ac_dir/$ac_t"; then
3215 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3220 if test -z "$ac_aux_dir"; then
3221 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3224 # These three variables are undocumented and unsupported,
3225 # and are intended to be withdrawn in a future Autoconf release.
3226 # They can cause serious problems if a builder's source tree is in a directory
3227 # whose full name contains unusual characters.
3228 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3229 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3230 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3233 # Make sure we can run config.sub.
3234 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3235 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3238 $as_echo_n "checking build system type... " >&6; }
3239 if test "${ac_cv_build+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3242 ac_build_alias
=$build_alias
3243 test "x$ac_build_alias" = x
&&
3244 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3245 test "x$ac_build_alias" = x
&&
3246 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3247 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3248 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3252 $as_echo "$ac_cv_build" >&6; }
3253 case $ac_cv_build in
3255 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3258 ac_save_IFS
=$IFS; IFS
='-'
3264 # Remember, the first character of IFS is used to create $*,
3265 # except with old shells:
3268 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3272 $as_echo_n "checking host system type... " >&6; }
3273 if test "${ac_cv_host+set}" = set; then :
3274 $as_echo_n "(cached) " >&6
3276 if test "x$host_alias" = x
; then
3277 ac_cv_host
=$ac_cv_build
3279 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3280 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3285 $as_echo "$ac_cv_host" >&6; }
3288 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3291 ac_save_IFS
=$IFS; IFS
='-'
3297 # Remember, the first character of IFS is used to create $*,
3298 # except with old shells:
3301 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3305 $as_echo_n "checking target system type... " >&6; }
3306 if test "${ac_cv_target+set}" = set; then :
3307 $as_echo_n "(cached) " >&6
3309 if test "x$target_alias" = x
; then
3310 ac_cv_target
=$ac_cv_host
3312 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3313 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3318 $as_echo "$ac_cv_target" >&6; }
3319 case $ac_cv_target in
3321 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3323 target
=$ac_cv_target
3324 ac_save_IFS
=$IFS; IFS
='-'
3330 # Remember, the first character of IFS is used to create $*,
3331 # except with old shells:
3334 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3337 # The aliases save the names the user supplied, while $host etc.
3338 # will get canonicalized.
3339 test -n "$target_alias" &&
3340 test "$program_prefix$program_suffix$program_transform_name" = \
3342 program_prefix
=${target_alias}-
3344 # Determine the noncanonical host name, for Ada.
3345 case ${build_alias} in
3346 "") build_noncanonical
=${build} ;;
3347 *) build_noncanonical
=${build_alias} ;;
3350 case ${host_alias} in
3351 "") host_noncanonical
=${build_noncanonical} ;;
3352 *) host_noncanonical
=${host_alias} ;;
3358 # Determine the noncanonical target name, for directory use.
3359 case ${target_alias} in
3360 "") target_noncanonical
=${host_noncanonical} ;;
3361 *) target_noncanonical
=${target_alias} ;;
3367 # Used for constructing correct paths for offload compilers.
3368 real_target_noncanonical
=${target_noncanonical}
3371 # Determine the target- and build-specific subdirectories
3373 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3374 # have matching libraries, they should use host libraries: Makefile.tpl
3375 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3376 # However, they still use the build modules, because the corresponding
3377 # host modules (e.g. bison) are only built for the host when bootstrap
3379 # - build_subdir is where we find build modules, and never changes.
3380 # - build_libsubdir is where we find build libraries, and can be overridden.
3382 # Prefix 'build-' so this never conflicts with target_subdir.
3383 build_subdir
="build-${build_noncanonical}"
3385 # Check whether --with-build-libsubdir was given.
3386 if test "${with_build_libsubdir+set}" = set; then :
3387 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3389 build_libsubdir
="$build_subdir"
3392 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3393 if ( test $srcdir = .
&& test -d gcc
) \
3394 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3395 host_subdir
="host-${host_noncanonical}"
3400 target_subdir
=${target_noncanonical}
3403 # Set program_transform_name
3404 test "$program_prefix" != NONE
&&
3405 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3406 # Use a double $ so make ignores it.
3407 test "$program_suffix" != NONE
&&
3408 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3409 # Double any \ or $.
3410 # By default was `s,x,x', remove it if useless.
3411 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3412 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3415 # Check for bogus environment variables.
3416 # Test if LIBRARY_PATH contains the notation for the current directory
3417 # since this would lead to problems installing/building glibc.
3418 # LIBRARY_PATH contains the current directory if one of the following
3420 # - one of the terminals (":" and ";") is the first or last sign
3421 # - two terminals occur directly after each other
3422 # - the path contains an element with a dot in it
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3424 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3425 case ${LIBRARY_PATH} in
3426 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3427 library_path_setting
="contains current directory"
3430 library_path_setting
="ok"
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3434 $as_echo "$library_path_setting" >&6; }
3435 if test "$library_path_setting" != "ok"; then
3437 *** LIBRARY_PATH shouldn't contain the current directory when
3438 *** building gcc. Please change the environment variable
3439 *** and run configure again." "$LINENO" 5
3442 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3443 # since this would lead to problems installing/building glibc.
3444 # GCC_EXEC_PREFIX contains the current directory if one of the following
3446 # - one of the terminals (":" and ";") is the first or last sign
3447 # - two terminals occur directly after each other
3448 # - the path contains an element with a dot in it
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3450 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3451 case ${GCC_EXEC_PREFIX} in
3452 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3453 gcc_exec_prefix_setting
="contains current directory"
3456 gcc_exec_prefix_setting
="ok"
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3460 $as_echo "$gcc_exec_prefix_setting" >&6; }
3461 if test "$gcc_exec_prefix_setting" != "ok"; then
3463 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3464 *** building gcc. Please change the environment variable
3465 *** and run configure again." "$LINENO" 5
3472 # Specify the local prefix
3475 # Check whether --with-local-prefix was given.
3476 if test "${with_local_prefix+set}" = set; then :
3477 withval
=$with_local_prefix; case "${withval}" in
3478 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3480 *) local_prefix
=$with_local_prefix ;;
3485 # Default local prefix if it is empty
3486 if test x
$local_prefix = x
; then
3487 local_prefix
=/usr
/local
3491 # Check whether --with-native-system-header-dir was given.
3492 if test "${with_native_system_header_dir+set}" = set; then :
3493 withval
=$with_native_system_header_dir;
3494 case ${with_native_system_header_dir} in
3495 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3496 /* |
[A-Za-z
]:[\\/]*) ;;
3497 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3499 configured_native_system_header_dir
="${withval}"
3502 configured_native_system_header_dir
=
3507 # Check whether --with-build-sysroot was given.
3508 if test "${with_build_sysroot+set}" = set; then :
3509 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3510 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3513 SYSROOT_CFLAGS_FOR_TARGET
=
3518 if test "x$prefix" = xNONE
; then
3519 test_prefix
=/usr
/local
3523 if test "x$exec_prefix" = xNONE
; then
3524 test_exec_prefix
=$test_prefix
3526 test_exec_prefix
=$exec_prefix
3530 # Check whether --with-sysroot was given.
3531 if test "${with_sysroot+set}" = set; then :
3532 withval
=$with_sysroot;
3533 case ${with_sysroot} in
3535 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3537 case ${with_sysroot} in
3538 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3539 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3542 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3543 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3545 case ${TARGET_SYSTEM_ROOT} in
3546 "${test_prefix}"|
"${test_prefix}/"*|\
3547 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3548 '${prefix}'|
'${prefix}/'*|\
3549 '${exec_prefix}'|
'${exec_prefix}/'*)
3550 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3551 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3558 TARGET_SYSTEM_ROOT_DEFINE
=
3559 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3567 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3568 # passed in by the toplevel make and thus we'd get different behavior
3569 # depending on where we built the sources.
3570 gcc_gxx_include_dir
=
3571 # Specify the g++ header file directory
3573 # Check whether --with-gxx-include-dir was given.
3574 if test "${with_gxx_include_dir+set}" = set; then :
3575 withval
=$with_gxx_include_dir; case "${withval}" in
3576 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3578 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3583 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3584 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3585 # relative to the sysroot.
3586 gcc_gxx_include_dir_add_sysroot
=0
3588 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3589 if test x
${gcc_gxx_include_dir} = x
; then
3590 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3591 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3593 libstdcxx_incdir
='include/c++/$(version)'
3594 if test x
$host != x
$target; then
3595 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3597 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3599 elif test "${with_sysroot+set}" = set; then
3600 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3601 if test "${gcc_gxx_without_sysroot}"; then
3602 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3603 gcc_gxx_include_dir_add_sysroot
=1
3608 # Check whether --with-cpp_install_dir was given.
3609 if test "${with_cpp_install_dir+set}" = set; then :
3610 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3611 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3612 elif test x
$withval != xno
; then
3613 cpp_install_dir
=$withval
3618 # We would like to our source tree to be readonly. However when releases or
3619 # pre-releases are generated, the flex/bison generated files as well as the
3620 # various formats of manuals need to be included along with the rest of the
3621 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3625 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3626 # Check whether --enable-generated-files-in-srcdir was given.
3627 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3628 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3630 generated_files_in_srcdir
=no
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3635 $as_echo "$generated_files_in_srcdir" >&6; }
3637 if test "$generated_files_in_srcdir" = "yes"; then
3644 # -------------------
3645 # Find default linker
3646 # -------------------
3650 # Check whether --with-gnu-ld was given.
3651 if test "${with_gnu_ld+set}" = set; then :
3652 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3659 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3663 # With pre-defined ld
3665 # Check whether --with-ld was given.
3666 if test "${with_ld+set}" = set; then :
3667 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3670 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3671 if test ! -x "$DEFAULT_LINKER"; then
3672 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3673 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3675 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3679 cat >>confdefs.h
<<_ACEOF
3680 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3686 $as_echo_n "checking whether a default linker was specified... " >&6; }
3687 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3688 if test x
"$gnu_ld_flag" = x
"no"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3690 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3693 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3700 # With demangler in GNU ld
3702 # Check whether --with-demangler-in-ld was given.
3703 if test "${with_demangler_in_ld+set}" = set; then :
3704 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3710 # ----------------------
3711 # Find default assembler
3712 # ----------------------
3716 # Check whether --with-gnu-as was given.
3717 if test "${with_gnu_as+set}" = set; then :
3718 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3725 # Check whether --with-as was given.
3726 if test "${with_as+set}" = set; then :
3727 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3730 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3731 if test ! -x "$DEFAULT_ASSEMBLER"; then
3732 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3733 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3737 cat >>confdefs.h
<<_ACEOF
3738 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3744 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3745 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3746 if test x
"$gas_flag" = x
"no"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3748 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3751 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3762 # If a non-executable a.out is present (e.g. created by GNU as above even if
3763 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3764 # file, even when creating an executable, so an execution test fails.
3765 # Remove possible default executable files to avoid this.
3767 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3768 # Autoconf includes it.
3769 rm -f a.out a.exe b.out
3771 # Find the native compiler
3773 ac_cpp
='$CPP $CPPFLAGS'
3774 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3777 if test -n "$ac_tool_prefix"; then
3778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3779 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if test "${ac_cv_prog_CC+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3785 if test -n "$CC"; then
3786 ac_cv_prog_CC
="$CC" # Let the user override the test.
3788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3792 test -z "$as_dir" && as_dir
=.
3793 for ac_exec_ext
in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 if test -n "$CC"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3808 $as_echo "$CC" >&6; }
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3816 if test -z "$ac_cv_prog_CC"; then
3818 # Extract the first word of "gcc", so it can be a program name with args.
3819 set dummy gcc
; ac_word
=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3825 if test -n "$ac_ct_CC"; then
3826 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir
=.
3833 for ac_exec_ext
in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_ac_ct_CC
="gcc"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3846 if test -n "$ac_ct_CC"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3848 $as_echo "$ac_ct_CC" >&6; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3854 if test "x$ac_ct_CC" = x
; then
3857 case $cross_compiling:$ac_tool_warned in
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3861 ac_tool_warned
=yes ;;
3869 if test -z "$CC"; then
3870 if test -n "$ac_tool_prefix"; then
3871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3872 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874 $as_echo_n "checking for $ac_word... " >&6; }
3875 if test "${ac_cv_prog_CC+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3878 if test -n "$CC"; then
3879 ac_cv_prog_CC
="$CC" # Let the user override the test.
3881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3885 test -z "$as_dir" && as_dir
=.
3886 for ac_exec_ext
in '' $ac_executable_extensions; do
3887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3888 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 if test -n "$CC"; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3901 $as_echo "$CC" >&6; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3910 if test -z "$CC"; then
3911 # Extract the first word of "cc", so it can be a program name with args.
3912 set dummy cc
; ac_word
=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if test "${ac_cv_prog_CC+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC
="$CC" # Let the user override the test.
3922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir
=.
3927 for ac_exec_ext
in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3930 ac_prog_rejected
=yes
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 if test $ac_prog_rejected = yes; then
3942 # We found a bogon in the path, so make sure we never use it.
3943 set dummy
$ac_cv_prog_CC
3945 if test $# != 0; then
3946 # We chose a different compiler from the bogus one.
3947 # However, it has the same basename, so the bogon will be chosen
3948 # first if we set CC to just the basename; use the full file name.
3950 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3956 if test -n "$CC"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3958 $as_echo "$CC" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3966 if test -z "$CC"; then
3967 if test -n "$ac_tool_prefix"; then
3968 for ac_prog
in cl.exe
3970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3971 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 $as_echo_n "checking for $ac_word... " >&6; }
3974 if test "${ac_cv_prog_CC+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3977 if test -n "$CC"; then
3978 ac_cv_prog_CC
="$CC" # Let the user override the test.
3980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3984 test -z "$as_dir" && as_dir
=.
3985 for ac_exec_ext
in '' $ac_executable_extensions; do
3986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3987 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 if test -n "$CC"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4000 $as_echo "$CC" >&6; }
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 $as_echo "no" >&6; }
4007 test -n "$CC" && break
4010 if test -z "$CC"; then
4012 for ac_prog
in cl.exe
4014 # Extract the first word of "$ac_prog", so it can be a program name with args.
4015 set dummy
$ac_prog; ac_word
=$2
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 $as_echo_n "checking for $ac_word... " >&6; }
4018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4019 $as_echo_n "(cached) " >&6
4021 if test -n "$ac_ct_CC"; then
4022 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir
=.
4029 for ac_exec_ext
in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4031 ac_cv_prog_ac_ct_CC
="$ac_prog"
4032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4042 if test -n "$ac_ct_CC"; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4044 $as_echo "$ac_ct_CC" >&6; }
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047 $as_echo "no" >&6; }
4051 test -n "$ac_ct_CC" && break
4054 if test "x$ac_ct_CC" = x
; then
4057 case $cross_compiling:$ac_tool_warned in
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4061 ac_tool_warned
=yes ;;
4070 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error
"no acceptable C compiler found in \$PATH
4073 See \`config.log' for more details." "$LINENO" 5; }
4075 # Provide some information about the compiler.
4076 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4079 for ac_option
in --version -v -V -qversion; do
4080 { { ac_try
="$ac_compiler $ac_option >&5"
4082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086 $as_echo "$ac_try_echo"; } >&5
4087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4089 if test -s conftest.err; then
4091 ... rest of stderr output deleted ...
4092 10q' conftest.err >conftest.er1
4093 cat conftest.er1 >&5
4094 rm -f conftest.er1 conftest.err
4096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097 test $ac_status = 0; }
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4111 ac_clean_files_save=$ac_clean_files
4112 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4113 # Try to create an executable without -o first, disregard a.out.
4114 # It will help us diagnose broken compilers, and finding out an intuition
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4117 $as_echo_n "checking for C compiler default output file name... " >&6; }
4118 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4120 # The possible output files:
4121 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4124 for ac_file in $ac_files
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4128 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4133 if { { ac_try="$ac_link_default"
4135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4136 *) ac_try_echo
=$ac_try;;
4138 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4139 $as_echo "$ac_try_echo"; } >&5
4140 (eval "$ac_link_default") 2>&5
4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4143 test $ac_status = 0; }; then :
4144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4145 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4146 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4147 # so that the user can short-circuit this test for compilers unknown to
4149 for ac_file
in $ac_files ''
4151 test -f "$ac_file" ||
continue
4153 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4156 # We found the default executable, but exeext='' is most
4160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4162 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4164 # We set ac_cv_exeext here because the later test for it is not
4165 # safe: cross compilers may not add the suffix if given an `-o'
4166 # argument, so we may need to know it at that point already.
4167 # Even if this section looks crufty: it has the advantage of
4174 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4180 $as_echo "$ac_file" >&6; }
4181 if test -z "$ac_file"; then :
4182 $as_echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.
$ac_ext >&5
4185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187 { as_fn_set_status
77
4188 as_fn_error
"C compiler cannot create executables
4189 See \`config.log' for more details." "$LINENO" 5; }; }
4191 ac_exeext
=$ac_cv_exeext
4193 # Check that the compiler produces executables we can run. If not, either
4194 # the compiler is broken, or we cross compile.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4196 $as_echo_n "checking whether the C compiler works... " >&6; }
4197 # If not cross compiling, check that we can run a simple program.
4198 if test "$cross_compiling" != yes; then
4199 if { ac_try
='./$ac_file'
4200 { { case "(($ac_try" in
4201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_try") 2>&5
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }; }; then
4212 if test "$cross_compiling" = maybe; then
4215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4217 as_fn_error "cannot run C compiled programs.
4218 If you meant to cross compile
, use \
`--host'.
4219 See \`config.log
' for more details." "$LINENO" 5; }
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4224 $as_echo "yes" >&6; }
4226 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4227 ac_clean_files=$ac_clean_files_save
4228 # Check that the compiler produces executables we can run. If not, either
4229 # the compiler is broken, or we cross compile.
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4231 $as_echo_n "checking whether we are cross compiling... " >&6; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4233 $as_echo "$cross_compiling" >&6; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4236 $as_echo_n "checking for suffix of executables... " >&6; }
4237 if { { ac_try="$ac_link"
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243 $as_echo "$ac_try_echo"; } >&5
4244 (eval "$ac_link") 2>&5
4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247 test $ac_status = 0; }; then :
4248 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4249 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4250 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4252 for ac_file
in conftest.exe conftest conftest.
*; do
4253 test -f "$ac_file" ||
continue
4255 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4256 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4264 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4265 See \`config.log' for more details." "$LINENO" 5; }
4267 rm -f conftest
$ac_cv_exeext
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4269 $as_echo "$ac_cv_exeext" >&6; }
4271 rm -f conftest.
$ac_ext
4272 EXEEXT
=$ac_cv_exeext
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4275 $as_echo_n "checking for suffix of object files... " >&6; }
4276 if test "${ac_cv_objext+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
4279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4290 rm -f conftest.o conftest.obj
4291 if { { ac_try
="$ac_compile"
4293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_compile") 2>&5
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }; then :
4302 for ac_file in conftest.o conftest.obj conftest.*; do
4303 test -f "$ac_file" || continue;
4305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4311 $as_echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316 as_fn_error "cannot compute suffix of object files
: cannot compile
4317 See \
`config.log' for more details." "$LINENO" 5; }
4319 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4322 $as_echo "$ac_cv_objext" >&6; }
4323 OBJEXT=$ac_cv_objext
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4326 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4327 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4344 if ac_fn_c_try_compile "$LINENO"; then :
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4354 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4355 if test $ac_compiler_gnu = yes; then
4360 ac_test_CFLAGS=${CFLAGS+set}
4361 ac_save_CFLAGS=$CFLAGS
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4363 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4364 if test "${ac_cv_prog_cc_g+set}" = set; then :
4365 $as_echo_n "(cached) " >&6
4367 ac_save_c_werror_flag=$ac_c_werror_flag
4368 ac_c_werror_flag=yes
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4382 if ac_fn_c_try_compile "$LINENO"; then :
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4397 if ac_fn_c_try_compile "$LINENO"; then :
4400 ac_c_werror_flag=$ac_save_c_werror_flag
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4413 if ac_fn_c_try_compile "$LINENO"; then :
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 ac_c_werror_flag=$ac_save_c_werror_flag
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4424 $as_echo "$ac_cv_prog_cc_g" >&6; }
4425 if test "$ac_test_CFLAGS" = set; then
4426 CFLAGS=$ac_save_CFLAGS
4427 elif test $ac_cv_prog_cc_g = yes; then
4428 if test "$GCC" = yes; then
4434 if test "$GCC" = yes; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4441 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4442 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4445 ac_cv_prog_cc_c89=no
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4451 #include <sys/types.h>
4452 #include <sys/stat.h>
4453 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4454 struct buf { int x; };
4455 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4456 static char *e (p, i)
4462 static char *f (char * (*g) (char **, int), char **p, ...)
4467 s = g (p, va_arg (v,int));
4472 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4473 function prototypes and stuff, but not '\xHH' hex character constants.
4474 These don't provoke an error unfortunately, instead are silently treated
4475 as 'x'. The following induces an error, until -std is added to get
4476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4477 array size at least. It's necessary to write '\x00'==0 to get something
4478 that's true only with -std. */
4479 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4481 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4482 inside strings and character constants. */
4484 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4486 int test (int i, double x);
4487 struct s1 {int (*f) (int a);};
4488 struct s2 {int (*f) (double a);};
4489 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4495 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4500 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4501 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4503 CC="$ac_save_CC $ac_arg"
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505 ac_cv_prog_cc_c89=$ac_arg
4507 rm -f core conftest.err conftest.$ac_objext
4508 test "x$ac_cv_prog_cc_c89" != "xno" && break
4510 rm -f conftest.$ac_ext
4515 case "x$ac_cv_prog_cc_c89" in
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4518 $as_echo "none needed" >&6; } ;;
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4521 $as_echo "unsupported" >&6; } ;;
4523 CC="$CC $ac_cv_prog_cc_c89"
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4525 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4527 if test "x$ac_cv_prog_cc_c89" != xno; then :
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 ac_cpp='$CXXCPP $CPPFLAGS'
4539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4542 if test -z "$CXX"; then
4543 if test -n "$CCC"; then
4546 if test -n "$ac_tool_prefix"; then
4547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if test "${ac_cv_prog_CXX+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4556 if test -n "$CXX"; then
4557 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 if test -n "$CXX"; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4579 $as_echo "$CXX" >&6; }
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4586 test -n "$CXX" && break
4589 if test -z "$CXX"; then
4591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4593 # Extract the first word of "$ac_prog", so it can be a program name with args.
4594 set dummy $ac_prog; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4600 if test -n "$ac_ct_CXX"; then
4601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_ac_ct_CXX="$ac_prog"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4621 if test -n "$ac_ct_CXX"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4623 $as_echo "$ac_ct_CXX" >&6; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4630 test -n "$ac_ct_CXX" && break
4633 if test "x$ac_ct_CXX" = x; then
4636 case $cross_compiling:$ac_tool_warned in
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640 ac_tool_warned=yes ;;
4648 # Provide some information about the compiler.
4649 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4652 for ac_option in --version -v -V -qversion; do
4653 { { ac_try="$ac_compiler $ac_option >&5"
4655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4656 *) ac_try_echo
=$ac_try;;
4658 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659 $as_echo "$ac_try_echo"; } >&5
4660 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4662 if test -s conftest.err
; then
4664 ... rest of stderr output deleted ...
4665 10q' conftest.err
>conftest.er1
4666 cat conftest.er1
>&5
4667 rm -f conftest.er1 conftest.err
4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4674 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4675 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4692 if ac_fn_cxx_try_compile
"$LINENO"; then :
4697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4698 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4702 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4703 if test $ac_compiler_gnu = yes; then
4708 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4709 ac_save_CXXFLAGS
=$CXXFLAGS
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4711 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4712 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4713 $as_echo_n "(cached) " >&6
4715 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4716 ac_cxx_werror_flag
=yes
4719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4730 if ac_fn_cxx_try_compile
"$LINENO"; then :
4731 ac_cv_prog_cxx_g
=yes
4734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4745 if ac_fn_cxx_try_compile
"$LINENO"; then :
4748 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4761 if ac_fn_cxx_try_compile
"$LINENO"; then :
4762 ac_cv_prog_cxx_g
=yes
4764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4769 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4772 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4773 if test "$ac_test_CXXFLAGS" = set; then
4774 CXXFLAGS
=$ac_save_CXXFLAGS
4775 elif test $ac_cv_prog_cxx_g = yes; then
4776 if test "$GXX" = yes; then
4782 if test "$GXX" = yes; then
4789 ac_cpp
='$CPP $CPPFLAGS'
4790 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4797 if test -n "$ac_tool_prefix"; then
4798 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4799 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
4805 if test -n "$GNATBIND"; then
4806 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4812 test -z "$as_dir" && as_dir
=.
4813 for ac_exec_ext
in '' $ac_executable_extensions; do
4814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 GNATBIND
=$ac_cv_prog_GNATBIND
4826 if test -n "$GNATBIND"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4828 $as_echo "$GNATBIND" >&6; }
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4836 if test -z "$ac_cv_prog_GNATBIND"; then
4837 ac_ct_GNATBIND
=$GNATBIND
4838 # Extract the first word of "gnatbind", so it can be a program name with args.
4839 set dummy gnatbind
; ac_word
=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4843 $as_echo_n "(cached) " >&6
4845 if test -n "$ac_ct_GNATBIND"; then
4846 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4852 test -z "$as_dir" && as_dir
=.
4853 for ac_exec_ext
in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4866 if test -n "$ac_ct_GNATBIND"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4868 $as_echo "$ac_ct_GNATBIND" >&6; }
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4874 if test "x$ac_ct_GNATBIND" = x
; then
4877 case $cross_compiling:$ac_tool_warned in
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4881 ac_tool_warned
=yes ;;
4883 GNATBIND
=$ac_ct_GNATBIND
4886 GNATBIND
="$ac_cv_prog_GNATBIND"
4889 if test -n "$ac_tool_prefix"; then
4890 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4891 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4897 if test -n "$GNATMAKE"; then
4898 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir
=.
4905 for ac_exec_ext
in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 GNATMAKE
=$ac_cv_prog_GNATMAKE
4918 if test -n "$GNATMAKE"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4920 $as_echo "$GNATMAKE" >&6; }
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4928 if test -z "$ac_cv_prog_GNATMAKE"; then
4929 ac_ct_GNATMAKE
=$GNATMAKE
4930 # Extract the first word of "gnatmake", so it can be a program name with args.
4931 set dummy gnatmake
; ac_word
=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4935 $as_echo_n "(cached) " >&6
4937 if test -n "$ac_ct_GNATMAKE"; then
4938 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir
=.
4945 for ac_exec_ext
in '' $ac_executable_extensions; do
4946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4958 if test -n "$ac_ct_GNATMAKE"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4960 $as_echo "$ac_ct_GNATMAKE" >&6; }
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4966 if test "x$ac_ct_GNATMAKE" = x
; then
4969 case $cross_compiling:$ac_tool_warned in
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4973 ac_tool_warned
=yes ;;
4975 GNATMAKE
=$ac_ct_GNATMAKE
4978 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4982 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4983 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4984 $as_echo_n "(cached) " >&6
4986 cat >conftest.adb
<<EOF
4987 procedure conftest is begin null; end conftest;
4989 acx_cv_cc_gcc_supports_ada
=no
4990 # There is a bug in old released versions of GCC which causes the
4991 # driver to exit successfully when the appropriate language module
4992 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4993 # Therefore we must check for the error message as well as an
4994 # unsuccessful exit.
4995 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4996 # given a .adb file, but produce no object file. So we must check
4997 # if an object file was really produced to guard against this.
4998 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
4999 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5000 acx_cv_cc_gcc_supports_ada
=yes
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5005 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5007 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5014 # Do configure tests with the C++ compiler, since that's what we build with.
5016 ac_cpp
='$CXXCPP $CPPFLAGS'
5017 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5022 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5023 # optimizations to be activated explicitly by the toplevel.
5025 */prev-gcc
/xgcc
*) ;;
5026 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5027 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5032 # Determine PICFLAG for target gnatlib.
5038 # PIC is the default on some targets or must not be used.
5040 # For darwin, common symbols are not allowed in MH_DYLIB files
5042 # If we are using a compiler supporting mdynamic-no-pic
5043 # and the option has been tested as safe to add, then cancel
5044 # it here, since the code generated is incompatible with shared
5046 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5047 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5051 # PIC is the default.
5054 # PIC is the default for 64-bit PA HP-UX.
5056 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5058 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5060 i
[34567]86-*-interix[3-9]*)
5061 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5062 # Instead, we relocate shared libraries at runtime.
5064 i
[34567]86-*-nto-qnx*)
5065 # QNX uses GNU C++, but need to define -shared option too, otherwise
5067 PICFLAG_FOR_TARGET
='-fPIC -shared'
5069 i
[34567]86-pc-msdosdjgpp*)
5070 # DJGPP does not support shared libraries at all.
5073 # On IA64 HP-UX, PIC is the default but the pic flag
5074 # sets the default TLS model and affects inlining.
5075 PICFLAG_FOR_TARGET
=-fPIC
5078 # PIC is the default.
5080 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5081 # All AIX code is PIC.
5084 # Some targets support both -fPIC and -fpic, but prefer the latter.
5086 i
[34567]86-*-* | x86_64-
*-*)
5087 PICFLAG_FOR_TARGET
=-fpic
5089 # FIXME: Override -fPIC default in libgcc only?
5090 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5091 PICFLAG_FOR_TARGET
=-fpic
5093 # FIXME: Simplify to sh*-*-netbsd*?
5094 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5095 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5096 PICFLAG_FOR_TARGET
=-fpic
5098 # Default to -fPIC unless specified otherwise.
5100 PICFLAG_FOR_TARGET
=-fPIC
5104 # If the user explicitly uses -fpic/-fPIC, keep that.
5105 case "${CFLAGS_FOR_TARGET}" in
5107 PICFLAG_FOR_TARGET
=-fpic
5110 PICFLAG_FOR_TARGET
=-fPIC
5116 # -------------------------
5117 # Check C compiler features
5118 # -------------------------
5122 ac_cpp
='$CXXCPP $CPPFLAGS'
5123 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5124 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5125 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5127 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5128 if test -z "$CXXCPP"; then
5129 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5132 # Double quotes because CXXCPP needs to be expanded
5133 for CXXCPP
in "$CXX -E" "/lib/cpp"
5136 for ac_cxx_preproc_warn_flag
in '' yes
5138 # Use a header file that comes with gcc, so configuring glibc
5139 # with a fresh cross-compiler works.
5140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5141 # <limits.h> exists even on freestanding compilers.
5142 # On the NeXT, cc -E runs the code through the compiler's parser,
5143 # not just through cpp. "Syntax error" is here to catch this case.
5144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5147 # include <limits.h>
5149 # include <assert.h>
5153 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5156 # Broken: fails on valid input.
5159 rm -f conftest.err conftest.
$ac_ext
5161 # OK, works on sane cases. Now check whether nonexistent headers
5162 # can be detected and how.
5163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165 #include <ac_nonexistent.h>
5167 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5168 # Broken: success on invalid input.
5171 # Passes both tests.
5175 rm -f conftest.err conftest.
$ac_ext
5178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5179 rm -f conftest.err conftest.
$ac_ext
5180 if $ac_preproc_ok; then :
5185 ac_cv_prog_CXXCPP
=$CXXCPP
5188 CXXCPP
=$ac_cv_prog_CXXCPP
5190 ac_cv_prog_CXXCPP
=$CXXCPP
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5193 $as_echo "$CXXCPP" >&6; }
5195 for ac_cxx_preproc_warn_flag
in '' yes
5197 # Use a header file that comes with gcc, so configuring glibc
5198 # with a fresh cross-compiler works.
5199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5200 # <limits.h> exists even on freestanding compilers.
5201 # On the NeXT, cc -E runs the code through the compiler's parser,
5202 # not just through cpp. "Syntax error" is here to catch this case.
5203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5206 # include <limits.h>
5208 # include <assert.h>
5212 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5215 # Broken: fails on valid input.
5218 rm -f conftest.err conftest.
$ac_ext
5220 # OK, works on sane cases. Now check whether nonexistent headers
5221 # can be detected and how.
5222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5224 #include <ac_nonexistent.h>
5226 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5227 # Broken: success on invalid input.
5230 # Passes both tests.
5234 rm -f conftest.err conftest.
$ac_ext
5237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5238 rm -f conftest.err conftest.
$ac_ext
5239 if $ac_preproc_ok; then :
5242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5244 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5245 See \`config.log' for more details." "$LINENO" 5; }
5249 ac_cpp
='$CXXCPP $CPPFLAGS'
5250 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5256 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5257 if test "${ac_cv_path_GREP+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5260 if test -z "$GREP"; then
5261 ac_path_GREP_found
=false
5262 # Loop through the user's path and test for each of PROGNAME-LIST
5263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5264 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5267 test -z "$as_dir" && as_dir
=.
5268 for ac_prog
in grep ggrep
; do
5269 for ac_exec_ext
in '' $ac_executable_extensions; do
5270 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5271 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5272 # Check for GNU ac_path_GREP and select it if it is found.
5273 # Check for GNU $ac_path_GREP
5274 case `"$ac_path_GREP" --version 2>&1` in
5276 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5279 $as_echo_n 0123456789 >"conftest.in"
5282 cat "conftest.in" "conftest.in" >"conftest.tmp"
5283 mv "conftest.tmp" "conftest.in"
5284 cp "conftest.in" "conftest.nl"
5285 $as_echo 'GREP' >> "conftest.nl"
5286 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5287 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5288 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5289 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5290 # Best one so far, save it but keep looking for a better one
5291 ac_cv_path_GREP
="$ac_path_GREP"
5292 ac_path_GREP_max
=$ac_count
5294 # 10*(2^10) chars as input seems more than enough
5295 test $ac_count -gt 10 && break
5297 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5300 $ac_path_GREP_found && break 3
5305 if test -z "$ac_cv_path_GREP"; then
5306 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5309 ac_cv_path_GREP
=$GREP
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5314 $as_echo "$ac_cv_path_GREP" >&6; }
5315 GREP
="$ac_cv_path_GREP"
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5319 $as_echo_n "checking for egrep... " >&6; }
5320 if test "${ac_cv_path_EGREP+set}" = set; then :
5321 $as_echo_n "(cached) " >&6
5323 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5324 then ac_cv_path_EGREP
="$GREP -E"
5326 if test -z "$EGREP"; then
5327 ac_path_EGREP_found
=false
5328 # Loop through the user's path and test for each of PROGNAME-LIST
5329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5330 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5333 test -z "$as_dir" && as_dir
=.
5334 for ac_prog
in egrep; do
5335 for ac_exec_ext
in '' $ac_executable_extensions; do
5336 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5337 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5338 # Check for GNU ac_path_EGREP and select it if it is found.
5339 # Check for GNU $ac_path_EGREP
5340 case `"$ac_path_EGREP" --version 2>&1` in
5342 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5345 $as_echo_n 0123456789 >"conftest.in"
5348 cat "conftest.in" "conftest.in" >"conftest.tmp"
5349 mv "conftest.tmp" "conftest.in"
5350 cp "conftest.in" "conftest.nl"
5351 $as_echo 'EGREP' >> "conftest.nl"
5352 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5353 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5354 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5355 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5356 # Best one so far, save it but keep looking for a better one
5357 ac_cv_path_EGREP
="$ac_path_EGREP"
5358 ac_path_EGREP_max
=$ac_count
5360 # 10*(2^10) chars as input seems more than enough
5361 test $ac_count -gt 10 && break
5363 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5366 $ac_path_EGREP_found && break 3
5371 if test -z "$ac_cv_path_EGREP"; then
5372 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5375 ac_cv_path_EGREP
=$EGREP
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5381 $as_echo "$ac_cv_path_EGREP" >&6; }
5382 EGREP
="$ac_cv_path_EGREP"
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5386 $as_echo_n "checking for ANSI C header files... " >&6; }
5387 if test "${ac_cv_header_stdc+set}" = set; then :
5388 $as_echo_n "(cached) " >&6
5390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5405 if ac_fn_cxx_try_compile
"$LINENO"; then :
5406 ac_cv_header_stdc
=yes
5408 ac_cv_header_stdc
=no
5410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5412 if test $ac_cv_header_stdc = yes; then
5413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5420 $EGREP "memchr" >/dev
/null
2>&1; then :
5423 ac_cv_header_stdc
=no
5429 if test $ac_cv_header_stdc = yes; then
5430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5437 $EGREP "free" >/dev
/null
2>&1; then :
5440 ac_cv_header_stdc
=no
5446 if test $ac_cv_header_stdc = yes; then
5447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5448 if test "$cross_compiling" = yes; then :
5451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5455 #if ((' ' & 0x0FF) == 0x020)
5456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5459 # define ISLOWER(c) \
5460 (('a' <= (c) && (c) <= 'i') \
5461 || ('j' <= (c) && (c) <= 'r') \
5462 || ('s' <= (c) && (c) <= 'z'))
5463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5471 for (i = 0; i < 256; i++)
5472 if (XOR (islower (i), ISLOWER (i))
5473 || toupper (i) != TOUPPER (i))
5478 if ac_fn_cxx_try_run
"$LINENO"; then :
5481 ac_cv_header_stdc
=no
5483 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5484 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5490 $as_echo "$ac_cv_header_stdc" >&6; }
5491 if test $ac_cv_header_stdc = yes; then
5493 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5498 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5499 inttypes.h stdint.h unistd.h
5501 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5504 eval as_val
=\$
$as_ac_Header
5505 if test "x$as_val" = x
""yes; then :
5506 cat >>confdefs.h
<<_ACEOF
5507 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5516 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5517 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5524 if test "$MINIX" = yes; then
5526 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5529 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5532 $as_echo "#define _MINIX 1" >>confdefs.h
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5538 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5539 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5545 # define __EXTENSIONS__ 1
5546 $ac_includes_default
5555 if ac_fn_cxx_try_compile
"$LINENO"; then :
5556 ac_cv_safe_to_define___extensions__
=yes
5558 ac_cv_safe_to_define___extensions__
=no
5560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5563 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5564 test $ac_cv_safe_to_define___extensions__ = yes &&
5565 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5567 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5569 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5571 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5573 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5577 ac_cpp
='$CPP $CPPFLAGS'
5578 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5582 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5583 # On Suns, sometimes $CPP names a directory.
5584 if test -n "$CPP" && test -d "$CPP"; then
5587 if test -z "$CPP"; then
5588 if test "${ac_cv_prog_CPP+set}" = set; then :
5589 $as_echo_n "(cached) " >&6
5591 # Double quotes because CPP needs to be expanded
5592 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5595 for ac_c_preproc_warn_flag
in '' yes
5597 # Use a header file that comes with gcc, so configuring glibc
5598 # with a fresh cross-compiler works.
5599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5600 # <limits.h> exists even on freestanding compilers.
5601 # On the NeXT, cc -E runs the code through the compiler's parser,
5602 # not just through cpp. "Syntax error" is here to catch this case.
5603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5606 # include <limits.h>
5608 # include <assert.h>
5612 if ac_fn_c_try_cpp
"$LINENO"; then :
5615 # Broken: fails on valid input.
5618 rm -f conftest.err conftest.
$ac_ext
5620 # OK, works on sane cases. Now check whether nonexistent headers
5621 # can be detected and how.
5622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5624 #include <ac_nonexistent.h>
5626 if ac_fn_c_try_cpp
"$LINENO"; then :
5627 # Broken: success on invalid input.
5630 # Passes both tests.
5634 rm -f conftest.err conftest.
$ac_ext
5637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5638 rm -f conftest.err conftest.
$ac_ext
5639 if $ac_preproc_ok; then :
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5652 $as_echo "$CPP" >&6; }
5654 for ac_c_preproc_warn_flag
in '' yes
5656 # Use a header file that comes with gcc, so configuring glibc
5657 # with a fresh cross-compiler works.
5658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5659 # <limits.h> exists even on freestanding compilers.
5660 # On the NeXT, cc -E runs the code through the compiler's parser,
5661 # not just through cpp. "Syntax error" is here to catch this case.
5662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5665 # include <limits.h>
5667 # include <assert.h>
5671 if ac_fn_c_try_cpp
"$LINENO"; then :
5674 # Broken: fails on valid input.
5677 rm -f conftest.err conftest.
$ac_ext
5679 # OK, works on sane cases. Now check whether nonexistent headers
5680 # can be detected and how.
5681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 #include <ac_nonexistent.h>
5685 if ac_fn_c_try_cpp
"$LINENO"; then :
5686 # Broken: success on invalid input.
5689 # Passes both tests.
5693 rm -f conftest.err conftest.
$ac_ext
5696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5697 rm -f conftest.err conftest.
$ac_ext
5698 if $ac_preproc_ok; then :
5701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5703 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5704 See \`config.log' for more details." "$LINENO" 5; }
5708 ac_cpp
='$CXXCPP $CPPFLAGS'
5709 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5710 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5711 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5714 $as_echo_n "checking for inline... " >&6; }
5715 if test "${ac_cv_c_inline+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5719 for ac_kw
in inline __inline__ __inline
; do
5720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5724 static $ac_kw foo_t static_foo () {return 0; }
5725 $ac_kw foo_t foo () {return 0; }
5729 if ac_fn_cxx_try_compile
"$LINENO"; then :
5730 ac_cv_c_inline
=$ac_kw
5732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5733 test "$ac_cv_c_inline" != no
&& break
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5738 $as_echo "$ac_cv_c_inline" >&6; }
5740 case $ac_cv_c_inline in
5743 case $ac_cv_c_inline in
5745 *) ac_val
=$ac_cv_c_inline;;
5747 cat >>confdefs.h
<<_ACEOF
5749 #define inline $ac_val
5756 # Check whether --enable-largefile was given.
5757 if test "${enable_largefile+set}" = set; then :
5758 enableval
=$enable_largefile;
5761 if test "$enable_largefile" != no
; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5764 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5765 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5766 $as_echo_n "(cached) " >&6
5768 ac_cv_sys_largefile_CC
=no
5769 if test "$GCC" != yes; then
5772 # IRIX 6.2 and later do not support large files by default,
5773 # so use the C compiler's -n32 option if that helps.
5774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776 #include <sys/types.h>
5777 /* Check that off_t can represent 2**63 - 1 correctly.
5778 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5779 since some C++ compilers masquerading as C compilers
5780 incorrectly reject 9223372036854775807. */
5781 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5782 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5783 && LARGE_OFF_T % 2147483647 == 1)
5793 if ac_fn_cxx_try_compile
"$LINENO"; then :
5796 rm -f core conftest.err conftest.
$ac_objext
5798 if ac_fn_cxx_try_compile
"$LINENO"; then :
5799 ac_cv_sys_largefile_CC
=' -n32'; break
5801 rm -f core conftest.err conftest.
$ac_objext
5805 rm -f conftest.
$ac_ext
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5809 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5810 if test "$ac_cv_sys_largefile_CC" != no
; then
5811 CC
=$CC$ac_cv_sys_largefile_CC
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5815 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5816 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5817 $as_echo_n "(cached) " >&6
5820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #include <sys/types.h>
5823 /* Check that off_t can represent 2**63 - 1 correctly.
5824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5825 since some C++ compilers masquerading as C compilers
5826 incorrectly reject 9223372036854775807. */
5827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5829 && LARGE_OFF_T % 2147483647 == 1)
5839 if ac_fn_cxx_try_compile
"$LINENO"; then :
5840 ac_cv_sys_file_offset_bits
=no
; break
5842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 #define _FILE_OFFSET_BITS 64
5846 #include <sys/types.h>
5847 /* Check that off_t can represent 2**63 - 1 correctly.
5848 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5849 since some C++ compilers masquerading as C compilers
5850 incorrectly reject 9223372036854775807. */
5851 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5853 && LARGE_OFF_T % 2147483647 == 1)
5863 if ac_fn_cxx_try_compile
"$LINENO"; then :
5864 ac_cv_sys_file_offset_bits
=64; break
5866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5867 ac_cv_sys_file_offset_bits
=unknown
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5872 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5873 case $ac_cv_sys_file_offset_bits in #(
5876 cat >>confdefs.h
<<_ACEOF
5877 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5882 if test $ac_cv_sys_file_offset_bits = unknown
; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5884 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5885 if test "${ac_cv_sys_large_files+set}" = set; then :
5886 $as_echo_n "(cached) " >&6
5889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 #include <sys/types.h>
5892 /* Check that off_t can represent 2**63 - 1 correctly.
5893 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5894 since some C++ compilers masquerading as C compilers
5895 incorrectly reject 9223372036854775807. */
5896 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5897 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5898 && LARGE_OFF_T % 2147483647 == 1)
5908 if ac_fn_cxx_try_compile
"$LINENO"; then :
5909 ac_cv_sys_large_files
=no
; break
5911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #define _LARGE_FILES 1
5915 #include <sys/types.h>
5916 /* Check that off_t can represent 2**63 - 1 correctly.
5917 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5918 since some C++ compilers masquerading as C compilers
5919 incorrectly reject 9223372036854775807. */
5920 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5921 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5922 && LARGE_OFF_T % 2147483647 == 1)
5932 if ac_fn_cxx_try_compile
"$LINENO"; then :
5933 ac_cv_sys_large_files
=1; break
5935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5936 ac_cv_sys_large_files
=unknown
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5941 $as_echo "$ac_cv_sys_large_files" >&6; }
5942 case $ac_cv_sys_large_files in #(
5945 cat >>confdefs.h
<<_ACEOF
5946 #define _LARGE_FILES $ac_cv_sys_large_files
5955 # sizeof(char) is 1 by definition.
5956 # The cast to long int works around a bug in the HP C Compiler
5957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5959 # This bug is HP SR number 8606223364.
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5961 $as_echo_n "checking size of void *... " >&6; }
5962 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5965 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5968 if test "$ac_cv_type_void_p" = yes; then
5969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5971 { as_fn_set_status
77
5972 as_fn_error
"cannot compute sizeof (void *)
5973 See \`config.log' for more details." "$LINENO" 5; }; }
5975 ac_cv_sizeof_void_p
=0
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5981 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5985 cat >>confdefs.h
<<_ACEOF
5986 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5990 # The cast to long int works around a bug in the HP C Compiler
5991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5993 # This bug is HP SR number 8606223364.
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5995 $as_echo_n "checking size of short... " >&6; }
5996 if test "${ac_cv_sizeof_short+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5999 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6002 if test "$ac_cv_type_short" = yes; then
6003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005 { as_fn_set_status
77
6006 as_fn_error
"cannot compute sizeof (short)
6007 See \`config.log' for more details." "$LINENO" 5; }; }
6009 ac_cv_sizeof_short
=0
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6015 $as_echo "$ac_cv_sizeof_short" >&6; }
6019 cat >>confdefs.h
<<_ACEOF
6020 #define SIZEOF_SHORT $ac_cv_sizeof_short
6024 # The cast to long int works around a bug in the HP C Compiler
6025 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6026 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6027 # This bug is HP SR number 8606223364.
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6029 $as_echo_n "checking size of int... " >&6; }
6030 if test "${ac_cv_sizeof_int+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6033 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6036 if test "$ac_cv_type_int" = yes; then
6037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6039 { as_fn_set_status
77
6040 as_fn_error
"cannot compute sizeof (int)
6041 See \`config.log' for more details." "$LINENO" 5; }; }
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6049 $as_echo "$ac_cv_sizeof_int" >&6; }
6053 cat >>confdefs.h
<<_ACEOF
6054 #define SIZEOF_INT $ac_cv_sizeof_int
6058 # The cast to long int works around a bug in the HP C Compiler
6059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6061 # This bug is HP SR number 8606223364.
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6063 $as_echo_n "checking size of long... " >&6; }
6064 if test "${ac_cv_sizeof_long+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6067 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6070 if test "$ac_cv_type_long" = yes; then
6071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6073 { as_fn_set_status
77
6074 as_fn_error
"cannot compute sizeof (long)
6075 See \`config.log' for more details." "$LINENO" 5; }; }
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6083 $as_echo "$ac_cv_sizeof_long" >&6; }
6087 cat >>confdefs.h
<<_ACEOF
6088 #define SIZEOF_LONG $ac_cv_sizeof_long
6092 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6093 if test "x$ac_cv_type_long_long" = x
""yes; then :
6095 cat >>confdefs.h
<<_ACEOF
6096 #define HAVE_LONG_LONG 1
6099 # The cast to long int works around a bug in the HP C Compiler
6100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6102 # This bug is HP SR number 8606223364.
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6104 $as_echo_n "checking size of long long... " >&6; }
6105 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6106 $as_echo_n "(cached) " >&6
6108 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6111 if test "$ac_cv_type_long_long" = yes; then
6112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6114 { as_fn_set_status
77
6115 as_fn_error
"cannot compute sizeof (long long)
6116 See \`config.log' for more details." "$LINENO" 5; }; }
6118 ac_cv_sizeof_long_long
=0
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6124 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6128 cat >>confdefs.h
<<_ACEOF
6129 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6135 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6136 case $ac_cv_c_int8_t in #(
6140 cat >>confdefs.h
<<_ACEOF
6141 #define int8_t $ac_cv_c_int8_t
6146 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6147 case $ac_cv_c_int16_t in #(
6151 cat >>confdefs.h
<<_ACEOF
6152 #define int16_t $ac_cv_c_int16_t
6157 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6158 case $ac_cv_c_int32_t in #(
6162 cat >>confdefs.h
<<_ACEOF
6163 #define int32_t $ac_cv_c_int32_t
6168 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6169 case $ac_cv_c_int64_t in #(
6173 cat >>confdefs.h
<<_ACEOF
6174 #define int64_t $ac_cv_c_int64_t
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6181 $as_echo_n "checking for long long int... " >&6; }
6182 if test "${ac_cv_type_long_long_int+set}" = set; then :
6183 $as_echo_n "(cached) " >&6
6185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6188 /* For now, do not test the preprocessor; as of 2007 there are too many
6189 implementations with broken preprocessors. Perhaps this can
6190 be revisited in 2012. In the meantime, code should not expect
6191 #if to work with literals wider than 32 bits. */
6192 /* Test literals. */
6193 long long int ll = 9223372036854775807ll;
6194 long long int nll = -9223372036854775807LL;
6195 unsigned long long int ull = 18446744073709551615ULL;
6196 /* Test constant expressions. */
6197 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6199 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6205 /* Test availability of runtime routines for shift and division. */
6206 long long int llmax = 9223372036854775807ll;
6207 unsigned long long int ullmax = 18446744073709551615ull;
6208 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6209 | (llmax / ll) | (llmax % ll)
6210 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6211 | (ullmax / ull) | (ullmax % ull));
6217 if ac_fn_cxx_try_link
"$LINENO"; then :
6218 if test "$cross_compiling" = yes; then :
6219 ac_cv_type_long_long_int
=yes
6221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6226 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6227 # define LLONG_MAX (HALF - 1 + HALF)
6232 long long int n = 1;
6236 long long int m = n << i;
6239 if (LLONG_MAX / 2 < m)
6247 if ac_fn_cxx_try_run
"$LINENO"; then :
6248 ac_cv_type_long_long_int
=yes
6250 ac_cv_type_long_long_int
=no
6252 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6253 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6257 ac_cv_type_long_long_int
=no
6259 rm -f core conftest.err conftest.
$ac_objext \
6260 conftest
$ac_exeext conftest.
$ac_ext
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6263 $as_echo "$ac_cv_type_long_long_int" >&6; }
6264 if test $ac_cv_type_long_long_int = yes; then
6266 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6272 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6273 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6275 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6278 test $ac_cv_type_long_long_int = yes \
6279 && ac_type
='long long int' \
6280 || ac_type
='long int'
6282 cat >>confdefs.h
<<_ACEOF
6283 #define intmax_t $ac_type
6290 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6291 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6293 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6296 for ac_type
in 'int' 'long int' 'long long int'; do
6297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 $ac_includes_default
6303 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6310 if ac_fn_cxx_try_compile
"$LINENO"; then :
6312 cat >>confdefs.h
<<_ACEOF
6313 #define intptr_t $ac_type
6318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6319 test -z "$ac_type" && break
6324 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6325 case $ac_cv_c_uint8_t in #(
6329 $as_echo "#define _UINT8_T 1" >>confdefs.h
6332 cat >>confdefs.h
<<_ACEOF
6333 #define uint8_t $ac_cv_c_uint8_t
6338 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6339 case $ac_cv_c_uint16_t in #(
6344 cat >>confdefs.h
<<_ACEOF
6345 #define uint16_t $ac_cv_c_uint16_t
6350 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6351 case $ac_cv_c_uint32_t in #(
6355 $as_echo "#define _UINT32_T 1" >>confdefs.h
6358 cat >>confdefs.h
<<_ACEOF
6359 #define uint32_t $ac_cv_c_uint32_t
6364 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6365 case $ac_cv_c_uint64_t in #(
6369 $as_echo "#define _UINT64_T 1" >>confdefs.h
6372 cat >>confdefs.h
<<_ACEOF
6373 #define uint64_t $ac_cv_c_uint64_t
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6380 $as_echo_n "checking for unsigned long long int... " >&6; }
6381 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6387 /* For now, do not test the preprocessor; as of 2007 there are too many
6388 implementations with broken preprocessors. Perhaps this can
6389 be revisited in 2012. In the meantime, code should not expect
6390 #if to work with literals wider than 32 bits. */
6391 /* Test literals. */
6392 long long int ll = 9223372036854775807ll;
6393 long long int nll = -9223372036854775807LL;
6394 unsigned long long int ull = 18446744073709551615ULL;
6395 /* Test constant expressions. */
6396 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6398 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6404 /* Test availability of runtime routines for shift and division. */
6405 long long int llmax = 9223372036854775807ll;
6406 unsigned long long int ullmax = 18446744073709551615ull;
6407 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6408 | (llmax / ll) | (llmax % ll)
6409 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6410 | (ullmax / ull) | (ullmax % ull));
6416 if ac_fn_cxx_try_link
"$LINENO"; then :
6417 ac_cv_type_unsigned_long_long_int
=yes
6419 ac_cv_type_unsigned_long_long_int
=no
6421 rm -f core conftest.err conftest.
$ac_objext \
6422 conftest
$ac_exeext conftest.
$ac_ext
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6425 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6426 if test $ac_cv_type_unsigned_long_long_int = yes; then
6428 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6434 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6435 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6437 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6440 test $ac_cv_type_unsigned_long_long_int = yes \
6441 && ac_type
='unsigned long long int' \
6442 || ac_type
='unsigned long int'
6444 cat >>confdefs.h
<<_ACEOF
6445 #define uintmax_t $ac_type
6452 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6453 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6455 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6458 for ac_type
in 'unsigned int' 'unsigned long int' \
6459 'unsigned long long int'; do
6460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 $ac_includes_default
6466 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6473 if ac_fn_cxx_try_compile
"$LINENO"; then :
6475 cat >>confdefs.h
<<_ACEOF
6476 #define uintptr_t $ac_type
6481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6482 test -z "$ac_type" && break
6499 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6500 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6503 # check what underlying integer type int64_t uses
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6505 $as_echo_n "checking for int64_t underlying type... " >&6; }
6506 if test "${ac_cv_int64_t_type+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6513 #ifdef HAVE_STDINT_H
6516 template <typename T> struct X { };
6518 struct X<long> { typedef long t; };
6528 if ac_fn_cxx_try_compile
"$LINENO"; then :
6529 ac_cv_int64_t_type
=long
6531 ac_cv_int64_t_type
="long long"
6533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6536 $as_echo "$ac_cv_int64_t_type" >&6; }
6537 if test "$ac_cv_int64_t_type" = "long"; then
6539 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6543 /* end confdefs.h. */
6545 #ifdef HAVE_STDINT_H
6548 template <typename T> struct X { };
6550 struct X<long long> { typedef long long t; };
6560 if ac_fn_cxx_try_compile
"$LINENO"; then :
6563 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6569 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6570 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6571 $as_echo_n "(cached) " >&6
6574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6582 int a, b; std::swap(a,b);
6587 if ac_fn_cxx_try_compile
"$LINENO"; then :
6588 ac_cv_std_swap_in_utility
=yes
6590 ac_cv_std_swap_in_utility
=no
6592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6595 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6596 if test $ac_cv_std_swap_in_utility = yes; then
6598 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6602 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6603 # If the host compiler is affected by the bug, and we build with optimization
6604 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6605 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6606 # Since there is no reliable feature check for the presence of this bug,
6607 # we simply use a GCC version number check. (This should never trigger for
6608 # stages 2 or 3 of a native bootstrap.)
6610 if test "$GCC" = yes; then
6611 saved_CXXFLAGS
="$CXXFLAGS"
6613 # The following test compilation will succeed if and only if $CXX accepts
6614 # -fno-strict-aliasing *and* is older than GCC 4.3.
6615 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6617 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6621 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6622 #error compiler not affected by placement new aliasing bug
6626 if ac_fn_cxx_try_compile
"$LINENO"; then :
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6628 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6635 CXXFLAGS
="$saved_CXXFLAGS"
6641 # ---------------------
6642 # Warnings and checking
6643 # ---------------------
6645 # Check $CC warning features (if it's GCC).
6646 # We want to use -pedantic, but we don't want warnings about
6649 # * overlong strings
6650 # * C++11 narrowing conversions in { }
6651 # So, we only use -pedantic if we can disable those warnings.
6653 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6654 # Check whether --enable-build-format-warnings was given.
6655 if test "${enable_build_format_warnings+set}" = set; then :
6656 enableval
=$enable_build_format_warnings;
6658 enable_build_format_warnings
=yes
6661 if test $enable_build_format_warnings = no
; then :
6667 ac_cpp
='$CXXCPP $CPPFLAGS'
6668 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6669 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6670 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6673 save_CXXFLAGS
="$CXXFLAGS"
6674 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6675 # Do the check with the no- prefix removed since gcc silently
6676 # accepts any -Wno-* option on purpose
6677 case $real_option in
6678 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6679 *) option
=$real_option ;;
6681 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6684 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6685 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6686 $as_echo_n "(cached) " >&6
6689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6700 if ac_fn_cxx_try_compile
"$LINENO"; then :
6701 eval "$as_acx_Woption=yes"
6703 eval "$as_acx_Woption=no"
6705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6708 eval ac_res
=\$
$as_acx_Woption
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6710 $as_echo "$ac_res" >&6; }
6711 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6712 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6715 CXXFLAGS
="$save_CXXFLAGS"
6717 ac_cpp
='$CXXCPP $CPPFLAGS'
6718 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6725 ac_cpp
='$CPP $CPPFLAGS'
6726 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6727 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6728 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6731 save_CFLAGS
="$CFLAGS"
6732 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6733 # Do the check with the no- prefix removed since gcc silently
6734 # accepts any -Wno-* option on purpose
6735 case $real_option in
6736 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6737 *) option
=$real_option ;;
6739 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6742 $as_echo_n "checking whether $CC supports $option... " >&6; }
6743 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6744 $as_echo_n "(cached) " >&6
6747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6758 if ac_fn_c_try_compile
"$LINENO"; then :
6759 eval "$as_acx_Woption=yes"
6761 eval "$as_acx_Woption=no"
6763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6766 eval ac_res
=\$
$as_acx_Woption
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6768 $as_echo "$ac_res" >&6; }
6769 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6770 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6773 CFLAGS
="$save_CFLAGS"
6775 ac_cpp
='$CXXCPP $CPPFLAGS'
6776 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6777 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6778 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
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
6788 save_CXXFLAGS
="$CXXFLAGS"
6789 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6790 # Do the check with the no- prefix removed since gcc silently
6791 # accepts any -Wno-* option on purpose
6792 case $real_option in
6793 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6794 *) option
=$real_option ;;
6796 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6799 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6800 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6801 $as_echo_n "(cached) " >&6
6804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6815 if ac_fn_cxx_try_compile
"$LINENO"; then :
6816 eval "$as_acx_Woption=yes"
6818 eval "$as_acx_Woption=no"
6820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6823 eval ac_res
=\$
$as_acx_Woption
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6825 $as_echo "$ac_res" >&6; }
6826 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6827 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6830 CXXFLAGS
="$save_CXXFLAGS"
6832 ac_cpp
='$CXXCPP $CPPFLAGS'
6833 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6839 ac_cpp
='$CPP $CPPFLAGS'
6840 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6845 save_CFLAGS
="$CFLAGS"
6846 for real_option
in -Wold-style-definition -Wc++-compat; do
6847 # Do the check with the no- prefix removed since gcc silently
6848 # accepts any -Wno-* option on purpose
6849 case $real_option in
6850 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6851 *) option
=$real_option ;;
6853 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6856 $as_echo_n "checking whether $CC supports $option... " >&6; }
6857 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6858 $as_echo_n "(cached) " >&6
6861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6872 if ac_fn_c_try_compile
"$LINENO"; then :
6873 eval "$as_acx_Woption=yes"
6875 eval "$as_acx_Woption=no"
6877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6880 eval ac_res
=\$
$as_acx_Woption
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6882 $as_echo "$ac_res" >&6; }
6883 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6884 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6887 CFLAGS
="$save_CFLAGS"
6889 ac_cpp
='$CXXCPP $CPPFLAGS'
6890 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
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
6901 # Do the check with the no- prefix removed from the warning options
6902 # since gcc silently accepts any -Wno-* option on purpose
6903 if test "$GXX" = yes; then :
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6905 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6906 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
6909 save_CXXFLAGS
="$CXXFLAGS"
6910 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6922 if ac_fn_cxx_try_compile
"$LINENO"; then :
6923 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6925 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6928 CXXFLAGS
="$save_CXXFLAGS"
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6931 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6932 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6933 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6938 ac_cpp
='$CXXCPP $CPPFLAGS'
6939 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6940 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6941 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
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
6950 # Check whether --enable-werror-always was given.
6951 if test "${enable_werror_always+set}" = set; then :
6952 enableval
=$enable_werror_always;
6954 enable_werror_always
=no
6957 if test $enable_werror_always = yes; then :
6958 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6962 ac_cpp
='$CXXCPP $CPPFLAGS'
6963 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6969 # The above macros do nothing if the compiler is not GCC. However, the
6970 # Makefile has more goo to add other flags, so these variables are used
6971 # to enable warnings only for GCC.
6974 if test "x$GCC" = "xyes"; then
6975 warn_cflags
='$(GCC_WARN_CFLAGS)'
6976 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6981 # Disable exceptions and RTTI if building with g++
6983 ac_cpp
='$CPP $CPPFLAGS'
6984 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6989 save_CFLAGS
="$CFLAGS"
6990 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6991 # Do the check with the no- prefix removed since gcc silently
6992 # accepts any -Wno-* option on purpose
6993 case $real_option in
6994 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6995 *) option
=$real_option ;;
6997 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7000 $as_echo_n "checking whether $CC supports $option... " >&6; }
7001 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7002 $as_echo_n "(cached) " >&6
7005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7016 if ac_fn_c_try_compile
"$LINENO"; then :
7017 eval "$as_acx_Woption=yes"
7019 eval "$as_acx_Woption=no"
7021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7024 eval ac_res
=\$
$as_acx_Woption
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7026 $as_echo "$ac_res" >&6; }
7027 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7028 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7031 CFLAGS
="$save_CFLAGS"
7033 ac_cpp
='$CXXCPP $CPPFLAGS'
7034 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7035 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7040 # Enable expensive internal checks
7042 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7046 # Check whether --enable-checking was given.
7047 if test "${enable_checking+set}" = set; then :
7048 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7051 # Determine the default checks.
7052 if test x
$is_release = x
; then
7053 ac_checking_flags
=yes,extra
7055 ac_checking_flags
=release
7059 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7060 for check
in release
$ac_checking_flags
7063 # these set all the flags to specific states
7064 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7065 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7066 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7067 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7068 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7069 ac_types_checking
=1 ;;
7070 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7071 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7072 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7073 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7074 ac_tree_checking
= ; ac_valgrind_checking
= ;
7075 ac_types_checking
= ;;
7076 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7077 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7078 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7079 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7080 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7081 ac_types_checking
=1 ;;
7082 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7083 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7084 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7085 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7086 ac_tree_checking
= ; ac_valgrind_checking
= ;
7087 ac_types_checking
= ;;
7088 # these enable particular checks
7089 assert
) ac_assert_checking
=1 ;;
7090 df
) ac_df_checking
=1 ;;
7091 extra
) ac_extra_checking
=1 ;;
7092 fold) ac_fold_checking
=1 ;;
7093 gc
) ac_gc_checking
=1 ;;
7094 gcac
) ac_gc_always_collect
=1 ;;
7095 gimple
) ac_gimple_checking
=1 ;;
7096 misc
) ac_checking
=1 ;;
7097 rtl
) ac_rtl_checking
=1 ;;
7098 rtlflag
) ac_rtlflag_checking
=1 ;;
7099 runtime
) ac_runtime_checking
=1 ;;
7100 tree
) ac_tree_checking
=1 ;;
7101 types
) ac_types_checking
=1 ;;
7102 valgrind
) ac_valgrind_checking
=1 ;;
7103 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7109 if test x
$ac_checking != x
; then
7111 $as_echo "#define CHECKING_P 1" >>confdefs.h
7113 nocommon_flag
=-fno-common
7115 $as_echo "#define CHECKING_P 0" >>confdefs.h
7119 if test x
$ac_extra_checking != x
; then
7121 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7124 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7127 if test x
$ac_df_checking != x
; then
7129 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7132 if test x
$ac_assert_checking != x
; then
7134 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7137 if test x
$ac_gimple_checking != x
; then
7139 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7143 if test x
$ac_runtime_checking != x
; then
7145 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7148 if test x
$ac_tree_checking != x
; then
7150 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7154 if test x
$ac_types_checking != x
; then
7156 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7160 if test x
$ac_rtl_checking != x
; then
7162 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7165 if test x
$ac_rtlflag_checking != x
; then
7167 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7170 if test x
$ac_gc_checking != x
; then
7172 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7175 if test x
$ac_gc_always_collect != x
; then
7177 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7180 if test x
$ac_fold_checking != x
; then
7182 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7185 valgrind_path_defines
=
7188 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7189 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7197 # It is certainly possible that there's valgrind but no valgrind.h.
7198 # GCC relies on making annotations so we must have both.
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7200 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 #include <valgrind/memcheck.h>
7204 #ifndef VALGRIND_DISCARD
7205 #error VALGRIND_DISCARD not defined
7208 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7209 gcc_cv_header_valgrind_memcheck_h
=yes
7211 gcc_cv_header_valgrind_memcheck_h
=no
7213 rm -f conftest.err conftest.
$ac_ext
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7215 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7217 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220 #include <memcheck.h>
7221 #ifndef VALGRIND_DISCARD
7222 #error VALGRIND_DISCARD not defined
7225 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7226 gcc_cv_header_memcheck_h
=yes
7228 gcc_cv_header_memcheck_h
=no
7230 rm -f conftest.err conftest.
$ac_ext
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7232 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7233 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7235 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7238 if test $gcc_cv_header_memcheck_h = yes; then
7240 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7244 if test x
$ac_valgrind_checking != x
; then
7246 # Prepare PATH_SEPARATOR.
7247 # The user is always right.
7248 if test "${PATH_SEPARATOR+set}" != set; then
7249 echo "#! /bin/sh" >conf$$.sh
7250 echo "exit 0" >>conf$$.sh
7252 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7260 # Find out how to test for executable files. Don't use a zero-byte file,
7261 # as systems may use methods other than mode bits to determine executability.
7262 cat >conf$$.
file <<_ASEOF
7266 chmod +x conf$$.
file
7267 if test -x conf$$.
file >/dev
/null
2>&1; then
7268 ac_executable_p
="test -x"
7270 ac_executable_p
="test -f"
7274 # Extract the first word of "valgrind", so it can be a program name with args.
7275 set dummy valgrind
; ac_word
=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7279 $as_echo_n "(cached) " >&6
7281 case "$valgrind_path" in
7283 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7286 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7287 for ac_dir
in $PATH; do
7289 test -z "$ac_dir" && ac_dir
=.
7290 for ac_exec_ext
in '' $ac_executable_extensions; do
7291 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7292 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7293 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7303 valgrind_path
="$ac_cv_path_valgrind_path"
7304 if test -n "$valgrind_path"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7306 $as_echo "$valgrind_path" >&6; }
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7312 if test "x$valgrind_path" = "x" \
7313 ||
(test $have_valgrind_h = no \
7314 && test $gcc_cv_header_memcheck_h = no \
7315 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7316 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7318 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7319 valgrind_command
="$valgrind_path -q"
7321 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7327 # Enable code coverage collection
7328 # Check whether --enable-coverage was given.
7329 if test "${enable_coverage+set}" = set; then :
7330 enableval
=$enable_coverage; case "${enableval}" in
7332 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7335 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7338 # a.k.a. --disable-coverage
7342 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7351 # Check whether --enable-gather-detailed-mem-stats was given.
7352 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7353 enableval
=$enable_gather_detailed_mem_stats;
7355 enable_gather_detailed_mem_stats
=no
7358 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7360 cat >>confdefs.h
<<_ACEOF
7361 #define GATHER_STATISTICS $gather_stats
7365 # Check whether --enable-valgrind-annotations was given.
7366 if test "${enable_valgrind_annotations+set}" = set; then :
7367 enableval
=$enable_valgrind_annotations;
7369 enable_valgrind_annotations
=no
7372 if test x
$enable_valgrind_annotations != xno \
7373 ||
test x
$ac_valgrind_checking != x
; then
7374 if (test $have_valgrind_h = no \
7375 && test $gcc_cv_header_memcheck_h = no \
7376 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7377 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7380 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7384 # -------------------------------
7385 # Miscenalleous configure options
7386 # -------------------------------
7390 # Check whether --with-stabs was given.
7391 if test "${with_stabs+set}" = set; then :
7392 withval
=$with_stabs; stabs
="$with_stabs"
7398 # Determine whether or not multilibs are enabled.
7399 # Check whether --enable-multilib was given.
7400 if test "${enable_multilib+set}" = set; then :
7401 enableval
=$enable_multilib;
7408 # Determine whether or not multiarch is enabled.
7409 # Check whether --enable-multiarch was given.
7410 if test "${enable_multiarch+set}" = set; then :
7411 enableval
=$enable_multiarch; case "${enableval}" in
7412 yes|no|auto
) enable_multiarch
=$enableval;;
7413 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7416 enable_multiarch
=auto
7419 if test x
${enable_multiarch} = xauto
; then
7420 if test x
${with_native_system_header_dir} != x
; then
7421 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7424 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7425 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7430 $as_echo_n "checking for multiarch configuration... " >&6; }
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7433 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7435 # needed for setting the multiarch name for soft-float/hard-float ABIs
7439 # Enable __cxa_atexit for C++.
7440 # Check whether --enable-__cxa_atexit was given.
7441 if test "${enable___cxa_atexit+set}" = set; then :
7442 enableval
=$enable___cxa_atexit;
7446 # Enable C extension for decimal float if target supports it.
7448 # Check whether --enable-decimal-float was given.
7449 if test "${enable_decimal_float+set}" = set; then :
7450 enableval
=$enable_decimal_float;
7451 case $enable_decimal_float in
7452 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7453 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7454 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7460 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7461 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7462 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7463 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7464 enable_decimal_float
=yes
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7468 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7469 enable_decimal_float
=no
7476 # x86's use BID format instead of DPD
7477 case x
$enable_decimal_float in
7480 i?
86*-*-* | x86_64
*-*-*)
7481 enable_decimal_float
=bid
7484 enable_decimal_float
=dpd
7487 default_decimal_float
=$enable_decimal_float
7490 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7491 # dependency on libdecnumber.
7492 default_decimal_float
=dpd
7499 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7501 cat >>confdefs.h
<<_ACEOF
7502 #define ENABLE_DECIMAL_FLOAT $dfp
7506 # Use default_decimal_float for dependency.
7507 enable_decimal_float
=$default_decimal_float
7509 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7511 cat >>confdefs.h
<<_ACEOF
7512 #define ENABLE_DECIMAL_BID_FORMAT $bid
7516 # Enable C extension for fixed-point arithmetic.
7517 # Check whether --enable-fixed-point was given.
7518 if test "${enable_fixed_point+set}" = set; then :
7519 enableval
=$enable_fixed_point;
7524 enable_fixed_point
=yes
7528 enable_fixed_point
=yes
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7532 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7533 enable_fixed_point
=no
7541 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7543 cat >>confdefs.h
<<_ACEOF
7544 #define ENABLE_FIXED_POINT $fixedpoint
7549 # Pass with no value to take the default
7550 # Pass with a value to specify a thread package
7551 # Check whether --enable-threads was given.
7552 if test "${enable_threads+set}" = set; then :
7553 enableval
=$enable_threads;
7559 # Check whether --enable-tls was given.
7560 if test "${enable_tls+set}" = set; then :
7561 enableval
=$enable_tls;
7564 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7565 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7573 # Check whether --enable-vtable-verify was given.
7574 if test "${enable_vtable_verify+set}" = set; then :
7575 enableval
=$enable_vtable_verify;
7577 enable_vtable_verify
=no
7580 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7582 cat >>confdefs.h
<<_ACEOF
7583 #define ENABLE_VTABLE_VERIFY $vtable_verify
7587 # Check whether --enable-objc-gc was given.
7588 if test "${enable_objc_gc+set}" = set; then :
7589 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7600 # Check whether --with-dwarf2 was given.
7601 if test "${with_dwarf2+set}" = set; then :
7602 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7608 # Check whether --enable-shared was given.
7609 if test "${enable_shared+set}" = set; then :
7610 enableval
=$enable_shared;
7611 case $enable_shared in
7615 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7616 for pkg
in $enableval; do
7617 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7632 # Check whether --with-specs was given.
7633 if test "${with_specs+set}" = set; then :
7634 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7644 # Check whether --with-pkgversion was given.
7645 if test "${with_pkgversion+set}" = set; then :
7646 withval
=$with_pkgversion; case "$withval" in
7647 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7649 *) PKGVERSION
="($withval) " ;;
7660 # Check whether --with-bugurl was given.
7661 if test "${with_bugurl+set}" = set; then :
7662 withval
=$with_bugurl; case "$withval" in
7663 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7666 *) BUGURL
="$withval"
7670 BUGURL
="https://gcc.gnu.org/bugs/"
7680 REPORT_BUGS_TO
="<$BUGURL>"
7681 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7688 # Sanity check enable_languages in case someone does not run the toplevel
7689 # configure # script.
7690 # Check whether --enable-languages was given.
7691 if test "${enable_languages+set}" = set; then :
7692 enableval
=$enable_languages; case ,${enable_languages}, in
7694 # go safe -- we cannot be much sure without the toplevel
7696 # analysis of which target libs are present and usable
7700 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7705 enable_languages
=c
,${enable_languages}
7713 if test x
"$enable_as_accelerator_for" != x
; then
7715 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7717 enable_as_accelerator
=yes
7720 # In this case we expect offload compiler to be built as native, so we
7721 # need to rename the driver to avoid clashes with host's drivers.
7722 program_transform_name
="s&^&${target}-&" ;;
7724 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7725 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7726 accel_dir_suffix
=/accel
/${target_noncanonical}
7727 real_target_noncanonical
=${enable_as_accelerator_for}
7733 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7734 tgt
=`echo $tgt | sed 's/=.*//'`
7736 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7742 if test x
"$offload_targets" = x
; then
7743 offload_targets
=$tgt
7745 offload_targets
="$offload_targets,$tgt"
7749 cat >>confdefs.h
<<_ACEOF
7750 #define OFFLOAD_TARGETS "$offload_targets"
7753 if test x
"$enable_offloading" != x
; then
7755 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7759 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7763 if test x
"$enable_hsa" = x1
; then
7765 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7770 # Check whether --with-multilib-list was given.
7771 if test "${with_multilib_list+set}" = set; then :
7772 withval
=$with_multilib_list; :
7774 with_multilib_list
=default
7778 # -------------------------
7779 # Checks for other programs
7780 # -------------------------
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7783 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7785 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7786 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7787 $as_echo_n "(cached) " >&6
7789 cat >conftest.
make <<\_ACEOF
7792 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7794 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7795 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7797 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7799 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7803 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7805 $as_echo "yes" >&6; }
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7810 SET_MAKE
="MAKE=${MAKE-make}"
7814 # Find some useful tools
7815 for ac_prog
in gawk mawk nawk
awk
7817 # Extract the first word of "$ac_prog", so it can be a program name with args.
7818 set dummy
$ac_prog; ac_word
=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_AWK+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7824 if test -n "$AWK"; then
7825 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7831 test -z "$as_dir" && as_dir
=.
7832 for ac_exec_ext
in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_AWK
="$ac_prog"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 if test -n "$AWK"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7847 $as_echo "$AWK" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7854 test -n "$AWK" && break
7857 # We need awk to create options.c and options.h.
7858 # Bail out if it's missing.
7860 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7864 $as_echo_n "checking whether ln -s works... " >&6; }
7865 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
7868 rm -f conftestdata_t
7869 echo >conftestdata_f
7870 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7872 gcc_cv_prog_LN_S
="ln -s"
7874 if ln conftestdata_f conftestdata_t
2>/dev
/null
7878 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7880 gcc_cv_prog_LN_S
="cp -p"
7886 rm -f conftestdata_f conftestdata_t
7889 LN_S
="$gcc_cv_prog_LN_S"
7890 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7892 $as_echo "yes" >&6; }
7894 if test "$gcc_cv_prog_LN_S" = "ln"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7896 $as_echo "no, using ln" >&6; }
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7899 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7904 $as_echo_n "checking whether ln works... " >&6; }
7905 if test "${acx_cv_prog_LN+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7908 rm -f conftestdata_t
7909 echo >conftestdata_f
7910 if ln conftestdata_f conftestdata_t
2>/dev
/null
7916 rm -f conftestdata_f conftestdata_t
7919 if test $acx_cv_prog_LN = no
; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7922 $as_echo "no, using $LN" >&6; }
7924 LN
="$acx_cv_prog_LN"
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7926 $as_echo "yes" >&6; }
7929 if test -n "$ac_tool_prefix"; then
7930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7931 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7937 if test -n "$RANLIB"; then
7938 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7944 test -z "$as_dir" && as_dir
=.
7945 for ac_exec_ext
in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 RANLIB
=$ac_cv_prog_RANLIB
7958 if test -n "$RANLIB"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7960 $as_echo "$RANLIB" >&6; }
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7968 if test -z "$ac_cv_prog_RANLIB"; then
7969 ac_ct_RANLIB
=$RANLIB
7970 # Extract the first word of "ranlib", so it can be a program name with args.
7971 set dummy ranlib
; ac_word
=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
7977 if test -n "$ac_ct_RANLIB"; then
7978 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir
=.
7985 for ac_exec_ext
in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7998 if test -n "$ac_ct_RANLIB"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8000 $as_echo "$ac_ct_RANLIB" >&6; }
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8006 if test "x$ac_ct_RANLIB" = x
; then
8009 case $cross_compiling:$ac_tool_warned in
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8013 ac_tool_warned
=yes ;;
8015 RANLIB
=$ac_ct_RANLIB
8018 RANLIB
="$ac_cv_prog_RANLIB"
8024 # Find a good install program. We prefer a C program (faster),
8025 # so one script is as good as another. But avoid the broken or
8026 # incompatible versions:
8027 # SysV /etc/install, /usr/sbin/install
8028 # SunOS /usr/etc/install
8029 # IRIX /sbin/install
8031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8033 # ./install, which can be erroneously created by make from ./install.sh.
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8035 $as_echo_n "checking for a BSD compatible install... " >&6; }
8036 if test -z "$INSTALL"; then
8037 if test "${ac_cv_path_install+set}" = set; then :
8038 $as_echo_n "(cached) " >&6
8040 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8041 for ac_dir
in $PATH; do
8042 # Account for people who put trailing slashes in PATH elements.
8044 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8046 # OSF1 and SCO ODT 3.0 have their own names for install.
8047 for ac_prog
in ginstall scoinst
install; do
8048 if test -f $ac_dir/$ac_prog; then
8049 if test $ac_prog = install &&
8050 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8051 # AIX install. It has an incompatible calling convention.
8052 # OSF/1 installbsd also uses dspmsg, but is usable.
8055 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8066 if test "${ac_cv_path_install+set}" = set; then
8067 INSTALL
="$ac_cv_path_install"
8069 # As a last resort, use the slow shell script. We don't cache a
8070 # path for INSTALL within a source directory, because that will
8071 # break other packages using the cache if that directory is
8072 # removed, or if the path is relative.
8073 INSTALL
="$ac_install_sh"
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8077 $as_echo "$INSTALL" >&6; }
8079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8080 # It thinks the first close brace ends the variable substitution.
8081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8083 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8086 # See if cmp has --ignore-initial.
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8088 $as_echo_n "checking for cmp's capabilities... " >&6; }
8089 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8094 gcc_cv_prog_cmp_skip
=slowcompare
8095 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8096 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8099 gcc_cv_prog_cmp_skip
=gnucompare
8102 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8103 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8104 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8107 gcc_cv_prog_cmp_skip
=fastcompare
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8115 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8116 make_compare_target
=$gcc_cv_prog_cmp_skip
8120 # See if we have the mktemp command.
8121 # Extract the first word of "mktemp", so it can be a program name with args.
8122 set dummy mktemp
; ac_word
=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8126 $as_echo_n "(cached) " >&6
8128 if test -n "$have_mktemp_command"; then
8129 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8135 test -z "$as_dir" && as_dir
=.
8136 for ac_exec_ext
in '' $ac_executable_extensions; do
8137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8138 ac_cv_prog_have_mktemp_command
="yes"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8149 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8150 if test -n "$have_mktemp_command"; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8152 $as_echo "$have_mktemp_command" >&6; }
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8160 # See if makeinfo has been installed and is modern enough
8161 # that we can use it.
8163 # Extract the first word of "makeinfo", so it can be a program name with args.
8164 set dummy makeinfo
; ac_word
=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8170 if test -n "$MAKEINFO"; then
8171 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8177 test -z "$as_dir" && as_dir
=.
8178 for ac_exec_ext
in '' $ac_executable_extensions; do
8179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8180 ac_cv_prog_MAKEINFO
="makeinfo"
8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 MAKEINFO
=$ac_cv_prog_MAKEINFO
8191 if test -n "$MAKEINFO"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8193 $as_echo "$MAKEINFO" >&6; }
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8200 if test -n "$MAKEINFO"; then
8201 # Found it, now check the version.
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8203 $as_echo_n "checking for modern makeinfo... " >&6; }
8204 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8207 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8208 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8210 case $ac_prog_version in
8211 '') gcc_cv_prog_makeinfo_modern
=no
;;
8212 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8213 *) gcc_cv_prog_makeinfo_modern
=no
;;
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8218 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8220 gcc_cv_prog_makeinfo_modern
=no
8222 if test $gcc_cv_prog_makeinfo_modern = no
; then
8223 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8226 if test $gcc_cv_prog_makeinfo_modern = no
; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8228 *** Makeinfo is missing or too old.
8229 *** Info documentation will not be built." >&5
8230 $as_echo "$as_me: WARNING:
8231 *** Makeinfo is missing or too old.
8232 *** Info documentation will not be built." >&2;}
8239 # Is pod2man recent enough to regenerate manpages?
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8241 $as_echo_n "checking for recent Pod::Man... " >&6; }
8242 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8244 $as_echo "yes" >&6; }
8245 GENERATED_MANPAGES
=generated-manpages
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8253 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8258 # Extract the first word of "$ac_prog", so it can be a program name with args.
8259 set dummy
$ac_prog; ac_word
=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if test "${ac_cv_prog_FLEX+set}" = set; then :
8263 $as_echo_n "(cached) " >&6
8265 if test -n "$FLEX"; then
8266 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8272 test -z "$as_dir" && as_dir
=.
8273 for ac_exec_ext
in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 ac_cv_prog_FLEX
="$ac_prog"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 FLEX
=$ac_cv_prog_FLEX
8286 if test -n "$FLEX"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8288 $as_echo "$FLEX" >&6; }
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8295 test -n "$FLEX" && break
8297 test -n "$FLEX" || FLEX
="$MISSING flex"
8301 for ac_prog
in bison
8303 # Extract the first word of "$ac_prog", so it can be a program name with args.
8304 set dummy
$ac_prog; ac_word
=$2
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 $as_echo_n "checking for $ac_word... " >&6; }
8307 if test "${ac_cv_prog_BISON+set}" = set; then :
8308 $as_echo_n "(cached) " >&6
8310 if test -n "$BISON"; then
8311 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8317 test -z "$as_dir" && as_dir
=.
8318 for ac_exec_ext
in '' $ac_executable_extensions; do
8319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8320 ac_cv_prog_BISON
="$ac_prog"
8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 BISON
=$ac_cv_prog_BISON
8331 if test -n "$BISON"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8333 $as_echo "$BISON" >&6; }
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8340 test -n "$BISON" && break
8342 test -n "$BISON" || BISON
="$MISSING bison"
8345 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8346 # check for build == host before using them.
8349 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8350 && test -d ..
/binutils
; then
8351 NM
='${objdir}/../binutils/nm-new'
8353 # Extract the first word of "nm", so it can be a program name with args.
8354 set dummy nm
; ac_word
=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if test "${ac_cv_prog_NM+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8360 if test -n "$NM"; then
8361 ac_cv_prog_NM
="$NM" # Let the user override the test.
8363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8367 test -z "$as_dir" && as_dir
=.
8368 for ac_exec_ext
in '' $ac_executable_extensions; do
8369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8382 if test -n "$NM"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8384 $as_echo "$NM" >&6; }
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8394 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8395 && test -d ..
/binutils
; then
8396 AR
='${objdir}/../binutils/ar'
8398 # Extract the first word of "ar", so it can be a program name with args.
8399 set dummy
ar; ac_word
=$2
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8401 $as_echo_n "checking for $ac_word... " >&6; }
8402 if test "${ac_cv_prog_AR+set}" = set; then :
8403 $as_echo_n "(cached) " >&6
8405 if test -n "$AR"; then
8406 ac_cv_prog_AR
="$AR" # Let the user override the test.
8408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8412 test -z "$as_dir" && as_dir
=.
8413 for ac_exec_ext
in '' $ac_executable_extensions; do
8414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8427 if test -n "$AR"; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8429 $as_echo "$AR" >&6; }
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8438 # The jit documentation looks better if built with sphinx, but can be
8439 # built with texinfo if sphinx is not available.
8440 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8441 # Extract the first word of "sphinx-build", so it can be a program name with args.
8442 set dummy sphinx-build
; ac_word
=$2
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444 $as_echo_n "checking for $ac_word... " >&6; }
8445 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8446 $as_echo_n "(cached) " >&6
8448 if test -n "$doc_build_sys"; then
8449 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8455 test -z "$as_dir" && as_dir
=.
8456 for ac_exec_ext
in '' $ac_executable_extensions; do
8457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8458 ac_cv_prog_doc_build_sys
="sphinx"
8459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8469 doc_build_sys
=$ac_cv_prog_doc_build_sys
8470 if test -n "$doc_build_sys"; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8472 $as_echo "$doc_build_sys" >&6; }
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8480 # --------------------
8481 # Checks for C headers
8482 # --------------------
8484 # Need to reject headers which give warnings, so that the -Werror bootstrap
8485 # works later. *sigh* This needs to come before all header checks.
8487 ac_c_preproc_warn_flag
=yes
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8490 $as_echo_n "checking for ANSI C header files... " >&6; }
8491 if test "${ac_cv_header_stdc+set}" = set; then :
8492 $as_echo_n "(cached) " >&6
8494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8509 if ac_fn_cxx_try_compile
"$LINENO"; then :
8510 ac_cv_header_stdc
=yes
8512 ac_cv_header_stdc
=no
8514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8516 if test $ac_cv_header_stdc = yes; then
8517 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8524 $EGREP "memchr" >/dev
/null
2>&1; then :
8527 ac_cv_header_stdc
=no
8533 if test $ac_cv_header_stdc = yes; then
8534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8541 $EGREP "free" >/dev
/null
2>&1; then :
8544 ac_cv_header_stdc
=no
8550 if test $ac_cv_header_stdc = yes; then
8551 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8552 if test "$cross_compiling" = yes; then :
8555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8559 #if ((' ' & 0x0FF) == 0x020)
8560 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8561 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8563 # define ISLOWER(c) \
8564 (('a' <= (c) && (c) <= 'i') \
8565 || ('j' <= (c) && (c) <= 'r') \
8566 || ('s' <= (c) && (c) <= 'z'))
8567 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8570 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8575 for (i = 0; i < 256; i++)
8576 if (XOR (islower (i), ISLOWER (i))
8577 || toupper (i) != TOUPPER (i))
8582 if ac_fn_cxx_try_run
"$LINENO"; then :
8585 ac_cv_header_stdc
=no
8587 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8588 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8594 $as_echo "$ac_cv_header_stdc" >&6; }
8595 if test $ac_cv_header_stdc = yes; then
8597 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8602 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8603 if test "${ac_cv_header_time+set}" = set; then :
8604 $as_echo_n "(cached) " >&6
8606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8608 #include <sys/types.h>
8609 #include <sys/time.h>
8615 if ((struct tm *) 0)
8621 if ac_fn_cxx_try_compile
"$LINENO"; then :
8622 ac_cv_header_time
=yes
8624 ac_cv_header_time
=no
8626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8629 $as_echo "$ac_cv_header_time" >&6; }
8630 if test $ac_cv_header_time = yes; then
8632 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8637 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8638 if test "${gcc_cv_header_string+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8644 #include <strings.h>
8653 if ac_fn_cxx_try_compile
"$LINENO"; then :
8654 gcc_cv_header_string
=yes
8656 gcc_cv_header_string
=no
8658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8661 $as_echo "$gcc_cv_header_string" >&6; }
8662 if test $gcc_cv_header_string = yes; then
8664 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8669 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8670 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8671 $as_echo_n "(cached) " >&6
8673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8675 #include <sys/types.h>
8676 #include <sys/wait.h>
8678 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8681 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8689 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8694 if ac_fn_cxx_try_compile
"$LINENO"; then :
8695 ac_cv_header_sys_wait_h
=yes
8697 ac_cv_header_sys_wait_h
=no
8699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8702 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8703 if test $ac_cv_header_sys_wait_h = yes; then
8705 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8710 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8711 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8712 $as_echo_n "(cached) " >&6
8714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8716 #include <sys/types.h>
8717 #include <termios.h>
8723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8724 $EGREP "yes" >/dev
/null
2>&1; then :
8725 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8727 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8733 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8735 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8737 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8738 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8743 #include <sys/types.h>
8744 #include <sys/ioctl.h>
8750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8751 $EGREP "yes" >/dev
/null
2>&1; then :
8752 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8754 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8760 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8762 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8764 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8769 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8770 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8771 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8772 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8774 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8775 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8776 eval as_val
=\$
$as_ac_Header
8777 if test "x$as_val" = x
""yes; then :
8778 cat >>confdefs.h
<<_ACEOF
8779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8786 # Check for thread headers.
8787 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8788 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8794 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8795 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8802 # These tests can't be done till we know if we have limits.h.
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8804 $as_echo_n "checking for CHAR_BIT... " >&6; }
8805 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8806 $as_echo_n "(cached) " >&6
8808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8810 #ifdef HAVE_LIMITS_H
8817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8818 $EGREP "found" >/dev
/null
2>&1; then :
8819 gcc_cv_decl_char_bit
=yes
8821 gcc_cv_decl_char_bit
=no
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8828 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8829 if test $gcc_cv_decl_char_bit = no
; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8831 $as_echo_n "checking number of bits in a byte... " >&6; }
8832 if test "${gcc_cv_c_nbby+set}" = set; then :
8833 $as_echo_n "(cached) " >&6
8837 while test $i -lt 65; do
8838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8845 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8846 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8852 if ac_fn_cxx_try_compile
"$LINENO"; then :
8853 gcc_cv_c_nbby
=$i; break
8855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8858 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8862 $as_echo "$gcc_cv_c_nbby" >&6; }
8863 if test $gcc_cv_c_nbby = failed
; then
8864 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8867 cat >>confdefs.h
<<_ACEOF
8868 #define CHAR_BIT $gcc_cv_c_nbby
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8874 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8875 if test "${ac_cv_c_bigendian+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8878 ac_cv_c_bigendian
=unknown
8879 # See if we're dealing with a universal compiler.
8880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 #ifndef __APPLE_CC__
8883 not a universal capable compiler
8888 if ac_fn_cxx_try_compile
"$LINENO"; then :
8890 # Check for potential -arch flags. It is not universal unless
8891 # there are at least two -arch flags with different values.
8894 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8895 if test -n "$ac_prev"; then
8897 i?
86 | x86_64 | ppc | ppc64
)
8898 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8901 ac_cv_c_bigendian
=universal
8907 elif test "x$ac_word" = "x-arch"; then
8912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8913 if test $ac_cv_c_bigendian = unknown
; then
8914 # See if sys/param.h defines the BYTE_ORDER macro.
8915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917 #include <sys/types.h>
8918 #include <sys/param.h>
8923 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8924 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8933 if ac_fn_cxx_try_compile
"$LINENO"; then :
8934 # It does; now see whether it defined to BIG_ENDIAN or not.
8935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8937 #include <sys/types.h>
8938 #include <sys/param.h>
8943 #if BYTE_ORDER != BIG_ENDIAN
8951 if ac_fn_cxx_try_compile
"$LINENO"; then :
8952 ac_cv_c_bigendian
=yes
8954 ac_cv_c_bigendian
=no
8956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8960 if test $ac_cv_c_bigendian = unknown
; then
8961 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8969 #if ! (defined _LITTLE_ENDIAN || defined _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. */
8994 if ac_fn_cxx_try_compile
"$LINENO"; then :
8995 ac_cv_c_bigendian
=yes
8997 ac_cv_c_bigendian
=no
8999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9003 if test $ac_cv_c_bigendian = unknown
; then
9004 # Compile a test program.
9005 if test "$cross_compiling" = yes; then :
9006 # Try to guess by grepping values from an object file.
9007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9009 short int ascii_mm[] =
9010 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9011 short int ascii_ii[] =
9012 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9013 int use_ascii (int i) {
9014 return ascii_mm[i] + ascii_ii[i];
9016 short int ebcdic_ii[] =
9017 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9018 short int ebcdic_mm[] =
9019 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9020 int use_ebcdic (int i) {
9021 return ebcdic_mm[i] + ebcdic_ii[i];
9028 return use_ascii (foo) == use_ebcdic (foo);
9033 if ac_fn_cxx_try_compile
"$LINENO"; then :
9034 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9035 ac_cv_c_bigendian
=yes
9037 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9038 if test "$ac_cv_c_bigendian" = unknown
; then
9039 ac_cv_c_bigendian
=no
9041 # finding both strings is unlikely to happen, but who knows?
9042 ac_cv_c_bigendian
=unknown
9046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9050 $ac_includes_default
9055 /* Are we little or big endian? From Harbison&Steele. */
9059 char c[sizeof (long int)];
9062 return u.c[sizeof (long int) - 1] == 1;
9068 if ac_fn_cxx_try_run
"$LINENO"; then :
9069 ac_cv_c_bigendian
=no
9071 ac_cv_c_bigendian
=yes
9073 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9074 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9080 $as_echo "$ac_cv_c_bigendian" >&6; }
9081 case $ac_cv_c_bigendian in #(
9083 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9089 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9093 as_fn_error
"unknown endianness
9094 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9098 # ----------------------
9099 # Checks for C++ headers
9100 # ----------------------
9103 ac_cpp
='$CXXCPP $CPPFLAGS'
9104 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9105 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9106 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9108 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9109 if test -z "$CXXCPP"; then
9110 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9111 $as_echo_n "(cached) " >&6
9113 # Double quotes because CXXCPP needs to be expanded
9114 for CXXCPP
in "$CXX -E" "/lib/cpp"
9117 for ac_cxx_preproc_warn_flag
in '' yes
9119 # Use a header file that comes with gcc, so configuring glibc
9120 # with a fresh cross-compiler works.
9121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9122 # <limits.h> exists even on freestanding compilers.
9123 # On the NeXT, cc -E runs the code through the compiler's parser,
9124 # not just through cpp. "Syntax error" is here to catch this case.
9125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9128 # include <limits.h>
9130 # include <assert.h>
9134 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9137 # Broken: fails on valid input.
9140 rm -f conftest.err conftest.
$ac_ext
9142 # OK, works on sane cases. Now check whether nonexistent headers
9143 # can be detected and how.
9144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 #include <ac_nonexistent.h>
9148 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9149 # Broken: success on invalid input.
9152 # Passes both tests.
9156 rm -f conftest.err conftest.
$ac_ext
9159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9160 rm -f conftest.err conftest.
$ac_ext
9161 if $ac_preproc_ok; then :
9166 ac_cv_prog_CXXCPP
=$CXXCPP
9169 CXXCPP
=$ac_cv_prog_CXXCPP
9171 ac_cv_prog_CXXCPP
=$CXXCPP
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9174 $as_echo "$CXXCPP" >&6; }
9176 for ac_cxx_preproc_warn_flag
in '' yes
9178 # Use a header file that comes with gcc, so configuring glibc
9179 # with a fresh cross-compiler works.
9180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9181 # <limits.h> exists even on freestanding compilers.
9182 # On the NeXT, cc -E runs the code through the compiler's parser,
9183 # not just through cpp. "Syntax error" is here to catch this case.
9184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9187 # include <limits.h>
9189 # include <assert.h>
9193 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9196 # Broken: fails on valid input.
9199 rm -f conftest.err conftest.
$ac_ext
9201 # OK, works on sane cases. Now check whether nonexistent headers
9202 # can be detected and how.
9203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205 #include <ac_nonexistent.h>
9207 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9208 # Broken: success on invalid input.
9211 # Passes both tests.
9215 rm -f conftest.err conftest.
$ac_ext
9218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9219 rm -f conftest.err conftest.
$ac_ext
9220 if $ac_preproc_ok; then :
9223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9226 See \`config.log' for more details." >&5
9227 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9228 See \`config.log' for more details." >&2;}; }
9232 ac_cpp
='$CXXCPP $CPPFLAGS'
9233 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9234 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9235 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9238 for ac_header
in unordered_map
9240 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9241 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9242 cat >>confdefs.h
<<_ACEOF
9243 #define HAVE_UNORDERED_MAP 1
9249 for ac_header
in tr1/unordered_map
9251 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9252 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9253 cat >>confdefs.h
<<_ACEOF
9254 #define HAVE_TR1_UNORDERED_MAP 1
9260 for ac_header
in ext
/hash_map
9262 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9263 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9264 cat >>confdefs.h
<<_ACEOF
9265 #define HAVE_EXT_HASH_MAP 1
9273 # Dependency checking.
9276 rm -rf .tst
2>/dev
/null
9277 mkdir .tst
2>/dev
/null
9278 if test -d .tst
; then
9283 rmdir .tst
2>/dev
/null
9285 DEPDIR
="${am__leading_dot}deps"
9287 ac_config_commands
="$ac_config_commands depdir"
9290 ac_config_commands
="$ac_config_commands gccdepdir"
9293 depcc
="$CXX" am_compiler_list
=
9295 am_depcomp
=$ac_aux_dir/depcomp
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9297 $as_echo_n "checking dependency style of $depcc... " >&6; }
9298 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9299 $as_echo_n "(cached) " >&6
9301 if test -f "$am_depcomp"; then
9302 # We make a subdir and do the tests there. Otherwise we can end up
9303 # making bogus files that we don't know about and never remove. For
9304 # instance it was reported that on HP-UX the gcc test will end up
9305 # making a dummy file named `D' -- because `-MD' means `put the output
9308 # Copy depcomp to subdir because otherwise we won't find it if we're
9309 # using a relative directory.
9310 cp "$am_depcomp" conftest.dir
9312 # We will build objects and dependencies in a subdirectory because
9313 # it helps to detect inapplicable dependency modes. For instance
9314 # both Tru64's cc and ICC support -MD to output dependencies as a
9315 # side effect of compilation, but ICC will put the dependencies in
9316 # the current directory while Tru64 will put them in the object
9320 am_cv_CXX_dependencies_compiler_type
=none
9321 if test "$am_compiler_list" = ""; then
9322 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9324 for depmode
in $am_compiler_list; do
9325 if test $depmode = none
; then break; fi
9327 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9328 # Setup a source with many dependencies, because some compilers
9329 # like to wrap large dependency lists on column 80 (with \), and
9330 # we should not choose a depcomp mode which is confused by this.
9332 # We need to recreate these files for each test, as the compiler may
9333 # overwrite some of them when testing with obscure command lines.
9334 # This happens at least with the AIX C compiler.
9336 for i
in 1 2 3 4 5 6; do
9337 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9338 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9339 # Solaris 8's {/usr,}/bin/sh.
9340 touch sub
/conftst
$i.h
9342 echo "include sub/conftest.Po" > confmf
9344 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9345 # mode. It turns out that the SunPro C++ compiler does not properly
9346 # handle `-M -o', and we need to detect this.
9347 depcmd
="depmode=$depmode \
9348 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9349 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9350 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9351 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9352 if env
$depcmd > conftest.err
2>&1 &&
9353 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9354 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9355 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9356 # icc doesn't choke on unknown options, it will just issue warnings
9357 # or remarks (even with -Werror). So we grep stderr for any message
9358 # that says an option was ignored or not supported.
9359 # When given -MP, icc 7.0 and 7.1 complain thusly:
9360 # icc: Command line warning: ignoring option '-M'; no argument required
9361 # The diagnosis changed in icc 8.0:
9362 # icc: Command line remark: option '-MP' not supported
9363 if (grep 'ignoring option' conftest.err ||
9364 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9365 am_cv_CXX_dependencies_compiler_type
=$depmode
9366 $as_echo "$as_me:$LINENO: success" >&5
9370 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9371 sed -e 's/^/| /' < conftest.err
>&5
9377 am_cv_CXX_dependencies_compiler_type
=none
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9382 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9383 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9384 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9385 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9395 # These libraries may be used by collect2.
9396 # We may need a special search path to get them linked.
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9398 $as_echo_n "checking for collect2 libraries... " >&6; }
9399 if test "${gcc_cv_collect2_libs+set}" = set; then :
9400 $as_echo_n "(cached) " >&6
9403 for libs
in '' -lld -lmld \
9404 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9405 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9411 /* Override any GCC internal prototype to avoid an error.
9412 Use char because int might match the return type of a GCC
9413 builtin and then its argument prototype would still apply. */
9426 if ac_fn_cxx_try_link
"$LINENO"; then :
9427 gcc_cv_collect2_libs
="$libs"; break
9429 rm -f core conftest.err conftest.
$ac_objext \
9430 conftest
$ac_exeext conftest.
$ac_ext
9433 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9436 $as_echo "$gcc_cv_collect2_libs" >&6; }
9437 case $gcc_cv_collect2_libs in
9439 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9443 # When building Ada code on Alpha, we need exc_resume which is usually in
9444 # -lexc. So test for it.
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9448 $as_echo_n "checking for library containing exc_resume... " >&6; }
9449 if test "${ac_cv_search_exc_resume+set}" = set; then :
9450 $as_echo_n "(cached) " >&6
9452 ac_func_search_save_LIBS
=$LIBS
9453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9456 /* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
9466 return exc_resume ();
9471 for ac_lib
in '' exc
; do
9472 if test -z "$ac_lib"; then
9473 ac_res
="none required"
9476 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9478 if ac_fn_cxx_try_link
"$LINENO"; then :
9479 ac_cv_search_exc_resume
=$ac_res
9481 rm -f core conftest.err conftest.
$ac_objext \
9483 if test "${ac_cv_search_exc_resume+set}" = set; then :
9487 if test "${ac_cv_search_exc_resume+set}" = set; then :
9490 ac_cv_search_exc_resume
=no
9493 LIBS
=$ac_func_search_save_LIBS
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9496 $as_echo "$ac_cv_search_exc_resume" >&6; }
9497 ac_res
=$ac_cv_search_exc_resume
9498 if test "$ac_res" != no
; then :
9499 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9507 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9511 $as_echo_n "checking for library containing kstat_open... " >&6; }
9512 if test "${ac_cv_search_kstat_open+set}" = set; then :
9513 $as_echo_n "(cached) " >&6
9515 ac_func_search_save_LIBS
=$LIBS
9516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9519 /* Override any GCC internal prototype to avoid an error.
9520 Use char because int might match the return type of a GCC
9521 builtin and then its argument prototype would still apply. */
9529 return kstat_open ();
9534 for ac_lib
in '' kstat
; do
9535 if test -z "$ac_lib"; then
9536 ac_res
="none required"
9539 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9541 if ac_fn_cxx_try_link
"$LINENO"; then :
9542 ac_cv_search_kstat_open
=$ac_res
9544 rm -f core conftest.err conftest.
$ac_objext \
9546 if test "${ac_cv_search_kstat_open+set}" = set; then :
9550 if test "${ac_cv_search_kstat_open+set}" = set; then :
9553 ac_cv_search_kstat_open
=no
9556 LIBS
=$ac_func_search_save_LIBS
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9559 $as_echo "$ac_cv_search_kstat_open" >&6; }
9560 ac_res
=$ac_cv_search_kstat_open
9561 if test "$ac_res" != no
; then :
9562 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9566 EXTRA_GCC_LIBS
="$LIBS"
9570 # Some systems put ldexp and frexp in libm instead of libc; assume
9571 # they're both in the same place. jcf-dump needs them.
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9575 $as_echo_n "checking for library containing ldexp... " >&6; }
9576 if test "${ac_cv_search_ldexp+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
9579 ac_func_search_save_LIBS
=$LIBS
9580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9583 /* Override any GCC internal prototype to avoid an error.
9584 Use char because int might match the return type of a GCC
9585 builtin and then its argument prototype would still apply. */
9598 for ac_lib
in '' m
; do
9599 if test -z "$ac_lib"; then
9600 ac_res
="none required"
9603 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9605 if ac_fn_cxx_try_link
"$LINENO"; then :
9606 ac_cv_search_ldexp
=$ac_res
9608 rm -f core conftest.err conftest.
$ac_objext \
9610 if test "${ac_cv_search_ldexp+set}" = set; then :
9614 if test "${ac_cv_search_ldexp+set}" = set; then :
9617 ac_cv_search_ldexp
=no
9620 LIBS
=$ac_func_search_save_LIBS
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9623 $as_echo "$ac_cv_search_ldexp" >&6; }
9624 ac_res
=$ac_cv_search_ldexp
9625 if test "$ac_res" != no
; then :
9626 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9634 # Use <inttypes.h> only if it exists,
9635 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9638 $as_echo_n "checking for inttypes.h... " >&6; }
9639 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9640 $as_echo_n "(cached) " >&6
9642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h. */
9644 #define __STDC_FORMAT_MACROS
9645 #include <sys/types.h>
9646 #include <inttypes.h>
9658 if ac_fn_cxx_try_compile
"$LINENO"; then :
9659 gcc_cv_header_inttypes_h
=yes
9661 gcc_cv_header_inttypes_h
=no
9663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9667 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9668 if test $gcc_cv_header_inttypes_h = yes; then
9670 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9676 for ac_func
in times clock kill getrlimit setrlimit atoq \
9677 popen sysconf strsignal getrusage nl_langinfo \
9678 gettimeofday mbstowcs wcswidth mmap setlocale \
9679 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
9681 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9682 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9683 eval as_val
=\$
$as_ac_var
9684 if test "x$as_val" = x
""yes; then :
9685 cat >>confdefs.h
<<_ACEOF
9686 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9693 if test x
$ac_cv_func_mbstowcs = xyes
; then
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9695 $as_echo_n "checking whether mbstowcs works... " >&6; }
9696 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9697 $as_echo_n "(cached) " >&6
9699 if test "$cross_compiling" = yes; then :
9700 gcc_cv_func_mbstowcs_works
=yes
9702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9711 if ac_fn_cxx_try_run
"$LINENO"; then :
9712 gcc_cv_func_mbstowcs_works
=yes
9714 gcc_cv_func_mbstowcs_works
=no
9716 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9717 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9722 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9723 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9725 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9730 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9731 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9735 cat >>confdefs.h
<<_ACEOF
9741 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9742 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9746 cat >>confdefs.h
<<_ACEOF
9747 #define caddr_t char *
9754 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9755 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9756 gcc_header_sys_mman_h
=yes
9758 gcc_header_sys_mman_h
=no
9761 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9762 if test "x$ac_cv_func_mmap" = x
""yes; then :
9768 if test "$gcc_header_sys_mman_h" != yes \
9769 ||
test "$gcc_func_mmap" != yes; then
9770 gcc_cv_func_mmap_file
=no
9771 gcc_cv_func_mmap_dev_zero
=no
9772 gcc_cv_func_mmap_anon
=no
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9775 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9776 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9777 $as_echo_n "(cached) " >&6
9779 # Add a system to this blacklist if
9780 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9781 # memory area containing the same data that you'd get if you applied
9782 # read() to the same fd. The only system known to have a problem here
9783 # is VMS, where text files have record structure.
9786 gcc_cv_func_mmap_file
=no
;;
9788 gcc_cv_func_mmap_file
=yes;;
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9792 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9794 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9795 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9798 # Add a system to this blacklist if it has mmap() but /dev/zero
9799 # does not exist, or if mmapping /dev/zero does not give anonymous
9800 # zeroed pages with both the following properties:
9801 # 1. If you map N consecutive pages in with one call, and then
9802 # unmap any subset of those pages, the pages that were not
9803 # explicitly unmapped remain accessible.
9804 # 2. If you map two adjacent blocks of memory and then unmap them
9805 # both at once, they must both go away.
9806 # Systems known to be in this category are Windows (all variants),
9809 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9810 gcc_cv_func_mmap_dev_zero
=no
;;
9812 gcc_cv_func_mmap_dev_zero
=yes;;
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9816 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9818 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9820 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9821 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9822 $as_echo_n "(cached) " >&6
9824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9826 #include <sys/types.h>
9827 #include <sys/mman.h>
9830 #ifndef MAP_ANONYMOUS
9831 #define MAP_ANONYMOUS MAP_ANON
9837 int n = MAP_ANONYMOUS;
9842 if ac_fn_cxx_try_compile
"$LINENO"; then :
9843 gcc_cv_decl_map_anon
=yes
9845 gcc_cv_decl_map_anon
=no
9847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9850 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9852 if test $gcc_cv_decl_map_anon = no
; then
9853 gcc_cv_func_mmap_anon
=no
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9856 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9857 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9858 $as_echo_n "(cached) " >&6
9860 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9861 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9862 # doesn't give anonymous zeroed pages with the same properties listed
9863 # above for use of /dev/zero.
9864 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9866 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9867 gcc_cv_func_mmap_anon
=no
;;
9869 gcc_cv_func_mmap_anon
=yes;;
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9873 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9877 if test $gcc_cv_func_mmap_file = yes; then
9879 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9882 if test $gcc_cv_func_mmap_dev_zero = yes; then
9884 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9887 if test $gcc_cv_func_mmap_anon = yes; then
9889 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9896 # Under VMS, vfork works very differently than on Unix. The standard test
9897 # won't work, and it isn't easily adaptable. It makes more sense to
9899 ac_cv_func_vfork_works
=yes
9902 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9903 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9907 cat >>confdefs.h
<<_ACEOF
9913 for ac_header
in vfork.h
9915 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9916 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9917 cat >>confdefs.h
<<_ACEOF
9918 #define HAVE_VFORK_H 1
9924 for ac_func
in fork vfork
9926 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9927 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9928 eval as_val
=\$
$as_ac_var
9929 if test "x$as_val" = x
""yes; then :
9930 cat >>confdefs.h
<<_ACEOF
9931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9937 if test "x$ac_cv_func_fork" = xyes
; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9939 $as_echo_n "checking for working fork... " >&6; }
9940 if test "${ac_cv_func_fork_works+set}" = set; then :
9941 $as_echo_n "(cached) " >&6
9943 if test "$cross_compiling" = yes; then :
9944 ac_cv_func_fork_works
=cross
9946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9948 $ac_includes_default
9953 /* By Ruediger Kuhlmann. */
9960 if ac_fn_cxx_try_run
"$LINENO"; then :
9961 ac_cv_func_fork_works
=yes
9963 ac_cv_func_fork_works
=no
9965 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9966 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9971 $as_echo "$ac_cv_func_fork_works" >&6; }
9974 ac_cv_func_fork_works
=$ac_cv_func_fork
9976 if test "x$ac_cv_func_fork_works" = xcross
; then
9978 *-*-amigaos* |
*-*-msdosdjgpp*)
9979 # Override, as these systems have only a dummy fork() stub
9980 ac_cv_func_fork_works
=no
9983 ac_cv_func_fork_works
=yes
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9987 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9989 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9990 if test "x$ac_cv_func_vfork" = xyes
; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9992 $as_echo_n "checking for working vfork... " >&6; }
9993 if test "${ac_cv_func_vfork_works+set}" = set; then :
9994 $as_echo_n "(cached) " >&6
9996 if test "$cross_compiling" = yes; then :
9997 ac_cv_func_vfork_works
=cross
9999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10001 /* Thanks to Paul Eggert for this test. */
10002 $ac_includes_default
10003 #include <sys/wait.h>
10004 #ifdef HAVE_VFORK_H
10005 # include <vfork.h>
10007 /* On some sparc systems, changes by the child to local and incoming
10008 argument registers are propagated back to the parent. The compiler
10009 is told about this with #include <vfork.h>, but some compilers
10010 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10011 static variable whose address is put into a register that is
10012 clobbered by the vfork. */
10015 sparc_address_test (int arg)
10017 sparc_address_test (arg) int arg;
10020 static pid_t child;
10038 pid_t parent = getpid ();
10041 sparc_address_test (0);
10046 /* Here is another test for sparc vfork register problems. This
10047 test uses lots of local variables, at least as many local
10048 variables as main has allocated so far including compiler
10049 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10050 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10051 reuse the register of parent for one of the local variables,
10052 since it will think that parent can't possibly be used any more
10053 in this routine. Assigning to the local variable will thus
10054 munge parent in the parent process. */
10056 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10057 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10058 /* Convince the compiler that p..p7 are live; otherwise, it might
10059 use the same hardware register for all 8 local variables. */
10060 if (p != p1 || p != p2 || p != p3 || p != p4
10061 || p != p5 || p != p6 || p != p7)
10064 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10065 from child file descriptors. If the child closes a descriptor
10066 before it execs or exits, this munges the parent's descriptor
10067 as well. Test for this by closing stdout in the child. */
10068 _exit(close(fileno(stdout)) != 0);
10073 while (wait(&status) != child)
10076 /* Was there some problem with vforking? */
10079 /* Did the child fail? (This shouldn't happen.) */
10082 /* Did the vfork/compiler bug occur? */
10083 || parent != getpid()
10085 /* Did the file descriptor bug occur? */
10086 || fstat(fileno(stdout), &st) != 0
10091 if ac_fn_cxx_try_run
"$LINENO"; then :
10092 ac_cv_func_vfork_works
=yes
10094 ac_cv_func_vfork_works
=no
10096 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10097 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10102 $as_echo "$ac_cv_func_vfork_works" >&6; }
10105 if test "x$ac_cv_func_fork_works" = xcross
; then
10106 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10108 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10111 if test "x$ac_cv_func_vfork_works" = xyes
; then
10113 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10117 $as_echo "#define vfork fork" >>confdefs.h
10120 if test "x$ac_cv_func_fork_works" = xyes
; then
10122 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10128 if test "X$prefix" = "XNONE"; then
10129 acl_final_prefix
="$ac_default_prefix"
10131 acl_final_prefix
="$prefix"
10133 if test "X$exec_prefix" = "XNONE"; then
10134 acl_final_exec_prefix
='${prefix}'
10136 acl_final_exec_prefix
="$exec_prefix"
10138 acl_save_prefix
="$prefix"
10139 prefix
="$acl_final_prefix"
10140 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10141 prefix
="$acl_save_prefix"
10144 # Check whether --with-gnu-ld was given.
10145 if test "${with_gnu_ld+set}" = set; then :
10146 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10151 # Prepare PATH_SEPARATOR.
10152 # The user is always right.
10153 if test "${PATH_SEPARATOR+set}" != set; then
10154 echo "#! /bin/sh" >conf$$.sh
10155 echo "exit 0" >>conf$$.sh
10157 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10165 if test "$GCC" = yes; then
10166 # Check if gcc -print-prog-name=ld gives a path.
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10168 $as_echo_n "checking for ld used by GCC... " >&6; }
10171 # gcc leaves a trailing carriage return which upsets mingw
10172 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10174 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10177 # Accept absolute paths.
10178 [\\/]* |
[A-Za-z
]:[\\/]*)
10179 re_direlt
='/[^/][^/]*/\.\./'
10180 # Canonicalize the path of ld
10181 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10182 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10183 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10185 test -z "$LD" && LD
="$ac_prog"
10188 # If it fails, then pretend we aren't using GCC.
10192 # If it is relative, then search for the first ld in PATH.
10193 with_gnu_ld
=unknown
10196 elif test "$with_gnu_ld" = yes; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10198 $as_echo_n "checking for GNU ld... " >&6; }
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10201 $as_echo_n "checking for non-GNU ld... " >&6; }
10203 if test "${acl_cv_path_LD+set}" = set; then :
10204 $as_echo_n "(cached) " >&6
10206 if test -z "$LD"; then
10207 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10208 for ac_dir
in $PATH; do
10209 test -z "$ac_dir" && ac_dir
=.
10210 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10211 acl_cv_path_LD
="$ac_dir/$ac_prog"
10212 # Check to see if the program is GNU ld. I'd rather use --version,
10213 # but apparently some GNU ld's only accept -v.
10214 # Break only if it was the GNU/non-GNU ld that we prefer.
10215 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10216 test "$with_gnu_ld" != no
&& break
10218 test "$with_gnu_ld" != yes && break
10224 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10228 LD
="$acl_cv_path_LD"
10229 if test -n "$LD"; then
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10231 $as_echo "$LD" >&6; }
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 $as_echo "no" >&6; }
10236 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10238 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10239 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10240 $as_echo_n "(cached) " >&6
10242 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10243 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10244 acl_cv_prog_gnu_ld
=yes
10246 acl_cv_prog_gnu_ld
=no
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10250 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10251 with_gnu_ld
=$acl_cv_prog_gnu_ld
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10256 $as_echo_n "checking for shared library run path origin... " >&6; }
10257 if test "${acl_cv_rpath+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
10261 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10262 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10264 rm -f .
/conftest.sh
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10269 $as_echo "$acl_cv_rpath" >&6; }
10271 libext
="$acl_cv_libext"
10272 shlibext
="$acl_cv_shlibext"
10273 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10274 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10275 hardcode_direct
="$acl_cv_hardcode_direct"
10276 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10277 # Check whether --enable-rpath was given.
10278 if test "${enable_rpath+set}" = set; then :
10279 enableval
=$enable_rpath; :
10293 acl_save_prefix
="$prefix"
10294 prefix
="$acl_final_prefix"
10295 acl_save_exec_prefix
="$exec_prefix"
10296 exec_prefix
="$acl_final_exec_prefix"
10298 eval additional_includedir
=\"$includedir\"
10299 eval additional_libdir
=\"$libdir\"
10301 exec_prefix
="$acl_save_exec_prefix"
10302 prefix
="$acl_save_prefix"
10305 # Check whether --with-libiconv-prefix was given.
10306 if test "${with_libiconv_prefix+set}" = set; then :
10307 withval
=$with_libiconv_prefix;
10308 if test "X$withval" = "Xno"; then
10311 if test "X$withval" = "X"; then
10313 acl_save_prefix
="$prefix"
10314 prefix
="$acl_final_prefix"
10315 acl_save_exec_prefix
="$exec_prefix"
10316 exec_prefix
="$acl_final_exec_prefix"
10318 eval additional_includedir
=\"$includedir\"
10319 eval additional_libdir
=\"$libdir\"
10321 exec_prefix
="$acl_save_exec_prefix"
10322 prefix
="$acl_save_prefix"
10325 additional_includedir
="$withval/include"
10326 additional_libdir
="$withval/lib"
10337 names_already_handled
=
10338 names_next_round
='iconv '
10339 while test -n "$names_next_round"; do
10340 names_this_round
="$names_next_round"
10342 for name
in $names_this_round; do
10344 for n
in $names_already_handled; do
10345 if test "$n" = "$name"; then
10346 already_handled
=yes
10350 if test -z "$already_handled"; then
10351 names_already_handled
="$names_already_handled $name"
10352 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10353 eval value
=\"\
$HAVE_LIB$uppername\"
10354 if test -n "$value"; then
10355 if test "$value" = yes; then
10356 eval value
=\"\
$LIB$uppername\"
10357 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10358 eval value
=\"\
$LTLIB$uppername\"
10359 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10368 if test $use_additional = yes; then
10369 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10370 found_dir
="$additional_libdir"
10371 found_so
="$additional_libdir/lib$name.$shlibext"
10372 if test -f "$additional_libdir/lib$name.la"; then
10373 found_la
="$additional_libdir/lib$name.la"
10376 if test -f "$additional_libdir/lib$name.$libext"; then
10377 found_dir
="$additional_libdir"
10378 found_a
="$additional_libdir/lib$name.$libext"
10379 if test -f "$additional_libdir/lib$name.la"; then
10380 found_la
="$additional_libdir/lib$name.la"
10385 if test "X$found_dir" = "X"; then
10386 for x
in $LDFLAGS $LTLIBICONV; do
10388 acl_save_prefix
="$prefix"
10389 prefix
="$acl_final_prefix"
10390 acl_save_exec_prefix
="$exec_prefix"
10391 exec_prefix
="$acl_final_exec_prefix"
10393 exec_prefix
="$acl_save_exec_prefix"
10394 prefix
="$acl_save_prefix"
10398 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10399 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10401 found_so
="$dir/lib$name.$shlibext"
10402 if test -f "$dir/lib$name.la"; then
10403 found_la
="$dir/lib$name.la"
10406 if test -f "$dir/lib$name.$libext"; then
10408 found_a
="$dir/lib$name.$libext"
10409 if test -f "$dir/lib$name.la"; then
10410 found_la
="$dir/lib$name.la"
10416 if test "X$found_dir" != "X"; then
10421 if test "X$found_dir" != "X"; then
10422 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10423 if test "X$found_so" != "X"; then
10424 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10425 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10428 for x
in $ltrpathdirs; do
10429 if test "X$x" = "X$found_dir"; then
10434 if test -z "$haveit"; then
10435 ltrpathdirs
="$ltrpathdirs $found_dir"
10437 if test "$hardcode_direct" = yes; then
10438 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10440 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10441 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10443 for x
in $rpathdirs; do
10444 if test "X$x" = "X$found_dir"; then
10449 if test -z "$haveit"; then
10450 rpathdirs
="$rpathdirs $found_dir"
10454 for x
in $LDFLAGS $LIBICONV; do
10456 acl_save_prefix
="$prefix"
10457 prefix
="$acl_final_prefix"
10458 acl_save_exec_prefix
="$exec_prefix"
10459 exec_prefix
="$acl_final_exec_prefix"
10461 exec_prefix
="$acl_save_exec_prefix"
10462 prefix
="$acl_save_prefix"
10464 if test "X$x" = "X-L$found_dir"; then
10469 if test -z "$haveit"; then
10470 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10472 if test "$hardcode_minus_L" != no
; then
10473 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10475 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10481 if test "X$found_a" != "X"; then
10482 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10484 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10487 additional_includedir
=
10488 case "$found_dir" in
10490 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10491 additional_includedir
="$basedir/include"
10494 if test "X$additional_includedir" != "X"; then
10495 if test "X$additional_includedir" != "X/usr/include"; then
10497 if test "X$additional_includedir" = "X/usr/local/include"; then
10498 if test -n "$GCC"; then
10500 linux
*) haveit
=yes;;
10504 if test -z "$haveit"; then
10505 for x
in $CPPFLAGS $INCICONV; do
10507 acl_save_prefix
="$prefix"
10508 prefix
="$acl_final_prefix"
10509 acl_save_exec_prefix
="$exec_prefix"
10510 exec_prefix
="$acl_final_exec_prefix"
10512 exec_prefix
="$acl_save_exec_prefix"
10513 prefix
="$acl_save_prefix"
10515 if test "X$x" = "X-I$additional_includedir"; then
10520 if test -z "$haveit"; then
10521 if test -d "$additional_includedir"; then
10522 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10528 if test -n "$found_la"; then
10529 save_libdir
="$libdir"
10530 case "$found_la" in
10531 */* |
*\\*) .
"$found_la" ;;
10532 *) .
"./$found_la" ;;
10534 libdir
="$save_libdir"
10535 for dep
in $dependency_libs; do
10538 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10539 if test "X$additional_libdir" != "X/usr/lib"; then
10541 if test "X$additional_libdir" = "X/usr/local/lib"; then
10542 if test -n "$GCC"; then
10544 linux
*) haveit
=yes;;
10548 if test -z "$haveit"; then
10550 for x
in $LDFLAGS $LIBICONV; do
10552 acl_save_prefix
="$prefix"
10553 prefix
="$acl_final_prefix"
10554 acl_save_exec_prefix
="$exec_prefix"
10555 exec_prefix
="$acl_final_exec_prefix"
10557 exec_prefix
="$acl_save_exec_prefix"
10558 prefix
="$acl_save_prefix"
10560 if test "X$x" = "X-L$additional_libdir"; then
10565 if test -z "$haveit"; then
10566 if test -d "$additional_libdir"; then
10567 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10571 for x
in $LDFLAGS $LTLIBICONV; do
10573 acl_save_prefix
="$prefix"
10574 prefix
="$acl_final_prefix"
10575 acl_save_exec_prefix
="$exec_prefix"
10576 exec_prefix
="$acl_final_exec_prefix"
10578 exec_prefix
="$acl_save_exec_prefix"
10579 prefix
="$acl_save_prefix"
10581 if test "X$x" = "X-L$additional_libdir"; then
10586 if test -z "$haveit"; then
10587 if test -d "$additional_libdir"; then
10588 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10595 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10596 if test "$enable_rpath" != no
; then
10598 for x
in $rpathdirs; do
10599 if test "X$x" = "X$dir"; then
10604 if test -z "$haveit"; then
10605 rpathdirs
="$rpathdirs $dir"
10608 for x
in $ltrpathdirs; do
10609 if test "X$x" = "X$dir"; then
10614 if test -z "$haveit"; then
10615 ltrpathdirs
="$ltrpathdirs $dir"
10620 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10623 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10626 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10627 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10633 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10634 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10640 if test "X$rpathdirs" != "X"; then
10641 if test -n "$hardcode_libdir_separator"; then
10643 for found_dir
in $rpathdirs; do
10644 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10646 acl_save_libdir
="$libdir"
10648 eval flag
=\"$hardcode_libdir_flag_spec\"
10649 libdir
="$acl_save_libdir"
10650 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10652 for found_dir
in $rpathdirs; do
10653 acl_save_libdir
="$libdir"
10654 libdir
="$found_dir"
10655 eval flag
=\"$hardcode_libdir_flag_spec\"
10656 libdir
="$acl_save_libdir"
10657 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10661 if test "X$ltrpathdirs" != "X"; then
10662 for found_dir
in $ltrpathdirs; do
10663 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10674 $as_echo_n "checking for iconv... " >&6; }
10675 if test "${am_cv_func_iconv+set}" = set; then :
10676 $as_echo_n "(cached) " >&6
10679 am_cv_func_iconv
="no, consider installing GNU libiconv"
10681 am_save_CPPFLAGS
="$CPPFLAGS"
10682 CPPFLAGS
="$CPPFLAGS $INCICONV"
10683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10685 #include <stdlib.h>
10690 iconv_t cd = iconv_open("","");
10691 iconv(cd,NULL,NULL,NULL,NULL);
10697 if ac_fn_cxx_try_link
"$LINENO"; then :
10698 am_cv_func_iconv
=yes
10700 rm -f core conftest.err conftest.
$ac_objext \
10701 conftest
$ac_exeext conftest.
$ac_ext
10702 CPPFLAGS
="$am_save_CPPFLAGS"
10704 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10705 for _libs
in .libs _libs
; do
10706 am_save_CPPFLAGS
="$CPPFLAGS"
10707 am_save_LIBS
="$LIBS"
10708 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10709 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10712 #include <stdlib.h>
10717 iconv_t cd = iconv_open("","");
10718 iconv(cd,NULL,NULL,NULL,NULL);
10724 if ac_fn_cxx_try_link
"$LINENO"; then :
10725 INCICONV
="-I../libiconv/include"
10726 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10727 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10728 am_cv_lib_iconv
=yes
10729 am_cv_func_iconv
=yes
10731 rm -f core conftest.err conftest.
$ac_objext \
10732 conftest
$ac_exeext conftest.
$ac_ext
10733 CPPFLAGS
="$am_save_CPPFLAGS"
10734 LIBS
="$am_save_LIBS"
10735 if test "$am_cv_func_iconv" = "yes"; then
10741 if test "$am_cv_func_iconv" != yes; then
10742 am_save_CPPFLAGS
="$CPPFLAGS"
10743 am_save_LIBS
="$LIBS"
10744 CPPFLAGS
="$LIBS $INCICONV"
10745 LIBS
="$LIBS $LIBICONV"
10746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h. */
10748 #include <stdlib.h>
10753 iconv_t cd = iconv_open("","");
10754 iconv(cd,NULL,NULL,NULL,NULL);
10760 if ac_fn_cxx_try_link
"$LINENO"; then :
10761 am_cv_lib_iconv
=yes
10762 am_cv_func_iconv
=yes
10764 rm -f core conftest.err conftest.
$ac_objext \
10765 conftest
$ac_exeext conftest.
$ac_ext
10766 CPPFLAGS
="$am_save_CPPFLAGS"
10767 LIBS
="$am_save_LIBS"
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10772 $as_echo "$am_cv_func_iconv" >&6; }
10773 if test "$am_cv_func_iconv" = yes; then
10775 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10778 if test "$am_cv_lib_iconv" = yes; then
10780 for element
in $INCICONV; do
10782 for x
in $CPPFLAGS; do
10784 acl_save_prefix
="$prefix"
10785 prefix
="$acl_final_prefix"
10786 acl_save_exec_prefix
="$exec_prefix"
10787 exec_prefix
="$acl_final_exec_prefix"
10789 exec_prefix
="$acl_save_exec_prefix"
10790 prefix
="$acl_save_prefix"
10792 if test "X$x" = "X$element"; then
10797 if test -z "$haveit"; then
10798 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10803 $as_echo_n "checking how to link with libiconv... " >&6; }
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10805 $as_echo "$LIBICONV" >&6; }
10813 if test "$am_cv_func_iconv" = yes; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10815 $as_echo_n "checking for iconv declaration... " >&6; }
10816 if test "${am_cv_proto_iconv+set}" = set; then :
10817 $as_echo_n "(cached) " >&6
10820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10823 #include <stdlib.h>
10829 #if defined(__STDC__) || defined(__cplusplus)
10830 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10843 if ac_fn_cxx_try_compile
"$LINENO"; then :
10844 am_cv_proto_iconv_arg1
=""
10846 am_cv_proto_iconv_arg1
="const"
10848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10849 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);"
10852 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10854 }$am_cv_proto_iconv" >&5
10856 }$am_cv_proto_iconv" >&6; }
10858 cat >>confdefs.h
<<_ACEOF
10859 #define ICONV_CONST $am_cv_proto_iconv_arg1
10865 # Until we have in-tree GNU iconv:
10867 if test -f "$LTLIBICONV"; then
10868 LIBICONV_DEP
=$LTLIBICONV
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10874 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10875 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10876 $as_echo_n "(cached) " >&6
10878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h. */
10880 #include <locale.h>
10889 if ac_fn_cxx_try_link
"$LINENO"; then :
10890 am_cv_val_LC_MESSAGES
=yes
10892 am_cv_val_LC_MESSAGES
=no
10894 rm -f core conftest.err conftest.
$ac_objext \
10895 conftest
$ac_exeext conftest.
$ac_ext
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10898 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10899 if test $am_cv_val_LC_MESSAGES = yes; then
10901 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10908 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10909 if test "${am_cv_langinfo_codeset+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
10912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914 #include <langinfo.h>
10918 char* cs = nl_langinfo(CODESET);
10923 if ac_fn_cxx_try_link
"$LINENO"; then :
10924 am_cv_langinfo_codeset
=yes
10926 am_cv_langinfo_codeset
=no
10928 rm -f core conftest.err conftest.
$ac_objext \
10929 conftest
$ac_exeext conftest.
$ac_ext
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10933 $as_echo "$am_cv_langinfo_codeset" >&6; }
10934 if test $am_cv_langinfo_codeset = yes; then
10936 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10941 # We will need to find libiberty.h and ansidecl.h
10942 saved_CFLAGS
="$CFLAGS"
10943 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10944 saved_CXXFLAGS
="$CXXFLAGS"
10945 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10947 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10948 # normal autoconf function for these. But force definition of
10949 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10950 # basename handling in libiberty.h.
10951 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10952 #undef HAVE_DECL_BASENAME
10953 #define HAVE_DECL_BASENAME 1
10954 #include \"ansidecl.h\"
10955 #include \"system.h\"
10957 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10963 cat >>confdefs.h
<<_ACEOF
10964 #define HAVE_DECL_BASENAME $ac_have_decl
10966 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10967 #undef HAVE_DECL_BASENAME
10968 #define HAVE_DECL_BASENAME 1
10969 #include \"ansidecl.h\"
10970 #include \"system.h\"
10972 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10978 cat >>confdefs.h
<<_ACEOF
10979 #define HAVE_DECL_STRSTR $ac_have_decl
10983 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10984 madvise stpcpy strnlen strsignal strverscmp \
10985 strtol strtoul strtoll strtoull setenv unsetenv \
10986 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10987 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
10989 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10991 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10992 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10993 $as_echo_n "(cached) " >&6
10995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10998 #define $ac_tr_decl 1
11000 #include "ansidecl.h"
11001 #include "system.h"
11007 char *(*pfn) = (char *(*)) $ac_func ;
11013 if ac_fn_cxx_try_compile
"$LINENO"; then :
11014 eval "gcc_cv_have_decl_$ac_func=yes"
11016 eval "gcc_cv_have_decl_$ac_func=no"
11018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11021 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11023 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11024 #define $ac_tr_decl 1
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11030 #define $ac_tr_decl 0
11038 for ac_func
in getrlimit setrlimit getrusage
11040 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11042 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11043 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11044 $as_echo_n "(cached) " >&6
11046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11049 #define $ac_tr_decl 1
11051 #include "ansidecl.h"
11052 #include "system.h"
11053 #ifdef HAVE_SYS_RESOURCE_H
11054 #include <sys/resource.h>
11062 char *(*pfn) = (char *(*)) $ac_func ;
11068 if ac_fn_cxx_try_compile
"$LINENO"; then :
11069 eval "gcc_cv_have_decl_$ac_func=yes"
11071 eval "gcc_cv_have_decl_$ac_func=no"
11073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11076 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11078 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11079 #define $ac_tr_decl 1
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11085 #define $ac_tr_decl 0
11093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11096 #include "ansidecl.h"
11097 #include "system.h"
11098 #ifdef HAVE_SYS_RESOURCE_H
11099 #include <sys/resource.h>
11110 if ac_fn_cxx_try_compile
"$LINENO"; then :
11114 $as_echo "#define rlim_t long" >>confdefs.h
11117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11119 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11120 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11121 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11122 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11123 for ac_func
in ldgetname
11125 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11127 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11128 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11129 $as_echo_n "(cached) " >&6
11131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11132 /* end confdefs.h. */
11134 #define $ac_tr_decl 1
11136 #include "ansidecl.h"
11137 #include "system.h"
11138 #ifdef HAVE_LDFCN_H
11149 char *(*pfn) = (char *(*)) $ac_func ;
11155 if ac_fn_cxx_try_compile
"$LINENO"; then :
11156 eval "gcc_cv_have_decl_$ac_func=yes"
11158 eval "gcc_cv_have_decl_$ac_func=no"
11160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11163 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11165 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11166 #define $ac_tr_decl 1
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11172 #define $ac_tr_decl 0
11180 for ac_func
in times
11182 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11184 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11185 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11186 $as_echo_n "(cached) " >&6
11188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11191 #define $ac_tr_decl 1
11193 #include "ansidecl.h"
11194 #include "system.h"
11195 #ifdef HAVE_SYS_TIMES_H
11196 #include <sys/times.h>
11204 char *(*pfn) = (char *(*)) $ac_func ;
11210 if ac_fn_cxx_try_compile
"$LINENO"; then :
11211 eval "gcc_cv_have_decl_$ac_func=yes"
11213 eval "gcc_cv_have_decl_$ac_func=no"
11215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11218 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11220 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11221 #define $ac_tr_decl 1
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11227 #define $ac_tr_decl 0
11235 for ac_func
in sigaltstack
11237 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11239 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11240 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11241 $as_echo_n "(cached) " >&6
11243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11246 #define $ac_tr_decl 1
11248 #include "ansidecl.h"
11249 #include "system.h"
11250 #include <signal.h>
11257 char *(*pfn) = (char *(*)) $ac_func ;
11263 if ac_fn_cxx_try_compile
"$LINENO"; then :
11264 eval "gcc_cv_have_decl_$ac_func=yes"
11266 eval "gcc_cv_have_decl_$ac_func=no"
11268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11271 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11273 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11274 #define $ac_tr_decl 1
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11280 #define $ac_tr_decl 0
11288 # More time-related stuff.
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11290 $as_echo_n "checking for struct tms... " >&6; }
11291 if test "${ac_cv_struct_tms+set}" = set; then :
11292 $as_echo_n "(cached) " >&6
11295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11298 #include "ansidecl.h"
11299 #include "system.h"
11300 #ifdef HAVE_SYS_TIMES_H
11301 #include <sys/times.h>
11312 if ac_fn_cxx_try_compile
"$LINENO"; then :
11313 ac_cv_struct_tms
=yes
11315 ac_cv_struct_tms
=no
11317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11320 $as_echo "$ac_cv_struct_tms" >&6; }
11321 if test $ac_cv_struct_tms = yes; then
11323 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11327 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11328 # revisit after autoconf 2.50.
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11330 $as_echo_n "checking for clock_t... " >&6; }
11331 if test "${gcc_cv_type_clock_t+set}" = set; then :
11332 $as_echo_n "(cached) " >&6
11335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11338 #include "ansidecl.h"
11339 #include "system.h"
11349 if ac_fn_cxx_try_compile
"$LINENO"; then :
11350 gcc_cv_type_clock_t
=yes
11352 gcc_cv_type_clock_t
=no
11354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11357 $as_echo "$gcc_cv_type_clock_t" >&6; }
11358 if test $gcc_cv_type_clock_t = yes; then
11360 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11364 # Check if F_SETLKW is supported by fcntl.
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11366 $as_echo_n "checking for F_SETLKW... " >&6; }
11367 if test "${ac_cv_f_setlkw+set}" = set; then :
11368 $as_echo_n "(cached) " >&6
11371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11384 return fcntl (1, F_SETLKW, &fl);
11389 if ac_fn_cxx_try_compile
"$LINENO"; then :
11394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11397 $as_echo "$ac_cv_f_setlkw" >&6; }
11398 if test $ac_cv_f_setlkw = yes; then
11400 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11404 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11405 CFLAGS
="$saved_CFLAGS"
11406 CXXFLAGS
="$saved_CXXFLAGS"
11408 # mkdir takes a single argument on some systems.
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11410 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11411 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11412 $as_echo_n "(cached) " >&6
11414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11417 #include <sys/types.h>
11418 #ifdef HAVE_SYS_STAT_H
11419 # include <sys/stat.h>
11421 #ifdef HAVE_UNISTD_H
11422 # include <unistd.h>
11424 #ifdef HAVE_DIRECT_H
11425 # include <direct.h>
11435 if ac_fn_cxx_try_compile
"$LINENO"; then :
11436 gcc_cv_mkdir_takes_one_arg
=no
11438 gcc_cv_mkdir_takes_one_arg
=yes
11440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11443 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11444 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11446 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11457 # With Setjmp/Longjmp based exception handling.
11458 # Check whether --enable-sjlj-exceptions was given.
11459 if test "${enable_sjlj_exceptions+set}" = set; then :
11460 enableval
=$enable_sjlj_exceptions; case $target in
11462 if test $enableval != yes; then
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11464 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11469 force_sjlj_exceptions
=yes
11473 force_sjlj_exceptions
=yes
11477 force_sjlj_exceptions
=yes
11481 force_sjlj_exceptions
=no
11486 if test $force_sjlj_exceptions = yes; then
11487 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11489 cat >>confdefs.h
<<_ACEOF
11490 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11495 # --------------------------------------------------------
11496 # Build, host, and target specific configuration fragments
11497 # --------------------------------------------------------
11499 # Collect build-machine-specific information.
11500 .
${srcdir}/config.build ||
exit 1
11502 # Collect host-machine-specific information.
11503 .
${srcdir}/config.
host ||
exit 1
11507 # Collect target-machine-specific information.
11508 .
${srcdir}/config.gcc ||
exit 1
11510 extra_objs
="${host_extra_objs} ${extra_objs}"
11511 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11513 # Default the target-machine variables that were not explicitly set.
11514 if test x
"$tm_file" = x
11515 then tm_file
=$cpu_type/$cpu_type.h
; fi
11517 if test x
"$extra_headers" = x
11518 then extra_headers
=; fi
11520 if test x
$md_file = x
11521 then md_file
=$cpu_type/$cpu_type.md
; fi
11523 if test x
$out_file = x
11524 then out_file
=$cpu_type/$cpu_type.c
; fi
11526 if test x
"$tmake_file" = x
11527 then tmake_file
=$cpu_type/t-
$cpu_type
11530 # Support --enable-initfini-array.
11531 if test x
$enable_initfini_array != xno
; then
11532 tm_file
="${tm_file} initfini-array.h"
11535 if test x
"$dwarf2" = xyes
11536 then tm_file
="$tm_file tm-dwarf2.h"
11539 # Say what files are being used for the output code and MD file.
11540 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11541 echo "Using \`$srcdir/config/$md_file' as machine description file."
11543 # If any of the xm_file variables contain nonexistent files, warn
11544 # about them and drop them.
11547 for x
in $build_xm_file; do
11548 if test -f $srcdir/config
/$x
11550 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11551 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11554 build_xm_file
="$bx"
11557 for x
in $host_xm_file; do
11558 if test -f $srcdir/config
/$x
11560 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11561 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11567 for x
in $xm_file; do
11568 if test -f $srcdir/config
/$x
11570 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11571 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11577 for f
in $tm_file; do
11580 if test $count = ax
; then
11581 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11583 echo "Using the following target machine macro files:"
11584 for f
in $tm_file; do
11585 echo " $srcdir/config/$f"
11589 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11591 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11595 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11597 cat >>confdefs.h
<<_ACEOF
11598 #define HAVE_GNU_LD $gnu_ld_bool
11602 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11604 cat >>confdefs.h
<<_ACEOF
11605 #define HAVE_GNU_AS $gnu_as_bool
11610 for f
in $host_xm_file; do
11613 if test $count = a
; then
11615 elif test $count = ax
; then
11616 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11618 echo "Using the following host machine macro files:"
11619 for f
in $host_xm_file; do
11620 echo " $srcdir/config/$f"
11623 echo "Using ${out_host_hook_obj} for host machine hooks."
11625 if test "$host_xm_file" != "$build_xm_file"; then
11627 for f
in $build_xm_file; do
11630 if test $count = a
; then
11632 elif test $count = ax
; then
11633 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11635 echo "Using the following build machine macro files:"
11636 for f
in $build_xm_file; do
11637 echo " $srcdir/config/$f"
11642 if test -n "$configured_native_system_header_dir"; then
11643 native_system_header_dir
=$configured_native_system_header_dir
11645 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11649 powerpc
*-*-darwin*)
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11651 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11652 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11653 $as_echo_n "(cached) " >&6
11655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11656 /* end confdefs.h. */
11658 #include <sys/cdefs.h>
11659 #include <sys/signal.h>
11660 #include <ucontext.h>
11661 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11664 if ac_fn_cxx_try_compile
"$LINENO"; then :
11665 gcc_cv_mcontext_underscores
=no
11667 gcc_cv_mcontext_underscores
=yes
11669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11672 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11673 if test $gcc_cv_mcontext_underscores = yes; then
11675 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11685 # Check if a valid thread package
11686 case ${enable_threads} in
11689 target_thread_file
='single'
11693 target_thread_file
='single'
11695 aix | dce | lynx | mipssde | posix | rtems | \
11696 single | tpf | vxworks | win32
)
11697 target_thread_file
=${enable_threads}
11700 echo "${enable_threads} is an unknown thread package" 1>&2
11705 if test x
${thread_file} = x
; then
11706 # No thread file set by target-specific clauses in config.gcc,
11707 # so use file chosen by default logic above
11708 thread_file
=${target_thread_file}
11716 if test x
$enable___cxa_atexit = xyes || \
11717 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11718 if test x
$host = x
$target; then
11720 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11721 # keyed to flag_use_cxa_atexit
11729 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11730 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11733 echo "__cxa_atexit can't be enabled on this target"
11739 # We can't check for __cxa_atexit when building a cross, so assume
11743 if test x
$use_cxa_atexit = xyes
; then
11745 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11750 # Look for a file containing extra machine modes.
11751 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11752 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11755 cat >>confdefs.h
<<_ACEOF
11756 #define EXTRA_MODES_FILE "config/$extra_modes"
11761 # Convert extra_options into a form suitable for Makefile use.
11764 for f
in $extra_options; do
11765 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11766 all_opt_files
="$all_opt_files $srcdir/config/$f"
11770 # auto-host.h is the file containing items generated by autoconf and is
11771 # the first file included by config.h.
11772 # If host=build, it is correct to have bconfig include auto-host.h
11773 # as well. If host!=build, we are in error and need to do more
11774 # work to find out the build config parameters.
11775 if test x
$host = x
$build
11777 build_auto
=auto-host.h
11779 # We create a subdir, then run autoconf in the subdir.
11780 # To prevent recursion we set host and build for the new
11781 # invocation of configure to the build for this invocation
11788 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11789 *) realsrcdir
=..
/${srcdir};;
11791 # Clearing GMPINC is necessary to prevent host headers being
11792 # used by the build compiler. Defining GENERATOR_FILE stops
11793 # system.h from including gmp.h.
11794 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11795 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11796 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11797 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11798 ${realsrcdir}/configure \
11799 --enable-languages=${enable_languages-all} \
11800 --target=$target_alias --host=$build_alias --build=$build_alias
11802 # We just finished tests for the build machine, so rename
11803 # the file auto-build.h in the gcc directory.
11804 mv auto-host.h ..
/auto-build.h
11807 build_auto
=auto-build.h
11811 tm_file
="${tm_file} defaults.h"
11812 tm_p_file
="${tm_p_file} tm-preds.h"
11813 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11814 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11815 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11816 # put this back in temporarily.
11817 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11823 # Compile in configure arguments.
11824 if test -f configargs.h
; then
11825 # Being re-configured.
11826 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11827 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11829 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11832 # Double all backslashes and backslash all quotes to turn
11833 # gcc_config_arguments into a C string.
11834 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11835 $gcc_config_arguments
11837 gcc_config_arguments_str
=`cat conftest.out`
11840 cat > configargs.h
<<EOF
11841 /* Generated automatically. */
11842 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11843 static const char thread_model[] = "$thread_file";
11845 static const struct {
11846 const char *name, *value;
11847 } configure_default_options[] = $configure_default_options;
11850 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11851 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11852 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11853 if test -f $srcdir/REVISION
; then
11854 gcc_REVISION
=`cat $srcdir/REVISION`
11858 cat > plugin-version.h
<<EOF
11859 #include "configargs.h"
11861 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11862 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11863 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11864 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11866 static char basever[] = "$gcc_BASEVER";
11867 static char datestamp[] = "$gcc_DATESTAMP";
11868 static char devphase[] = "$gcc_DEVPHASE";
11869 static char revision[] = "$gcc_REVISION";
11871 /* FIXME plugins: We should make the version information more precise.
11872 One way to do is to add a checksum. */
11874 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11875 devphase, revision,
11876 configuration_arguments};
11879 # Determine what GCC version number to use in filesystem paths.
11881 get_gcc_base_ver
="cat"
11883 # Check whether --with-gcc-major-version-only was given.
11884 if test "${with_gcc_major_version_only+set}" = set; then :
11885 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
11886 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
11894 # Internationalization
11895 # If we haven't got the data from the intl directory,
11896 # assume NLS is disabled.
11905 if test -f ..
/intl
/config.intl
; then
11906 . ..
/intl
/config.intl
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11909 $as_echo_n "checking whether NLS is requested... " >&6; }
11910 if test x
"$USE_NLS" != xyes
; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912 $as_echo "no" >&6; }
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915 $as_echo "yes" >&6; }
11917 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11921 $as_echo_n "checking for catalogs to be installed... " >&6; }
11922 # Look for .po and .gmo files in the source directory.
11925 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11926 # If there aren't any .gmo files the shell will give us the
11927 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11929 case "$cat" in *\
**)
11932 # The quadruple backslash is collapsed to a double backslash
11933 # by the backticks, then collapsed again by the double quotes,
11934 # leaving us with one backslash in the sed expression (right
11935 # before the dot that mustn't act as a wildcard).
11936 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11937 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11938 # The user is allowed to set LINGUAS to a list of languages to
11939 # install catalogs for. If it's empty that means "all of them."
11940 if test "x$LINGUAS" = x
; then
11941 CATALOGS
="$CATALOGS $cat"
11942 XLINGUAS
="$XLINGUAS $lang"
11944 case "$LINGUAS" in *$lang*)
11945 CATALOGS
="$CATALOGS $cat"
11946 XLINGUAS
="$XLINGUAS $lang"
11951 LINGUAS
="$XLINGUAS"
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11953 $as_echo "$LINGUAS" >&6; }
11966 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11967 # -liconv on the link line twice.
11968 case "$LIBINTL" in *$LIBICONV*)
11972 # Check whether --enable-secureplt was given.
11973 if test "${enable_secureplt+set}" = set; then :
11974 enableval
=$enable_secureplt;
11978 # Check whether --enable-mingw-wildcard was given.
11979 if test "${enable_mingw_wildcard+set}" = set; then :
11980 enableval
=$enable_mingw_wildcard;
11982 enable_mingw_wildcard
=platform
11985 if test x
"$enable_mingw_wildcard" != xplatform
; then :
11987 cat >>confdefs.h
<<_ACEOF
11988 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
11993 # Check whether --enable-leading-mingw64-underscores was given.
11994 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11995 enableval
=$enable_leading_mingw64_underscores;
11998 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12000 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12004 # Check whether --enable-cld was given.
12005 if test "${enable_cld+set}" = set; then :
12006 enableval
=$enable_cld;
12012 # Check whether --enable-frame-pointer was given.
12013 if test "${enable_frame_pointer+set}" = set; then :
12014 enableval
=$enable_frame_pointer;
12018 linux
* | darwin
[8912]*)
12019 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12021 enable_frame_pointer
=no
12024 enable_frame_pointer
=yes
12031 # Windows32 Registry support for specifying GCC installation paths.
12032 # Check whether --enable-win32-registry was given.
12033 if test "${enable_win32_registry+set}" = set; then :
12034 enableval
=$enable_win32_registry;
12039 win32 | pe | cygwin
* | mingw32
*)
12040 if test "x$enable_win32_registry" != xno
; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12042 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12043 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12046 ac_func_search_save_LIBS
=$LIBS
12047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12050 /* Override any GCC internal prototype to avoid an error.
12051 Use char because int might match the return type of a GCC
12052 builtin and then its argument prototype would still apply. */
12056 char RegOpenKeyExA ();
12060 return RegOpenKeyExA ();
12065 for ac_lib
in '' advapi32
; do
12066 if test -z "$ac_lib"; then
12067 ac_res
="none required"
12070 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12072 if ac_fn_cxx_try_link
"$LINENO"; then :
12073 ac_cv_search_RegOpenKeyExA
=$ac_res
12075 rm -f core conftest.err conftest.
$ac_objext \
12077 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12081 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12084 ac_cv_search_RegOpenKeyExA
=no
12086 rm conftest.
$ac_ext
12087 LIBS
=$ac_func_search_save_LIBS
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12090 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12091 ac_res
=$ac_cv_search_RegOpenKeyExA
12092 if test "$ac_res" != no
; then :
12093 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12096 enable_win32_registry
=no
12101 if test "x$enable_win32_registry" != xno
; then
12103 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12106 if test "x$enable_win32_registry" != xyes \
12107 && test "x$enable_win32_registry" != x
; then
12109 cat >>confdefs.h
<<_ACEOF
12110 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12118 # Get an absolute path to the GCC top-level source directory
12119 holddir
=`${PWDCMD-pwd}`
12121 topdir
=`${PWDCMD-pwd}`
12124 # Conditionalize the makefile for this host machine.
12126 for f
in ${host_xmake_file}
12128 if test -f ${srcdir}/config
/$f
12130 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12134 # Conditionalize the makefile for this target machine.
12136 for f
in ${tmake_file}
12138 if test -f ${srcdir}/config
/$f
12140 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12143 tmake_file
="${tmake_file_}"
12145 out_object_file
=`basename $out_file .c`.o
12146 common_out_object_file
=`basename $common_out_file .c`.o
12148 tm_file_list
="options.h"
12149 tm_include_list
="options.h insn-constants.h"
12150 for f
in $tm_file; do
12153 f
=`echo $f | sed 's/^..//'`
12154 tm_file_list
="${tm_file_list} $f"
12155 tm_include_list
="${tm_include_list} $f"
12158 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12159 tm_include_list
="${tm_include_list} $f"
12162 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12163 tm_include_list
="${tm_include_list} config/$f"
12170 for f
in $tm_p_file; do
12173 tm_p_file_list
="${tm_p_file_list} $f"
12174 tm_p_include_list
="${tm_p_include_list} $f"
12177 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12178 tm_p_include_list
="${tm_p_include_list} config/$f"
12184 for f
in $xm_file; do
12187 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12188 xm_include_list
="${xm_include_list} $f"
12191 xm_file_list
="${xm_file_list} $f"
12192 xm_include_list
="${xm_include_list} $f"
12195 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12196 xm_include_list
="${xm_include_list} config/$f"
12202 host_xm_include_list
=
12203 for f
in $host_xm_file; do
12206 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12207 host_xm_include_list
="${host_xm_include_list} $f"
12210 host_xm_file_list
="${host_xm_file_list} $f"
12211 host_xm_include_list
="${host_xm_include_list} $f"
12214 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12215 host_xm_include_list
="${host_xm_include_list} config/$f"
12220 build_xm_file_list
=
12221 for f
in $build_xm_file; do
12224 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12225 build_xm_include_list
="${build_xm_include_list} $f"
12227 auto-build.h | auto-host.h
)
12228 build_xm_file_list
="${build_xm_file_list} $f"
12229 build_xm_include_list
="${build_xm_include_list} $f"
12232 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12233 build_xm_include_list
="${build_xm_include_list} config/$f"
12238 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12239 # cross-compiler which does not use the native headers and libraries.
12240 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12243 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12244 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12246 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12247 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12248 if test "x$with_build_sysroot" != x
; then
12249 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12251 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12254 if test x
$host != x
$target
12256 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12258 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12259 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12260 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12263 if test "x$with_build_sysroot" != "x"; then
12264 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12265 elif test "x$with_sysroot" = x
; then
12266 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12267 elif test "x$with_sysroot" = xyes
; then
12268 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12270 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12273 target_header_dir
=${native_system_header_dir}
12276 # If this is a cross-compiler that does not
12277 # have its own set of headers then define
12280 # If this is using newlib, without having the headers available now,
12281 # then define inhibit_libc in LIBGCC2_CFLAGS.
12282 # This prevents libgcc2 from containing any code which requires libc
12284 : ${inhibit_libc=false}
12285 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12286 test x
$with_newlib = xyes
; } &&
12287 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12292 # When building gcc with a cross-compiler, we need to adjust things so
12293 # that the generator programs are still built with the native compiler.
12294 # Also, we cannot run fixincludes.
12296 # These are the normal (build=host) settings:
12297 CC_FOR_BUILD
='$(CC)'
12298 CXX_FOR_BUILD
='$(CXX)'
12299 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12300 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12301 BUILD_LDFLAGS
='$(LDFLAGS)'
12302 STMP_FIXINC
=stmp-fixinc
12304 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12305 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12307 # And these apply if build != host, or we are generating coverage data
12308 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12310 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12311 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12312 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12314 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12315 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12316 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12317 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12322 # Expand extra_headers to include complete path.
12323 # This substitutes for lots of t-* files.
12324 extra_headers_list
=
12325 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12326 for file in ${extra_headers} ; do
12327 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12330 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12331 if test x
"$use_gcc_tgmath" = xyes
12332 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12335 # Define collect2 in Makefile.
12336 case $host_can_use_collect2 in
12338 *) collect2
='collect2$(exeext)' ;;
12342 # Add a definition of USE_COLLECT2 if system wants one.
12343 case $use_collect2 in
12344 no
) use_collect2
= ;;
12347 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12348 xm_defines
="${xm_defines} USE_COLLECT2"
12349 case $host_can_use_collect2 in
12351 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12358 cat >>confdefs.h
<<_ACEOF
12359 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12363 # ---------------------------
12364 # Assembler & linker features
12365 # ---------------------------
12367 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12368 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12369 # However when ld-new is first executed from the build tree, libtool will
12370 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12371 # to the build tree. While doing this we need to use the previous-stage
12372 # linker, or we have an infinite loop. The presence of a shell script as
12373 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12374 # the gcc/collect-ld script. So we need to know how libtool works, or
12375 # exec-tool will fail.
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12381 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12386 macro_version
='2.2.7a'
12387 macro_revision
='1.3134'
12401 ltmain
="$ac_aux_dir/ltmain.sh"
12403 # Backslashify metacharacters that are still active within
12404 # double-quoted strings.
12405 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12407 # Same as above, but do not quote variable references.
12408 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12410 # Sed substitution to delay expansion of an escaped shell variable in a
12411 # double_quote_subst'ed string.
12412 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12414 # Sed substitution to delay expansion of an escaped single quote.
12415 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12417 # Sed substitution to avoid accidental globbing in evaled expressions
12418 no_glob_subst
='s/\*/\\\*/g'
12420 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12421 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12422 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12425 $as_echo_n "checking how to print strings... " >&6; }
12426 # Test print first, because it will be a builtin if present.
12427 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12428 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12430 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12433 # Use this function as a fallback that always works.
12434 func_fallback_echo ()
12436 eval 'cat <<_LTECHO_EOF
12440 ECHO='func_fallback_echo
'
12443 # func_echo_all arg...
12444 # Invoke $ECHO with all args, space-separated.
12451 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12452 $as_echo "printf" >&6; } ;;
12453 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12454 $as_echo "print -r" >&6; } ;;
12455 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12456 $as_echo "cat" >&6; } ;;
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12473 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12474 if test "${ac_cv_path_SED+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12477 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12478 for ac_i in 1 2 3 4 5 6 7; do
12479 ac_script="$ac_script$as_nl$ac_script"
12481 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12482 { ac_script=; unset ac_script;}
12483 if test -z "$SED"; then
12484 ac_path_SED_found=false
12485 # Loop through the user's path and
test for each of PROGNAME-LIST
12486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12487 for as_dir
in $PATH
12490 test -z "$as_dir" && as_dir
=.
12491 for ac_prog
in sed gsed
; do
12492 for ac_exec_ext
in '' $ac_executable_extensions; do
12493 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12494 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12495 # Check for GNU ac_path_SED and select it if it is found.
12496 # Check for GNU $ac_path_SED
12497 case `"$ac_path_SED" --version 2>&1` in
12499 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12502 $as_echo_n 0123456789 >"conftest.in"
12505 cat "conftest.in" "conftest.in" >"conftest.tmp"
12506 mv "conftest.tmp" "conftest.in"
12507 cp "conftest.in" "conftest.nl"
12508 $as_echo '' >> "conftest.nl"
12509 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12510 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12511 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12512 if test $ac_count -gt ${ac_path_SED_max-0}; then
12513 # Best one so far, save it but keep looking for a better one
12514 ac_cv_path_SED
="$ac_path_SED"
12515 ac_path_SED_max
=$ac_count
12517 # 10*(2^10) chars as input seems more than enough
12518 test $ac_count -gt 10 && break
12520 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12523 $ac_path_SED_found && break 3
12528 if test -z "$ac_cv_path_SED"; then
12529 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12532 ac_cv_path_SED
=$SED
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12537 $as_echo "$ac_cv_path_SED" >&6; }
12538 SED
="$ac_cv_path_SED"
12541 test -z "$SED" && SED
=sed
12542 Xsed
="$SED -e 1s/^X//"
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12555 $as_echo_n "checking for fgrep... " >&6; }
12556 if test "${ac_cv_path_FGREP+set}" = set; then :
12557 $as_echo_n "(cached) " >&6
12559 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12560 then ac_cv_path_FGREP
="$GREP -F"
12562 if test -z "$FGREP"; then
12563 ac_path_FGREP_found
=false
12564 # Loop through the user's path and test for each of PROGNAME-LIST
12565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12566 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12569 test -z "$as_dir" && as_dir
=.
12570 for ac_prog
in fgrep
; do
12571 for ac_exec_ext
in '' $ac_executable_extensions; do
12572 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12573 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12574 # Check for GNU ac_path_FGREP and select it if it is found.
12575 # Check for GNU $ac_path_FGREP
12576 case `"$ac_path_FGREP" --version 2>&1` in
12578 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12581 $as_echo_n 0123456789 >"conftest.in"
12584 cat "conftest.in" "conftest.in" >"conftest.tmp"
12585 mv "conftest.tmp" "conftest.in"
12586 cp "conftest.in" "conftest.nl"
12587 $as_echo 'FGREP' >> "conftest.nl"
12588 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12589 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12590 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12591 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12592 # Best one so far, save it but keep looking for a better one
12593 ac_cv_path_FGREP
="$ac_path_FGREP"
12594 ac_path_FGREP_max
=$ac_count
12596 # 10*(2^10) chars as input seems more than enough
12597 test $ac_count -gt 10 && break
12599 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12602 $ac_path_FGREP_found && break 3
12607 if test -z "$ac_cv_path_FGREP"; then
12608 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12611 ac_cv_path_FGREP
=$FGREP
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12617 $as_echo "$ac_cv_path_FGREP" >&6; }
12618 FGREP
="$ac_cv_path_FGREP"
12621 test -z "$GREP" && GREP
=grep
12641 # Check whether --with-gnu-ld was given.
12642 if test "${with_gnu_ld+set}" = set; then :
12643 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12649 if test "$GCC" = yes; then
12650 # Check if gcc -print-prog-name=ld gives a path.
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12652 $as_echo_n "checking for ld used by $CC... " >&6; }
12655 # gcc leaves a trailing carriage return which upsets mingw
12656 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12658 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12661 # Accept absolute paths.
12663 re_direlt
='/[^/][^/]*/\.\./'
12664 # Canonicalize the pathname of ld
12665 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12666 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12667 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12669 test -z "$LD" && LD
="$ac_prog"
12672 # If it fails, then pretend we aren't using GCC.
12676 # If it is relative, then search for the first ld in PATH.
12677 with_gnu_ld
=unknown
12680 elif test "$with_gnu_ld" = yes; then
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12682 $as_echo_n "checking for GNU ld... " >&6; }
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12685 $as_echo_n "checking for non-GNU ld... " >&6; }
12687 if test "${lt_cv_path_LD+set}" = set; then :
12688 $as_echo_n "(cached) " >&6
12690 if test -z "$LD"; then
12691 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12692 for ac_dir
in $PATH; do
12694 test -z "$ac_dir" && ac_dir
=.
12695 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12696 lt_cv_path_LD
="$ac_dir/$ac_prog"
12697 # Check to see if the program is GNU ld. I'd rather use --version,
12698 # but apparently some variants of GNU ld only accept -v.
12699 # Break only if it was the GNU/non-GNU ld that we prefer.
12700 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12701 *GNU
* |
*'with BFD'*)
12702 test "$with_gnu_ld" != no
&& break
12705 test "$with_gnu_ld" != yes && break
12712 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12716 LD
="$lt_cv_path_LD"
12717 if test -n "$LD"; then
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12719 $as_echo "$LD" >&6; }
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12724 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12726 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12727 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12728 $as_echo_n "(cached) " >&6
12730 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12731 case `$LD -v 2>&1 </dev/null` in
12732 *GNU
* |
*'with BFD'*)
12733 lt_cv_prog_gnu_ld
=yes
12736 lt_cv_prog_gnu_ld
=no
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12741 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12742 with_gnu_ld
=$lt_cv_prog_gnu_ld
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12753 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12754 if test "${lt_cv_path_NM+set}" = set; then :
12755 $as_echo_n "(cached) " >&6
12757 if test -n "$NM"; then
12758 # Let the user override the test.
12759 lt_cv_path_NM
="$NM"
12761 lt_nm_to_check
="${ac_tool_prefix}nm"
12762 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12763 lt_nm_to_check
="$lt_nm_to_check nm"
12765 for lt_tmp_nm
in $lt_nm_to_check; do
12766 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12767 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12769 test -z "$ac_dir" && ac_dir
=.
12770 tmp_nm
="$ac_dir/$lt_tmp_nm"
12771 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12772 # Check to see if the nm accepts a BSD-compat flag.
12773 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12774 # nm: unknown option "B" ignored
12775 # Tru64's nm complains that /dev/null is an invalid object file
12776 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12777 */dev
/null
* |
*'Invalid file or object type'*)
12778 lt_cv_path_NM
="$tmp_nm -B"
12782 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12784 lt_cv_path_NM
="$tmp_nm -p"
12788 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12789 continue # so that we can try to find one that supports BSD flags
12798 : ${lt_cv_path_NM=no}
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12802 $as_echo "$lt_cv_path_NM" >&6; }
12803 if test "$lt_cv_path_NM" != "no"; then
12804 NM
="$lt_cv_path_NM"
12806 # Didn't find any BSD compatible name lister, look for dumpbin.
12807 if test -n "$DUMPBIN"; then :
12808 # Let the user override the test.
12810 if test -n "$ac_tool_prefix"; then
12811 for ac_prog
in dumpbin
"link -dump"
12813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12814 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816 $as_echo_n "checking for $ac_word... " >&6; }
12817 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
12820 if test -n "$DUMPBIN"; then
12821 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12824 for as_dir
in $PATH
12827 test -z "$as_dir" && as_dir
=.
12828 for ac_exec_ext
in '' $ac_executable_extensions; do
12829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12830 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12840 DUMPBIN
=$ac_cv_prog_DUMPBIN
12841 if test -n "$DUMPBIN"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12843 $as_echo "$DUMPBIN" >&6; }
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12850 test -n "$DUMPBIN" && break
12853 if test -z "$DUMPBIN"; then
12854 ac_ct_DUMPBIN
=$DUMPBIN
12855 for ac_prog
in dumpbin
"link -dump"
12857 # Extract the first word of "$ac_prog", so it can be a program name with args.
12858 set dummy
$ac_prog; ac_word
=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
12864 if test -n "$ac_ct_DUMPBIN"; then
12865 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12868 for as_dir
in $PATH
12871 test -z "$as_dir" && as_dir
=.
12872 for ac_exec_ext
in '' $ac_executable_extensions; do
12873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12874 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12884 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12885 if test -n "$ac_ct_DUMPBIN"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12887 $as_echo "$ac_ct_DUMPBIN" >&6; }
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12894 test -n "$ac_ct_DUMPBIN" && break
12897 if test "x$ac_ct_DUMPBIN" = x
; then
12900 case $cross_compiling:$ac_tool_warned in
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12904 ac_tool_warned
=yes ;;
12906 DUMPBIN
=$ac_ct_DUMPBIN
12910 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12912 DUMPBIN
="$DUMPBIN -symbols"
12920 if test "$DUMPBIN" != ":"; then
12924 test -z "$NM" && NM
=nm
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12932 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12933 if test "${lt_cv_nm_interface+set}" = set; then :
12934 $as_echo_n "(cached) " >&6
12936 lt_cv_nm_interface
="BSD nm"
12937 echo "int some_variable = 0;" > conftest.
$ac_ext
12938 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12939 (eval "$ac_compile" 2>conftest.err
)
12940 cat conftest.err
>&5
12941 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12942 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12943 cat conftest.err
>&5
12944 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12945 cat conftest.out
>&5
12946 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12947 lt_cv_nm_interface
="MS dumpbin"
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12952 $as_echo "$lt_cv_nm_interface" >&6; }
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12955 $as_echo_n "checking whether ln -s works... " >&6; }
12957 if test "$LN_S" = "ln -s"; then
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12959 $as_echo "yes" >&6; }
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12962 $as_echo "no, using $LN_S" >&6; }
12965 # find the maximum length of command line arguments
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12967 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12968 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12969 $as_echo_n "(cached) " >&6
12976 # On DJGPP, this test can blow up pretty badly due to problems in libc
12977 # (any single argument exceeding 2000 bytes causes a buffer overrun
12978 # during glob expansion). Even if it were fixed, the result of this
12979 # check would be larger than it should be.
12980 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12984 # Under GNU Hurd, this test is not required because there is
12985 # no limit to the length of command line arguments.
12986 # Libtool will interpret -1 as no limit whatsoever
12987 lt_cv_sys_max_cmd_len
=-1;
12990 cygwin
* | mingw
* | cegcc
*)
12991 # On Win9x/ME, this test blows up -- it succeeds, but takes
12992 # about 5 minutes as the teststring grows exponentially.
12993 # Worse, since 9x/ME are not pre-emptively multitasking,
12994 # you end up with a "frozen" computer, even though with patience
12995 # the test eventually succeeds (with a max line length of 256k).
12996 # Instead, let's just punt: use the minimum linelength reported by
12997 # all of the supported platforms: 8192 (on NT/2K/XP).
12998 lt_cv_sys_max_cmd_len
=8192;
13002 # On MiNT this can take a long time and run out of memory.
13003 lt_cv_sys_max_cmd_len
=8192;
13007 # On AmigaOS with pdksh, this test takes hours, literally.
13008 # So we just punt and use a minimum line length of 8192.
13009 lt_cv_sys_max_cmd_len
=8192;
13012 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13013 # This has been around since 386BSD, at least. Likely further.
13014 if test -x /sbin
/sysctl
; then
13015 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13016 elif test -x /usr
/sbin
/sysctl
; then
13017 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13019 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13021 # And add a safety zone
13022 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13023 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13027 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13028 lt_cv_sys_max_cmd_len
=196608
13032 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13033 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13034 # nice to cause kernel panics so lets avoid the loop below.
13035 # First set a reasonable default.
13036 lt_cv_sys_max_cmd_len
=16384
13038 if test -x /sbin
/sysconfig
; then
13039 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13040 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13045 lt_cv_sys_max_cmd_len
=102400
13047 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13048 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13049 if test -n "$kargmax"; then
13050 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13052 lt_cv_sys_max_cmd_len
=32768
13056 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13057 if test -n "$lt_cv_sys_max_cmd_len"; then
13058 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13059 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13061 # Make teststring a little bigger before we do anything with it.
13062 # a 1K string should be a reasonable start.
13063 for i
in 1 2 3 4 5 6 7 8 ; do
13064 teststring
=$teststring$teststring
13066 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13067 # If test is not a shell built-in, we'll probably end up computing a
13068 # maximum length that is only half of the actual maximum length, but
13070 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13071 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13072 test $i != 17 # 1/2 MB should be enough
13075 teststring
=$teststring$teststring
13077 # Only check the string length outside the loop.
13078 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13080 # Add a significant safety factor because C++ compilers can tack on
13081 # massive amounts of additional arguments before passing them to the
13082 # linker. It appears as though 1/2 is a usable value.
13083 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13090 if test -n $lt_cv_sys_max_cmd_len ; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13092 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13095 $as_echo "none" >&6; }
13097 max_cmd_len
=$lt_cv_sys_max_cmd_len
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13109 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13110 # Try some XSI features
13112 ( _lt_dummy
="a/b/c"
13113 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13115 && eval 'test $(( 1 + 1 )) -eq 2 \
13116 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13119 $as_echo "$xsi_shell" >&6; }
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13123 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13125 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13127 && lt_shell_append=yes
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13129 $as_echo "$lt_shell_append" >&6; }
13132 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13142 # test EBCDIC or ASCII
13143 case `echo X|tr X '\101'` in
13144 A) # ASCII based system
13145 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13146 lt_SP2NL='tr \040 \012'
13147 lt_NL2SP='tr \015\012 \040\040'
13149 *) # EBCDIC based system
13150 lt_SP2NL='tr \100 \n'
13151 lt_NL2SP='tr \r\n \100\100'
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13164 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13165 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13166 $as_echo_n "(cached
) " >&6
13168 lt_cv_ld_reload_flag='-r'
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13171 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13172 reload_flag=$lt_cv_ld_reload_flag
13173 case $reload_flag in
13175 *) reload_flag=" $reload_flag" ;;
13177 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13180 if test "$GCC" = yes; then
13181 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13183 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13196 if test -n "$ac_tool_prefix"; then
13197 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13198 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13200 $as_echo_n "checking
for $ac_word...
" >&6; }
13201 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13202 $as_echo_n "(cached
) " >&6
13204 if test -n "$OBJDUMP"; then
13205 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13208 for as_dir in $PATH
13211 test -z "$as_dir" && as_dir=.
13212 for ac_exec_ext in '' $ac_executable_extensions; do
13213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13214 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13215 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13224 OBJDUMP=$ac_cv_prog_OBJDUMP
13225 if test -n "$OBJDUMP"; then
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13227 $as_echo "$OBJDUMP" >&6; }
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13230 $as_echo "no
" >&6; }
13235 if test -z "$ac_cv_prog_OBJDUMP"; then
13236 ac_ct_OBJDUMP=$OBJDUMP
13237 # Extract the first word of "objdump
", so it can be a program name with args.
13238 set dummy objdump; ac_word=$2
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13240 $as_echo_n "checking
for $ac_word...
" >&6; }
13241 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13242 $as_echo_n "(cached
) " >&6
13244 if test -n "$ac_ct_OBJDUMP"; then
13245 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248 for as_dir in $PATH
13251 test -z "$as_dir" && as_dir=.
13252 for ac_exec_ext in '' $ac_executable_extensions; do
13253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13254 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13255 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13264 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13265 if test -n "$ac_ct_OBJDUMP"; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13267 $as_echo "$ac_ct_OBJDUMP" >&6; }
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13270 $as_echo "no
" >&6; }
13273 if test "x
$ac_ct_OBJDUMP" = x; then
13276 case $cross_compiling:$ac_tool_warned in
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13279 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13280 ac_tool_warned=yes ;;
13282 OBJDUMP=$ac_ct_OBJDUMP
13285 OBJDUMP="$ac_cv_prog_OBJDUMP"
13288 test -z "$OBJDUMP" && OBJDUMP=objdump
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13299 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13300 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13301 $as_echo_n "(cached
) " >&6
13303 lt_cv_file_magic_cmd='$MAGIC_CMD'
13304 lt_cv_file_magic_test_file=
13305 lt_cv_deplibs_check_method='unknown'
13306 # Need to set the preceding variable on all platforms that support
13307 # interlibrary dependencies.
13308 # 'none' -- dependencies not supported.
13309 # `unknown' -- same as none, but documents that we really don't know.
13310 # 'pass_all' -- all dependencies passed with no checks.
13311 # 'test_compile' -- check by making test program.
13312 # 'file_magic [[regex]]' -- check by looking for files in library path
13313 # which responds to the $file_magic_cmd with a given extended regex.
13314 # If you have `file' or equivalent on your system and you're not sure
13315 # whether `pass_all' will *always* work, you probably want this one.
13319 lt_cv_deplibs_check_method=pass_all
13323 lt_cv_deplibs_check_method=pass_all
13327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13328 lt_cv_file_magic_cmd='/usr/bin/file -L'
13329 lt_cv_file_magic_test_file=/shlib/libc.so
13333 # func_win32_libid is a shell function defined in ltmain.sh
13334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13335 lt_cv_file_magic_cmd='func_win32_libid'
13339 # Base MSYS/MinGW do not provide the 'file' command needed by
13340 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13341 # unless we find 'file', for example because we are cross-compiling.
13342 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13343 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13345 lt_cv_file_magic_cmd='func_win32_libid'
13347 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13348 lt_cv_file_magic_cmd='$OBJDUMP -f'
13353 # use the weaker test based on 'objdump'. See mingw*.
13354 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13355 lt_cv_file_magic_cmd='$OBJDUMP -f'
13358 darwin* | rhapsody*)
13359 lt_cv_deplibs_check_method=pass_all
13362 freebsd* | dragonfly*)
13363 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13366 # Not sure whether the presence of OpenBSD here was a mistake.
13367 # Let's accept both of them until this is cleared up.
13368 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13369 lt_cv_file_magic_cmd=/usr/bin/file
13370 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13374 lt_cv_deplibs_check_method=pass_all
13379 lt_cv_deplibs_check_method=pass_all
13383 lt_cv_deplibs_check_method=pass_all
13386 hpux10.20* | hpux11*)
13387 lt_cv_file_magic_cmd=/usr/bin/file
13390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13391 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13394 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]'
13395 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13398 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13399 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13405 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13409 irix5* | irix6* | nonstopux*)
13411 *-32|*"-32 ") libmagic=32-bit;;
13412 *-n32|*"-n32 ") libmagic=N32;;
13413 *-64|*"-64 ") libmagic=64-bit;;
13414 *) libmagic=never-match;;
13416 lt_cv_deplibs_check_method=pass_all
13419 # This must be Linux ELF.
13420 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13421 lt_cv_deplibs_check_method=pass_all
13425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13434 lt_cv_file_magic_cmd=/usr/bin/file
13435 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13439 lt_cv_deplibs_check_method=pass_all
13443 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13450 osf3* | osf4* | osf5*)
13451 lt_cv_deplibs_check_method=pass_all
13455 lt_cv_deplibs_check_method=pass_all
13459 lt_cv_deplibs_check_method=pass_all
13462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13463 lt_cv_deplibs_check_method=pass_all
13467 case $host_vendor in
13469 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]'
13470 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13473 lt_cv_deplibs_check_method=pass_all
13476 lt_cv_file_magic_cmd='/bin/file'
13477 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13480 lt_cv_file_magic_cmd='/bin/file'
13481 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13482 lt_cv_file_magic_test_file=/lib/libc.so
13485 lt_cv_deplibs_check_method=pass_all
13488 lt_cv_deplibs_check_method=pass_all
13494 lt_cv_deplibs_check_method=pass_all
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13500 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13501 file_magic_cmd=$lt_cv_file_magic_cmd
13502 deplibs_check_method=$lt_cv_deplibs_check_method
13503 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13516 if test -n "$ac_tool_prefix"; then
13517 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13518 set dummy ${ac_tool_prefix}ar; ac_word=$2
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13520 $as_echo_n "checking
for $ac_word...
" >&6; }
13521 if test "${ac_cv_prog_AR+set}" = set; then :
13522 $as_echo_n "(cached
) " >&6
13524 if test -n "$AR"; then
13525 ac_cv_prog_AR="$AR" # Let the user override the test.
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13534 ac_cv_prog_AR="${ac_tool_prefix}ar"
13535 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13545 if test -n "$AR"; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13547 $as_echo "$AR" >&6; }
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13550 $as_echo "no
" >&6; }
13555 if test -z "$ac_cv_prog_AR"; then
13557 # Extract the first word of "ar", so it can be a program name with args.
13558 set dummy ar; ac_word=$2
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13560 $as_echo_n "checking
for $ac_word...
" >&6; }
13561 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13562 $as_echo_n "(cached
) " >&6
13564 if test -n "$ac_ct_AR"; then
13565 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568 for as_dir in $PATH
13571 test -z "$as_dir" && as_dir=.
13572 for ac_exec_ext in '' $ac_executable_extensions; do
13573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13574 ac_cv_prog_ac_ct_AR="ar"
13575 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13584 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13585 if test -n "$ac_ct_AR"; then
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13587 $as_echo "$ac_ct_AR" >&6; }
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13590 $as_echo "no
" >&6; }
13593 if test "x
$ac_ct_AR" = x; then
13596 case $cross_compiling:$ac_tool_warned in
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13599 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13600 ac_tool_warned=yes ;;
13605 AR="$ac_cv_prog_AR"
13608 test -z "$AR" && AR=ar
13609 test -z "$AR_FLAGS" && AR_FLAGS=cru
13621 if test -n "$ac_tool_prefix"; then
13622 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13623 set dummy ${ac_tool_prefix}strip; ac_word=$2
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13625 $as_echo_n "checking
for $ac_word...
" >&6; }
13626 if test "${ac_cv_prog_STRIP+set}" = set; then :
13627 $as_echo_n "(cached
) " >&6
13629 if test -n "$STRIP"; then
13630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13633 for as_dir in $PATH
13636 test -z "$as_dir" && as_dir=.
13637 for ac_exec_ext in '' $ac_executable_extensions; do
13638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13639 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13640 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13649 STRIP=$ac_cv_prog_STRIP
13650 if test -n "$STRIP"; then
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13652 $as_echo "$STRIP" >&6; }
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13655 $as_echo "no
" >&6; }
13660 if test -z "$ac_cv_prog_STRIP"; then
13662 # Extract the first word of "strip
", so it can be a program name with args.
13663 set dummy strip; ac_word=$2
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13665 $as_echo_n "checking
for $ac_word...
" >&6; }
13666 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13667 $as_echo_n "(cached
) " >&6
13669 if test -n "$ac_ct_STRIP"; then
13670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13673 for as_dir in $PATH
13676 test -z "$as_dir" && as_dir=.
13677 for ac_exec_ext in '' $ac_executable_extensions; do
13678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13679 ac_cv_prog_ac_ct_STRIP="strip
"
13680 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13689 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13690 if test -n "$ac_ct_STRIP"; then
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13692 $as_echo "$ac_ct_STRIP" >&6; }
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13695 $as_echo "no
" >&6; }
13698 if test "x
$ac_ct_STRIP" = x; then
13701 case $cross_compiling:$ac_tool_warned in
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13704 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13705 ac_tool_warned=yes ;;
13710 STRIP="$ac_cv_prog_STRIP"
13713 test -z "$STRIP" && STRIP=:
13720 if test -n "$ac_tool_prefix"; then
13721 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13724 $as_echo_n "checking
for $ac_word...
" >&6; }
13725 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13726 $as_echo_n "(cached
) " >&6
13728 if test -n "$RANLIB"; then
13729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13732 for as_dir in $PATH
13735 test -z "$as_dir" && as_dir=.
13736 for ac_exec_ext in '' $ac_executable_extensions; do
13737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13739 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13748 RANLIB=$ac_cv_prog_RANLIB
13749 if test -n "$RANLIB"; then
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13751 $as_echo "$RANLIB" >&6; }
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13754 $as_echo "no
" >&6; }
13759 if test -z "$ac_cv_prog_RANLIB"; then
13760 ac_ct_RANLIB=$RANLIB
13761 # Extract the first word of "ranlib
", so it can be a program name with args.
13762 set dummy ranlib; ac_word=$2
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13764 $as_echo_n "checking
for $ac_word...
" >&6; }
13765 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13766 $as_echo_n "(cached
) " >&6
13768 if test -n "$ac_ct_RANLIB"; then
13769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13772 for as_dir in $PATH
13775 test -z "$as_dir" && as_dir=.
13776 for ac_exec_ext in '' $ac_executable_extensions; do
13777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13778 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13779 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13788 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13789 if test -n "$ac_ct_RANLIB"; then
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13791 $as_echo "$ac_ct_RANLIB" >&6; }
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13794 $as_echo "no
" >&6; }
13797 if test "x
$ac_ct_RANLIB" = x; then
13800 case $cross_compiling:$ac_tool_warned in
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13803 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13804 ac_tool_warned=yes ;;
13806 RANLIB=$ac_ct_RANLIB
13809 RANLIB="$ac_cv_prog_RANLIB"
13812 test -z "$RANLIB" && RANLIB=:
13819 # Determine commands to create old-style static archives.
13820 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13821 old_postinstall_cmds='chmod 644 $oldlib'
13822 old_postuninstall_cmds=
13824 if test -n "$RANLIB"; then
13827 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13830 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13833 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13838 lock_old_archive_extraction=yes ;;
13840 lock_old_archive_extraction=no ;;
13881 # If no C compiler was specified, use CC.
13884 # If no C compiler flags were specified, use CFLAGS.
13885 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13887 # Allow CC to be a program name with arguments.
13891 # Check for command to grab the raw symbol name followed by C symbol from nm.
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13893 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13894 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13895 $as_echo_n "(cached
) " >&6
13898 # These are sane defaults that work on at least a few old systems.
13899 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13901 # Character class describing NM global symbol codes.
13902 symcode='[BCDEGRST]'
13904 # Regexp to match symbols that can be accessed directly from C.
13905 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13907 # Define system-specific variables.
13912 cygwin* | mingw* | pw32* | cegcc*)
13913 symcode='[ABCDGISTW]'
13916 if test "$host_cpu" = ia64; then
13917 symcode='[ABCDEGRST]'
13920 irix* | nonstopux*)
13921 symcode='[BCDEGRST]'
13924 symcode='[BCDEGQRST]'
13935 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13943 # If we're using GNU nm, then use its standard symbol codes.
13944 case `$NM -V 2>&1` in
13945 *GNU* | *'with BFD'*)
13946 symcode='[ABCDGIRSTW]' ;;
13949 # Transform an extracted symbol line into a proper C declaration.
13950 # Some systems (esp. on ia64) link data and code symbols differently,
13951 # so use this general approach.
13952 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13954 # Transform an extracted symbol line into symbol name and symbol address
13955 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13956 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'"
13958 # Handle CRLF in mingw tool chain
13962 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13966 # Try without a prefix underscore, then with it.
13967 for ac_symprfx in "" "_
"; do
13969 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13970 symxfrm="\\1 $ac_symprfx\\2 \\2"
13972 # Write the raw and C identifiers.
13973 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13974 # Fake it for dumpbin and say T for any non-static function
13975 # and D for any global variable.
13976 # Also find C++ and __fastcall symbols from MSVC++,
13977 # which start with @ or ?.
13978 lt_cv_sys_global_symbol_pipe="$AWK '"\
13979 " {last_section=section; section=\$ 3};"\
13980 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13981 " \$ 0!~/External *\|/{next};"\
13982 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13983 " {if(hide[section]) next};"\
13984 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13985 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13986 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13987 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13988 " ' prfx
=^
$ac_symprfx"
13990 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13993 # Check to see that the pipe works correctly.
13997 cat > conftest.$ac_ext <<_LT_EOF
14002 void nm_test_func(void);
14003 void nm_test_func(void){}
14007 int main(){nm_test_var='a';nm_test_func();return(0);}
14010 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14011 (eval $ac_compile) 2>&5
14013 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14014 test $ac_status = 0; }; then
14015 # Now try to grab the symbols.
14017 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14018 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14020 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14021 test $ac_status = 0; } && test -s "$nlist"; then
14022 # Try sorting and uniquifying the output.
14023 if sort "$nlist" | uniq > "$nlist"T; then
14024 mv -f "$nlist"T "$nlist"
14029 # Make sure that we snagged all the symbols we need.
14030 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14031 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14032 cat <<_LT_EOF > conftest.$ac_ext
14038 # Now generate the symbol file.
14039 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14041 cat <<_LT_EOF >> conftest.$ac_ext
14043 /* The mapping between symbol names and symbols. */
14048 lt__PROGRAM__LTX_preloaded_symbols[] =
14050 { "@PROGRAM@
", (void *) 0 },
14052 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14053 cat <<\_LT_EOF >> conftest.$ac_ext
14057 /* This works around a problem in FreeBSD linker */
14058 #ifdef FREEBSD_WORKAROUND
14059 static const void *lt_preloaded_setup() {
14060 return lt__PROGRAM__LTX_preloaded_symbols;
14068 # Now try linking the two files.
14069 mv conftest.$ac_objext conftstm.$ac_objext
14070 lt_save_LIBS="$LIBS"
14071 lt_save_CFLAGS="$CFLAGS"
14072 LIBS="conftstm.
$ac_objext"
14073 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14074 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14075 (eval $ac_link) 2>&5
14077 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14078 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14081 LIBS="$lt_save_LIBS"
14082 CFLAGS="$lt_save_CFLAGS"
14084 echo "cannot
find nm_test_func
in $nlist" >&5
14087 echo "cannot
find nm_test_var
in $nlist" >&5
14090 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14093 echo "$progname: failed program was
:" >&5
14094 cat conftest.$ac_ext >&5
14096 rm -rf conftest* conftst*
14098 # Do not use the global_symbol_pipe unless it works.
14099 if test "$pipe_works" = yes; then
14102 lt_cv_sys_global_symbol_pipe=
14108 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14109 lt_cv_sys_global_symbol_to_cdecl=
14111 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14113 $as_echo "failed
" >&6; }
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14116 $as_echo "ok
" >&6; }
14140 # Check whether --enable-libtool-lock was given.
14141 if test "${enable_libtool_lock+set}" = set; then :
14142 enableval=$enable_libtool_lock;
14145 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14147 # Some flags need to be propagated to the compiler or linker for good
14151 # Find out which ABI we are using.
14152 echo 'int i;' > conftest.$ac_ext
14153 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14154 (eval $ac_compile) 2>&5
14156 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14157 test $ac_status = 0; }; then
14158 case `/usr/bin/file conftest.$ac_objext` in
14160 HPUX_IA64_MODE="32"
14163 HPUX_IA64_MODE="64"
14170 # Find out which ABI we are using.
14171 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14172 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14173 (eval $ac_compile) 2>&5
14175 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14176 test $ac_status = 0; }; then
14177 if test "$lt_cv_prog_gnu_ld" = yes; then
14178 case `/usr/bin/file conftest.$ac_objext` in
14180 LD="${LD-ld} -melf32bsmip"
14183 LD="${LD-ld} -melf32bmipn32"
14186 LD="${LD-ld} -melf64bmip"
14190 case `/usr/bin/file conftest.$ac_objext` in
14206 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14207 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14208 # Find out which ABI we are using.
14209 echo 'int i;' > conftest.$ac_ext
14210 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14211 (eval $ac_compile) 2>&5
14213 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14214 test $ac_status = 0; }; then
14215 case `/usr/bin/file conftest.o` in
14218 x86_64-*kfreebsd*-gnu)
14219 LD="${LD-ld} -m elf_i386_fbsd
"
14222 case `/usr/bin/file conftest.o` in
14224 LD="${LD-ld} -m elf32_x86_64
"
14227 LD="${LD-ld} -m elf_i386
"
14231 powerpc64le-*linux*)
14232 LD="${LD-ld} -m elf32lppclinux
"
14235 LD="${LD-ld} -m elf32ppclinux
"
14238 LD="${LD-ld} -m elf_s390
"
14241 LD="${LD-ld} -m elf32_sparc
"
14247 x86_64-*kfreebsd*-gnu)
14248 LD="${LD-ld} -m elf_x86_64_fbsd
"
14251 LD="${LD-ld} -m elf_x86_64
"
14254 LD="${LD-ld} -m elf64lppc
"
14257 LD="${LD-ld} -m elf64ppc
"
14259 s390*-*linux*|s390*-*tpf*)
14260 LD="${LD-ld} -m elf64_s390
"
14263 LD="${LD-ld} -m elf64_sparc
"
14273 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14274 SAVE_CFLAGS="$CFLAGS"
14275 CFLAGS="$CFLAGS -belf"
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14277 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14278 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14279 $as_echo_n "(cached
) " >&6
14282 ac_cpp='$CPP $CPPFLAGS'
14283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14298 if ac_fn_c_try_link "$LINENO"; then :
14299 lt_cv_cc_needs_belf=yes
14301 lt_cv_cc_needs_belf=no
14303 rm -f core conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
14306 ac_cpp='$CPP $CPPFLAGS'
14307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14313 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14314 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14315 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14316 CFLAGS="$SAVE_CFLAGS"
14320 # Find out which ABI we are using.
14321 echo 'int i;' > conftest.$ac_ext
14322 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14323 (eval $ac_compile) 2>&5
14325 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14326 test $ac_status = 0; }; then
14327 case `/usr/bin/file conftest.o` in
14329 case $lt_cv_prog_gnu_ld in
14330 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14332 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14344 need_locks="$enable_libtool_lock"
14348 rhapsody* | darwin*)
14349 if test -n "$ac_tool_prefix"; then
14350 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14351 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14353 $as_echo_n "checking
for $ac_word...
" >&6; }
14354 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14355 $as_echo_n "(cached
) " >&6
14357 if test -n "$DSYMUTIL"; then
14358 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14361 for as_dir in $PATH
14364 test -z "$as_dir" && as_dir=.
14365 for ac_exec_ext in '' $ac_executable_extensions; do
14366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14367 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14368 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14377 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14378 if test -n "$DSYMUTIL"; then
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14380 $as_echo "$DSYMUTIL" >&6; }
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14383 $as_echo "no
" >&6; }
14388 if test -z "$ac_cv_prog_DSYMUTIL"; then
14389 ac_ct_DSYMUTIL=$DSYMUTIL
14390 # Extract the first word of "dsymutil
", so it can be a program name with args.
14391 set dummy dsymutil; ac_word=$2
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14393 $as_echo_n "checking
for $ac_word...
" >&6; }
14394 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14395 $as_echo_n "(cached
) " >&6
14397 if test -n "$ac_ct_DSYMUTIL"; then
14398 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14401 for as_dir in $PATH
14404 test -z "$as_dir" && as_dir=.
14405 for ac_exec_ext in '' $ac_executable_extensions; do
14406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14407 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14408 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14417 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14418 if test -n "$ac_ct_DSYMUTIL"; then
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14420 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14423 $as_echo "no
" >&6; }
14426 if test "x
$ac_ct_DSYMUTIL" = x; then
14429 case $cross_compiling:$ac_tool_warned in
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14432 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14433 ac_tool_warned=yes ;;
14435 DSYMUTIL=$ac_ct_DSYMUTIL
14438 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14441 if test -n "$ac_tool_prefix"; then
14442 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14443 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14445 $as_echo_n "checking
for $ac_word...
" >&6; }
14446 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14447 $as_echo_n "(cached
) " >&6
14449 if test -n "$NMEDIT"; then
14450 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14453 for as_dir in $PATH
14456 test -z "$as_dir" && as_dir=.
14457 for ac_exec_ext in '' $ac_executable_extensions; do
14458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14459 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14460 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14469 NMEDIT=$ac_cv_prog_NMEDIT
14470 if test -n "$NMEDIT"; then
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14472 $as_echo "$NMEDIT" >&6; }
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14475 $as_echo "no
" >&6; }
14480 if test -z "$ac_cv_prog_NMEDIT"; then
14481 ac_ct_NMEDIT=$NMEDIT
14482 # Extract the first word of "nmedit
", so it can be a program name with args.
14483 set dummy nmedit; ac_word=$2
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14485 $as_echo_n "checking
for $ac_word...
" >&6; }
14486 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14487 $as_echo_n "(cached
) " >&6
14489 if test -n "$ac_ct_NMEDIT"; then
14490 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14493 for as_dir in $PATH
14496 test -z "$as_dir" && as_dir=.
14497 for ac_exec_ext in '' $ac_executable_extensions; do
14498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14499 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14500 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14509 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14510 if test -n "$ac_ct_NMEDIT"; then
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14512 $as_echo "$ac_ct_NMEDIT" >&6; }
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14515 $as_echo "no
" >&6; }
14518 if test "x
$ac_ct_NMEDIT" = x; then
14521 case $cross_compiling:$ac_tool_warned in
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14524 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14525 ac_tool_warned=yes ;;
14527 NMEDIT=$ac_ct_NMEDIT
14530 NMEDIT="$ac_cv_prog_NMEDIT"
14533 if test -n "$ac_tool_prefix"; then
14534 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14535 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14537 $as_echo_n "checking
for $ac_word...
" >&6; }
14538 if test "${ac_cv_prog_LIPO+set}" = set; then :
14539 $as_echo_n "(cached
) " >&6
14541 if test -n "$LIPO"; then
14542 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14545 for as_dir in $PATH
14548 test -z "$as_dir" && as_dir=.
14549 for ac_exec_ext in '' $ac_executable_extensions; do
14550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14551 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14552 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14561 LIPO=$ac_cv_prog_LIPO
14562 if test -n "$LIPO"; then
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14564 $as_echo "$LIPO" >&6; }
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14567 $as_echo "no
" >&6; }
14572 if test -z "$ac_cv_prog_LIPO"; then
14574 # Extract the first word of "lipo
", so it can be a program name with args.
14575 set dummy lipo; ac_word=$2
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14577 $as_echo_n "checking
for $ac_word...
" >&6; }
14578 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14579 $as_echo_n "(cached
) " >&6
14581 if test -n "$ac_ct_LIPO"; then
14582 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14585 for as_dir in $PATH
14588 test -z "$as_dir" && as_dir=.
14589 for ac_exec_ext in '' $ac_executable_extensions; do
14590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14591 ac_cv_prog_ac_ct_LIPO="lipo
"
14592 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14601 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14602 if test -n "$ac_ct_LIPO"; then
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14604 $as_echo "$ac_ct_LIPO" >&6; }
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14607 $as_echo "no
" >&6; }
14610 if test "x
$ac_ct_LIPO" = x; then
14613 case $cross_compiling:$ac_tool_warned in
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14616 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14617 ac_tool_warned=yes ;;
14622 LIPO="$ac_cv_prog_LIPO"
14625 if test -n "$ac_tool_prefix"; then
14626 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14627 set dummy ${ac_tool_prefix}otool; ac_word=$2
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14629 $as_echo_n "checking
for $ac_word...
" >&6; }
14630 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14631 $as_echo_n "(cached
) " >&6
14633 if test -n "$OTOOL"; then
14634 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 for as_dir in $PATH
14640 test -z "$as_dir" && as_dir=.
14641 for ac_exec_ext in '' $ac_executable_extensions; do
14642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14643 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14644 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14653 OTOOL=$ac_cv_prog_OTOOL
14654 if test -n "$OTOOL"; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14656 $as_echo "$OTOOL" >&6; }
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14659 $as_echo "no
" >&6; }
14664 if test -z "$ac_cv_prog_OTOOL"; then
14666 # Extract the first word of "otool
", so it can be a program name with args.
14667 set dummy otool; ac_word=$2
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14669 $as_echo_n "checking
for $ac_word...
" >&6; }
14670 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14671 $as_echo_n "(cached
) " >&6
14673 if test -n "$ac_ct_OTOOL"; then
14674 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14677 for as_dir in $PATH
14680 test -z "$as_dir" && as_dir=.
14681 for ac_exec_ext in '' $ac_executable_extensions; do
14682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14683 ac_cv_prog_ac_ct_OTOOL="otool
"
14684 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14693 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14694 if test -n "$ac_ct_OTOOL"; then
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14696 $as_echo "$ac_ct_OTOOL" >&6; }
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14699 $as_echo "no
" >&6; }
14702 if test "x
$ac_ct_OTOOL" = x; then
14705 case $cross_compiling:$ac_tool_warned in
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14708 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14709 ac_tool_warned=yes ;;
14714 OTOOL="$ac_cv_prog_OTOOL"
14717 if test -n "$ac_tool_prefix"; then
14718 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14719 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14721 $as_echo_n "checking
for $ac_word...
" >&6; }
14722 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14723 $as_echo_n "(cached
) " >&6
14725 if test -n "$OTOOL64"; then
14726 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14729 for as_dir in $PATH
14732 test -z "$as_dir" && as_dir=.
14733 for ac_exec_ext in '' $ac_executable_extensions; do
14734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14735 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14736 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14745 OTOOL64=$ac_cv_prog_OTOOL64
14746 if test -n "$OTOOL64"; then
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14748 $as_echo "$OTOOL64" >&6; }
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14751 $as_echo "no
" >&6; }
14756 if test -z "$ac_cv_prog_OTOOL64"; then
14757 ac_ct_OTOOL64=$OTOOL64
14758 # Extract the first word of "otool64
", so it can be a program name with args.
14759 set dummy otool64; ac_word=$2
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14761 $as_echo_n "checking
for $ac_word...
" >&6; }
14762 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14763 $as_echo_n "(cached
) " >&6
14765 if test -n "$ac_ct_OTOOL64"; then
14766 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14769 for as_dir in $PATH
14772 test -z "$as_dir" && as_dir=.
14773 for ac_exec_ext in '' $ac_executable_extensions; do
14774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14775 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14776 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14785 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14786 if test -n "$ac_ct_OTOOL64"; then
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14788 $as_echo "$ac_ct_OTOOL64" >&6; }
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14791 $as_echo "no
" >&6; }
14794 if test "x
$ac_ct_OTOOL64" = x; then
14797 case $cross_compiling:$ac_tool_warned in
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14800 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14801 ac_tool_warned=yes ;;
14803 OTOOL64=$ac_ct_OTOOL64
14806 OTOOL64="$ac_cv_prog_OTOOL64"
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14836 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14837 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14838 $as_echo_n "(cached
) " >&6
14840 lt_cv_apple_cc_single_mod=no
14841 if test -z "${LT_MULTI_MODULE}"; then
14842 # By default we will add the -single_module flag. You can override
14843 # by either setting the environment variable LT_MULTI_MODULE
14844 # non-empty at configure time, or by adding -multi_module to the
14846 rm -rf libconftest.dylib*
14847 echo "int foo
(void
){return 1;}" > conftest.c
14848 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14849 -dynamiclib -Wl,-single_module conftest.c
" >&5
14850 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14851 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14853 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14854 lt_cv_apple_cc_single_mod=yes
14856 cat conftest.err >&5
14858 rm -rf libconftest.dylib*
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14863 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14865 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14866 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14867 $as_echo_n "(cached
) " >&6
14869 lt_cv_ld_exported_symbols_list=no
14870 save_LDFLAGS=$LDFLAGS
14871 echo "_main
" > conftest.sym
14872 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h. */
14884 if ac_fn_c_try_link "$LINENO"; then :
14885 lt_cv_ld_exported_symbols_list=yes
14887 lt_cv_ld_exported_symbols_list=no
14889 rm -f core conftest.err conftest.$ac_objext \
14890 conftest$ac_exeext conftest.$ac_ext
14891 LDFLAGS="$save_LDFLAGS"
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14895 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14897 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14898 if test "${lt_cv_ld_force_load+set}" = set; then :
14899 $as_echo_n "(cached
) " >&6
14901 lt_cv_ld_force_load=no
14902 cat > conftest.c << _LT_EOF
14903 int forced_loaded() { return 2;}
14905 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14906 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14907 echo "$AR cru libconftest.a conftest.o
" >&5
14908 $AR cru libconftest.a conftest.o 2>&5
14909 cat > conftest.c << _LT_EOF
14910 int main() { return 0;}
14912 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14913 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14915 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14916 lt_cv_ld_force_load=yes
14918 cat conftest.err >&5
14920 rm -f conftest.err libconftest.a conftest conftest.c
14921 rm -rf conftest.dSYM
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14925 $as_echo "$lt_cv_ld_force_load" >&6; }
14927 rhapsody* | darwin1.[012])
14928 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14930 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14931 darwin*) # darwin 5.x on
14932 # if running on 10.5 or later, the deployment target defaults
14933 # to the OS version, if on x86, and 10.4, the deployment
14934 # target defaults to 10.4. Don't you love it?
14935 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14936 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14937 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14939 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14941 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14945 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14946 _lt_dar_single_mod='$single_module'
14948 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14949 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14951 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14953 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14954 _lt_dsymutil='~$DSYMUTIL $lib || :'
14962 for ac_header in dlfcn.h
14964 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14965 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14966 cat >>confdefs.h <<_ACEOF
14967 #define HAVE_DLFCN_H 1
14984 enable_win32_dll=no
14987 # Check whether --enable-shared was given.
14988 if test "${enable_shared+set}" = set; then :
14989 enableval=$enable_shared; p=${PACKAGE-default}
14991 yes) enable_shared=yes ;;
14992 no) enable_shared=no ;;
14995 # Look at the argument we got. We use all the common list separators.
14996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14997 for pkg in $enableval; do
14999 if test "X
$pkg" = "X
$p"; then
15018 # Check whether --enable-static was given.
15019 if test "${enable_static+set}" = set; then :
15020 enableval=$enable_static; p=${PACKAGE-default}
15022 yes) enable_static=yes ;;
15023 no) enable_static=no ;;
15026 # Look at the argument we got. We use all the common list separators.
15027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15028 for pkg in $enableval; do
15030 if test "X
$pkg" = "X
$p"; then
15050 # Check whether --with-pic was given.
15051 if test "${with_pic+set}" = set; then :
15052 withval=$with_pic; pic_mode="$withval"
15058 test -z "$pic_mode" && pic_mode=default
15066 # Check whether --enable-fast-install was given.
15067 if test "${enable_fast_install+set}" = set; then :
15068 enableval=$enable_fast_install; p=${PACKAGE-default}
15070 yes) enable_fast_install=yes ;;
15071 no) enable_fast_install=no ;;
15073 enable_fast_install=no
15074 # Look at the argument we got. We use all the common list separators.
15075 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15076 for pkg in $enableval; do
15078 if test "X
$pkg" = "X
$p"; then
15079 enable_fast_install=yes
15086 enable_fast_install=yes
15099 # This can be used to rebuild libtool when needed
15100 LIBTOOL_DEPS="$ltmain"
15102 # Always use our own libtool.
15103 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15130 test -z "$LN_S" && LN_S="ln -s"
15145 if test -n "${ZSH_VERSION+set}" ; then
15146 setopt NO_GLOB_SUBST
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15150 $as_echo_n "checking
for objdir...
" >&6; }
15151 if test "${lt_cv_objdir+set}" = set; then :
15152 $as_echo_n "(cached
) " >&6
15154 rm -f .libs 2>/dev/null
15155 mkdir .libs 2>/dev/null
15156 if test -d .libs; then
15159 # MS-DOS does not allow filenames that begin with a dot.
15162 rmdir .libs 2>/dev/null
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15165 $as_echo "$lt_cv_objdir" >&6; }
15166 objdir=$lt_cv_objdir
15172 cat >>confdefs.h <<_ACEOF
15173 #define LT_OBJDIR "$lt_cv_objdir/"
15181 # AIX sometimes has problems with the GCC collect2 program. For some
15182 # reason, if we set the COLLECT_NAMES environment variable, the problems
15183 # vanish in a puff of smoke.
15184 if test "X
${COLLECT_NAMES+set}" != Xset; then
15186 export COLLECT_NAMES
15191 # Global variables:
15193 can_build_shared=yes
15195 # All known linkers require a `.a' archive for static linking (except MSVC,
15196 # which needs '.lib').
15199 with_gnu_ld="$lt_cv_prog_gnu_ld"
15202 old_CFLAGS="$CFLAGS"
15204 # Set sane defaults for various variables
15205 test -z "$CC" && CC=cc
15206 test -z "$LTCC" && LTCC=$CC
15207 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15208 test -z "$LD" && LD=ld
15209 test -z "$ac_objext" && ac_objext=o
15211 for cc_temp in $compiler""; do
15213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15219 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15222 # Only perform the check for file, if the check method requires it
15223 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15224 case $deplibs_check_method in
15226 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15228 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15229 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15230 $as_echo_n "(cached
) " >&6
15234 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15237 lt_save_MAGIC_CMD="$MAGIC_CMD"
15238 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15239 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15240 for ac_dir in $ac_dummy; do
15242 test -z "$ac_dir" && ac_dir=.
15243 if test -f $ac_dir/${ac_tool_prefix}file; then
15244 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15245 if test -n "$file_magic_test_file"; then
15246 case $deplibs_check_method in
15248 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15250 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15251 $EGREP "$file_magic_regex" > /dev/null; then
15256 *** Warning: the command libtool uses to detect shared libraries,
15257 *** $file_magic_cmd, produces output that libtool cannot recognize.
15258 *** The result is that libtool may fail to recognize shared libraries
15259 *** as such. This will affect the creation of libtool libraries that
15260 *** depend on shared libraries, but programs linked with such libtool
15261 *** libraries will work regardless of this problem. Nevertheless, you
15262 *** may want to report the problem to your system manager and/or to
15263 *** bug-libtool@gnu.org
15273 MAGIC_CMD="$lt_save_MAGIC_CMD"
15278 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15279 if test -n "$MAGIC_CMD"; then
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15281 $as_echo "$MAGIC_CMD" >&6; }
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15284 $as_echo "no
" >&6; }
15291 if test -z "$lt_cv_path_MAGIC_CMD"; then
15292 if test -n "$ac_tool_prefix"; then
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15294 $as_echo_n "checking
for file...
" >&6; }
15295 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15296 $as_echo_n "(cached
) " >&6
15300 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15303 lt_save_MAGIC_CMD="$MAGIC_CMD"
15304 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15305 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15306 for ac_dir in $ac_dummy; do
15308 test -z "$ac_dir" && ac_dir=.
15309 if test -f $ac_dir/file; then
15310 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15311 if test -n "$file_magic_test_file"; then
15312 case $deplibs_check_method in
15314 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15316 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15317 $EGREP "$file_magic_regex" > /dev/null; then
15322 *** Warning: the command libtool uses to detect shared libraries,
15323 *** $file_magic_cmd, produces output that libtool cannot recognize.
15324 *** The result is that libtool may fail to recognize shared libraries
15325 *** as such. This will affect the creation of libtool libraries that
15326 *** depend on shared libraries, but programs linked with such libtool
15327 *** libraries will work regardless of this problem. Nevertheless, you
15328 *** may want to report the problem to your system manager and/or to
15329 *** bug-libtool@gnu.org
15339 MAGIC_CMD="$lt_save_MAGIC_CMD"
15344 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15345 if test -n "$MAGIC_CMD"; then
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15347 $as_echo "$MAGIC_CMD" >&6; }
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15350 $as_echo "no
" >&6; }
15363 # Use C for the default configuration in the libtool script
15367 ac_cpp='$CPP $CPPFLAGS'
15368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15373 # Source file extension for C test sources.
15376 # Object file extension for compiled C test sources.
15380 # Code to be used in simple compile tests
15381 lt_simple_compile_test_code="int some_variable
= 0;"
15383 # Code to be used in simple link tests
15384 lt_simple_link_test_code='int main(){return(0);}'
15392 # If no C compiler was specified, use CC.
15395 # If no C compiler flags were specified, use CFLAGS.
15396 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15398 # Allow CC to be a program name with arguments.
15401 # Save the default compiler, since it gets overwritten when the other
15402 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15403 compiler_DEFAULT=$CC
15405 # save warnings/boilerplate of simple test code
15406 ac_outfile=conftest.$ac_objext
15407 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15408 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15409 _lt_compiler_boilerplate=`cat conftest.err`
15412 ac_outfile=conftest.$ac_objext
15413 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15414 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15415 _lt_linker_boilerplate=`cat conftest.err`
15420 ## There is no encapsulation within the following macros, do not change
15421 ## the running order or otherwise move them around unless you know exactly
15422 ## what you are doing...
15423 if test -n "$compiler"; then
15425 lt_prog_compiler_no_builtin_flag=
15427 if test "$GCC" = yes; then
15428 case $cc_basename in
15430 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15432 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15436 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15437 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15438 $as_echo_n "(cached
) " >&6
15440 lt_cv_prog_compiler_rtti_exceptions=no
15441 ac_outfile=conftest.$ac_objext
15442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15443 lt_compiler_flag="-fno-rtti -fno-exceptions"
15444 # Insert the option either (1) after the last *FLAGS variable, or
15445 # (2) before a word containing "conftest.
", or (3) at the end.
15446 # Note that $ac_compile itself does not contain backslashes and begins
15447 # with a dollar sign (not a hyphen), so the echo should work correctly.
15448 # The option is referenced via a variable to avoid confusing sed.
15449 lt_compile=`echo "$ac_compile" | $SED \
15450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15452 -e 's:$: $lt_compiler_flag:'`
15453 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15454 (eval "$lt_compile" 2>conftest.err)
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15458 if (exit $ac_status) && test -s "$ac_outfile"; then
15459 # The compiler can only warn and ignore the option if not recognized
15460 # So say no if there are warnings other than the usual output.
15461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15464 lt_cv_prog_compiler_rtti_exceptions=yes
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15471 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15473 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15474 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15486 lt_prog_compiler_wl=
15487 lt_prog_compiler_pic=
15488 lt_prog_compiler_static=
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15491 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15493 if test "$GCC" = yes; then
15494 lt_prog_compiler_wl='-Wl,'
15495 lt_prog_compiler_static='-static'
15499 # All AIX code is PIC.
15500 if test "$host_cpu" = ia64; then
15501 # AIX 5 now supports IA64 processor
15502 lt_prog_compiler_static='-Bstatic'
15504 lt_prog_compiler_pic='-fPIC'
15510 # see comment about AmigaOS4 .so support
15511 lt_prog_compiler_pic='-fPIC'
15514 # FIXME: we need at least 68020 code to build shared libraries, but
15515 # adding the `-m68020' flag to GCC prevents building anything better,
15517 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15522 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15523 # PIC is the default for these OSes.
15526 mingw* | cygwin* | pw32* | os2* | cegcc*)
15527 # This hack is so that the source file can tell whether it is being
15528 # built for inclusion in a dll (and should export symbols for example).
15529 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15530 # (--disable-auto-import) libraries
15531 lt_prog_compiler_pic='-DDLL_EXPORT'
15534 darwin* | rhapsody*)
15535 # PIC is the default on this platform
15536 # Common symbols not allowed in MH_DYLIB files
15537 lt_prog_compiler_pic='-fno-common'
15541 # PIC is the default for Haiku.
15542 # The "-static" flag exists, but is broken.
15543 lt_prog_compiler_static=
15547 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15548 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15549 # sets the default TLS model and affects inlining.
15555 lt_prog_compiler_pic='-fPIC'
15561 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15562 # Instead, we relocate shared libraries at runtime.
15566 # Just because we use GCC doesn't mean we suddenly get shared libraries
15567 # on systems that don't support them.
15568 lt_prog_compiler_can_build_shared=no
15573 # QNX uses GNU C++, but need to define -shared option too, otherwise
15574 # it will coredump.
15575 lt_prog_compiler_pic='-fPIC -shared'
15579 if test -d /usr/nec; then
15580 lt_prog_compiler_pic=-Kconform_pic
15585 lt_prog_compiler_pic='-fPIC'
15589 case $cc_basename in
15590 nvcc*) # Cuda Compiler Driver 2.2
15591 lt_prog_compiler_wl='-Xlinker '
15592 lt_prog_compiler_pic='-Xcompiler -fPIC'
15596 # PORTME Check for flag to pass linker flags through the system compiler.
15599 lt_prog_compiler_wl='-Wl,'
15600 if test "$host_cpu" = ia64; then
15601 # AIX 5 now supports IA64 processor
15602 lt_prog_compiler_static='-Bstatic'
15604 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15608 mingw* | cygwin* | pw32* | os2* | cegcc*)
15609 # This hack is so that the source file can tell whether it is being
15610 # built for inclusion in a dll (and should export symbols for example).
15611 lt_prog_compiler_pic='-DDLL_EXPORT'
15614 hpux9* | hpux10* | hpux11*)
15615 lt_prog_compiler_wl='-Wl,'
15616 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15617 # not for PA HP-UX.
15623 lt_prog_compiler_pic='+Z'
15626 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15627 lt_prog_compiler_static='${wl}-a ${wl}archive'
15630 irix5* | irix6* | nonstopux*)
15631 lt_prog_compiler_wl='-Wl,'
15632 # PIC (with -KPIC) is the default.
15633 lt_prog_compiler_static='-non_shared'
15636 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15637 case $cc_basename in
15638 # old Intel for x86_64 which still supported -KPIC.
15640 lt_prog_compiler_wl='-Wl,'
15641 lt_prog_compiler_pic='-KPIC'
15642 lt_prog_compiler_static='-static'
15644 # icc used to be incompatible with GCC.
15645 # ICC 10 doesn't accept -KPIC any more.
15647 lt_prog_compiler_wl='-Wl,'
15648 lt_prog_compiler_pic='-fPIC'
15649 lt_prog_compiler_static='-static'
15651 # Lahey Fortran 8.1.
15653 lt_prog_compiler_wl='-Wl,'
15654 lt_prog_compiler_pic='--shared'
15655 lt_prog_compiler_static='--static'
15657 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15658 # Portland Group compilers (*not* the Pentium gcc compiler,
15659 # which looks to be a dead project)
15660 lt_prog_compiler_wl='-Wl,'
15661 lt_prog_compiler_pic='-fpic'
15662 lt_prog_compiler_static='-Bstatic'
15665 lt_prog_compiler_wl='-Wl,'
15666 # All Alpha code is PIC.
15667 lt_prog_compiler_static='-non_shared'
15669 xl* | bgxl* | bgf* | mpixl*)
15670 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15671 lt_prog_compiler_wl='-Wl,'
15672 lt_prog_compiler_pic='-qpic'
15673 lt_prog_compiler_static='-qstaticlink'
15676 case `$CC -V 2>&1 | sed 5q` in
15677 *Sun\ F* | *Sun*Fortran*)
15678 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15679 lt_prog_compiler_pic='-KPIC'
15680 lt_prog_compiler_static='-Bstatic'
15681 lt_prog_compiler_wl=''
15685 lt_prog_compiler_pic='-KPIC'
15686 lt_prog_compiler_static='-Bstatic'
15687 lt_prog_compiler_wl='-Wl,'
15695 lt_prog_compiler_pic='-KPIC'
15696 lt_prog_compiler_static='-Bstatic'
15700 # QNX uses GNU C++, but need to define -shared option too, otherwise
15701 # it will coredump.
15702 lt_prog_compiler_pic='-fPIC -shared'
15705 osf3* | osf4* | osf5*)
15706 lt_prog_compiler_wl='-Wl,'
15707 # All OSF/1 code is PIC.
15708 lt_prog_compiler_static='-non_shared'
15712 lt_prog_compiler_static='-non_shared'
15716 lt_prog_compiler_pic='-KPIC'
15717 lt_prog_compiler_static='-Bstatic'
15718 case $cc_basename in
15719 f77* | f90* | f95*)
15720 lt_prog_compiler_wl='-Qoption ld ';;
15722 lt_prog_compiler_wl='-Wl,';;
15727 lt_prog_compiler_wl='-Qoption ld '
15728 lt_prog_compiler_pic='-PIC'
15729 lt_prog_compiler_static='-Bstatic'
15732 sysv4 | sysv4.2uw2* | sysv4.3*)
15733 lt_prog_compiler_wl='-Wl,'
15734 lt_prog_compiler_pic='-KPIC'
15735 lt_prog_compiler_static='-Bstatic'
15739 if test -d /usr/nec ;then
15740 lt_prog_compiler_pic='-Kconform_pic'
15741 lt_prog_compiler_static='-Bstatic'
15745 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15746 lt_prog_compiler_wl='-Wl,'
15747 lt_prog_compiler_pic='-KPIC'
15748 lt_prog_compiler_static='-Bstatic'
15752 lt_prog_compiler_wl='-Wl,'
15753 lt_prog_compiler_can_build_shared=no
15757 lt_prog_compiler_pic='-pic'
15758 lt_prog_compiler_static='-Bstatic'
15762 lt_prog_compiler_can_build_shared=no
15768 # For platforms which do not support PIC, -DPIC is meaningless:
15770 lt_prog_compiler_pic=
15773 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15777 $as_echo "$lt_prog_compiler_pic" >&6; }
15785 # Check to make sure the PIC flag actually works.
15787 if test -n "$lt_prog_compiler_pic"; then
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15789 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15790 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15791 $as_echo_n "(cached
) " >&6
15793 lt_cv_prog_compiler_pic_works=no
15794 ac_outfile=conftest.$ac_objext
15795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15796 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15797 # Insert the option either (1) after the last *FLAGS variable, or
15798 # (2) before a word containing "conftest.
", or (3) at the end.
15799 # Note that $ac_compile itself does not contain backslashes and begins
15800 # with a dollar sign (not a hyphen), so the echo should work correctly.
15801 # The option is referenced via a variable to avoid confusing sed.
15802 lt_compile=`echo "$ac_compile" | $SED \
15803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15805 -e 's:$: $lt_compiler_flag:'`
15806 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15807 (eval "$lt_compile" 2>conftest.err)
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15811 if (exit $ac_status) && test -s "$ac_outfile"; then
15812 # The compiler can only warn and ignore the option if not recognized
15813 # So say no if there are warnings other than the usual output.
15814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15816 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15817 lt_cv_prog_compiler_pic_works=yes
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15824 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15826 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15827 case $lt_prog_compiler_pic in
15829 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15832 lt_prog_compiler_pic=
15833 lt_prog_compiler_can_build_shared=no
15844 # Check to make sure the static flag actually works.
15846 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15848 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15849 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15850 $as_echo_n "(cached
) " >&6
15852 lt_cv_prog_compiler_static_works=no
15853 save_LDFLAGS="$LDFLAGS"
15854 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15855 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15856 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15857 # The linker can only warn and ignore the option if not recognized
15858 # So say no if there are warnings
15859 if test -s conftest.err; then
15860 # Append any errors to the config.log.
15861 cat conftest.err 1>&5
15862 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15864 if diff conftest.exp conftest.er2 >/dev/null; then
15865 lt_cv_prog_compiler_static_works=yes
15868 lt_cv_prog_compiler_static_works=yes
15872 LDFLAGS="$save_LDFLAGS"
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15876 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15878 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15881 lt_prog_compiler_static=
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15891 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15892 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15893 $as_echo_n "(cached
) " >&6
15895 lt_cv_prog_compiler_c_o=no
15896 $RM -r conftest 2>/dev/null
15900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15902 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15903 # Insert the option either (1) after the last *FLAGS variable, or
15904 # (2) before a word containing "conftest.
", or (3) at the end.
15905 # Note that $ac_compile itself does not contain backslashes and begins
15906 # with a dollar sign (not a hyphen), so the echo should work correctly.
15907 lt_compile=`echo "$ac_compile" | $SED \
15908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15910 -e 's:$: $lt_compiler_flag:'`
15911 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15912 (eval "$lt_compile" 2>out/conftest.err)
15914 cat out/conftest.err >&5
15915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15916 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15918 # The compiler can only warn and ignore the option if not recognized
15919 # So say no if there are warnings
15920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15921 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15922 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15923 lt_cv_prog_compiler_c_o=yes
15928 # SGI C++ compiler will create directory out/ii_files/ for
15929 # template instantiation
15930 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15931 $RM out/* && rmdir out
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15938 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15946 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15947 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15948 $as_echo_n "(cached
) " >&6
15950 lt_cv_prog_compiler_c_o=no
15951 $RM -r conftest 2>/dev/null
15955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15957 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15958 # Insert the option either (1) after the last *FLAGS variable, or
15959 # (2) before a word containing "conftest.
", or (3) at the end.
15960 # Note that $ac_compile itself does not contain backslashes and begins
15961 # with a dollar sign (not a hyphen), so the echo should work correctly.
15962 lt_compile=`echo "$ac_compile" | $SED \
15963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15965 -e 's:$: $lt_compiler_flag:'`
15966 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15967 (eval "$lt_compile" 2>out/conftest.err)
15969 cat out/conftest.err >&5
15970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15971 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15973 # The compiler can only warn and ignore the option if not recognized
15974 # So say no if there are warnings
15975 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15976 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15977 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15978 lt_cv_prog_compiler_c_o=yes
15983 # SGI C++ compiler will create directory out/ii_files/ for
15984 # template instantiation
15985 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15986 $RM out/* && rmdir out
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15993 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15998 hard_links="nottested
"
15999 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16000 # do not overwrite the value of need_locks provided by the user
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16002 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16007 ln conftest.a conftest.b 2>&5 || hard_links=no
16008 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16010 $as_echo "$hard_links" >&6; }
16011 if test "$hard_links" = no; then
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16013 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16026 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16029 allow_undefined_flag=
16030 always_export_symbols=no
16032 archive_expsym_cmds=
16033 compiler_needs_object=no
16034 enable_shared_with_static_runtimes=no
16035 export_dynamic_flag_spec=
16036 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16037 hardcode_automatic=no
16039 hardcode_direct_absolute=no
16040 hardcode_libdir_flag_spec=
16041 hardcode_libdir_flag_spec_ld=
16042 hardcode_libdir_separator=
16043 hardcode_minus_L=no
16044 hardcode_shlibpath_var=unsupported
16046 link_all_deplibs=unknown
16048 module_expsym_cmds=
16049 old_archive_from_new_cmds=
16050 old_archive_from_expsyms_cmds=
16051 thread_safe_flag_spec=
16052 whole_archive_flag_spec=
16053 # include_expsyms should be a list of space-separated symbols to be *always*
16054 # included in the symbol list
16056 # exclude_expsyms can be an extended regexp of symbols to exclude
16057 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16058 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16059 # as well as any symbol that contains `d'.
16060 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16061 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16062 # platforms (ab)use it in PIC code, but their linkers get confused if
16063 # the symbol is explicitly referenced. Since portable code cannot
16064 # rely on this symbol name, it's probably fine to never include it in
16065 # preloaded symbol tables.
16066 # Exclude shared library initialization/finalization symbols.
16067 extract_expsyms_cmds=
16070 cygwin* | mingw* | pw32* | cegcc*)
16071 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16072 # When not using gcc, we currently assume that we are using
16073 # Microsoft Visual C++.
16074 if test "$GCC" != yes; then
16079 # we just hope/assume this is gcc and not c89 (= MSVC++)
16089 # On some targets, GNU ld is compatible enough with the native linker
16090 # that we're better off using the native interface for both.
16091 lt_use_gnu_ld_interface=no
16092 if test "$with_gnu_ld" = yes; then
16095 # The AIX port of GNU ld has always aspired to compatibility
16096 # with the native linker. However, as the warning in the GNU ld
16097 # block says, versions before 2.19.5* couldn't really create working
16098 # shared libraries, regardless of the interface used.
16099 case `$LD -v 2>&1` in
16100 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16101 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16102 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16104 lt_use_gnu_ld_interface=yes
16109 lt_use_gnu_ld_interface=yes
16114 if test "$lt_use_gnu_ld_interface" = yes; then
16115 # If archive_cmds runs LD, not CC, wlarc should be empty
16118 # Set some defaults for GNU ld with shared library support. These
16119 # are reset later if shared libraries are not supported. Putting them
16120 # here allows them to be overridden if necessary.
16121 runpath_var=LD_RUN_PATH
16122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16123 export_dynamic_flag_spec='${wl}--export-dynamic'
16124 # ancient GNU ld didn't support --whole-archive et. al.
16125 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16126 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16128 whole_archive_flag_spec=
16130 supports_anon_versioning=no
16131 case `$LD -v 2>&1` in
16132 *GNU\ gold*) supports_anon_versioning=yes ;;
16133 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16134 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16135 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16136 *\ 2.11.*) ;; # other 2.11 versions
16137 *) supports_anon_versioning=yes ;;
16140 # See if GNU ld supports shared libraries.
16143 # On AIX/PPC, the GNU linker is very broken
16144 if test "$host_cpu" != ia64; then
16148 *** Warning: the GNU linker, at least up to release 2.19, is reported
16149 *** to be unable to reliably create shared libraries on AIX.
16150 *** Therefore, libtool is disabling shared libraries support. If you
16151 *** really care for shared libraries, you may want to install binutils
16152 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16153 *** You will then need to restart the configuration process.
16162 # see comment about AmigaOS4 .so support
16163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16164 archive_expsym_cmds=''
16167 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)'
16168 hardcode_libdir_flag_spec
='-L$libdir'
16169 hardcode_minus_L
=yes
16175 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16176 allow_undefined_flag
=unsupported
16177 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16178 # support --undefined. This deserves some investigation. FIXME
16179 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16185 cygwin
* | mingw
* | pw32
* | cegcc
*)
16186 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16187 # as there is no search path for DLLs.
16188 hardcode_libdir_flag_spec
='-L$libdir'
16189 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16190 allow_undefined_flag
=unsupported
16191 always_export_symbols
=no
16192 enable_shared_with_static_runtimes
=yes
16193 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16195 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16196 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16197 # If the export-symbols file already is a .def file (1st line
16198 # is EXPORTS), use it as is; otherwise, prepend...
16199 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16200 cp $export_symbols $output_objdir/$soname.def;
16202 echo EXPORTS > $output_objdir/$soname.def;
16203 cat $export_symbols >> $output_objdir/$soname.def;
16205 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16212 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16213 link_all_deplibs
=yes
16218 hardcode_shlibpath_var
=no
16219 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16220 export_dynamic_flag_spec
='${wl}-E'
16221 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16222 # Instead, shared libraries are loaded at an image base (0x10000000 by
16223 # default) and relocated if they conflict, which is a slow very memory
16224 # consuming and fragmenting process. To avoid this, we pick a random,
16225 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16226 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16227 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16228 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'
16231 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16233 if test "$host_os" = linux-dietlibc
; then
16234 case $cc_basename in
16235 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16238 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16239 && test "$tmp_diet" = no
16241 tmp_addflag
=' $pic_flag'
16242 tmp_sharedflag
='-shared'
16243 case $cc_basename,$host_cpu in
16244 pgcc
*) # Portland Group C compiler
16245 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'
16246 tmp_addflag
=' $pic_flag'
16248 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16249 # Portland Group f77 and f90 compilers
16250 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'
16251 tmp_addflag
=' $pic_flag -Mnomain' ;;
16252 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16253 tmp_addflag
=' -i_dynamic' ;;
16254 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16255 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16256 ifc
* | ifort
*) # Intel Fortran compiler
16257 tmp_addflag
=' -nofor_main' ;;
16258 lf95
*) # Lahey Fortran 8.1
16259 whole_archive_flag_spec
=
16260 tmp_sharedflag
='--shared' ;;
16261 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16262 tmp_sharedflag
='-qmkshrobj'
16264 nvcc
*) # Cuda Compiler Driver 2.2
16265 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'
16266 compiler_needs_object
=yes
16269 case `$CC -V 2>&1 | sed 5q` in
16270 *Sun\ C
*) # Sun C 5.9
16271 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'
16272 compiler_needs_object
=yes
16273 tmp_sharedflag
='-G' ;;
16274 *Sun\ F
*) # Sun Fortran 8.3
16275 tmp_sharedflag
='-G' ;;
16277 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16279 if test "x$supports_anon_versioning" = xyes
; then
16280 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16281 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16282 echo "local: *; };" >> $output_objdir/$libname.ver~
16283 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16286 case $cc_basename in
16287 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16288 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16289 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16290 hardcode_libdir_flag_spec
=
16291 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16292 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16293 if test "x$supports_anon_versioning" = xyes
; then
16294 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16295 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16296 echo "local: *; };" >> $output_objdir/$libname.ver~
16297 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16307 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16308 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16311 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16312 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16317 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16321 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16322 *** create shared libraries on Solaris systems. Therefore, libtool
16323 *** is disabling shared libraries support. We urge you to upgrade GNU
16324 *** binutils to release 2.9.1 or newer. Another option is to modify
16325 *** your PATH or compiler configuration so that the native linker is
16326 *** used, and then restart.
16329 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16330 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16331 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16337 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16338 case `$LD -v 2>&1` in
16339 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16343 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16344 *** reliably create shared libraries on SCO systems. Therefore, libtool
16345 *** is disabling shared libraries support. We urge you to upgrade GNU
16346 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16347 *** your PATH or compiler configuration so that the native linker is
16348 *** used, and then restart.
16353 # For security reasons, it is highly recommended that you always
16354 # use absolute paths for naming shared libraries, and exclude the
16355 # DT_RUNPATH tag from executables and libraries. But doing so
16356 # requires that you compile everything twice, which is a pain.
16357 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16358 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16359 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16360 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16369 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16371 hardcode_direct
=yes
16372 hardcode_shlibpath_var
=no
16376 if $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'
16385 if test "$ld_shlibs" = no
; then
16387 hardcode_libdir_flag_spec
=
16388 export_dynamic_flag_spec
=
16389 whole_archive_flag_spec
=
16392 # PORTME fill in a description of your system's linker (not GNU ld)
16395 allow_undefined_flag
=unsupported
16396 always_export_symbols
=yes
16397 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'
16398 # Note: this linker hardcodes the directories in LIBPATH if there
16399 # are no directories specified by -L.
16400 hardcode_minus_L
=yes
16401 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16402 # Neither direct hardcoding nor static linking is supported with a
16404 hardcode_direct
=unsupported
16409 if test "$host_cpu" = ia64
; then
16410 # On IA64, the linker does run time linking by default, so we don't
16411 # have to do anything special.
16412 aix_use_runtimelinking
=no
16413 exp_sym_flag
='-Bexport'
16416 # If we're using GNU nm, then we don't want the "-C" option.
16417 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16418 # Also, AIX nm treats weak defined symbols like other global
16419 # defined symbols, whereas GNU nm marks them as "W".
16420 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16421 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'
16423 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'
16425 aix_use_runtimelinking
=no
16427 # Test if we are trying to use run time linking or normal
16428 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16429 # need to do runtime linking.
16430 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16431 for ld_flag
in $LDFLAGS; do
16432 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16433 aix_use_runtimelinking
=yes
16440 exp_sym_flag
='-bexport'
16441 no_entry_flag
='-bnoentry'
16444 # When large executables or shared objects are built, AIX ld can
16445 # have problems creating the table of contents. If linking a library
16446 # or program results in "error TOC overflow" add -mminimal-toc to
16447 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16448 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16451 hardcode_direct
=yes
16452 hardcode_direct_absolute
=yes
16453 hardcode_libdir_separator
=':'
16454 link_all_deplibs
=yes
16455 file_list_spec
='${wl}-f,'
16457 if test "$GCC" = yes; then
16458 case $host_os in aix4.
[012]|aix4.
[012].
*)
16459 # We only want to do this on AIX 4.2 and lower, the check
16460 # below for broken collect2 doesn't work under 4.3+
16461 collect2name
=`${CC} -print-prog-name=collect2`
16462 if test -f "$collect2name" &&
16463 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16465 # We have reworked collect2
16468 # We have old collect2
16469 hardcode_direct
=unsupported
16470 # It fails to find uninstalled libraries when the uninstalled
16471 # path is not listed in the libpath. Setting hardcode_minus_L
16472 # to unsupported forces relinking
16473 hardcode_minus_L
=yes
16474 hardcode_libdir_flag_spec
='-L$libdir'
16475 hardcode_libdir_separator
=
16479 shared_flag
='-shared'
16480 if test "$aix_use_runtimelinking" = yes; then
16481 shared_flag
="$shared_flag "'${wl}-G'
16485 if test "$host_cpu" = ia64
; then
16486 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16487 # chokes on -Wl,-G. The following line is correct:
16490 if test "$aix_use_runtimelinking" = yes; then
16491 shared_flag
='${wl}-G'
16493 shared_flag
='${wl}-bM:SRE'
16498 export_dynamic_flag_spec
='${wl}-bexpall'
16499 # It seems that -bexpall does not export symbols beginning with
16500 # underscore (_), so it is better to generate a list of symbols to export.
16501 always_export_symbols
=yes
16502 if test "$aix_use_runtimelinking" = yes; then
16503 # Warning - without using the other runtime loading flags (-brtl),
16504 # -berok will link without error, but may produce a broken library.
16505 allow_undefined_flag
='-berok'
16506 # Determine the default libpath from the value encoded in an
16507 # empty executable.
16508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16509 /* end confdefs.h. */
16519 if ac_fn_c_try_link
"$LINENO"; then :
16521 lt_aix_libpath_sed
='
16522 /Import File Strings/,/^$/ {
16528 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16529 # Check for a 64-bit object if we didn't find anything.
16530 if test -z "$aix_libpath"; then
16531 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16534 rm -f core conftest.err conftest.
$ac_objext \
16535 conftest
$ac_exeext conftest.
$ac_ext
16536 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16538 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16539 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"
16541 if test "$host_cpu" = ia64
; then
16542 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16543 allow_undefined_flag
="-z nodefs"
16544 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"
16546 # Determine the default libpath from the value encoded in an
16547 # empty executable.
16548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16549 /* end confdefs.h. */
16559 if ac_fn_c_try_link
"$LINENO"; then :
16561 lt_aix_libpath_sed
='
16562 /Import File Strings/,/^$/ {
16568 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16569 # Check for a 64-bit object if we didn't find anything.
16570 if test -z "$aix_libpath"; then
16571 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16574 rm -f core conftest.err conftest.
$ac_objext \
16575 conftest
$ac_exeext conftest.
$ac_ext
16576 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16578 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16579 # Warning - without using the other run time loading flags,
16580 # -berok will link without error, but may produce a broken library.
16581 no_undefined_flag
=' ${wl}-bernotok'
16582 allow_undefined_flag
=' ${wl}-berok'
16583 if test "$with_gnu_ld" = yes; then
16584 # We only use this code for GNU lds that support --whole-archive.
16585 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16587 # Exported symbols can be pulled into shared objects from archives
16588 whole_archive_flag_spec
='$convenience'
16590 archive_cmds_need_lc
=yes
16591 # This is similar to how AIX traditionally builds its shared libraries.
16592 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'
16600 # see comment about AmigaOS4 .so support
16601 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16602 archive_expsym_cmds
=''
16605 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)'
16606 hardcode_libdir_flag_spec
='-L$libdir'
16607 hardcode_minus_L
=yes
16613 export_dynamic_flag_spec
=-rdynamic
16616 cygwin
* | mingw
* | pw32
* | cegcc
*)
16617 # When not using gcc, we currently assume that we are using
16618 # Microsoft Visual C++.
16619 # hardcode_libdir_flag_spec is actually meaningless, as there is
16620 # no search path for DLLs.
16621 hardcode_libdir_flag_spec
=' '
16622 allow_undefined_flag
=unsupported
16623 # Tell ltmain to make .lib files, not .a files.
16625 # Tell ltmain to make .dll files, not .so files.
16627 # FIXME: Setting linknames here is a bad hack.
16628 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16629 # The linker will automatically build a .lib file if we build a DLL.
16630 old_archive_from_new_cmds
='true'
16631 # FIXME: Should let the user specify the lib program.
16632 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16633 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16634 enable_shared_with_static_runtimes
=yes
16637 darwin
* | rhapsody
*)
16640 archive_cmds_need_lc
=no
16642 hardcode_automatic
=yes
16643 hardcode_shlibpath_var
=unsupported
16644 if test "$lt_cv_ld_force_load" = "yes"; then
16645 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\"`'
16647 whole_archive_flag_spec
=''
16649 link_all_deplibs
=yes
16650 allow_undefined_flag
="$_lt_dar_allow_undefined"
16651 case $cc_basename in
16652 ifort
*) _lt_dar_can_shared
=yes ;;
16653 *) _lt_dar_can_shared
=$GCC ;;
16655 if test "$_lt_dar_can_shared" = "yes"; then
16656 output_verbose_link_cmd
=func_echo_all
16657 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16658 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16659 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}"
16660 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}"
16669 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670 hardcode_libdir_flag_spec
='-L$libdir'
16671 hardcode_shlibpath_var
=no
16674 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16675 # support. Future versions do this automatically, but an explicit c++rt0.o
16676 # does not break anything, and helps significantly (at the cost of a little
16679 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16680 hardcode_libdir_flag_spec
='-R$libdir'
16681 hardcode_direct
=yes
16682 hardcode_shlibpath_var
=no
16685 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16687 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16688 hardcode_direct
=yes
16689 hardcode_minus_L
=yes
16690 hardcode_shlibpath_var
=no
16693 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16694 freebsd
* | dragonfly
*)
16695 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16696 hardcode_libdir_flag_spec
='-R$libdir'
16697 hardcode_direct
=yes
16698 hardcode_shlibpath_var
=no
16702 if test "$GCC" = yes; then
16703 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'
16705 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'
16707 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16708 hardcode_libdir_separator
=:
16709 hardcode_direct
=yes
16711 # hardcode_minus_L: Not really in the search PATH,
16712 # but as the default location of the library.
16713 hardcode_minus_L
=yes
16714 export_dynamic_flag_spec
='${wl}-E'
16718 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16719 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16721 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16723 if test "$with_gnu_ld" = no
; then
16724 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16725 hardcode_libdir_flag_spec_ld
='+b $libdir'
16726 hardcode_libdir_separator
=:
16727 hardcode_direct
=yes
16728 hardcode_direct_absolute
=yes
16729 export_dynamic_flag_spec
='${wl}-E'
16730 # hardcode_minus_L: Not really in the search PATH,
16731 # but as the default location of the library.
16732 hardcode_minus_L
=yes
16737 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16740 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16743 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16746 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16752 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16755 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16759 # Older versions of the 11.00 compiler do not understand -b yet
16760 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16762 $as_echo_n "checking if $CC understands -b... " >&6; }
16763 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16764 $as_echo_n "(cached) " >&6
16766 lt_cv_prog_compiler__b
=no
16767 save_LDFLAGS
="$LDFLAGS"
16768 LDFLAGS
="$LDFLAGS -b"
16769 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16770 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16771 # The linker can only warn and ignore the option if not recognized
16772 # So say no if there are warnings
16773 if test -s conftest.err
; then
16774 # Append any errors to the config.log.
16775 cat conftest.err
1>&5
16776 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16777 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16778 if diff conftest.exp conftest.er2
>/dev
/null
; then
16779 lt_cv_prog_compiler__b
=yes
16782 lt_cv_prog_compiler__b
=yes
16786 LDFLAGS
="$save_LDFLAGS"
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16790 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16792 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16793 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16795 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16801 if test "$with_gnu_ld" = no
; then
16802 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16803 hardcode_libdir_separator
=:
16808 hardcode_shlibpath_var
=no
16811 hardcode_direct
=yes
16812 hardcode_direct_absolute
=yes
16813 export_dynamic_flag_spec
='${wl}-E'
16815 # hardcode_minus_L: Not really in the search PATH,
16816 # but as the default location of the library.
16817 hardcode_minus_L
=yes
16823 irix5
* | irix6
* | nonstopux
*)
16824 if test "$GCC" = yes; then
16825 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'
16826 # Try to use the -exported_symbol ld option, if it does not
16827 # work, assume that -exports_file does not work either and
16828 # implicitly export all symbols.
16829 save_LDFLAGS
="$LDFLAGS"
16830 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16832 /* end confdefs.h. */
16835 if ac_fn_c_try_link
"$LINENO"; then :
16836 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'
16839 rm -f core conftest.err conftest.
$ac_objext \
16840 conftest
$ac_exeext conftest.
$ac_ext
16841 LDFLAGS
="$save_LDFLAGS"
16843 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'
16844 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'
16846 archive_cmds_need_lc
='no'
16847 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16848 hardcode_libdir_separator
=:
16850 link_all_deplibs
=yes
16854 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16855 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16857 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16859 hardcode_libdir_flag_spec
='-R$libdir'
16860 hardcode_direct
=yes
16861 hardcode_shlibpath_var
=no
16865 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16866 hardcode_direct
=yes
16867 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16868 hardcode_libdir_separator
=:
16869 hardcode_shlibpath_var
=no
16876 if test -f /usr
/libexec
/ld.so
; then
16877 hardcode_direct
=yes
16878 hardcode_shlibpath_var
=no
16879 hardcode_direct_absolute
=yes
16880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16881 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16882 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16883 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16884 export_dynamic_flag_spec
='${wl}-E'
16887 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16888 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16889 hardcode_libdir_flag_spec
='-R$libdir'
16892 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16893 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16903 hardcode_libdir_flag_spec
='-L$libdir'
16904 hardcode_minus_L
=yes
16905 allow_undefined_flag
=unsupported
16906 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'
16907 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16911 if test "$GCC" = yes; then
16912 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16913 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'
16915 allow_undefined_flag
=' -expect_unresolved \*'
16916 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'
16918 archive_cmds_need_lc
='no'
16919 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16920 hardcode_libdir_separator
=:
16923 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16924 if test "$GCC" = yes; then
16925 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16926 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'
16927 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16929 allow_undefined_flag
=' -expect_unresolved \*'
16930 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'
16931 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~
16932 $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'
16934 # Both c and cxx compiler support -rpath directly
16935 hardcode_libdir_flag_spec
='-rpath $libdir'
16937 archive_cmds_need_lc
='no'
16938 hardcode_libdir_separator
=:
16942 no_undefined_flag
=' -z defs'
16943 if test "$GCC" = yes; then
16945 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16946 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16947 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16949 case `$CC -V 2>&1` in
16952 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16953 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16954 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16958 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16959 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16960 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16964 hardcode_libdir_flag_spec
='-R$libdir'
16965 hardcode_shlibpath_var
=no
16967 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16969 # The compiler driver will combine and reorder linker options,
16970 # but understands `-z linker_flag'. GCC discards it without `$wl',
16971 # but is careful enough not to reorder.
16972 # Supported since Solaris 2.6 (maybe 2.5.1?)
16973 if test "$GCC" = yes; then
16974 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16976 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16980 link_all_deplibs
=yes
16984 if test "x$host_vendor" = xsequent
; then
16985 # Use $CC to link under sequent, because it throws in some extra .o
16986 # files that make .init and .fini sections work.
16987 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16989 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16991 hardcode_libdir_flag_spec
='-L$libdir'
16992 hardcode_direct
=yes
16993 hardcode_minus_L
=yes
16994 hardcode_shlibpath_var
=no
16998 case $host_vendor in
17000 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17001 hardcode_direct
=yes # is this really true???
17004 ## LD is ld it makes a PLAMLIB
17005 ## CC just makes a GrossModule.
17006 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17007 reload_cmds
='$CC -r -o $output$reload_objs'
17011 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17012 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17015 runpath_var
='LD_RUN_PATH'
17016 hardcode_shlibpath_var
=no
17020 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17021 hardcode_shlibpath_var
=no
17022 export_dynamic_flag_spec
='-Bexport'
17026 if test -d /usr
/nec
; then
17027 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17028 hardcode_shlibpath_var
=no
17029 runpath_var
=LD_RUN_PATH
17030 hardcode_runpath_var
=yes
17035 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17036 no_undefined_flag
='${wl}-z,text'
17037 archive_cmds_need_lc
=no
17038 hardcode_shlibpath_var
=no
17039 runpath_var
='LD_RUN_PATH'
17041 if test "$GCC" = yes; then
17042 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17045 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17046 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17050 sysv5
* | sco3.2v5
* | sco5v6
*)
17051 # Note: We can NOT use -z defs as we might desire, because we do not
17052 # link with -lc, and that would cause any symbols used from libc to
17053 # always be unresolved, which means just about no library would
17054 # ever link correctly. If we're not using GNU ld we use -z text
17055 # though, which does catch some bad symbols but isn't as heavy-handed
17057 no_undefined_flag
='${wl}-z,text'
17058 allow_undefined_flag
='${wl}-z,nodefs'
17059 archive_cmds_need_lc
=no
17060 hardcode_shlibpath_var
=no
17061 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17062 hardcode_libdir_separator
=':'
17063 link_all_deplibs
=yes
17064 export_dynamic_flag_spec
='${wl}-Bexport'
17065 runpath_var
='LD_RUN_PATH'
17067 if test "$GCC" = yes; then
17068 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17069 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17071 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17072 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17077 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17078 hardcode_libdir_flag_spec
='-L$libdir'
17079 hardcode_shlibpath_var
=no
17087 if test x
$host_vendor = xsni
; then
17089 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17090 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17097 $as_echo "$ld_shlibs" >&6; }
17098 test "$ld_shlibs" = no
&& can_build_shared
=no
17100 with_gnu_ld
=$with_gnu_ld
17117 # Do we need to explicitly link libc?
17119 case "x$archive_cmds_need_lc" in
17121 # Assume -lc should be added
17122 archive_cmds_need_lc
=yes
17124 if test "$enable_shared" = yes && test "$GCC" = yes; then
17125 case $archive_cmds in
17127 # FIXME: we may have to deal with multi-command sequences.
17130 # Test whether the compiler implicitly links with -lc since on some
17131 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17132 # to ld, don't add -lc before -lgcc.
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17134 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17135 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17136 $as_echo_n "(cached) " >&6
17139 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17142 (eval $ac_compile) 2>&5
17144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17145 test $ac_status = 0; } 2>conftest.err
; then
17148 libobjs
=conftest.
$ac_objext
17150 wl
=$lt_prog_compiler_wl
17151 pic_flag
=$lt_prog_compiler_pic
17157 lt_save_allow_undefined_flag
=$allow_undefined_flag
17158 allow_undefined_flag
=
17159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17160 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17163 test $ac_status = 0; }
17165 lt_cv_archive_cmds_need_lc
=no
17167 lt_cv_archive_cmds_need_lc
=yes
17169 allow_undefined_flag
=$lt_save_allow_undefined_flag
17171 cat conftest.err
1>&5
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17177 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17178 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17342 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17344 if test "$GCC" = yes; then
17346 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17347 *) lt_awk_arg
="/^libraries:/" ;;
17350 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17351 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17353 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17354 case $lt_search_path_spec in
17356 # if the path contains ";" then we assume it to be the separator
17357 # otherwise default to the standard path separator (i.e. ":") - it is
17358 # assumed that no part of a normal pathname contains ";" but that should
17359 # okay in the real world where ";" in dirpaths is itself problematic.
17360 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17363 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17366 # Ok, now we have the path, separated by spaces, we can step through it
17367 # and add multilib dir if necessary.
17368 lt_tmp_lt_search_path_spec
=
17369 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17370 for lt_sys_path
in $lt_search_path_spec; do
17371 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17372 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17374 test -d "$lt_sys_path" && \
17375 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17378 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17379 BEGIN {RS=" "; FS="/|\n";} {
17382 for (lt_i = NF; lt_i > 0; lt_i--) {
17383 if ($lt_i != "" && $lt_i != ".") {
17384 if ($lt_i == "..") {
17387 if (lt_count == 0) {
17388 lt_foo="/" $lt_i lt_foo;
17395 if (lt_foo != "") { lt_freq[lt_foo]++; }
17396 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17398 # AWK program above erroneously prepends '/' to C:/dos/paths
17401 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17402 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17404 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17406 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17408 library_names_spec
=
17409 libname_spec
='lib$name'
17413 postuninstall_cmds
=
17417 shlibpath_overrides_runpath
=unknown
17419 dynamic_linker
="$host_os ld.so"
17420 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17421 need_lib_prefix
=unknown
17422 hardcode_into_libs
=no
17424 # when you set need_version to no, make sure it does not cause -set_version
17425 # flags to be left without arguments
17426 need_version
=unknown
17431 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17432 shlibpath_var
=LIBPATH
17434 # AIX 3 has no versioning support, so we append a major version to the name.
17435 soname_spec
='${libname}${release}${shared_ext}$major'
17442 hardcode_into_libs
=yes
17443 if test "$host_cpu" = ia64
; then
17444 # AIX 5 supports IA64
17445 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17446 shlibpath_var
=LD_LIBRARY_PATH
17448 # With GCC up to 2.95.x, collect2 would create an import file
17449 # for dependence libraries. The import file would start with
17450 # the line `#! .'. This would cause the generated library to
17451 # depend on `.', always an invalid library. This was fixed in
17452 # development snapshots of GCC prior to 3.0.
17454 aix4 | aix4.
[01] | aix4.
[01].
*)
17455 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17457 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17460 can_build_shared
=no
17464 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17465 # soname into executable. Probably we can add versioning support to
17466 # collect2, so additional links can be useful in future.
17467 if test "$aix_use_runtimelinking" = yes; then
17468 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17469 # instead of lib<name>.a to let people know that these are not
17470 # typical AIX shared libraries.
17471 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17473 # We preserve .a as extension for shared libraries through AIX4.2
17474 # and later when we are not doing run time linking.
17475 library_names_spec
='${libname}${release}.a $libname.a'
17476 soname_spec
='${libname}${release}${shared_ext}$major'
17478 shlibpath_var
=LIBPATH
17485 # Since July 2007 AmigaOS4 officially supports .so libraries.
17486 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17487 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17490 library_names_spec
='$libname.ixlibrary $libname.a'
17491 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17492 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'
17498 library_names_spec
='${libname}${shared_ext}'
17499 dynamic_linker
="$host_os ld.so"
17500 shlibpath_var
=LIBRARY_PATH
17506 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17507 soname_spec
='${libname}${release}${shared_ext}$major'
17508 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17509 shlibpath_var
=LD_LIBRARY_PATH
17510 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17511 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17512 # the default ld.so.conf also contains /usr/contrib/lib and
17513 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17514 # libtool to hard-code these into programs
17517 cygwin
* | mingw
* | pw32
* | cegcc
*)
17518 version_type
=windows
17523 case $GCC,$host_os in
17524 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17525 library_names_spec
='$libname.dll.a'
17526 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17527 postinstall_cmds
='base_file=`basename \${file}`~
17528 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17529 dldir=$destdir/`dirname \$dlpath`~
17530 test -d \$dldir || mkdir -p \$dldir~
17531 $install_prog $dir/$dlname \$dldir/$dlname~
17532 chmod a+x \$dldir/$dlname~
17533 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17534 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17536 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17537 dlpath=$dir/\$dldll~
17539 shlibpath_overrides_runpath
=yes
17543 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17544 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17546 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17549 # MinGW DLLs use traditional 'lib' prefix
17550 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17553 # pw32 DLLs use 'pw' prefix rather than 'lib'
17554 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17560 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17563 dynamic_linker
='Win32 ld.exe'
17564 # FIXME: first we should search . and the directory the executable is in
17568 darwin
* | rhapsody
*)
17569 dynamic_linker
="$host_os dyld"
17570 version_type
=darwin
17573 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17574 soname_spec
='${libname}${release}${major}$shared_ext'
17575 shlibpath_overrides_runpath
=yes
17576 shlibpath_var
=DYLD_LIBRARY_PATH
17577 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17579 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17580 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17588 soname_spec
='${libname}${release}${shared_ext}$major'
17589 shlibpath_var
=LD_LIBRARY_PATH
17592 freebsd
* | dragonfly
*)
17593 # DragonFly does not have aout. When/if they implement a new
17594 # versioning mechanism, adjust this.
17595 if test -x /usr
/bin
/objformat
; then
17596 objformat
=`/usr/bin/objformat`
17599 freebsd
[23].
*) objformat
=aout
;;
17600 *) objformat
=elf
;;
17603 version_type
=freebsd-
$objformat
17604 case $version_type in
17606 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17611 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17615 shlibpath_var
=LD_LIBRARY_PATH
17618 shlibpath_overrides_runpath
=yes
17620 freebsd3.
[01]* | freebsdelf3.
[01]*)
17621 shlibpath_overrides_runpath
=yes
17622 hardcode_into_libs
=yes
17624 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17625 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17626 shlibpath_overrides_runpath
=no
17627 hardcode_into_libs
=yes
17629 *) # from 4.6 on, and DragonFly
17630 shlibpath_overrides_runpath
=yes
17631 hardcode_into_libs
=yes
17640 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17641 soname_spec
='${libname}${release}${shared_ext}$major'
17642 shlibpath_var
=LD_LIBRARY_PATH
17643 hardcode_into_libs
=yes
17650 dynamic_linker
="$host_os runtime_loader"
17651 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17652 soname_spec
='${libname}${release}${shared_ext}$major'
17653 shlibpath_var
=LIBRARY_PATH
17654 shlibpath_overrides_runpath
=yes
17655 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17656 hardcode_into_libs
=yes
17659 hpux9
* | hpux10
* | hpux11
*)
17660 # Give a soname corresponding to the major version so that dld.sl refuses to
17661 # link against other versions.
17668 hardcode_into_libs
=yes
17669 dynamic_linker
="$host_os dld.so"
17670 shlibpath_var
=LD_LIBRARY_PATH
17671 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17673 soname_spec
='${libname}${release}${shared_ext}$major'
17674 if test "X$HPUX_IA64_MODE" = X32
; then
17675 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17677 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17679 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17683 hardcode_into_libs
=yes
17684 dynamic_linker
="$host_os dld.sl"
17685 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17686 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17690 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17694 dynamic_linker
="$host_os dld.sl"
17695 shlibpath_var
=SHLIB_PATH
17696 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17697 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17698 soname_spec
='${libname}${release}${shared_ext}$major'
17701 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17702 postinstall_cmds
='chmod 555 $lib'
17703 # or fails outright, so override atomically:
17704 install_override_mode
=555
17711 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17712 soname_spec
='${libname}${release}${shared_ext}$major'
17713 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17714 shlibpath_var
=LD_LIBRARY_PATH
17715 shlibpath_overrides_runpath
=no
17716 hardcode_into_libs
=yes
17719 irix5
* | irix6
* | nonstopux
*)
17721 nonstopux
*) version_type
=nonstopux
;;
17723 if test "$lt_cv_prog_gnu_ld" = yes; then
17731 soname_spec
='${libname}${release}${shared_ext}$major'
17732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17734 irix5
* | nonstopux
*)
17735 libsuff
= shlibsuff
=
17738 case $LD in # libtool.m4 will add one of these switches to LD
17739 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17740 libsuff
= shlibsuff
= libmagic
=32-bit;;
17741 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17742 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17743 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17744 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17745 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17749 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17750 shlibpath_overrides_runpath
=no
17751 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17752 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17753 hardcode_into_libs
=yes
17756 # No shared lib support for Linux oldld, aout, or coff.
17757 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17761 # This must be Linux ELF.
17762 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17767 soname_spec
='${libname}${release}${shared_ext}$major'
17768 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17769 shlibpath_var
=LD_LIBRARY_PATH
17770 shlibpath_overrides_runpath
=no
17772 # Some binutils ld are patched to set DT_RUNPATH
17773 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17774 $as_echo_n "(cached) " >&6
17776 lt_cv_shlibpath_overrides_runpath
=no
17777 save_LDFLAGS
=$LDFLAGS
17778 save_libdir
=$libdir
17779 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17780 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17782 /* end confdefs.h. */
17792 if ac_fn_c_try_link
"$LINENO"; then :
17793 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17794 lt_cv_shlibpath_overrides_runpath
=yes
17797 rm -f core conftest.err conftest.
$ac_objext \
17798 conftest
$ac_exeext conftest.
$ac_ext
17799 LDFLAGS
=$save_LDFLAGS
17800 libdir
=$save_libdir
17804 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17806 # This implies no fast_install, which is unacceptable.
17807 # Some rework will be needed to allow for fast_install
17808 # before this can be enabled.
17809 hardcode_into_libs
=yes
17811 # Append ld.so.conf contents to the search path
17812 if test -f /etc
/ld.so.conf
; then
17813 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' ' '`
17814 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17817 # We used to test for /lib/ld.so.1 and disable shared libraries on
17818 # powerpc, because MkLinux only supported shared libraries with the
17819 # GNU dynamic linker. Since this was broken with cross compilers,
17820 # most powerpc-linux boxes support dynamic linking these days and
17821 # people can always --disable-shared, the test was removed, and we
17822 # assume the GNU/Linux dynamic linker is in use.
17823 dynamic_linker
='GNU/Linux ld.so'
17830 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17832 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17833 dynamic_linker
='NetBSD (a.out) ld.so'
17835 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17836 soname_spec
='${libname}${release}${shared_ext}$major'
17837 dynamic_linker
='NetBSD ld.elf_so'
17839 shlibpath_var
=LD_LIBRARY_PATH
17840 shlibpath_overrides_runpath
=yes
17841 hardcode_into_libs
=yes
17846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17847 shlibpath_var
=LD_LIBRARY_PATH
17848 shlibpath_overrides_runpath
=yes
17855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17856 soname_spec
='${libname}${release}${shared_ext}$major'
17857 shlibpath_var
=LD_LIBRARY_PATH
17858 shlibpath_overrides_runpath
=no
17859 hardcode_into_libs
=yes
17860 dynamic_linker
='ldqnx.so'
17865 sys_lib_dlsearch_path_spec
="/usr/lib"
17867 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17869 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17870 *) need_version
=no
;;
17872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17873 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17874 shlibpath_var
=LD_LIBRARY_PATH
17875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17877 openbsd2.
[89] | openbsd2.
[89].
*)
17878 shlibpath_overrides_runpath
=no
17881 shlibpath_overrides_runpath
=yes
17885 shlibpath_overrides_runpath
=yes
17890 libname_spec
='$name'
17893 library_names_spec
='$libname${shared_ext} $libname.a'
17894 dynamic_linker
='OS/2 ld.exe'
17895 shlibpath_var
=LIBPATH
17898 osf3
* | osf4
* | osf5
*)
17902 soname_spec
='${libname}${release}${shared_ext}$major'
17903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17904 shlibpath_var
=LD_LIBRARY_PATH
17905 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17906 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17918 soname_spec
='${libname}${release}${shared_ext}$major'
17919 shlibpath_var
=LD_LIBRARY_PATH
17920 shlibpath_overrides_runpath
=yes
17921 hardcode_into_libs
=yes
17922 # ldd complains unless libraries are executable
17923 postinstall_cmds
='chmod +x $lib'
17928 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17929 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17930 shlibpath_var
=LD_LIBRARY_PATH
17931 shlibpath_overrides_runpath
=yes
17932 if test "$with_gnu_ld" = yes; then
17940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941 soname_spec
='${libname}${release}${shared_ext}$major'
17942 shlibpath_var
=LD_LIBRARY_PATH
17943 case $host_vendor in
17945 shlibpath_overrides_runpath
=no
17947 runpath_var
=LD_RUN_PATH
17955 shlibpath_overrides_runpath
=no
17956 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17962 if test -d /usr
/nec
;then
17964 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17965 soname_spec
='$libname${shared_ext}.$major'
17966 shlibpath_var
=LD_LIBRARY_PATH
17970 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17971 version_type
=freebsd-elf
17974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17975 soname_spec
='${libname}${release}${shared_ext}$major'
17976 shlibpath_var
=LD_LIBRARY_PATH
17977 shlibpath_overrides_runpath
=yes
17978 hardcode_into_libs
=yes
17979 if test "$with_gnu_ld" = yes; then
17980 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17982 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17985 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17989 sys_lib_dlsearch_path_spec
='/usr/lib'
17993 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17997 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17998 shlibpath_var
=LD_LIBRARY_PATH
17999 shlibpath_overrides_runpath
=no
18000 hardcode_into_libs
=yes
18005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18006 soname_spec
='${libname}${release}${shared_ext}$major'
18007 shlibpath_var
=LD_LIBRARY_PATH
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18015 $as_echo "$dynamic_linker" >&6; }
18016 test "$dynamic_linker" = no
&& can_build_shared
=no
18018 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18019 if test "$GCC" = yes; then
18020 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18023 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18024 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18026 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18027 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18122 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18124 if test -n "$hardcode_libdir_flag_spec" ||
18125 test -n "$runpath_var" ||
18126 test "X$hardcode_automatic" = "Xyes" ; then
18128 # We can hardcode non-existent directories.
18129 if test "$hardcode_direct" != no
&&
18130 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18131 # have to relink, otherwise we might link with an installed library
18132 # when we should be linking with a yet-to-be-installed one
18133 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18134 test "$hardcode_minus_L" != no
; then
18135 # Linking always hardcodes the temporary library directory.
18136 hardcode_action
=relink
18138 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18139 hardcode_action
=immediate
18142 # We cannot hardcode anything, or else we can only hardcode existing
18144 hardcode_action
=unsupported
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18147 $as_echo "$hardcode_action" >&6; }
18149 if test "$hardcode_action" = relink ||
18150 test "$inherit_rpath" = yes; then
18151 # Fast installation is not supported
18152 enable_fast_install
=no
18153 elif test "$shlibpath_overrides_runpath" = yes ||
18154 test "$enable_shared" = no
; then
18155 # Fast installation is not necessary
18156 enable_fast_install
=needless
18164 if test "x$enable_dlopen" != xyes
; then
18165 enable_dlopen
=unknown
18166 enable_dlopen_self
=unknown
18167 enable_dlopen_self_static
=unknown
18174 lt_cv_dlopen
="load_add_on"
18176 lt_cv_dlopen_self
=yes
18179 mingw
* | pw32
* | cegcc
*)
18180 lt_cv_dlopen
="LoadLibrary"
18185 lt_cv_dlopen
="dlopen"
18190 # if libdl is installed we need to link against it
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18192 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18193 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18194 $as_echo_n "(cached) " >&6
18196 ac_check_lib_save_LIBS
=$LIBS
18198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18199 /* end confdefs.h. */
18201 /* Override any GCC internal prototype to avoid an error.
18202 Use char because int might match the return type of a GCC
18203 builtin and then its argument prototype would still apply. */
18216 if ac_fn_c_try_link
"$LINENO"; then :
18217 ac_cv_lib_dl_dlopen
=yes
18219 ac_cv_lib_dl_dlopen
=no
18221 rm -f core conftest.err conftest.
$ac_objext \
18222 conftest
$ac_exeext conftest.
$ac_ext
18223 LIBS
=$ac_check_lib_save_LIBS
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18226 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18227 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18228 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18231 lt_cv_dlopen
="dyld"
18233 lt_cv_dlopen_self
=yes
18240 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18241 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18242 lt_cv_dlopen
="shl_load"
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18245 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18246 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18247 $as_echo_n "(cached) " >&6
18249 ac_check_lib_save_LIBS
=$LIBS
18251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h. */
18254 /* Override any GCC internal prototype to avoid an error.
18255 Use char because int might match the return type of a GCC
18256 builtin and then its argument prototype would still apply. */
18264 return shl_load ();
18269 if ac_fn_c_try_link
"$LINENO"; then :
18270 ac_cv_lib_dld_shl_load
=yes
18272 ac_cv_lib_dld_shl_load
=no
18274 rm -f core conftest.err conftest.
$ac_objext \
18275 conftest
$ac_exeext conftest.
$ac_ext
18276 LIBS
=$ac_check_lib_save_LIBS
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18279 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18280 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18281 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18283 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18284 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18285 lt_cv_dlopen
="dlopen"
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18288 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18289 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18290 $as_echo_n "(cached) " >&6
18292 ac_check_lib_save_LIBS
=$LIBS
18294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18297 /* Override any GCC internal prototype to avoid an error.
18298 Use char because int might match the return type of a GCC
18299 builtin and then its argument prototype would still apply. */
18312 if ac_fn_c_try_link
"$LINENO"; then :
18313 ac_cv_lib_dl_dlopen
=yes
18315 ac_cv_lib_dl_dlopen
=no
18317 rm -f core conftest.err conftest.
$ac_objext \
18318 conftest
$ac_exeext conftest.
$ac_ext
18319 LIBS
=$ac_check_lib_save_LIBS
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18322 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18323 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18324 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18327 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18328 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18329 $as_echo_n "(cached) " >&6
18331 ac_check_lib_save_LIBS
=$LIBS
18332 LIBS
="-lsvld $LIBS"
18333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18336 /* Override any GCC internal prototype to avoid an error.
18337 Use char because int might match the return type of a GCC
18338 builtin and then its argument prototype would still apply. */
18351 if ac_fn_c_try_link
"$LINENO"; then :
18352 ac_cv_lib_svld_dlopen
=yes
18354 ac_cv_lib_svld_dlopen
=no
18356 rm -f core conftest.err conftest.
$ac_objext \
18357 conftest
$ac_exeext conftest.
$ac_ext
18358 LIBS
=$ac_check_lib_save_LIBS
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18361 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18362 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18363 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18366 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18367 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18368 $as_echo_n "(cached) " >&6
18370 ac_check_lib_save_LIBS
=$LIBS
18372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18373 /* end confdefs.h. */
18375 /* Override any GCC internal prototype to avoid an error.
18376 Use char because int might match the return type of a GCC
18377 builtin and then its argument prototype would still apply. */
18385 return dld_link ();
18390 if ac_fn_c_try_link
"$LINENO"; then :
18391 ac_cv_lib_dld_dld_link
=yes
18393 ac_cv_lib_dld_dld_link
=no
18395 rm -f core conftest.err conftest.
$ac_objext \
18396 conftest
$ac_exeext conftest.
$ac_ext
18397 LIBS
=$ac_check_lib_save_LIBS
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18400 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18401 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18402 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18423 if test "x$lt_cv_dlopen" != xno
; then
18429 case $lt_cv_dlopen in
18431 save_CPPFLAGS
="$CPPFLAGS"
18432 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18434 save_LDFLAGS
="$LDFLAGS"
18435 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18438 LIBS
="$lt_cv_dlopen_libs $LIBS"
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18441 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18442 if test "${lt_cv_dlopen_self+set}" = set; then :
18443 $as_echo_n "(cached) " >&6
18445 if test "$cross_compiling" = yes; then :
18446 lt_cv_dlopen_self
=cross
18448 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18449 lt_status
=$lt_dlunknown
18450 cat > conftest.
$ac_ext <<_LT_EOF
18451 #line 18451 "configure"
18452 #include "confdefs.h"
18461 # define LT_DLGLOBAL RTLD_GLOBAL
18464 # define LT_DLGLOBAL DL_GLOBAL
18466 # define LT_DLGLOBAL 0
18470 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18471 find out it does not work in some platform. */
18472 #ifndef LT_DLLAZY_OR_NOW
18474 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18477 # define LT_DLLAZY_OR_NOW DL_LAZY
18480 # define LT_DLLAZY_OR_NOW RTLD_NOW
18483 # define LT_DLLAZY_OR_NOW DL_NOW
18485 # define LT_DLLAZY_OR_NOW 0
18492 /* When -fvisbility=hidden is used, assume the code has been annotated
18493 correspondingly for the symbols needed. */
18494 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18495 void fnord () __attribute__((visibility("default")));
18498 void fnord () { int i=42; }
18501 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18502 int status = $lt_dlunknown;
18506 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18509 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18510 else puts (dlerror ());
18512 /* dlclose (self); */
18520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18521 (eval $ac_link) 2>&5
18523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18524 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18525 (.
/conftest
; exit; ) >&5 2>/dev
/null
18527 case x
$lt_status in
18528 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18529 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18530 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18533 # compilation failed
18534 lt_cv_dlopen_self
=no
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18542 $as_echo "$lt_cv_dlopen_self" >&6; }
18544 if test "x$lt_cv_dlopen_self" = xyes
; then
18545 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18547 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18548 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18549 $as_echo_n "(cached) " >&6
18551 if test "$cross_compiling" = yes; then :
18552 lt_cv_dlopen_self_static
=cross
18554 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18555 lt_status
=$lt_dlunknown
18556 cat > conftest.
$ac_ext <<_LT_EOF
18557 #line 18557 "configure"
18558 #include "confdefs.h"
18567 # define LT_DLGLOBAL RTLD_GLOBAL
18570 # define LT_DLGLOBAL DL_GLOBAL
18572 # define LT_DLGLOBAL 0
18576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18577 find out it does not work in some platform. */
18578 #ifndef LT_DLLAZY_OR_NOW
18580 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18583 # define LT_DLLAZY_OR_NOW DL_LAZY
18586 # define LT_DLLAZY_OR_NOW RTLD_NOW
18589 # define LT_DLLAZY_OR_NOW DL_NOW
18591 # define LT_DLLAZY_OR_NOW 0
18598 /* When -fvisbility=hidden is used, assume the code has been annotated
18599 correspondingly for the symbols needed. */
18600 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18601 void fnord () __attribute__((visibility("default")));
18604 void fnord () { int i=42; }
18607 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18608 int status = $lt_dlunknown;
18612 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18615 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18616 else puts (dlerror ());
18618 /* dlclose (self); */
18626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18627 (eval $ac_link) 2>&5
18629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18630 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18631 (.
/conftest
; exit; ) >&5 2>/dev
/null
18633 case x
$lt_status in
18634 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18635 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18636 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18639 # compilation failed
18640 lt_cv_dlopen_self_static
=no
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18648 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18651 CPPFLAGS
="$save_CPPFLAGS"
18652 LDFLAGS
="$save_LDFLAGS"
18657 case $lt_cv_dlopen_self in
18658 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18659 *) enable_dlopen_self
=unknown
;;
18662 case $lt_cv_dlopen_self_static in
18663 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18664 *) enable_dlopen_self_static
=unknown
;;
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18687 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18688 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18689 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18690 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18692 $as_echo "yes" >&6; }
18694 # FIXME - insert some real tests, host_os isn't really good enough
18697 if test -n "$STRIP" ; then
18698 striplib
="$STRIP -x"
18699 old_striplib
="$STRIP -S"
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18701 $as_echo "yes" >&6; }
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18704 $as_echo "no" >&6; }
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18709 $as_echo "no" >&6; }
18725 # Report which library types will actually be built
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18727 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18729 $as_echo "$can_build_shared" >&6; }
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18732 $as_echo_n "checking whether to build shared libraries... " >&6; }
18733 test "$can_build_shared" = "no" && enable_shared
=no
18735 # On AIX, shared libraries and static libraries use the same namespace, and
18736 # are all built from PIC.
18739 test "$enable_shared" = yes && enable_static
=no
18740 if test -n "$RANLIB"; then
18741 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18742 postinstall_cmds
='$RANLIB $lib'
18747 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18748 test "$enable_shared" = yes && enable_static
=no
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18753 $as_echo "$enable_shared" >&6; }
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18756 $as_echo_n "checking whether to build static libraries... " >&6; }
18757 # Make sure either enable_shared or enable_static is yes.
18758 test "$enable_shared" = yes || enable_static
=yes
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18760 $as_echo "$enable_static" >&6; }
18767 ac_cpp
='$CXXCPP $CPPFLAGS'
18768 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18769 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18770 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18774 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18775 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18776 (test "X$CXX" != "Xg++"))) ; then
18778 ac_cpp
='$CXXCPP $CPPFLAGS'
18779 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18780 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18781 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18783 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18784 if test -z "$CXXCPP"; then
18785 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18786 $as_echo_n "(cached) " >&6
18788 # Double quotes because CXXCPP needs to be expanded
18789 for CXXCPP
in "$CXX -E" "/lib/cpp"
18791 ac_preproc_ok
=false
18792 for ac_cxx_preproc_warn_flag
in '' yes
18794 # Use a header file that comes with gcc, so configuring glibc
18795 # with a fresh cross-compiler works.
18796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18797 # <limits.h> exists even on freestanding compilers.
18798 # On the NeXT, cc -E runs the code through the compiler's parser,
18799 # not just through cpp. "Syntax error" is here to catch this case.
18800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18801 /* end confdefs.h. */
18803 # include <limits.h>
18805 # include <assert.h>
18809 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18812 # Broken: fails on valid input.
18815 rm -f conftest.err conftest.
$ac_ext
18817 # OK, works on sane cases. Now check whether nonexistent headers
18818 # can be detected and how.
18819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18820 /* end confdefs.h. */
18821 #include <ac_nonexistent.h>
18823 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18824 # Broken: success on invalid input.
18827 # Passes both tests.
18831 rm -f conftest.err conftest.
$ac_ext
18834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18835 rm -f conftest.err conftest.
$ac_ext
18836 if $ac_preproc_ok; then :
18841 ac_cv_prog_CXXCPP
=$CXXCPP
18844 CXXCPP
=$ac_cv_prog_CXXCPP
18846 ac_cv_prog_CXXCPP
=$CXXCPP
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18849 $as_echo "$CXXCPP" >&6; }
18850 ac_preproc_ok
=false
18851 for ac_cxx_preproc_warn_flag
in '' yes
18853 # Use a header file that comes with gcc, so configuring glibc
18854 # with a fresh cross-compiler works.
18855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18856 # <limits.h> exists even on freestanding compilers.
18857 # On the NeXT, cc -E runs the code through the compiler's parser,
18858 # not just through cpp. "Syntax error" is here to catch this case.
18859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18862 # include <limits.h>
18864 # include <assert.h>
18868 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18871 # Broken: fails on valid input.
18874 rm -f conftest.err conftest.
$ac_ext
18876 # OK, works on sane cases. Now check whether nonexistent headers
18877 # can be detected and how.
18878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h. */
18880 #include <ac_nonexistent.h>
18882 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18883 # Broken: success on invalid input.
18886 # Passes both tests.
18890 rm -f conftest.err conftest.
$ac_ext
18893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18894 rm -f conftest.err conftest.
$ac_ext
18895 if $ac_preproc_ok; then :
18898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18900 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18901 See \`config.log' for more details." "$LINENO" 5; }
18905 ac_cpp
='$CXXCPP $CPPFLAGS'
18906 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18907 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18908 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18911 _lt_caught_CXX_error
=yes
18915 ac_cpp
='$CXXCPP $CPPFLAGS'
18916 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18917 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18918 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18920 archive_cmds_need_lc_CXX
=no
18921 allow_undefined_flag_CXX
=
18922 always_export_symbols_CXX
=no
18923 archive_expsym_cmds_CXX
=
18924 compiler_needs_object_CXX
=no
18925 export_dynamic_flag_spec_CXX
=
18926 hardcode_direct_CXX
=no
18927 hardcode_direct_absolute_CXX
=no
18928 hardcode_libdir_flag_spec_CXX
=
18929 hardcode_libdir_flag_spec_ld_CXX
=
18930 hardcode_libdir_separator_CXX
=
18931 hardcode_minus_L_CXX
=no
18932 hardcode_shlibpath_var_CXX
=unsupported
18933 hardcode_automatic_CXX
=no
18934 inherit_rpath_CXX
=no
18936 module_expsym_cmds_CXX
=
18937 link_all_deplibs_CXX
=unknown
18938 old_archive_cmds_CXX
=$old_archive_cmds
18939 reload_flag_CXX
=$reload_flag
18940 reload_cmds_CXX
=$reload_cmds
18941 no_undefined_flag_CXX
=
18942 whole_archive_flag_spec_CXX
=
18943 enable_shared_with_static_runtimes_CXX
=no
18945 # Source file extension for C++ test sources.
18948 # Object file extension for compiled C++ test sources.
18952 # No sense in running all these tests if we already determined that
18953 # the CXX compiler isn't working. Some variables (like enable_shared)
18954 # are currently assumed to apply to all compilers on this platform,
18955 # and will be corrupted by setting them based on a non-working compiler.
18956 if test "$_lt_caught_CXX_error" != yes; then
18957 # Code to be used in simple compile tests
18958 lt_simple_compile_test_code
="int some_variable = 0;"
18960 # Code to be used in simple link tests
18961 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18970 # If no C compiler was specified, use CC.
18973 # If no C compiler flags were specified, use CFLAGS.
18974 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18976 # Allow CC to be a program name with arguments.
18980 # save warnings/boilerplate of simple test code
18981 ac_outfile
=conftest.
$ac_objext
18982 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18983 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18984 _lt_compiler_boilerplate
=`cat conftest.err`
18987 ac_outfile
=conftest.
$ac_objext
18988 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18989 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18990 _lt_linker_boilerplate
=`cat conftest.err`
18994 # Allow CC to be a program name with arguments.
18999 lt_save_with_gnu_ld
=$with_gnu_ld
19000 lt_save_path_LD
=$lt_cv_path_LD
19001 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19002 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19004 $as_unset lt_cv_prog_gnu_ld
19006 if test -n "${lt_cv_path_LDCXX+set}"; then
19007 lt_cv_path_LD
=$lt_cv_path_LDCXX
19009 $as_unset lt_cv_path_LD
19011 test -z "${LDCXX+set}" || LD
=$LDCXX
19015 for cc_temp
in $compiler""; do
19017 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19018 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19023 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19026 if test -n "$compiler"; then
19027 # We don't want -fno-exception when compiling C++ code, so set the
19028 # no_builtin_flag separately
19029 if test "$GXX" = yes; then
19030 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19032 lt_prog_compiler_no_builtin_flag_CXX
=
19035 if test "$GXX" = yes; then
19036 # Set up default GNU C++ configuration
19040 # Check whether --with-gnu-ld was given.
19041 if test "${with_gnu_ld+set}" = set; then :
19042 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19048 if test "$GCC" = yes; then
19049 # Check if gcc -print-prog-name=ld gives a path.
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19051 $as_echo_n "checking for ld used by $CC... " >&6; }
19054 # gcc leaves a trailing carriage return which upsets mingw
19055 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19057 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19060 # Accept absolute paths.
19062 re_direlt
='/[^/][^/]*/\.\./'
19063 # Canonicalize the pathname of ld
19064 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19065 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19066 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19068 test -z "$LD" && LD
="$ac_prog"
19071 # If it fails, then pretend we aren't using GCC.
19075 # If it is relative, then search for the first ld in PATH.
19076 with_gnu_ld
=unknown
19079 elif test "$with_gnu_ld" = yes; then
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19081 $as_echo_n "checking for GNU ld... " >&6; }
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19084 $as_echo_n "checking for non-GNU ld... " >&6; }
19086 if test "${lt_cv_path_LD+set}" = set; then :
19087 $as_echo_n "(cached) " >&6
19089 if test -z "$LD"; then
19090 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19091 for ac_dir
in $PATH; do
19093 test -z "$ac_dir" && ac_dir
=.
19094 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19095 lt_cv_path_LD
="$ac_dir/$ac_prog"
19096 # Check to see if the program is GNU ld. I'd rather use --version,
19097 # but apparently some variants of GNU ld only accept -v.
19098 # Break only if it was the GNU/non-GNU ld that we prefer.
19099 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19100 *GNU
* |
*'with BFD'*)
19101 test "$with_gnu_ld" != no
&& break
19104 test "$with_gnu_ld" != yes && break
19111 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19115 LD
="$lt_cv_path_LD"
19116 if test -n "$LD"; then
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19118 $as_echo "$LD" >&6; }
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19121 $as_echo "no" >&6; }
19123 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19125 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19126 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19127 $as_echo_n "(cached) " >&6
19129 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19130 case `$LD -v 2>&1 </dev/null` in
19131 *GNU
* |
*'with BFD'*)
19132 lt_cv_prog_gnu_ld
=yes
19135 lt_cv_prog_gnu_ld
=no
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19140 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19141 with_gnu_ld
=$lt_cv_prog_gnu_ld
19149 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19150 # archiving commands below assume that GNU ld is being used.
19151 if test "$with_gnu_ld" = yes; then
19152 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19153 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'
19155 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19156 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19158 # If archive_cmds runs LD, not CC, wlarc should be empty
19159 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19160 # investigate it a little bit more. (MM)
19163 # ancient GNU ld didn't support --whole-archive et. al.
19164 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19165 $GREP 'no-whole-archive' > /dev
/null
; then
19166 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19168 whole_archive_flag_spec_CXX
=
19174 # A generic and very simple default shared library creation
19175 # command for GNU C++ for the case where it uses the native
19176 # linker, instead of GNU ld. If possible, this setting should
19177 # overridden to take advantage of the native linker features on
19178 # the platform it is being used on.
19179 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19182 # Commands to make compiler produce verbose output that lists
19183 # what "hidden" libraries, object files and flags are used when
19184 # linking a shared library.
19185 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19193 # PORTME: fill in a description of your system's C++ link characteristics
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19195 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19199 # FIXME: insert proper C++ library support
19203 if test "$host_cpu" = ia64
; then
19204 # On IA64, the linker does run time linking by default, so we don't
19205 # have to do anything special.
19206 aix_use_runtimelinking
=no
19207 exp_sym_flag
='-Bexport'
19210 aix_use_runtimelinking
=no
19212 # Test if we are trying to use run time linking or normal
19213 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19214 # need to do runtime linking.
19215 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19216 for ld_flag
in $LDFLAGS; do
19219 aix_use_runtimelinking
=yes
19227 exp_sym_flag
='-bexport'
19228 no_entry_flag
='-bnoentry'
19231 # When large executables or shared objects are built, AIX ld can
19232 # have problems creating the table of contents. If linking a library
19233 # or program results in "error TOC overflow" add -mminimal-toc to
19234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19237 archive_cmds_CXX
=''
19238 hardcode_direct_CXX
=yes
19239 hardcode_direct_absolute_CXX
=yes
19240 hardcode_libdir_separator_CXX
=':'
19241 link_all_deplibs_CXX
=yes
19242 file_list_spec_CXX
='${wl}-f,'
19244 if test "$GXX" = yes; then
19245 case $host_os in aix4.
[012]|aix4.
[012].
*)
19246 # We only want to do this on AIX 4.2 and lower, the check
19247 # below for broken collect2 doesn't work under 4.3+
19248 collect2name
=`${CC} -print-prog-name=collect2`
19249 if test -f "$collect2name" &&
19250 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19252 # We have reworked collect2
19255 # We have old collect2
19256 hardcode_direct_CXX
=unsupported
19257 # It fails to find uninstalled libraries when the uninstalled
19258 # path is not listed in the libpath. Setting hardcode_minus_L
19259 # to unsupported forces relinking
19260 hardcode_minus_L_CXX
=yes
19261 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19262 hardcode_libdir_separator_CXX
=
19265 shared_flag
='-shared'
19266 if test "$aix_use_runtimelinking" = yes; then
19267 shared_flag
="$shared_flag "'${wl}-G'
19271 if test "$host_cpu" = ia64
; then
19272 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19273 # chokes on -Wl,-G. The following line is correct:
19276 if test "$aix_use_runtimelinking" = yes; then
19277 shared_flag
='${wl}-G'
19279 shared_flag
='${wl}-bM:SRE'
19284 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19285 # It seems that -bexpall does not export symbols beginning with
19286 # underscore (_), so it is better to generate a list of symbols to
19288 always_export_symbols_CXX
=yes
19289 if test "$aix_use_runtimelinking" = yes; then
19290 # Warning - without using the other runtime loading flags (-brtl),
19291 # -berok will link without error, but may produce a broken library.
19292 allow_undefined_flag_CXX
='-berok'
19293 # Determine the default libpath from the value encoded in an empty
19295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19296 /* end confdefs.h. */
19306 if ac_fn_cxx_try_link
"$LINENO"; then :
19308 lt_aix_libpath_sed
='
19309 /Import File Strings/,/^$/ {
19315 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19316 # Check for a 64-bit object if we didn't find anything.
19317 if test -z "$aix_libpath"; then
19318 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19321 rm -f core conftest.err conftest.
$ac_objext \
19322 conftest
$ac_exeext conftest.
$ac_ext
19323 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19325 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19327 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"
19329 if test "$host_cpu" = ia64
; then
19330 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19331 allow_undefined_flag_CXX
="-z nodefs"
19332 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"
19334 # Determine the default libpath from the value encoded in an
19335 # empty executable.
19336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h. */
19347 if ac_fn_cxx_try_link
"$LINENO"; then :
19349 lt_aix_libpath_sed
='
19350 /Import File Strings/,/^$/ {
19356 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19357 # Check for a 64-bit object if we didn't find anything.
19358 if test -z "$aix_libpath"; then
19359 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19362 rm -f core conftest.err conftest.
$ac_objext \
19363 conftest
$ac_exeext conftest.
$ac_ext
19364 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19366 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19367 # Warning - without using the other run time loading flags,
19368 # -berok will link without error, but may produce a broken library.
19369 no_undefined_flag_CXX
=' ${wl}-bernotok'
19370 allow_undefined_flag_CXX
=' ${wl}-berok'
19371 if test "$with_gnu_ld" = yes; then
19372 # We only use this code for GNU lds that support --whole-archive.
19373 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19375 # Exported symbols can be pulled into shared objects from archives
19376 whole_archive_flag_spec_CXX
='$convenience'
19378 archive_cmds_need_lc_CXX
=yes
19379 # This is similar to how AIX traditionally builds its shared
19381 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'
19387 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19388 allow_undefined_flag_CXX
=unsupported
19389 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19390 # support --undefined. This deserves some investigation. FIXME
19391 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19398 case $cc_basename in
19400 # FIXME: insert proper C++ library support
19406 cygwin
* | mingw
* | pw32
* | cegcc
*)
19407 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19408 # as there is no search path for DLLs.
19409 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19410 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19411 allow_undefined_flag_CXX
=unsupported
19412 always_export_symbols_CXX
=no
19413 enable_shared_with_static_runtimes_CXX
=yes
19415 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19416 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'
19417 # If the export-symbols file already is a .def file (1st line
19418 # is EXPORTS), use it as is; otherwise, prepend...
19419 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19420 cp $export_symbols $output_objdir/$soname.def;
19422 echo EXPORTS > $output_objdir/$soname.def;
19423 cat $export_symbols >> $output_objdir/$soname.def;
19425 $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'
19430 darwin
* | rhapsody
*)
19433 archive_cmds_need_lc_CXX
=no
19434 hardcode_direct_CXX
=no
19435 hardcode_automatic_CXX
=yes
19436 hardcode_shlibpath_var_CXX
=unsupported
19437 if test "$lt_cv_ld_force_load" = "yes"; then
19438 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\"`'
19440 whole_archive_flag_spec_CXX
=''
19442 link_all_deplibs_CXX
=yes
19443 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19444 case $cc_basename in
19445 ifort
*) _lt_dar_can_shared
=yes ;;
19446 *) _lt_dar_can_shared
=$GCC ;;
19448 if test "$_lt_dar_can_shared" = "yes"; then
19449 output_verbose_link_cmd
=func_echo_all
19450 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}"
19451 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19452 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}"
19453 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}"
19454 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19455 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}"
19456 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}"
19466 case $cc_basename in
19468 # FIXME: insert proper C++ library support
19472 # Green Hills C++ Compiler
19473 # FIXME: insert proper C++ library support
19477 # FIXME: insert proper C++ library support
19484 # C++ shared libraries reported to be fairly broken before
19490 archive_cmds_need_lc_CXX
=no
19493 freebsd
* | dragonfly
*)
19494 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19503 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19504 link_all_deplibs_CXX
=yes
19508 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19509 hardcode_libdir_separator_CXX
=:
19510 export_dynamic_flag_spec_CXX
='${wl}-E'
19511 hardcode_direct_CXX
=yes
19512 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19513 # but as the default
19514 # location of the library.
19516 case $cc_basename in
19518 # FIXME: insert proper C++ library support
19522 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'
19523 # Commands to make compiler produce verbose output that lists
19524 # what "hidden" libraries, object files and flags are used when
19525 # linking a shared library.
19527 # There doesn't appear to be a way to prevent this compiler from
19528 # explicitly linking system object files so we need to strip them
19529 # from the output so that they don't get included in the library
19531 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"'
19534 if test "$GXX" = yes; then
19535 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'
19537 # FIXME: insert proper C++ library support
19545 if test $with_gnu_ld = no
; then
19546 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19547 hardcode_libdir_separator_CXX
=:
19553 export_dynamic_flag_spec_CXX
='${wl}-E'
19559 hardcode_direct_CXX
=no
19560 hardcode_shlibpath_var_CXX
=no
19563 hardcode_direct_CXX
=yes
19564 hardcode_direct_absolute_CXX
=yes
19565 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19566 # but as the default
19567 # location of the library.
19571 case $cc_basename in
19573 # FIXME: insert proper C++ library support
19579 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19582 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19585 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19588 # Commands to make compiler produce verbose output that lists
19589 # what "hidden" libraries, object files and flags are used when
19590 # linking a shared library.
19592 # There doesn't appear to be a way to prevent this compiler from
19593 # explicitly linking system object files so we need to strip them
19594 # from the output so that they don't get included in the library
19596 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"'
19599 if test "$GXX" = yes; then
19600 if test $with_gnu_ld = no
; then
19603 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19606 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19609 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'
19614 # FIXME: insert proper C++ library support
19622 hardcode_direct_CXX
=no
19623 hardcode_shlibpath_var_CXX
=no
19624 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19625 export_dynamic_flag_spec_CXX
='${wl}-E'
19626 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19627 # Instead, shared libraries are loaded at an image base (0x10000000 by
19628 # default) and relocated if they conflict, which is a slow very memory
19629 # consuming and fragmenting process. To avoid this, we pick a random,
19630 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19631 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19632 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'
19633 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'
19636 case $cc_basename in
19639 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'
19641 # Archives containing C++ object files must be created using
19642 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19643 # necessary to make sure instantiated templates are included
19645 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19648 if test "$GXX" = yes; then
19649 if test "$with_gnu_ld" = no
; then
19650 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'
19652 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'
19655 link_all_deplibs_CXX
=yes
19658 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19659 hardcode_libdir_separator_CXX
=:
19660 inherit_rpath_CXX
=yes
19663 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19664 case $cc_basename in
19666 # Kuck and Associates, Inc. (KAI) C++ Compiler
19668 # KCC will only create a shared library if the output file
19669 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19670 # to its proper name (with version) after linking.
19671 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'
19672 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'
19673 # Commands to make compiler produce verbose output that lists
19674 # what "hidden" libraries, object files and flags are used when
19675 # linking a shared library.
19677 # There doesn't appear to be a way to prevent this compiler from
19678 # explicitly linking system object files so we need to strip them
19679 # from the output so that they don't get included in the library
19681 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"'
19683 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19684 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19686 # Archives containing C++ object files must be created using
19687 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19688 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19693 # version 8.0 and above of icpc choke on multiply defined symbols
19694 # if we add $predep_objects and $postdep_objects, however 7.1 and
19695 # earlier do not add the objects themselves.
19696 case `$CC -V 2>&1` in
19698 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19699 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'
19701 *) # Version 8.0 or newer
19704 ia64
*) tmp_idyn
=' -i_dynamic';;
19706 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19707 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'
19710 archive_cmds_need_lc_CXX
=no
19711 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19712 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19713 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19716 # Portland Group C++ compiler
19718 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19719 prelink_cmds_CXX
='tpldir=Template.dir~
19721 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19722 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19723 old_archive_cmds_CXX
='tpldir=Template.dir~
19725 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19726 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19728 archive_cmds_CXX
='tpldir=Template.dir~
19730 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19731 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19732 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19734 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19735 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19737 *) # Version 6 and above use weak symbols
19738 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19739 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'
19743 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19744 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19745 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'
19749 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19750 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'
19752 runpath_var
=LD_RUN_PATH
19753 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19754 hardcode_libdir_separator_CXX
=:
19756 # Commands to make compiler produce verbose output that lists
19757 # what "hidden" libraries, object files and flags are used when
19758 # linking a shared library.
19760 # There doesn't appear to be a way to prevent this compiler from
19761 # explicitly linking system object files so we need to strip them
19762 # from the output so that they don't get included in the library
19764 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'
19766 xl
* | mpixl
* | bgxl
*)
19767 # IBM XL 8.0 on PPC, with GNU ld
19768 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19769 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19770 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19771 if test "x$supports_anon_versioning" = xyes
; then
19772 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19774 echo "local: *; };" >> $output_objdir/$libname.ver~
19775 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19779 case `$CC -V 2>&1 | sed 5q` in
19782 no_undefined_flag_CXX
=' -zdefs'
19783 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19784 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'
19785 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19786 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'
19787 compiler_needs_object_CXX
=yes
19789 # Not sure whether something based on
19790 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19792 output_verbose_link_cmd
='func_echo_all'
19794 # Archives containing C++ object files must be created using
19795 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19796 # necessary to make sure instantiated templates are included
19798 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19806 # FIXME: insert proper C++ library support
19811 # FIXME: insert proper C++ library support
19816 case $cc_basename in
19818 # FIXME: insert proper C++ library support
19822 # FIXME: insert proper C++ library support
19829 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19830 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19832 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19833 hardcode_direct_CXX
=yes
19834 hardcode_shlibpath_var_CXX
=no
19836 # Workaround some broken pre-1.5 toolchains
19837 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19845 # C++ shared libraries are fairly broken
19850 if test -f /usr
/libexec
/ld.so
; then
19851 hardcode_direct_CXX
=yes
19852 hardcode_shlibpath_var_CXX
=no
19853 hardcode_direct_absolute_CXX
=yes
19854 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19855 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19856 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19857 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19858 export_dynamic_flag_spec_CXX
='${wl}-E'
19859 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19861 output_verbose_link_cmd
=func_echo_all
19867 osf3
* | osf4
* | osf5
*)
19868 case $cc_basename in
19870 # Kuck and Associates, Inc. (KAI) C++ Compiler
19872 # KCC will only create a shared library if the output file
19873 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19874 # to its proper name (with version) after linking.
19875 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'
19877 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19878 hardcode_libdir_separator_CXX
=:
19880 # Archives containing C++ object files must be created using
19881 # the KAI C++ compiler.
19883 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19884 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19888 # Rational C++ 2.4.1
19889 # FIXME: insert proper C++ library support
19895 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19896 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'
19897 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19900 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19901 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'
19902 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19903 echo "-hidden">> $lib.exp~
19904 $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~
19906 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19910 hardcode_libdir_separator_CXX
=:
19912 # Commands to make compiler produce verbose output that lists
19913 # what "hidden" libraries, object files and flags are used when
19914 # linking a shared library.
19916 # There doesn't appear to be a way to prevent this compiler from
19917 # explicitly linking system object files so we need to strip them
19918 # from the output so that they don't get included in the library
19920 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"'
19923 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19924 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19927 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'
19930 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'
19934 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19935 hardcode_libdir_separator_CXX
=:
19937 # Commands to make compiler produce verbose output that lists
19938 # what "hidden" libraries, object files and flags are used when
19939 # linking a shared library.
19940 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19943 # FIXME: insert proper C++ library support
19951 # FIXME: insert proper C++ library support
19956 case $cc_basename in
19959 # FIXME: insert proper C++ library support
19964 # FIXME: insert proper C++ library support
19968 # FIXME: insert proper C++ library support
19975 case $cc_basename in
19977 # Sun C++ 4.2, 5.x and Centerline C++
19978 archive_cmds_need_lc_CXX
=yes
19979 no_undefined_flag_CXX
=' -zdefs'
19980 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19981 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19982 $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'
19984 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19985 hardcode_shlibpath_var_CXX
=no
19987 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19989 # The compiler driver will combine and reorder linker options,
19990 # but understands `-z linker_flag'.
19991 # Supported since Solaris 2.6 (maybe 2.5.1?)
19992 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19995 link_all_deplibs_CXX
=yes
19997 output_verbose_link_cmd
='func_echo_all'
19999 # Archives containing C++ object files must be created using
20000 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20001 # necessary to make sure instantiated templates are included
20003 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20006 # Green Hills C++ Compiler
20007 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20009 # The C++ compiler must be used to create the archive.
20010 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20013 # GNU C++ compiler with Solaris linker
20014 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20015 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20016 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20017 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20018 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20019 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20021 # Commands to make compiler produce verbose output that lists
20022 # what "hidden" libraries, object files and flags are used when
20023 # linking a shared library.
20024 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20026 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20028 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20029 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20030 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20032 # Commands to make compiler produce verbose output that lists
20033 # what "hidden" libraries, object files and flags are used when
20034 # linking a shared library.
20035 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20038 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20040 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20042 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20050 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20051 no_undefined_flag_CXX
='${wl}-z,text'
20052 archive_cmds_need_lc_CXX
=no
20053 hardcode_shlibpath_var_CXX
=no
20054 runpath_var
='LD_RUN_PATH'
20056 case $cc_basename in
20058 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20059 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20062 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20063 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20068 sysv5
* | sco3.2v5
* | sco5v6
*)
20069 # Note: We can NOT use -z defs as we might desire, because we do not
20070 # link with -lc, and that would cause any symbols used from libc to
20071 # always be unresolved, which means just about no library would
20072 # ever link correctly. If we're not using GNU ld we use -z text
20073 # though, which does catch some bad symbols but isn't as heavy-handed
20075 no_undefined_flag_CXX
='${wl}-z,text'
20076 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20077 archive_cmds_need_lc_CXX
=no
20078 hardcode_shlibpath_var_CXX
=no
20079 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20080 hardcode_libdir_separator_CXX
=':'
20081 link_all_deplibs_CXX
=yes
20082 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20083 runpath_var
='LD_RUN_PATH'
20085 case $cc_basename in
20087 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20088 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20089 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20090 '"$old_archive_cmds_CXX"
20091 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20092 '"$reload_cmds_CXX"
20095 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20096 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20102 case $cc_basename in
20104 # NonStop-UX NCC 3.20
20105 # FIXME: insert proper C++ library support
20109 # FIXME: insert proper C++ library support
20116 # FIXME: insert proper C++ library support
20121 # FIXME: insert proper C++ library support
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20127 $as_echo "$ld_shlibs_CXX" >&6; }
20128 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20134 ## There is no encapsulation within the following macros, do not change
20135 ## the running order or otherwise move them around unless you know exactly
20136 ## what you are doing...
20137 # Dependencies to place before and after the object being linked:
20138 predep_objects_CXX
=
20139 postdep_objects_CXX
=
20142 compiler_lib_search_path_CXX
=
20144 cat > conftest.
$ac_ext <<_LT_EOF
20148 Foo (void) { a = 0; }
20154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20155 (eval $ac_compile) 2>&5
20157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20158 test $ac_status = 0; }; then
20159 # Parse the compiler output and extract the necessary
20160 # objects, libraries and library flags.
20162 # Sentinel used to keep track of whether or not we are before
20163 # the conftest object file.
20164 pre_test_object_deps_done
=no
20166 for p
in `eval "$output_verbose_link_cmd"`; do
20170 # Some compilers place space between "-{L,R}" and the path.
20171 # Remove the space.
20172 if test $p = "-L" ||
20173 test $p = "-R"; then
20180 if test "$pre_test_object_deps_done" = no
; then
20183 # Internal compiler library paths should come after those
20184 # provided the user. The postdeps already come after the
20185 # user supplied libs so there is no need to process them.
20186 if test -z "$compiler_lib_search_path_CXX"; then
20187 compiler_lib_search_path_CXX
="${prev}${p}"
20189 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20192 # The "-l" case would never come before the object being
20193 # linked, so don't bother handling this case.
20196 if test -z "$postdeps_CXX"; then
20197 postdeps_CXX
="${prev}${p}"
20199 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20205 # This assumes that the test object file only shows up
20206 # once in the compiler output.
20207 if test "$p" = "conftest.$objext"; then
20208 pre_test_object_deps_done
=yes
20212 if test "$pre_test_object_deps_done" = no
; then
20213 if test -z "$predep_objects_CXX"; then
20214 predep_objects_CXX
="$p"
20216 predep_objects_CXX
="$predep_objects_CXX $p"
20219 if test -z "$postdep_objects_CXX"; then
20220 postdep_objects_CXX
="$p"
20222 postdep_objects_CXX
="$postdep_objects_CXX $p"
20227 *) ;; # Ignore the rest.
20235 echo "libtool.m4: error: problem compiling CXX test program"
20238 $RM -f confest.
$objext
20240 # PORTME: override above test on systems where it is broken
20243 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20244 # hack all around it, let's just trust "g++" to DTRT.
20245 predep_objects_CXX
=
20246 postdep_objects_CXX
=
20251 case `$CC -V 2>&1 | sed 5q` in
20255 # The more standards-conforming stlport4 library is
20256 # incompatible with the Cstd library. Avoid specifying
20257 # it if it's in CXXFLAGS. Ignore libCrun as
20258 # -library=stlport4 depends on it.
20259 case " $CXX $CXXFLAGS " in
20260 *" -library=stlport4 "*)
20261 solaris_use_stlport4
=yes
20265 if test "$solaris_use_stlport4" != yes; then
20266 postdeps_CXX
='-library=Cstd -library=Crun'
20273 case $cc_basename in
20275 # The more standards-conforming stlport4 library is
20276 # incompatible with the Cstd library. Avoid specifying
20277 # it if it's in CXXFLAGS. Ignore libCrun as
20278 # -library=stlport4 depends on it.
20279 case " $CXX $CXXFLAGS " in
20280 *" -library=stlport4 "*)
20281 solaris_use_stlport4
=yes
20285 # Adding this requires a known-good setup of shared libraries for
20286 # Sun compiler versions before 5.6, else PIC objects from an old
20287 # archive will be linked into the output, leading to subtle bugs.
20288 if test "$solaris_use_stlport4" != yes; then
20289 postdeps_CXX
='-library=Cstd -library=Crun'
20297 case " $postdeps_CXX " in
20298 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20300 compiler_lib_search_dirs_CXX
=
20301 if test -n "${compiler_lib_search_path_CXX}"; then
20302 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20335 lt_prog_compiler_wl_CXX
=
20336 lt_prog_compiler_pic_CXX
=
20337 lt_prog_compiler_static_CXX
=
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20340 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20342 # C++ specific cases for pic, static, wl, etc.
20343 if test "$GXX" = yes; then
20344 lt_prog_compiler_wl_CXX
='-Wl,'
20345 lt_prog_compiler_static_CXX
='-static'
20349 # All AIX code is PIC.
20350 if test "$host_cpu" = ia64
; then
20351 # AIX 5 now supports IA64 processor
20352 lt_prog_compiler_static_CXX
='-Bstatic'
20354 lt_prog_compiler_pic_CXX
='-fPIC'
20360 # see comment about AmigaOS4 .so support
20361 lt_prog_compiler_pic_CXX
='-fPIC'
20364 # FIXME: we need at least 68020 code to build shared libraries, but
20365 # adding the `-m68020' flag to GCC prevents building anything better,
20367 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20372 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20373 # PIC is the default for these OSes.
20375 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20376 # This hack is so that the source file can tell whether it is being
20377 # built for inclusion in a dll (and should export symbols for example).
20378 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20379 # (--disable-auto-import) libraries
20380 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20382 darwin
* | rhapsody
*)
20383 # PIC is the default on this platform
20384 # Common symbols not allowed in MH_DYLIB files
20385 lt_prog_compiler_pic_CXX
='-fno-common'
20388 # DJGPP does not support shared libraries at all
20389 lt_prog_compiler_pic_CXX
=
20392 # PIC is the default for Haiku.
20393 # The "-static" flag exists, but is broken.
20394 lt_prog_compiler_static_CXX
=
20397 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20398 # Instead, we relocate shared libraries at runtime.
20401 if test -d /usr
/nec
; then
20402 lt_prog_compiler_pic_CXX
=-Kconform_pic
20406 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20407 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20408 # sets the default TLS model and affects inlining.
20413 lt_prog_compiler_pic_CXX
='-fPIC'
20418 # QNX uses GNU C++, but need to define -shared option too, otherwise
20419 # it will coredump.
20420 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20423 lt_prog_compiler_pic_CXX
='-fPIC'
20429 # All AIX code is PIC.
20430 if test "$host_cpu" = ia64
; then
20431 # AIX 5 now supports IA64 processor
20432 lt_prog_compiler_static_CXX
='-Bstatic'
20434 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20438 case $cc_basename in
20440 # Green Hills C++ Compiler
20441 # _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"
20446 case $cc_basename in
20448 lt_prog_compiler_pic_CXX
='-KPIC'
20451 # Green Hills C++ Compiler
20452 lt_prog_compiler_pic_CXX
='-pic'
20458 freebsd
* | dragonfly
*)
20459 # FreeBSD uses GNU C++
20461 hpux9
* | hpux10
* | hpux11
*)
20462 case $cc_basename in
20464 lt_prog_compiler_wl_CXX
='-Wl,'
20465 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20466 if test "$host_cpu" != ia64
; then
20467 lt_prog_compiler_pic_CXX
='+Z'
20471 lt_prog_compiler_wl_CXX
='-Wl,'
20472 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20478 lt_prog_compiler_pic_CXX
='+Z'
20487 # This is c89, which is MS Visual C++ (no shared libs)
20488 # Anyone wants to do a port?
20490 irix5
* | irix6
* | nonstopux
*)
20491 case $cc_basename in
20493 lt_prog_compiler_wl_CXX
='-Wl,'
20494 lt_prog_compiler_static_CXX
='-non_shared'
20495 # CC pic flag -KPIC is the default.
20501 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20502 case $cc_basename in
20505 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20506 lt_prog_compiler_pic_CXX
='-fPIC'
20509 # old Intel C++ for x86_64 which still supported -KPIC.
20510 lt_prog_compiler_wl_CXX
='-Wl,'
20511 lt_prog_compiler_pic_CXX
='-KPIC'
20512 lt_prog_compiler_static_CXX
='-static'
20515 # Intel C++, used to be incompatible with GCC.
20516 # ICC 10 doesn't accept -KPIC any more.
20517 lt_prog_compiler_wl_CXX
='-Wl,'
20518 lt_prog_compiler_pic_CXX
='-fPIC'
20519 lt_prog_compiler_static_CXX
='-static'
20522 # Portland Group C++ compiler
20523 lt_prog_compiler_wl_CXX
='-Wl,'
20524 lt_prog_compiler_pic_CXX
='-fpic'
20525 lt_prog_compiler_static_CXX
='-Bstatic'
20529 # Make sure the PIC flag is empty. It appears that all Alpha
20530 # Linux and Compaq Tru64 Unix objects are PIC.
20531 lt_prog_compiler_pic_CXX
=
20532 lt_prog_compiler_static_CXX
='-non_shared'
20534 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20535 # IBM XL 8.0, 9.0 on PPC and BlueGene
20536 lt_prog_compiler_wl_CXX
='-Wl,'
20537 lt_prog_compiler_pic_CXX
='-qpic'
20538 lt_prog_compiler_static_CXX
='-qstaticlink'
20541 case `$CC -V 2>&1 | sed 5q` in
20544 lt_prog_compiler_pic_CXX
='-KPIC'
20545 lt_prog_compiler_static_CXX
='-Bstatic'
20546 lt_prog_compiler_wl_CXX
='-Qoption ld '
20557 case $cc_basename in
20559 lt_prog_compiler_pic_CXX
='-W c,exportall'
20568 # QNX uses GNU C++, but need to define -shared option too, otherwise
20569 # it will coredump.
20570 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20572 osf3
* | osf4
* | osf5
*)
20573 case $cc_basename in
20575 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20578 # Rational C++ 2.4.1
20579 lt_prog_compiler_pic_CXX
='-pic'
20582 # Digital/Compaq C++
20583 lt_prog_compiler_wl_CXX
='-Wl,'
20584 # Make sure the PIC flag is empty. It appears that all Alpha
20585 # Linux and Compaq Tru64 Unix objects are PIC.
20586 lt_prog_compiler_pic_CXX
=
20587 lt_prog_compiler_static_CXX
='-non_shared'
20596 case $cc_basename in
20598 # Sun C++ 4.2, 5.x and Centerline C++
20599 lt_prog_compiler_pic_CXX
='-KPIC'
20600 lt_prog_compiler_static_CXX
='-Bstatic'
20601 lt_prog_compiler_wl_CXX
='-Qoption ld '
20604 # Green Hills C++ Compiler
20605 lt_prog_compiler_pic_CXX
='-PIC'
20612 case $cc_basename in
20615 lt_prog_compiler_pic_CXX
='-pic'
20616 lt_prog_compiler_static_CXX
='-Bstatic'
20620 lt_prog_compiler_pic_CXX
='-pic'
20626 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20627 case $cc_basename in
20629 lt_prog_compiler_wl_CXX
='-Wl,'
20630 lt_prog_compiler_pic_CXX
='-KPIC'
20631 lt_prog_compiler_static_CXX
='-Bstatic'
20636 case $cc_basename in
20638 # NonStop-UX NCC 3.20
20639 lt_prog_compiler_pic_CXX
='-KPIC'
20648 lt_prog_compiler_can_build_shared_CXX
=no
20654 # For platforms which do not support PIC, -DPIC is meaningless:
20656 lt_prog_compiler_pic_CXX
=
20659 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20663 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20668 # Check to make sure the PIC flag actually works.
20670 if test -n "$lt_prog_compiler_pic_CXX"; then
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20672 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20673 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20674 $as_echo_n "(cached) " >&6
20676 lt_cv_prog_compiler_pic_works_CXX
=no
20677 ac_outfile
=conftest.
$ac_objext
20678 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20679 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20680 # Insert the option either (1) after the last *FLAGS variable, or
20681 # (2) before a word containing "conftest.", or (3) at the end.
20682 # Note that $ac_compile itself does not contain backslashes and begins
20683 # with a dollar sign (not a hyphen), so the echo should work correctly.
20684 # The option is referenced via a variable to avoid confusing sed.
20685 lt_compile
=`echo "$ac_compile" | $SED \
20686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20688 -e 's:$: $lt_compiler_flag:'`
20689 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20690 (eval "$lt_compile" 2>conftest.err
)
20692 cat conftest.err
>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 if (exit $ac_status) && test -s "$ac_outfile"; then
20695 # The compiler can only warn and ignore the option if not recognized
20696 # So say no if there are warnings other than the usual output.
20697 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20698 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20699 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20700 lt_cv_prog_compiler_pic_works_CXX
=yes
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20707 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20709 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20710 case $lt_prog_compiler_pic_CXX in
20712 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20715 lt_prog_compiler_pic_CXX
=
20716 lt_prog_compiler_can_build_shared_CXX
=no
20724 # Check to make sure the static flag actually works.
20726 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20728 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20729 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20730 $as_echo_n "(cached) " >&6
20732 lt_cv_prog_compiler_static_works_CXX
=no
20733 save_LDFLAGS
="$LDFLAGS"
20734 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20735 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20736 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20737 # The linker can only warn and ignore the option if not recognized
20738 # So say no if there are warnings
20739 if test -s conftest.err
; then
20740 # Append any errors to the config.log.
20741 cat conftest.err
1>&5
20742 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20743 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20744 if diff conftest.exp conftest.er2
>/dev
/null
; then
20745 lt_cv_prog_compiler_static_works_CXX
=yes
20748 lt_cv_prog_compiler_static_works_CXX
=yes
20752 LDFLAGS
="$save_LDFLAGS"
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20756 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20758 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20761 lt_prog_compiler_static_CXX
=
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20768 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20769 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20770 $as_echo_n "(cached) " >&6
20772 lt_cv_prog_compiler_c_o_CXX
=no
20773 $RM -r conftest
2>/dev
/null
20777 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20779 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20780 # Insert the option either (1) after the last *FLAGS variable, or
20781 # (2) before a word containing "conftest.", or (3) at the end.
20782 # Note that $ac_compile itself does not contain backslashes and begins
20783 # with a dollar sign (not a hyphen), so the echo should work correctly.
20784 lt_compile
=`echo "$ac_compile" | $SED \
20785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20787 -e 's:$: $lt_compiler_flag:'`
20788 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20789 (eval "$lt_compile" 2>out
/conftest.err
)
20791 cat out
/conftest.err
>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20795 # The compiler can only warn and ignore the option if not recognized
20796 # So say no if there are warnings
20797 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20798 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20799 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20800 lt_cv_prog_compiler_c_o_CXX
=yes
20805 # SGI C++ compiler will create directory out/ii_files/ for
20806 # template instantiation
20807 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20808 $RM out
/* && rmdir out
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20815 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20820 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20821 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20822 $as_echo_n "(cached) " >&6
20824 lt_cv_prog_compiler_c_o_CXX
=no
20825 $RM -r conftest
2>/dev
/null
20829 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20831 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20832 # Insert the option either (1) after the last *FLAGS variable, or
20833 # (2) before a word containing "conftest.", or (3) at the end.
20834 # Note that $ac_compile itself does not contain backslashes and begins
20835 # with a dollar sign (not a hyphen), so the echo should work correctly.
20836 lt_compile
=`echo "$ac_compile" | $SED \
20837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20839 -e 's:$: $lt_compiler_flag:'`
20840 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20841 (eval "$lt_compile" 2>out
/conftest.err
)
20843 cat out
/conftest.err
>&5
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20847 # The compiler can only warn and ignore the option if not recognized
20848 # So say no if there are warnings
20849 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20850 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20851 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20852 lt_cv_prog_compiler_c_o_CXX
=yes
20857 # SGI C++ compiler will create directory out/ii_files/ for
20858 # template instantiation
20859 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20860 $RM out
/* && rmdir out
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20867 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20872 hard_links
="nottested"
20873 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20874 # do not overwrite the value of need_locks provided by the user
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20876 $as_echo_n "checking if we can lock with hard links... " >&6; }
20879 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20881 ln conftest.a conftest.b
2>&5 || hard_links
=no
20882 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20884 $as_echo "$hard_links" >&6; }
20885 if test "$hard_links" = no
; then
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20887 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20897 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20899 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20902 # If we're using GNU nm, then we don't want the "-C" option.
20903 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20904 # Also, AIX nm treats weak defined symbols like other global defined
20905 # symbols, whereas GNU nm marks them as "W".
20906 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20907 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'
20909 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'
20913 export_symbols_cmds_CXX
="$ltdll_cmds"
20915 cygwin
* | mingw
* | cegcc
*)
20916 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'
20919 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20922 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20925 $as_echo "$ld_shlibs_CXX" >&6; }
20926 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20928 with_gnu_ld_CXX
=$with_gnu_ld
20936 # Do we need to explicitly link libc?
20938 case "x$archive_cmds_need_lc_CXX" in
20940 # Assume -lc should be added
20941 archive_cmds_need_lc_CXX
=yes
20943 if test "$enable_shared" = yes && test "$GCC" = yes; then
20944 case $archive_cmds_CXX in
20946 # FIXME: we may have to deal with multi-command sequences.
20949 # Test whether the compiler implicitly links with -lc since on some
20950 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20951 # to ld, don't add -lc before -lgcc.
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20953 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20954 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20955 $as_echo_n "(cached) " >&6
20958 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20961 (eval $ac_compile) 2>&5
20963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20964 test $ac_status = 0; } 2>conftest.err
; then
20967 libobjs
=conftest.
$ac_objext
20969 wl
=$lt_prog_compiler_wl_CXX
20970 pic_flag
=$lt_prog_compiler_pic_CXX
20976 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20977 allow_undefined_flag_CXX
=
20978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20979 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20982 test $ac_status = 0; }
20984 lt_cv_archive_cmds_need_lc_CXX
=no
20986 lt_cv_archive_cmds_need_lc_CXX
=yes
20988 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20990 cat conftest.err
1>&5
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20996 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20997 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21068 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21070 library_names_spec
=
21071 libname_spec
='lib$name'
21075 postuninstall_cmds
=
21079 shlibpath_overrides_runpath
=unknown
21081 dynamic_linker
="$host_os ld.so"
21082 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21083 need_lib_prefix
=unknown
21084 hardcode_into_libs
=no
21086 # when you set need_version to no, make sure it does not cause -set_version
21087 # flags to be left without arguments
21088 need_version
=unknown
21093 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21094 shlibpath_var
=LIBPATH
21096 # AIX 3 has no versioning support, so we append a major version to the name.
21097 soname_spec
='${libname}${release}${shared_ext}$major'
21104 hardcode_into_libs
=yes
21105 if test "$host_cpu" = ia64
; then
21106 # AIX 5 supports IA64
21107 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21108 shlibpath_var
=LD_LIBRARY_PATH
21110 # With GCC up to 2.95.x, collect2 would create an import file
21111 # for dependence libraries. The import file would start with
21112 # the line `#! .'. This would cause the generated library to
21113 # depend on `.', always an invalid library. This was fixed in
21114 # development snapshots of GCC prior to 3.0.
21116 aix4 | aix4.
[01] | aix4.
[01].
*)
21117 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21119 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21122 can_build_shared
=no
21126 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21127 # soname into executable. Probably we can add versioning support to
21128 # collect2, so additional links can be useful in future.
21129 if test "$aix_use_runtimelinking" = yes; then
21130 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21131 # instead of lib<name>.a to let people know that these are not
21132 # typical AIX shared libraries.
21133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21135 # We preserve .a as extension for shared libraries through AIX4.2
21136 # and later when we are not doing run time linking.
21137 library_names_spec
='${libname}${release}.a $libname.a'
21138 soname_spec
='${libname}${release}${shared_ext}$major'
21140 shlibpath_var
=LIBPATH
21147 # Since July 2007 AmigaOS4 officially supports .so libraries.
21148 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21152 library_names_spec
='$libname.ixlibrary $libname.a'
21153 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21154 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'
21160 library_names_spec
='${libname}${shared_ext}'
21161 dynamic_linker
="$host_os ld.so"
21162 shlibpath_var
=LIBRARY_PATH
21168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21169 soname_spec
='${libname}${release}${shared_ext}$major'
21170 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21171 shlibpath_var
=LD_LIBRARY_PATH
21172 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21173 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21174 # the default ld.so.conf also contains /usr/contrib/lib and
21175 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21176 # libtool to hard-code these into programs
21179 cygwin
* | mingw
* | pw32
* | cegcc
*)
21180 version_type
=windows
21185 case $GCC,$host_os in
21186 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21187 library_names_spec
='$libname.dll.a'
21188 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21189 postinstall_cmds
='base_file=`basename \${file}`~
21190 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21191 dldir=$destdir/`dirname \$dlpath`~
21192 test -d \$dldir || mkdir -p \$dldir~
21193 $install_prog $dir/$dlname \$dldir/$dlname~
21194 chmod a+x \$dldir/$dlname~
21195 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21196 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21198 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21199 dlpath=$dir/\$dldll~
21201 shlibpath_overrides_runpath
=yes
21205 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21206 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21210 # MinGW DLLs use traditional 'lib' prefix
21211 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21214 # pw32 DLLs use 'pw' prefix rather than 'lib'
21215 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21221 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21224 dynamic_linker
='Win32 ld.exe'
21225 # FIXME: first we should search . and the directory the executable is in
21229 darwin
* | rhapsody
*)
21230 dynamic_linker
="$host_os dyld"
21231 version_type
=darwin
21234 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21235 soname_spec
='${libname}${release}${major}$shared_ext'
21236 shlibpath_overrides_runpath
=yes
21237 shlibpath_var
=DYLD_LIBRARY_PATH
21238 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21240 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21247 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21248 soname_spec
='${libname}${release}${shared_ext}$major'
21249 shlibpath_var
=LD_LIBRARY_PATH
21252 freebsd
* | dragonfly
*)
21253 # DragonFly does not have aout. When/if they implement a new
21254 # versioning mechanism, adjust this.
21255 if test -x /usr
/bin
/objformat
; then
21256 objformat
=`/usr/bin/objformat`
21259 freebsd
[23].
*) objformat
=aout
;;
21260 *) objformat
=elf
;;
21263 version_type
=freebsd-
$objformat
21264 case $version_type in
21266 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21271 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21275 shlibpath_var
=LD_LIBRARY_PATH
21278 shlibpath_overrides_runpath
=yes
21280 freebsd3.
[01]* | freebsdelf3.
[01]*)
21281 shlibpath_overrides_runpath
=yes
21282 hardcode_into_libs
=yes
21284 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21285 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21286 shlibpath_overrides_runpath
=no
21287 hardcode_into_libs
=yes
21289 *) # from 4.6 on, and DragonFly
21290 shlibpath_overrides_runpath
=yes
21291 hardcode_into_libs
=yes
21300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21301 soname_spec
='${libname}${release}${shared_ext}$major'
21302 shlibpath_var
=LD_LIBRARY_PATH
21303 hardcode_into_libs
=yes
21310 dynamic_linker
="$host_os runtime_loader"
21311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21312 soname_spec
='${libname}${release}${shared_ext}$major'
21313 shlibpath_var
=LIBRARY_PATH
21314 shlibpath_overrides_runpath
=yes
21315 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21316 hardcode_into_libs
=yes
21319 hpux9
* | hpux10
* | hpux11
*)
21320 # Give a soname corresponding to the major version so that dld.sl refuses to
21321 # link against other versions.
21328 hardcode_into_libs
=yes
21329 dynamic_linker
="$host_os dld.so"
21330 shlibpath_var
=LD_LIBRARY_PATH
21331 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21332 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21333 soname_spec
='${libname}${release}${shared_ext}$major'
21334 if test "X$HPUX_IA64_MODE" = X32
; then
21335 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21337 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21339 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21343 hardcode_into_libs
=yes
21344 dynamic_linker
="$host_os dld.sl"
21345 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21346 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21350 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21354 dynamic_linker
="$host_os dld.sl"
21355 shlibpath_var
=SHLIB_PATH
21356 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21358 soname_spec
='${libname}${release}${shared_ext}$major'
21361 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21362 postinstall_cmds
='chmod 555 $lib'
21363 # or fails outright, so override atomically:
21364 install_override_mode
=555
21371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21372 soname_spec
='${libname}${release}${shared_ext}$major'
21373 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21374 shlibpath_var
=LD_LIBRARY_PATH
21375 shlibpath_overrides_runpath
=no
21376 hardcode_into_libs
=yes
21379 irix5
* | irix6
* | nonstopux
*)
21381 nonstopux
*) version_type
=nonstopux
;;
21383 if test "$lt_cv_prog_gnu_ld" = yes; then
21391 soname_spec
='${libname}${release}${shared_ext}$major'
21392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21394 irix5
* | nonstopux
*)
21395 libsuff
= shlibsuff
=
21398 case $LD in # libtool.m4 will add one of these switches to LD
21399 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21400 libsuff
= shlibsuff
= libmagic
=32-bit;;
21401 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21402 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21403 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21404 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21405 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21409 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21410 shlibpath_overrides_runpath
=no
21411 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21412 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21413 hardcode_into_libs
=yes
21416 # No shared lib support for Linux oldld, aout, or coff.
21417 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21421 # This must be Linux ELF.
21422 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21427 soname_spec
='${libname}${release}${shared_ext}$major'
21428 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21429 shlibpath_var
=LD_LIBRARY_PATH
21430 shlibpath_overrides_runpath
=no
21432 # Some binutils ld are patched to set DT_RUNPATH
21433 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21434 $as_echo_n "(cached) " >&6
21436 lt_cv_shlibpath_overrides_runpath
=no
21437 save_LDFLAGS
=$LDFLAGS
21438 save_libdir
=$libdir
21439 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21440 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21442 /* end confdefs.h. */
21452 if ac_fn_cxx_try_link
"$LINENO"; then :
21453 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21454 lt_cv_shlibpath_overrides_runpath
=yes
21457 rm -f core conftest.err conftest.
$ac_objext \
21458 conftest
$ac_exeext conftest.
$ac_ext
21459 LDFLAGS
=$save_LDFLAGS
21460 libdir
=$save_libdir
21464 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21466 # This implies no fast_install, which is unacceptable.
21467 # Some rework will be needed to allow for fast_install
21468 # before this can be enabled.
21469 hardcode_into_libs
=yes
21471 # Append ld.so.conf contents to the search path
21472 if test -f /etc
/ld.so.conf
; then
21473 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' ' '`
21474 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21477 # We used to test for /lib/ld.so.1 and disable shared libraries on
21478 # powerpc, because MkLinux only supported shared libraries with the
21479 # GNU dynamic linker. Since this was broken with cross compilers,
21480 # most powerpc-linux boxes support dynamic linking these days and
21481 # people can always --disable-shared, the test was removed, and we
21482 # assume the GNU/Linux dynamic linker is in use.
21483 dynamic_linker
='GNU/Linux ld.so'
21490 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21492 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21493 dynamic_linker
='NetBSD (a.out) ld.so'
21495 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21496 soname_spec
='${libname}${release}${shared_ext}$major'
21497 dynamic_linker
='NetBSD ld.elf_so'
21499 shlibpath_var
=LD_LIBRARY_PATH
21500 shlibpath_overrides_runpath
=yes
21501 hardcode_into_libs
=yes
21506 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21507 shlibpath_var
=LD_LIBRARY_PATH
21508 shlibpath_overrides_runpath
=yes
21515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21516 soname_spec
='${libname}${release}${shared_ext}$major'
21517 shlibpath_var
=LD_LIBRARY_PATH
21518 shlibpath_overrides_runpath
=no
21519 hardcode_into_libs
=yes
21520 dynamic_linker
='ldqnx.so'
21525 sys_lib_dlsearch_path_spec
="/usr/lib"
21527 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21529 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21530 *) need_version
=no
;;
21532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21533 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21534 shlibpath_var
=LD_LIBRARY_PATH
21535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21537 openbsd2.
[89] | openbsd2.
[89].
*)
21538 shlibpath_overrides_runpath
=no
21541 shlibpath_overrides_runpath
=yes
21545 shlibpath_overrides_runpath
=yes
21550 libname_spec
='$name'
21553 library_names_spec
='$libname${shared_ext} $libname.a'
21554 dynamic_linker
='OS/2 ld.exe'
21555 shlibpath_var
=LIBPATH
21558 osf3
* | osf4
* | osf5
*)
21562 soname_spec
='${libname}${release}${shared_ext}$major'
21563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21564 shlibpath_var
=LD_LIBRARY_PATH
21565 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21566 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21578 soname_spec
='${libname}${release}${shared_ext}$major'
21579 shlibpath_var
=LD_LIBRARY_PATH
21580 shlibpath_overrides_runpath
=yes
21581 hardcode_into_libs
=yes
21582 # ldd complains unless libraries are executable
21583 postinstall_cmds
='chmod +x $lib'
21588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21589 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21590 shlibpath_var
=LD_LIBRARY_PATH
21591 shlibpath_overrides_runpath
=yes
21592 if test "$with_gnu_ld" = yes; then
21600 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21601 soname_spec
='${libname}${release}${shared_ext}$major'
21602 shlibpath_var
=LD_LIBRARY_PATH
21603 case $host_vendor in
21605 shlibpath_overrides_runpath
=no
21607 runpath_var
=LD_RUN_PATH
21615 shlibpath_overrides_runpath
=no
21616 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21622 if test -d /usr
/nec
;then
21624 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21625 soname_spec
='$libname${shared_ext}.$major'
21626 shlibpath_var
=LD_LIBRARY_PATH
21630 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21631 version_type
=freebsd-elf
21634 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21635 soname_spec
='${libname}${release}${shared_ext}$major'
21636 shlibpath_var
=LD_LIBRARY_PATH
21637 shlibpath_overrides_runpath
=yes
21638 hardcode_into_libs
=yes
21639 if test "$with_gnu_ld" = yes; then
21640 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21642 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21645 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21649 sys_lib_dlsearch_path_spec
='/usr/lib'
21653 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21658 shlibpath_var
=LD_LIBRARY_PATH
21659 shlibpath_overrides_runpath
=no
21660 hardcode_into_libs
=yes
21665 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21666 soname_spec
='${libname}${release}${shared_ext}$major'
21667 shlibpath_var
=LD_LIBRARY_PATH
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21675 $as_echo "$dynamic_linker" >&6; }
21676 test "$dynamic_linker" = no
&& can_build_shared
=no
21678 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21679 if test "$GCC" = yes; then
21680 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21683 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21684 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21686 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21687 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21728 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21729 hardcode_action_CXX
=
21730 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21731 test -n "$runpath_var_CXX" ||
21732 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21734 # We can hardcode non-existent directories.
21735 if test "$hardcode_direct_CXX" != no
&&
21736 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21737 # have to relink, otherwise we might link with an installed library
21738 # when we should be linking with a yet-to-be-installed one
21739 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21740 test "$hardcode_minus_L_CXX" != no
; then
21741 # Linking always hardcodes the temporary library directory.
21742 hardcode_action_CXX
=relink
21744 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21745 hardcode_action_CXX
=immediate
21748 # We cannot hardcode anything, or else we can only hardcode existing
21750 hardcode_action_CXX
=unsupported
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21753 $as_echo "$hardcode_action_CXX" >&6; }
21755 if test "$hardcode_action_CXX" = relink ||
21756 test "$inherit_rpath_CXX" = yes; then
21757 # Fast installation is not supported
21758 enable_fast_install
=no
21759 elif test "$shlibpath_overrides_runpath" = yes ||
21760 test "$enable_shared" = no
; then
21761 # Fast installation is not necessary
21762 enable_fast_install
=needless
21771 fi # test -n "$compiler"
21777 with_gnu_ld
=$lt_save_with_gnu_ld
21778 lt_cv_path_LDCXX
=$lt_cv_path_LD
21779 lt_cv_path_LD
=$lt_save_path_LD
21780 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21781 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21782 fi # test "$_lt_caught_CXX_error" != yes
21785 ac_cpp
='$CXXCPP $CPPFLAGS'
21786 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21787 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21788 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21805 # Only expand once:
21811 # Identify the assembler which will work hand-in-glove with the newly
21812 # built GCC, so that we can examine its features. This is the assembler
21813 # which will be driven by the driver program.
21815 # If build != host, and we aren't building gas in-tree, we identify a
21816 # build->target assembler and hope that it will have the same features
21817 # as the host->target assembler we'll be using.
21818 gcc_cv_gas_major_version
=
21819 gcc_cv_gas_minor_version
=
21820 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21822 if test "${gcc_cv_as+set}" = set; then :
21826 if test -x "$DEFAULT_ASSEMBLER"; then
21827 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21828 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21829 && test -f ..
/gas
/Makefile \
21830 && test x
$build = x
$host; then
21831 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21832 elif test -x as
$build_exeext; then
21833 # Build using assembler in the current directory.
21834 gcc_cv_as
=.
/as
$build_exeext
21835 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21836 gcc_cv_as
="$AS_FOR_TARGET"
21838 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21839 set dummy
$AS_FOR_TARGET; ac_word
=$2
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21841 $as_echo_n "checking for $ac_word... " >&6; }
21842 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21843 $as_echo_n "(cached) " >&6
21847 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21851 for as_dir
in $PATH
21854 test -z "$as_dir" && as_dir
=.
21855 for ac_exec_ext
in '' $ac_executable_extensions; do
21856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21857 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21868 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21869 if test -n "$gcc_cv_as"; then
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21871 $as_echo "$gcc_cv_as" >&6; }
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21874 $as_echo "no" >&6; }
21881 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21883 case "$ORIGINAL_AS_FOR_TARGET" in
21884 .
/as | .
/as
$build_exeext) ;;
21885 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21890 $as_echo_n "checking what assembler to use... " >&6; }
21891 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21892 # Single tree build which includes gas. We want to prefer it
21893 # over whatever linker top-level may have detected, since
21894 # we'll use what we're building after installation anyway.
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21896 $as_echo "newly built gas" >&6; }
21898 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21899 for f
in $gcc_cv_as_bfd_srcdir/configure \
21900 $gcc_cv_as_gas_srcdir/configure \
21901 $gcc_cv_as_gas_srcdir/configure.ac \
21902 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21903 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21904 if test x
$gcc_cv_gas_version != x
; then
21908 case $gcc_cv_gas_version in
21910 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21912 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21913 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21914 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21915 case $gcc_cv_gas_patch_version in
21916 "") gcc_cv_gas_patch_version
="0" ;;
21918 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21919 + $gcc_cv_gas_minor_version \) \* 1000 \
21920 + $gcc_cv_gas_patch_version`
21922 in_tree_gas_is_elf
=no
21923 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21924 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21925 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21927 in_tree_gas_is_elf
=yes
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21931 $as_echo "$gcc_cv_as" >&6; }
21936 # Check whether --enable-ld was given.
21937 if test "${enable_ld+set}" = set; then :
21938 enableval
=$enable_ld; case "${enableval}" in
21946 install_gold_as_default
=no
21947 # Check whether --enable-gold was given.
21948 if test "${enable_gold+set}" = set; then :
21949 enableval
=$enable_gold; case "${enableval}" in
21951 install_gold_as_default
=yes
21954 if test x
${default_ld} != x
; then
21955 install_gold_as_default
=yes
21961 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21967 # Identify the linker which will work hand-in-glove with the newly
21968 # built GCC, so that we can examine its features. This is the linker
21969 # which will be driven by the driver program.
21971 # If build != host, and we aren't building gas in-tree, we identify a
21972 # build->target linker and hope that it will have the same features
21973 # as the host->target linker we'll be using.
21974 gcc_cv_gld_major_version
=
21975 gcc_cv_gld_minor_version
=
21976 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21977 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21978 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21980 if test "${gcc_cv_ld+set}" = set; then :
21984 if test -x "$DEFAULT_LINKER"; then
21985 gcc_cv_ld
="$DEFAULT_LINKER"
21986 elif test $install_gold_as_default = yes \
21987 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21988 && test -f ..
/gold
/Makefile \
21989 && test x
$build = x
$host; then
21990 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21991 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21992 && test -f ..
/ld
/Makefile \
21993 && test x
$build = x
$host; then
21994 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21995 elif test -x collect-ld
$build_exeext; then
21996 # Build using linker in the current directory.
21997 gcc_cv_ld
=.
/collect-ld
$build_exeext
21998 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21999 gcc_cv_ld
="$LD_FOR_TARGET"
22001 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22002 set dummy
$LD_FOR_TARGET; ac_word
=$2
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22004 $as_echo_n "checking for $ac_word... " >&6; }
22005 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22006 $as_echo_n "(cached) " >&6
22010 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22014 for as_dir
in $PATH
22017 test -z "$as_dir" && as_dir
=.
22018 for ac_exec_ext
in '' $ac_executable_extensions; do
22019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22020 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22031 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22032 if test -n "$gcc_cv_ld"; then
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22034 $as_echo "$gcc_cv_ld" >&6; }
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22037 $as_echo "no" >&6; }
22044 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22045 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22046 # if the PLUGIN_LD is set ld-new, just have it as ld
22047 # as that is the installed named.
22048 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22049 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22050 PLUGIN_LD_SUFFIX
=ld
22053 # Check whether --with-plugin-ld was given.
22054 if test "${with_plugin_ld+set}" = set; then :
22055 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22056 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22057 PLUGIN_LD_SUFFIX
="$withval"
22063 cat >>confdefs.h
<<_ACEOF
22064 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22068 # Check to see if we are using gold instead of ld
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22070 $as_echo_n "checking whether we are using gold... " >&6; }
22072 if test x
$gcc_cv_ld != x
; then
22073 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22074 |
grep "GNU gold" > /dev
/null
; then
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22079 $as_echo "$ld_is_gold" >&6; }
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22082 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22083 # Check to see if default ld is not gold, but gold is
22084 # available and has support for split stack. If gcc was configured
22085 # with gold then no checking is done.
22087 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22089 # For platforms other than powerpc64*, enable as appropriate.
22091 gold_non_default
=no
22092 ld_gold
=`which ${gcc_cv_ld}.gold`
22093 # Make sure this gold has minimal split stack support
22094 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22095 ld_vers
=`$ld_gold --version | sed 1q`
22096 gold_vers
=`echo $ld_vers | sed -n \
22097 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22099 # check that the gold version contains the complete split stack support
22100 # on powerpc64 big and little endian
22102 case "$gold_vers" in
22103 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22105 *) gold_non_default
=no
22111 if test $gold_non_default = yes; then
22113 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22118 $as_echo "$gold_non_default" >&6; }
22120 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22122 case "$ORIGINAL_LD_FOR_TARGET" in
22123 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22124 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22129 $as_echo_n "checking what linker to use... " >&6; }
22130 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22131 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22132 # Single tree build which includes ld. We want to prefer it
22133 # over whatever linker top-level may have detected, since
22134 # we'll use what we're building after installation anyway.
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22136 $as_echo "newly built ld" >&6; }
22138 in_tree_ld_is_elf
=no
22139 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22140 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22141 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22142 in_tree_ld_is_elf
=yes
22143 elif test "$ld_is_gold" = yes; then
22144 in_tree_ld_is_elf
=yes
22146 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
22148 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22149 if test x
$gcc_cv_gld_version != x
; then
22153 case $gcc_cv_gld_version in
22155 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22157 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22158 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22159 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22160 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22163 $as_echo "$gcc_cv_ld" >&6; }
22165 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22166 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22167 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22173 # Figure out what nm we will be using.
22174 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22175 if test "${gcc_cv_nm+set}" = set; then :
22179 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22180 && test -f ..
/binutils
/Makefile \
22181 && test x
$build = x
$host; then
22182 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22183 elif test -x nm
$build_exeext; then
22184 gcc_cv_nm
=.
/nm
$build_exeext
22185 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22186 gcc_cv_nm
="$NM_FOR_TARGET"
22188 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22189 set dummy
$NM_FOR_TARGET; ac_word
=$2
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22191 $as_echo_n "checking for $ac_word... " >&6; }
22192 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22193 $as_echo_n "(cached) " >&6
22197 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22201 for as_dir
in $PATH
22204 test -z "$as_dir" && as_dir
=.
22205 for ac_exec_ext
in '' $ac_executable_extensions; do
22206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22207 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22218 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22219 if test -n "$gcc_cv_nm"; then
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22221 $as_echo "$gcc_cv_nm" >&6; }
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22224 $as_echo "no" >&6; }
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22232 $as_echo_n "checking what nm to use... " >&6; }
22233 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22234 # Single tree build which includes binutils.
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22236 $as_echo "newly built nm" >&6; }
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22240 $as_echo "$gcc_cv_nm" >&6; }
22244 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22246 case "$ORIGINAL_NM_FOR_TARGET" in
22247 .
/nm | .
/nm
$build_exeext) ;;
22248 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22253 # Figure out what objdump we will be using.
22254 if test "${gcc_cv_objdump+set}" = set; then :
22258 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22259 && test -f ..
/binutils
/Makefile \
22260 && test x
$build = x
$host; then
22261 # Single tree build which includes binutils.
22262 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22263 elif test -x objdump
$build_exeext; then
22264 gcc_cv_objdump
=.
/objdump
$build_exeext
22265 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22266 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22268 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22269 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22271 $as_echo_n "checking for $ac_word... " >&6; }
22272 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22273 $as_echo_n "(cached) " >&6
22275 case $gcc_cv_objdump in
22277 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22281 for as_dir
in $PATH
22284 test -z "$as_dir" && as_dir
=.
22285 for ac_exec_ext
in '' $ac_executable_extensions; do
22286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22287 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22298 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22299 if test -n "$gcc_cv_objdump"; then
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22301 $as_echo "$gcc_cv_objdump" >&6; }
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22304 $as_echo "no" >&6; }
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22312 $as_echo_n "checking what objdump to use... " >&6; }
22313 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22314 # Single tree build which includes binutils.
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22316 $as_echo "newly built objdump" >&6; }
22317 elif test x
$gcc_cv_objdump = x
; then
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22319 $as_echo "not found" >&6; }
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22322 $as_echo "$gcc_cv_objdump" >&6; }
22325 # Figure out what readelf we will be using.
22326 if test "${gcc_cv_readelf+set}" = set; then :
22330 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22331 && test -f ..
/binutils
/Makefile \
22332 && test x
$build = x
$host; then
22333 # Single tree build which includes binutils.
22334 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22335 elif test -x readelf
$build_exeext; then
22336 gcc_cv_readelf
=.
/readelf
$build_exeext
22337 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22338 gcc_cv_readelf
="$READELF_FOR_TARGET"
22340 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22341 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22343 $as_echo_n "checking for $ac_word... " >&6; }
22344 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22345 $as_echo_n "(cached) " >&6
22347 case $gcc_cv_readelf in
22349 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22353 for as_dir
in $PATH
22356 test -z "$as_dir" && as_dir
=.
22357 for ac_exec_ext
in '' $ac_executable_extensions; do
22358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22359 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22370 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22371 if test -n "$gcc_cv_readelf"; then
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22373 $as_echo "$gcc_cv_readelf" >&6; }
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22376 $as_echo "no" >&6; }
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22384 $as_echo_n "checking what readelf to use... " >&6; }
22385 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22386 # Single tree build which includes binutils.
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22388 $as_echo "newly built readelf" >&6; }
22389 elif test x
$gcc_cv_readelf = x
; then
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22391 $as_echo "not found" >&6; }
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22394 $as_echo "$gcc_cv_readelf" >&6; }
22397 # Figure out what assembler alignment features are present.
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22399 $as_echo_n "checking assembler flags... " >&6; }
22400 if test "${gcc_cv_as_flags+set}" = set; then :
22401 $as_echo_n "(cached) " >&6
22404 i
[34567]86-*-linux*)
22405 gcc_cv_as_flags
=--32
22407 x86_64-
*-linux-gnux32)
22408 gcc_cv_as_flags
=--x32
22411 gcc_cv_as_flags
=--64
22413 powerpc
*-*-darwin*)
22414 gcc_cv_as_flags
="-arch ppc"
22417 gcc_cv_as_flags
=" "
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22422 $as_echo "$gcc_cv_as_flags" >&6; }
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22425 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22426 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22427 $as_echo_n "(cached) " >&6
22429 gcc_cv_as_balign_and_p2align
=no
22430 if test $in_tree_gas = yes; then
22431 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22432 then gcc_cv_as_balign_and_p2align
=yes
22434 elif test x
$gcc_cv_as != x
; then
22435 $as_echo '.balign 4
22436 .p2align 2' > conftest.s
22437 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22439 (eval $ac_try) 2>&5
22441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22442 test $ac_status = 0; }; }
22444 gcc_cv_as_balign_and_p2align
=yes
22446 echo "configure: failed program was" >&5
22449 rm -f conftest.o conftest.s
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22453 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22454 if test $gcc_cv_as_balign_and_p2align = yes; then
22456 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22462 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22463 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22464 $as_echo_n "(cached) " >&6
22466 gcc_cv_as_max_skip_p2align
=no
22467 if test $in_tree_gas = yes; then
22468 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22469 then gcc_cv_as_max_skip_p2align
=yes
22471 elif test x
$gcc_cv_as != x
; then
22472 $as_echo '.p2align 4,,7' > conftest.s
22473 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22475 (eval $ac_try) 2>&5
22477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22478 test $ac_status = 0; }; }
22480 gcc_cv_as_max_skip_p2align
=yes
22482 echo "configure: failed program was" >&5
22485 rm -f conftest.o conftest.s
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22489 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22490 if test $gcc_cv_as_max_skip_p2align = yes; then
22492 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22498 $as_echo_n "checking assembler for .literal16... " >&6; }
22499 if test "${gcc_cv_as_literal16+set}" = set; then :
22500 $as_echo_n "(cached) " >&6
22502 gcc_cv_as_literal16
=no
22503 if test $in_tree_gas = yes; then
22504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22505 then gcc_cv_as_literal16
=yes
22507 elif test x
$gcc_cv_as != x
; then
22508 $as_echo '.literal16' > conftest.s
22509 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22511 (eval $ac_try) 2>&5
22513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22514 test $ac_status = 0; }; }
22516 gcc_cv_as_literal16
=yes
22518 echo "configure: failed program was" >&5
22521 rm -f conftest.o conftest.s
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22525 $as_echo "$gcc_cv_as_literal16" >&6; }
22526 if test $gcc_cv_as_literal16 = yes; then
22528 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22534 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22535 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22536 $as_echo_n "(cached) " >&6
22538 gcc_cv_as_subsection_m1
=no
22539 if test $in_tree_gas = yes; then
22540 if test $in_tree_gas_is_elf = yes \
22541 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22542 then gcc_cv_as_subsection_m1
=yes
22544 elif test x
$gcc_cv_as != x
; then
22545 $as_echo 'conftest_label1: .word 0
22547 conftest_label2: .word 0
22548 .previous' > conftest.s
22549 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22551 (eval $ac_try) 2>&5
22553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22554 test $ac_status = 0; }; }
22556 if test x
$gcc_cv_nm != x
; then
22557 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22558 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22559 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22561 else gcc_cv_as_subsection_m1
=yes
22563 rm -f conftest.nm1 conftest.nm2
22566 echo "configure: failed program was" >&5
22569 rm -f conftest.o conftest.s
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22573 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22574 if test $gcc_cv_as_subsection_m1 = yes; then
22576 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22582 $as_echo_n "checking assembler for .weak... " >&6; }
22583 if test "${gcc_cv_as_weak+set}" = set; then :
22584 $as_echo_n "(cached) " >&6
22587 if test $in_tree_gas = yes; then
22588 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22589 then gcc_cv_as_weak
=yes
22591 elif test x
$gcc_cv_as != x
; then
22592 $as_echo ' .weak foobar' > conftest.s
22593 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22595 (eval $ac_try) 2>&5
22597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22598 test $ac_status = 0; }; }
22602 echo "configure: failed program was" >&5
22605 rm -f conftest.o conftest.s
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22609 $as_echo "$gcc_cv_as_weak" >&6; }
22610 if test $gcc_cv_as_weak = yes; then
22612 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22618 $as_echo_n "checking assembler for .weakref... " >&6; }
22619 if test "${gcc_cv_as_weakref+set}" = set; then :
22620 $as_echo_n "(cached) " >&6
22622 gcc_cv_as_weakref
=no
22623 if test $in_tree_gas = yes; then
22624 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22625 then gcc_cv_as_weakref
=yes
22627 elif test x
$gcc_cv_as != x
; then
22628 $as_echo ' .weakref foobar, barfnot' > conftest.s
22629 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22631 (eval $ac_try) 2>&5
22633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22634 test $ac_status = 0; }; }
22636 gcc_cv_as_weakref
=yes
22638 echo "configure: failed program was" >&5
22641 rm -f conftest.o conftest.s
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22645 $as_echo "$gcc_cv_as_weakref" >&6; }
22646 if test $gcc_cv_as_weakref = yes; then
22648 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22654 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22655 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22656 $as_echo_n "(cached) " >&6
22658 gcc_cv_as_nsubspa_comdat
=no
22659 if test $in_tree_gas = yes; then
22660 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22661 then gcc_cv_as_nsubspa_comdat
=yes
22663 elif test x
$gcc_cv_as != x
; then
22664 $as_echo ' .SPACE $TEXT$
22665 .NSUBSPA $CODE$,COMDAT' > conftest.s
22666 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22668 (eval $ac_try) 2>&5
22670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22671 test $ac_status = 0; }; }
22673 gcc_cv_as_nsubspa_comdat
=yes
22675 echo "configure: failed program was" >&5
22678 rm -f conftest.o conftest.s
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22682 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22683 if test $gcc_cv_as_nsubspa_comdat = yes; then
22685 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22690 # .hidden needs to be supported in both the assembler and the linker,
22691 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22692 # This is irritatingly difficult to feature test for; we have to check the
22693 # date string after the version number. If we've got an in-tree
22694 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22696 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22697 case "${target}" in
22699 conftest_s
=' .globl foobar,hidden'
22702 conftest_s
=' .hidden foobar
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22707 $as_echo_n "checking assembler for .hidden... " >&6; }
22708 if test "${gcc_cv_as_hidden+set}" = set; then :
22709 $as_echo_n "(cached) " >&6
22711 gcc_cv_as_hidden
=no
22712 if test $in_tree_gas = yes; then
22713 if test $in_tree_gas_is_elf = yes \
22714 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22715 then gcc_cv_as_hidden
=yes
22717 elif test x
$gcc_cv_as != x
; then
22718 $as_echo "$conftest_s" > conftest.s
22719 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22721 (eval $ac_try) 2>&5
22723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22724 test $ac_status = 0; }; }
22726 gcc_cv_as_hidden
=yes
22728 echo "configure: failed program was" >&5
22731 rm -f conftest.o conftest.s
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22735 $as_echo "$gcc_cv_as_hidden" >&6; }
22738 case "${target}" in
22740 # Darwin as has some visibility support, though with a different syntax.
22741 gcc_cv_as_hidden
=yes
22745 # gnu_indirect_function type is an extension proposed at
22746 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22747 # selection of function implementation
22748 # Check whether --enable-gnu-indirect-function was given.
22749 if test "${enable_gnu_indirect_function+set}" = set; then :
22750 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22752 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22753 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22756 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22760 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22762 cat >>confdefs.h
<<_ACEOF
22763 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22768 if test $in_tree_ld != yes ; then
22769 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22770 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22771 if test x
"$ld_is_gold" = xyes
; then
22772 # GNU gold --version looks like this:
22774 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22776 # We extract the binutils version which is more familiar and specific
22777 # than the gold version.
22778 ld_vers
=`echo $ld_ver | sed -n \
22779 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22781 # GNU ld --version looks like this:
22783 # GNU ld (GNU Binutils) 2.21.51.20110225
22784 ld_vers
=`echo $ld_ver | sed -n \
22785 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22787 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'`
22788 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22789 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22790 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22792 case "${target}" in
22794 # Solaris 2 ld -V output looks like this for a regular version:
22796 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22798 # but test versions add stuff at the end:
22800 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22802 # In Solaris 11.4, this was changed to
22804 # ld: Solaris ELF Utilities: 11.4-1.3123
22806 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22807 # numbers can be used in ld.so.1 feature checks even if a different
22808 # linker is configured.
22809 ld_ver
=`$gcc_cv_ld -V 2>&1`
22810 if echo "$ld_ver" |
$EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev
/null
; then
22811 ld_vers
=`echo $ld_ver | sed -n \
22812 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22813 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22814 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22822 $as_echo_n "checking linker for .hidden support... " >&6; }
22823 if test "${gcc_cv_ld_hidden+set}" = set; then :
22824 $as_echo_n "(cached) " >&6
22826 if test $in_tree_ld = yes ; then
22827 gcc_cv_ld_hidden
=no
22828 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 \
22829 && test $in_tree_ld_is_elf = yes; then
22830 gcc_cv_ld_hidden
=yes
22833 gcc_cv_ld_hidden
=yes
22834 if test x
"$ld_is_gold" = xyes
; then
22836 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22837 case "${target}" in
22838 mmix-knuth-mmixware
)
22839 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22840 gcc_cv_ld_hidden
=no
22843 if test 0"$ld_date" -lt 20020404; then
22844 if test -n "$ld_date"; then
22845 # If there was date string, but was earlier than 2002-04-04, fail
22846 gcc_cv_ld_hidden
=no
22847 elif test -z "$ld_vers"; then
22848 # If there was no date string nor ld version number, something is wrong
22849 gcc_cv_ld_hidden
=no
22851 test -z "$ld_vers_patch" && ld_vers_patch
=0
22852 if test "$ld_vers_major" -lt 2; then
22853 gcc_cv_ld_hidden
=no
22854 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22855 gcc_cv_ld_hidden
="no"
22856 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22857 gcc_cv_ld_hidden
=no
22862 case "${target}" in
22864 gcc_cv_ld_hidden
=yes
22867 # Darwin ld has some visibility support.
22868 gcc_cv_ld_hidden
=yes
22870 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22871 gcc_cv_ld_hidden
=yes
22873 *-*-solaris2.1
[0-9]*)
22874 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22875 # .symbolic was only added in Solaris 9 12/02.
22876 gcc_cv_ld_hidden
=yes
22879 gcc_cv_ld_hidden
=no
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22886 $as_echo "$gcc_cv_ld_hidden" >&6; }
22887 libgcc_visibility
=no
22890 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22891 libgcc_visibility
=yes
22893 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22898 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22899 gcc_cv_ld_ro_rw_mix
=unknown
22900 if test $in_tree_ld = yes ; then
22901 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 \
22902 && test $in_tree_ld_is_elf = yes; then
22903 gcc_cv_ld_ro_rw_mix
=read-write
22905 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22906 echo '.section myfoosect, "a"' > conftest1.s
22907 echo '.section myfoosect, "aw"' > conftest2.s
22908 echo '.byte 1' >> conftest2.s
22909 echo '.section myfoosect, "a"' > conftest3.s
22910 echo '.byte 0' >> conftest3.s
22911 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22912 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22913 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22914 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22915 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22916 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22917 | sed -e '/myfoosect/!d' -e N`
22918 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22919 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22920 gcc_cv_ld_ro_rw_mix
=read-only
22922 gcc_cv_ld_ro_rw_mix
=read-write
22926 rm -f conftest.
* conftest
[123].
*
22928 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22930 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22934 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22936 # Check whether --enable-initfini-array was given.
22937 if test "${enable_initfini_array+set}" = set; then :
22938 enableval
=$enable_initfini_array;
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22942 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22943 if test "${gcc_cv_initfini_array+set}" = set; then :
22944 $as_echo_n "(cached) " >&6
22946 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22947 case "${target}" in
22949 if test "$cross_compiling" = yes; then :
22950 gcc_cv_initfini_array
=no
22952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22953 /* end confdefs.h. */
22956 #error Not an ELF OS
22958 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22959 if it can be used. */
22961 int main (void) { return x; }
22962 int foo (void) { x = 0; }
22963 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22966 if ac_fn_cxx_try_run
"$LINENO"; then :
22967 gcc_cv_initfini_array
=yes
22969 gcc_cv_initfini_array
=no
22971 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22972 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22976 gcc_cv_initfini_array
=no
22977 if test $in_tree_ld = yes ; then
22978 if test "$gcc_cv_gld_major_version" -eq 2 \
22979 -a "$gcc_cv_gld_minor_version" -ge 22 \
22980 -o "$gcc_cv_gld_major_version" -gt 2 \
22981 && test $in_tree_ld_is_elf = yes; then
22982 gcc_cv_initfini_array
=yes
22984 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22985 case $target:$gas in
22988 sh_type
='%progbits'
22990 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
22992 sh_type
='@progbits'
22994 sparc
*-*-solaris2*:no
)
22996 sh_type
='#progbits'
23000 case "$target:$gnu_ld" in
23002 cat > conftest.s
<<EOF
23003 .section .dtors,$sh_flags,$sh_type
23005 .byte 'A', 'A', 'A', 'A'
23006 .section .ctors,$sh_flags,$sh_type
23008 .byte 'B', 'B', 'B', 'B'
23009 .section .fini_array.65530,$sh_flags,$sh_type
23011 .byte 'C', 'C', 'C', 'C'
23012 .section .init_array.65530,$sh_flags,$sh_type
23014 .byte 'D', 'D', 'D', 'D'
23015 .section .dtors.64528,$sh_flags,$sh_type
23017 .byte 'E', 'E', 'E', 'E'
23018 .section .ctors.64528,$sh_flags,$sh_type
23020 .byte 'F', 'F', 'F', 'F'
23021 .section .fini_array.01005,$sh_flags,$sh_type
23023 .byte 'G', 'G', 'G', 'G'
23024 .section .init_array.01005,$sh_flags,$sh_type
23026 .byte 'H', 'H', 'H', 'H'
23031 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23032 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23033 && $gcc_cv_objdump -s -j .init_array conftest \
23034 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23035 && $gcc_cv_objdump -s -j .fini_array conftest \
23036 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23037 gcc_cv_initfini_array
=yes
23041 # When Solaris ld added constructor priority support, it was
23042 # decided to only handle .init_array.N/.fini_array.N since
23043 # there was no need for backwards compatibility with
23044 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23045 # sections with correct execution order resp. to
23046 # .init_array/.fini_array, while gld merges them into
23047 # .init_array/.fini_array.
23048 cat > conftest.s
<<EOF
23049 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23051 .byte 'C', 'C', 'C', 'C'
23052 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23054 .byte 'D', 'D', 'D', 'D'
23055 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23057 .byte 'G', 'G', 'G', 'G'
23058 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23060 .byte 'H', 'H', 'H', 'H'
23065 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23066 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23067 && $gcc_cv_objdump -s -j .init_array conftest \
23068 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23069 && $gcc_cv_objdump -s -j .fini_array conftest \
23070 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23071 gcc_cv_initfini_array
=yes
23075 rm -f conftest conftest.
*
23077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23078 /* end confdefs.h. */
23081 # error Not an ELF OS
23083 #include <stdlib.h>
23084 #if defined __GLIBC_PREREQ
23085 # if __GLIBC_PREREQ (2, 4)
23087 # error GLIBC 2.4 required
23090 # if defined __sun__ && defined __svr4__
23091 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23093 # error The C library not known to support .init_array/.fini_array
23098 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23101 gcc_cv_initfini_array
=no
23103 rm -f conftest.err conftest.
$ac_ext;;
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23107 $as_echo_n "checking cross compile... guessing... " >&6; }
23108 gcc_cv_initfini_array
=no
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23112 $as_echo "$gcc_cv_initfini_array" >&6; }
23113 enable_initfini_array
=$gcc_cv_initfini_array
23118 cat >>confdefs.h
<<_ACEOF
23119 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23124 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23126 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23127 if test "${gcc_cv_as_leb128+set}" = set; then :
23128 $as_echo_n "(cached) " >&6
23130 gcc_cv_as_leb128
=no
23131 if test $in_tree_gas = yes; then
23132 if test $in_tree_gas_is_elf = yes \
23133 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23134 then gcc_cv_as_leb128
=yes
23136 elif test x
$gcc_cv_as != x
; then
23143 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23145 (eval $ac_try) 2>&5
23147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23148 test $ac_status = 0; }; }
23150 # GAS versions before 2.11 do not support uleb128,
23151 # despite appearing to.
23152 # ??? There exists an elf-specific test that will crash
23153 # the assembler. Perhaps it's better to figure out whether
23154 # arbitrary sections are supported and try the test.
23155 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23156 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23157 as_vers
=`echo $as_ver | sed -n \
23158 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23159 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23160 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23161 if test $as_major -eq 2 && test $as_minor -lt 11
23163 else gcc_cv_as_leb128
=yes
23167 echo "configure: failed program was" >&5
23170 rm -f conftest.o conftest.s
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23174 $as_echo "$gcc_cv_as_leb128" >&6; }
23175 if test $gcc_cv_as_leb128 = yes; then
23177 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23180 if test $gcc_cv_as_leb128 != yes; then
23182 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23186 # Determine if an .eh_frame section is read-only.
23187 gcc_fn_eh_frame_ro
() {
23188 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23189 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23190 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23193 # Check if we have assembler support for unwind directives.
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23195 $as_echo_n "checking assembler for cfi directives... " >&6; }
23196 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23197 $as_echo_n "(cached) " >&6
23199 gcc_cv_as_cfi_directive
=no
23200 if test x
$gcc_cv_as != x
; then
23206 .cfi_escape 1, 2, 3, 4, 5
23207 .cfi_endproc' > conftest.s
23208 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23210 (eval $ac_try) 2>&5
23212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23213 test $ac_status = 0; }; }
23217 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23218 # read-only and read-write sections, we need to make sure that the
23219 # assembler used emits read-write .eh_frame sections.
23220 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23221 gcc_cv_as_cfi_directive
=yes
23222 elif test "x$gcc_cv_objdump" = x
; then
23223 # No objdump, err on the side of caution.
23224 gcc_cv_as_cfi_directive
=no
23226 if test x
$gas = xyes
; then
23234 sparc
*-*-solaris2.
*)
23235 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23236 if gcc_fn_eh_frame_ro
$as_32_opt \
23237 || gcc_fn_eh_frame_ro
$as_64_opt; then
23238 gcc_cv_as_cfi_directive
=no
23240 gcc_cv_as_cfi_directive
=yes
23243 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23244 # On Solaris/x86, make sure that GCC and assembler agree on using
23245 # read-only .eh_frame sections for 64-bit.
23246 if gcc_fn_eh_frame_ro
$as_32_opt; then
23247 gcc_cv_as_cfi_directive
=no
23248 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23249 gcc_cv_as_cfi_directive
=yes
23251 gcc_cv_as_cfi_directive
=no
23258 gcc_cv_as_cfi_directive
=yes
23262 echo "configure: failed program was" >&5
23265 rm -f conftest.o conftest.s
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23269 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23272 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23274 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23275 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23276 $as_echo_n "(cached) " >&6
23278 gcc_cv_as_cfi_advance_working
=no
23279 if test x
$gcc_cv_as != x
; then
23282 .cfi_adjust_cfa_offset 64
23284 .cfi_adjust_cfa_offset 128
23285 .cfi_endproc' > conftest.s
23286 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23288 (eval $ac_try) 2>&5
23290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23291 test $ac_status = 0; }; }
23294 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23295 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23296 gcc_cv_as_cfi_advance_working
=yes
23300 echo "configure: failed program was" >&5
23303 rm -f conftest.o conftest.s
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23307 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23311 # no objdump, err on the side of caution
23312 gcc_cv_as_cfi_advance_working
=no
23316 cat >>confdefs.h
<<_ACEOF
23317 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23318 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23324 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23325 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23326 $as_echo_n "(cached) " >&6
23328 gcc_cv_as_cfi_personality_directive
=no
23329 if test x
$gcc_cv_as != x
; then
23332 .cfi_personality 0, symbol
23333 .cfi_endproc' > conftest.s
23334 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23336 (eval $ac_try) 2>&5
23338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23339 test $ac_status = 0; }; }
23341 gcc_cv_as_cfi_personality_directive
=yes
23343 echo "configure: failed program was" >&5
23346 rm -f conftest.o conftest.s
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23350 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23354 cat >>confdefs.h
<<_ACEOF
23355 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23356 then echo 1; else echo 0; fi`
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23361 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23362 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23363 $as_echo_n "(cached) " >&6
23365 gcc_cv_as_cfi_sections_directive
=no
23366 if test x
$gcc_cv_as != x
; then
23368 .cfi_sections .debug_frame, .eh_frame
23370 .cfi_endproc' > conftest.s
23371 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23373 (eval $ac_try) 2>&5
23375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23376 test $ac_status = 0; }; }
23379 win32 | pe | cygwin
* | mingw32
*)
23380 # Need to check that we generated the correct relocation for the
23381 # .debug_frame section. This was fixed for binutils 2.21.
23382 gcc_cv_as_cfi_sections_directive
=no
23383 if test "x$gcc_cv_objdump" != x
; then
23384 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23385 grep secrel
> /dev
/null
; then
23386 gcc_cv_as_cfi_sections_directive
=yes
23391 gcc_cv_as_cfi_sections_directive
=yes
23395 echo "configure: failed program was" >&5
23398 rm -f conftest.o conftest.s
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23402 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23407 cat >>confdefs.h
<<_ACEOF
23408 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23409 then echo 1; else echo 0; fi`
23413 # GAS versions up to and including 2.11.0 may mis-optimize
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23416 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23417 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23418 $as_echo_n "(cached) " >&6
23420 gcc_cv_as_eh_frame
=no
23421 if test $in_tree_gas = yes; then
23422 if test $in_tree_gas_is_elf = yes \
23423 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23424 then gcc_cv_as_eh_frame
=yes
23426 elif test x
$gcc_cv_as != x
; then
23433 .section .eh_frame,"aw",@progbits
23435 .4byte .LECIE1-.LSCIE1
23449 .4byte .LEFDE1-.LASFDE1
23451 .4byte .LASFDE1-__FRAME_BEGIN__
23458 .LEFDE1:' > conftest.s
23459 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23461 (eval $ac_try) 2>&5
23463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23464 test $ac_status = 0; }; }
23466 cat > conftest.lit
<<EOF
23467 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23468 0010 01000000 12000000 18000000 00000000 ................
23469 0020 08000000 04080000 0044 .........D
23471 cat > conftest.big
<<EOF
23472 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23473 0010 00000001 00000012 00000018 00000000 ................
23474 0020 00000008 04000000 0844 .........D
23476 # If the assembler didn't choke, and we can objdump,
23477 # and we got the correct data, then succeed.
23478 # The text in the here-document typically retains its unix-style line
23479 # endings, while the output of objdump will use host line endings.
23480 # Therefore, use diff -b for the comparisons.
23481 if test x
$gcc_cv_objdump != x \
23482 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23483 |
tail -3 > conftest.got \
23484 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23485 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23487 gcc_cv_as_eh_frame
=yes
23488 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23490 (eval $ac_try) 2>&5
23492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23493 test $ac_status = 0; }; }; then
23494 gcc_cv_as_eh_frame
=buggy
23496 # Uh oh, what do we do now?
23497 gcc_cv_as_eh_frame
=no
23500 echo "configure: failed program was" >&5
23503 rm -f conftest.o conftest.s
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23507 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23511 if test $gcc_cv_as_eh_frame = buggy
; then
23513 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23517 # Test if the assembler supports the section flag 'e' or #exclude for
23518 # specifying an excluded section.
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23520 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23521 if test "${gcc_cv_as_section_exclude_e+set}" = set; then :
23522 $as_echo_n "(cached) " >&6
23524 gcc_cv_as_section_exclude_e
=no
23525 if test $in_tree_gas = yes; then
23526 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23527 then gcc_cv_as_section_exclude_e
=yes
23529 elif test x
$gcc_cv_as != x
; then
23530 $as_echo '.section foo1,"e"
23531 .byte 0,0,0,0' > conftest.s
23532 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23534 (eval $ac_try) 2>&5
23536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23537 test $ac_status = 0; }; }
23539 gcc_cv_as_section_exclude_e
=yes
23541 echo "configure: failed program was" >&5
23544 rm -f conftest.o conftest.s
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23548 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23551 if test $gcc_cv_as_section_exclude_e = no
; then
23552 case "${target}" in
23553 # Solaris as uses #exclude instead.
23555 case "${target}" in
23556 sparc
*-*-solaris2*)
23557 conftest_s
='.section "foo1", #exclude'
23559 i?
86-*-solaris2* | x86_64-
*-solaris2*)
23560 conftest_s
='.section foo1, #exclude'
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23566 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23567 if test "${gcc_cv_as_section_exclude_hash+set}" = set; then :
23568 $as_echo_n "(cached) " >&6
23570 gcc_cv_as_section_exclude_hash
=no
23571 if test x
$gcc_cv_as != x
; then
23572 $as_echo "$conftest_s
23573 .byte 0,0,0,0" > conftest.s
23574 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23576 (eval $ac_try) 2>&5
23578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23579 test $ac_status = 0; }; }
23581 gcc_cv_as_section_exclude_hash
=yes
23583 echo "configure: failed program was" >&5
23586 rm -f conftest.o conftest.s
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23590 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23595 cat >>confdefs.h
<<_ACEOF
23596 #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`
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23601 $as_echo_n "checking assembler for section merging support... " >&6; }
23602 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23603 $as_echo_n "(cached) " >&6
23605 gcc_cv_as_shf_merge
=no
23606 if test $in_tree_gas = yes; then
23607 if test $in_tree_gas_is_elf = yes \
23608 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23609 then gcc_cv_as_shf_merge
=yes
23611 elif test x
$gcc_cv_as != x
; then
23612 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23613 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23615 (eval $ac_try) 2>&5
23617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23618 test $ac_status = 0; }; }
23620 gcc_cv_as_shf_merge
=yes
23622 echo "configure: failed program was" >&5
23625 rm -f conftest.o conftest.s
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23629 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23632 if test $gcc_cv_as_shf_merge = no
; then
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23634 $as_echo_n "checking assembler for section merging support... " >&6; }
23635 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23636 $as_echo_n "(cached) " >&6
23638 gcc_cv_as_shf_merge
=no
23639 if test $in_tree_gas = yes; then
23640 if test $in_tree_gas_is_elf = yes \
23641 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23642 then gcc_cv_as_shf_merge
=yes
23644 elif test x
$gcc_cv_as != x
; then
23645 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23646 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23648 (eval $ac_try) 2>&5
23650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23651 test $ac_status = 0; }; }
23653 gcc_cv_as_shf_merge
=yes
23655 echo "configure: failed program was" >&5
23658 rm -f conftest.o conftest.s
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23662 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23667 i?
86-*-solaris2.10
* | x86_64-
*-solaris2.10
*)
23668 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23669 if test x
"$gnu_ld" = xno
; then
23670 gcc_cv_as_shf_merge
=no
23675 cat >>confdefs.h
<<_ACEOF
23676 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23681 $as_echo_n "checking assembler for stabs directive... " >&6; }
23682 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23683 $as_echo_n "(cached) " >&6
23685 gcc_cv_as_stabs_directive
=no
23686 if test x
$gcc_cv_as != x
; then
23687 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23690 (eval $ac_try) 2>&5
23692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23693 test $ac_status = 0; }; }
23695 gcc_cv_as_stabs_directive
=yes
23697 echo "configure: failed program was" >&5
23700 rm -f conftest.o conftest.s
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23704 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23705 if test $gcc_cv_as_stabs_directive = yes; then
23707 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23713 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23714 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23715 $as_echo_n "(cached) " >&6
23717 gcc_cv_as_comdat_group
=no
23718 if test $in_tree_gas = yes; then
23719 if test $in_tree_gas_is_elf = yes \
23720 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23721 then gcc_cv_as_comdat_group
=yes
23723 elif test x
$gcc_cv_as != x
; then
23724 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23727 (eval $ac_try) 2>&5
23729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23730 test $ac_status = 0; }; }
23732 gcc_cv_as_comdat_group
=yes
23734 echo "configure: failed program was" >&5
23737 rm -f conftest.o conftest.s
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23741 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23744 if test $gcc_cv_as_comdat_group = yes; then
23745 gcc_cv_as_comdat_group_percent
=no
23746 gcc_cv_as_comdat_group_group
=no
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23749 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23750 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23751 $as_echo_n "(cached) " >&6
23753 gcc_cv_as_comdat_group_percent
=no
23754 if test $in_tree_gas = yes; then
23755 if test $in_tree_gas_is_elf = yes \
23756 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23757 then gcc_cv_as_comdat_group_percent
=yes
23759 elif test x
$gcc_cv_as != x
; then
23760 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23761 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23763 (eval $ac_try) 2>&5
23765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23766 test $ac_status = 0; }; }
23768 gcc_cv_as_comdat_group_percent
=yes
23770 echo "configure: failed program was" >&5
23773 rm -f conftest.o conftest.s
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23777 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23780 if test $gcc_cv_as_comdat_group_percent = yes; then
23781 gcc_cv_as_comdat_group_group
=no
23783 case "${target}" in
23784 # Sun as uses a completely different syntax.
23786 case "${target}" in
23787 sparc
*-*-solaris2*)
23789 .group foo,".text%foo",#comdat
23790 .section ".text%foo", #alloc,#execinstr,#progbits
23795 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23797 .group foo,.text%foo,#comdat
23798 .section .text%foo, "ax", @progbits
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23805 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23806 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23807 $as_echo_n "(cached) " >&6
23809 gcc_cv_as_comdat_group_group
=no
23810 if test x
$gcc_cv_as != x
; then
23811 $as_echo "$conftest_s" > conftest.s
23812 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23814 (eval $ac_try) 2>&5
23816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817 test $ac_status = 0; }; }
23819 gcc_cv_as_comdat_group_group
=yes
23821 echo "configure: failed program was" >&5
23824 rm -f conftest.o conftest.s
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23828 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23833 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23834 gcc_cv_as_comdat_group_group
=no
23838 if test x
"$ld_is_gold" = xyes
; then
23840 elif test $in_tree_ld = yes ; then
23842 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 \
23843 && test $in_tree_ld_is_elf = yes; then
23846 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23848 if test 0"$ld_date" -lt 20050308; then
23849 if test -n "$ld_date"; then
23850 # If there was date string, but was earlier than 2005-03-08, fail
23852 elif test "$ld_vers_major" -lt 2; then
23854 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23859 case "${target}" in
23860 *-*-solaris2.1
[1-9]*)
23862 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23863 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23866 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23867 # least ld version 1.2267.
23868 if test "$ld_vers_major" -gt 1; then
23870 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23872 elif test "$ld_vers_minor" -ge 2267; then
23877 # Assume linkers other than GNU ld don't support COMDAT group.
23882 # Allow overriding the automatic COMDAT group tests above.
23883 # Check whether --enable-comdat was given.
23884 if test "${enable_comdat+set}" = set; then :
23885 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23888 if test $comdat_group = no
; then
23889 gcc_cv_as_comdat_group
=no
23890 gcc_cv_as_comdat_group_percent
=no
23891 gcc_cv_as_comdat_group_group
=no
23894 cat >>confdefs.h
<<_ACEOF
23895 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23896 || test $gcc_cv_as_comdat_group_percent = yes \
23897 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23901 # Restrict this test to Solaris/x86: other targets define this statically.
23902 case "${target}" in
23903 i?
86-*-solaris2* | x86_64-
*-solaris2*)
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
23905 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
23906 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23907 hidden_linkonce
=yes
23909 case "${target}" in
23910 # Full support for hidden thunks in linkonce sections only appeared in
23911 # Solaris 11/OpenSolaris.
23912 *-*-solaris2.1
[1-9]*)
23913 hidden_linkonce
=yes
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
23921 $as_echo "$hidden_linkonce" >&6; }
23923 cat >>confdefs.h
<<_ACEOF
23924 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23931 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23932 if test "${gcc_cv_as_discriminator+set}" = set; then :
23933 $as_echo_n "(cached) " >&6
23935 gcc_cv_as_discriminator
=no
23936 if test $in_tree_gas = yes; then
23937 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23938 then gcc_cv_as_discriminator
=yes
23940 elif test x
$gcc_cv_as != x
; then
23943 .loc 1 1 0 discriminator 1' > conftest.s
23944 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23946 (eval $ac_try) 2>&5
23948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23949 test $ac_status = 0; }; }
23951 gcc_cv_as_discriminator
=yes
23953 echo "configure: failed program was" >&5
23956 rm -f conftest.o conftest.s
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23960 $as_echo "$gcc_cv_as_discriminator" >&6; }
23961 if test $gcc_cv_as_discriminator = yes; then
23963 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23968 # Thread-local storage - the check is heavily parameterized.
23976 .section ".tdata","awT",@progbits
23979 ldq $27,__tls_get_addr($29) !literal!1
23980 lda $16,foo($29) !tlsgd!1
23981 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23982 ldq $27,__tls_get_addr($29) !literal!2
23983 lda $16,foo($29) !tlsldm!2
23984 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23985 ldq $1,foo($29) !gotdtprel
23986 ldah $2,foo($29) !dtprelhi
23987 lda $3,foo($2) !dtprello
23988 lda $4,foo($29) !dtprel
23989 ldq $1,foo($29) !gottprel
23990 ldah $2,foo($29) !tprelhi
23991 lda $3,foo($2) !tprello
23992 lda $4,foo($29) !tprel'
23995 tls_as_opt
=--fatal-warnings
23999 add_s r0,r0, @foo@tpoff'
24003 cris-
*-*|crisv32-
*-*)
24005 .section ".tdata","awT",@progbits
24012 tls_as_opt
=--fatal-warnings
24016 .section ".tdata","awT",@progbits
24019 call #gettlsoff(x)'
24028 .section ".tdata","awT",@progbits
24032 addil LT%foo-$tls_gdidx$,gp
24033 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24036 addil LT%foo-$tls_ldidx$,gp
24038 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24039 addil LR%foo-$tls_dtpoff$,%ret0
24040 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24042 addil LT%foo-$tls_ieoff$,gp
24043 ldw RT%foo-$tls_ieoff$(%r1),%t2
24046 addil LR%foo-$tls_leoff$,%t1
24047 ldo RR%foo-$tls_leoff$(%r1),%t2'
24050 tls_as_opt
=--fatal-warnings
24054 .section ".tdata","awT",%progbits
24057 .word foo(gottpoff)
24065 i
[34567]86-*-* | x86_64-
*-*)
24067 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
24074 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24076 .section .tdata,"awt",@progbits'
24081 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24085 .section ".tdata","awT",@progbits'
24089 tls_as_opt
="--fatal-warnings"
24093 conftest_s
="$conftest_s
24097 leal foo@tlsgd(,%ebx,1), %eax
24098 leal foo@tlsldm(%ebx), %eax
24099 leal foo@dtpoff(%eax), %edx
24100 movl foo@gottpoff(%ebx), %eax
24101 subl foo@gottpoff(%ebx), %eax
24102 addl foo@gotntpoff(%ebx), %eax
24103 movl foo@indntpoff, %eax
24104 movl \$foo@tpoff, %eax
24105 subl \$foo@tpoff, %eax
24106 leal foo@ntpoff(%ecx), %eax"
24109 if test x
$on_solaris = xyes
; then
24111 yes) tls_as_opt
="$tls_as_opt --64" ;;
24112 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24115 conftest_s
="$conftest_s
24119 leaq foo@tlsgd(%rip), %rdi
24120 leaq foo@tlsld(%rip), %rdi
24121 leaq foo@dtpoff(%rax), %rdx
24122 movq foo@gottpoff(%rip), %rax
24123 movq \$foo@tpoff, %rax"
24129 .section ".tdata","awT",@progbits
24132 addl r16 = @ltoff(@dtpmod(foo#)), gp
24133 addl r17 = @ltoff(@dtprel(foo#)), gp
24134 addl r18 = @ltoff(@tprel(foo#)), gp
24135 addl r19 = @dtprel(foo#), gp
24136 adds r21 = @dtprel(foo#), r13
24137 movl r23 = @dtprel(foo#)
24138 addl r20 = @tprel(foo#), gp
24139 adds r22 = @tprel(foo#), r13
24140 movl r24 = @tprel(foo#)'
24143 tls_as_opt
=--fatal-warnings
24147 .section .tdata,"awT",@progbits
24151 addik r5,r20,x@TLSGD
24152 addik r5,r20,x@TLSLDM'
24155 tls_as_opt
='--fatal-warnings'
24159 .section .tdata,"awT",@progbits
24163 addiu $4, $28, %tlsgd(x)
24164 addiu $4, $28, %tlsldm(x)
24165 lui $4, %dtprel_hi(x)
24166 addiu $4, $4, %dtprel_lo(x)
24167 lw $4, %gottprel(x)($28)
24168 lui $4, %tprel_hi(x)
24169 addiu $4, $4, %tprel_lo(x)'
24172 tls_as_opt
='-32 --fatal-warnings'
24176 .section .tdata,"awT",@progbits
24181 move.l x@TLSGD(%a5),%a0
24182 move.l x@TLSLDM(%a5),%a0
24183 move.l x@TLSLDO(%a5),%a0
24184 move.l x@TLSIE(%a5),%a0
24185 move.l x@TLSLE(%a5),%a0'
24188 tls_as_opt
='--fatal-warnings'
24192 .section ".tdata","awT",@progbits'
24195 tls_as_opt
="--fatal-warnings"
24199 .section ".tdata","awT",%progbits
24203 add x0, x0, #:tlsgd_lo12:x
24208 tls_as_opt
='--fatal-warnings'
24212 .extern __get_tpointer
24230 .section ".tdata","awT",@progbits
24238 addi 3,2,ld0@got@tlsgd
24244 addi 3,2,x1@got@tlsld
24250 addis 9,3,x2@dtprel@ha
24251 addi 9,9,x2@dtprel@l
24254 ld 9,x3@got@dtprel(2)
24260 tls_as_opt
="-a64 --fatal-warnings"
24264 .section ".tdata","awT",@progbits
24272 addi 3,31,ld0@got@tlsgd
24274 addi 3,31,x1@got@tlsld
24277 addis 9,3,x2@dtprel@ha
24278 addi 9,9,x2@dtprel@l
24279 lwz 9,x3@got@tprel(31)
24282 addis 9,2,x2@tprel@ha
24283 addi 9,9,x2@tprel@l'
24286 tls_as_opt
="-a32 --fatal-warnings"
24290 .section .tdata,"awT",@progbits
24294 call __tls_get_addr'
24297 tls_as_opt
='--fatal-warnings'
24301 .section ".tdata","awT",@progbits
24308 .long foo@GOTNTPOFF
24309 .long foo@INDNTPOFF
24310 l %r1,foo@GOTNTPOFF(%r12)
24311 l %r1,0(%r1):tls_load:foo
24312 bas %r14,0(%r1,%r13):tls_gdcall:foo
24313 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24316 tls_as_opt
="-m31 --fatal-warnings"
24320 .section ".tdata","awT",@progbits
24327 .quad foo@GOTNTPOFF
24328 lg %r1,foo@GOTNTPOFF(%r12)
24329 larl %r1,foo@INDNTPOFF
24330 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24331 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24334 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24336 sh-
*-* | sh
[123456789lbe
]*-*-*)
24338 .section ".tdata","awT",@progbits
24348 tls_as_opt
=--fatal-warnings
24352 sparc
*-sun-solaris2.
*)
24359 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24361 .section ".tdata",#alloc,#write,#tls'
24366 .section ".tdata","awT",@progbits'
24369 tls_as_opt
="-32 --fatal-warnings"
24371 conftest_s
="$conftest_s
24374 sethi %tgd_hi22(foo), %o0
24375 add %o0, %tgd_lo10(foo), %o1
24376 add %l7, %o1, %o0, %tgd_add(foo)
24377 call __tls_get_addr, %tgd_call(foo)
24378 sethi %tldm_hi22(foo), %l1
24379 add %l1, %tldm_lo10(foo), %l2
24380 add %l7, %l2, %o0, %tldm_add(foo)
24381 call __tls_get_addr, %tldm_call(foo)
24382 sethi %tldo_hix22(foo), %l3
24383 xor %l3, %tldo_lox10(foo), %l4
24384 add %o0, %l4, %l5, %tldo_add(foo)
24385 sethi %tie_hi22(foo), %o3
24386 add %o3, %tie_lo10(foo), %o3
24387 ld [%l7 + %o3], %o2, %tie_ld(foo)
24388 add %g7, %o2, %o4, %tie_add(foo)
24389 sethi %tle_hix22(foo), %l1
24390 xor %l1, %tle_lox10(foo), %o5
24391 ld [%g7 + %o5], %o1"
24395 .section ".tdata","awT",@progbits
24398 addli r0, zero, tls_gd(foo)
24399 auli r0, zero, tls_gd_ha16(foo)
24400 addli r0, r0, tls_gd_lo16(foo)
24402 addli r0, zero, tls_ie(foo)
24403 auli r0, r0, tls_ie_ha16(foo)
24404 addli r0, r0, tls_ie_lo16(foo)'
24407 tls_as_opt
="--fatal-warnings"
24411 .section ".tdata","awT",@progbits
24414 shl16insli r0, zero, hw0_last_tls_gd(foo)
24415 shl16insli r0, zero, hw1_last_tls_gd(foo)
24416 shl16insli r0, r0, hw0_tls_gd(foo)
24418 shl16insli r0, zero, hw1_last_tls_ie(foo)
24419 shl16insli r0, r0, hw0_tls_ie(foo)'
24422 tls_as_opt
="--fatal-warnings"
24426 .section ".tdata","awT",@progbits
24429 movi a8, foo@TLSFUNC
24430 movi a10, foo@TLSARG
24431 callx8.tls a8, foo@TLSCALL'
24437 if test "x$enable_tls" = xno
; then
24438 : # TLS explicitly disabled.
24439 elif test "x$enable_tls" = xyes
; then
24440 set_have_as_tls
=yes # TLS explicitly enabled.
24441 elif test -z "$tls_first_major"; then
24442 : # If we don't have a check, assume no support.
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24445 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24446 if test "${gcc_cv_as_tls+set}" = set; then :
24447 $as_echo_n "(cached) " >&6
24450 if test $in_tree_gas = yes; then
24451 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24452 then gcc_cv_as_tls
=yes
24454 elif test x
$gcc_cv_as != x
; then
24455 $as_echo "$conftest_s" > conftest.s
24456 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24458 (eval $ac_try) 2>&5
24460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24461 test $ac_status = 0; }; }
24465 echo "configure: failed program was" >&5
24468 rm -f conftest.o conftest.s
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24472 $as_echo "$gcc_cv_as_tls" >&6; }
24473 if test $gcc_cv_as_tls = yes; then
24474 set_have_as_tls
=yes
24478 if test $set_have_as_tls = yes ; then
24480 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24484 # Target-specific assembler checks.
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24487 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24488 gcc_cv_ld_static_dynamic
=no
24489 gcc_cv_ld_static_option
='-Bstatic'
24490 gcc_cv_ld_dynamic_option
='-Bdynamic'
24491 if test $in_tree_ld = yes ; then
24492 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
24493 gcc_cv_ld_static_dynamic
=yes
24495 elif test x
$gcc_cv_ld != x
; then
24496 # Check if linker supports -Bstatic/-Bdynamic option
24497 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
24498 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
24499 gcc_cv_ld_static_dynamic
=yes
24502 # AIX ld uses -b flags
24503 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24504 gcc_cv_ld_static_dynamic
=yes
24505 gcc_cv_ld_static_option
="-bstatic"
24506 gcc_cv_ld_dynamic_option
="-bdynamic"
24508 # HP-UX ld uses -a flags to select between shared and archive.
24510 if test x
"$gnu_ld" = xno
; then
24511 gcc_cv_ld_static_dynamic
=yes
24512 gcc_cv_ld_static_option
="-aarchive_shared"
24513 gcc_cv_ld_dynamic_option
="-adefault"
24516 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24518 gcc_cv_ld_static_dynamic
=yes
24523 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24525 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24528 cat >>confdefs.h
<<_ACEOF
24529 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24533 cat >>confdefs.h
<<_ACEOF
24534 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24539 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24542 $as_echo_n "checking linker --version-script option... " >&6; }
24543 gcc_cv_ld_version_script
=no
24544 ld_version_script_option
=''
24545 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
24546 gcc_cv_ld_version_script
=yes
24547 ld_version_script_option
='--version-script'
24548 elif test x
$gcc_cv_ld != x
; then
24550 # Solaris 2 ld always supports -M. It also supports a subset of
24551 # --version-script since Solaris 11.4, but requires
24552 # -z gnu-version-script-compat to activate.
24554 gcc_cv_ld_version_script
=yes
24555 ld_version_script_option
='-M'
24559 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24561 $as_echo "$gcc_cv_ld_version_script" >&6; }
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24565 $as_echo_n "checking linker soname option... " >&6; }
24566 gcc_cv_ld_soname
=no
24567 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
24568 gcc_cv_ld_soname
=yes
24569 ld_soname_option
='-soname'
24570 elif test x
$gcc_cv_ld != x
; then
24573 gcc_cv_ld_soname
=yes
24574 ld_soname_option
='-install_name'
24576 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24577 # ld compatiblity since some Solaris 10 update.
24579 gcc_cv_ld_soname
=yes
24580 ld_soname_option
='-h'
24584 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24586 $as_echo "$gcc_cv_ld_soname" >&6; }
24589 if test x
"$demangler_in_ld" = xyes
; then
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24591 $as_echo_n "checking linker --demangle support... " >&6; }
24592 gcc_cv_ld_demangle
=no
24593 if test $in_tree_ld = yes; then
24594 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 \
24595 gcc_cv_ld_demangle
=yes
24597 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24598 # Check if the GNU linker supports --demangle option
24599 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
24600 gcc_cv_ld_demangle
=yes
24603 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24605 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24609 $as_echo "$gcc_cv_ld_demangle" >&6; }
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24613 $as_echo_n "checking linker plugin support... " >&6; }
24614 gcc_cv_lto_plugin
=0
24615 if test -f liblto_plugin.la
; then
24616 save_ld_ver
="$ld_ver"
24617 save_ld_vers_major
="$ld_vers_major"
24618 save_ld_vers_minor
="$ld_vers_minor"
24619 save_ld_is_gold
="$ld_is_gold"
24623 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24625 # FIXME: ld_is_gold?
24626 ld_vers_major
="$gcc_cv_gld_major_version"
24627 ld_vers_minor
="$gcc_cv_gld_minor_version"
24629 # Determine plugin linker version.
24630 # FIXME: Partial duplicate from above, generalize.
24631 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24632 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24633 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24635 ld_vers
=`echo $ld_ver | sed -n \
24636 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24638 ld_vers
=`echo $ld_ver | sed -n \
24639 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24641 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24642 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24646 # Determine plugin support.
24647 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24648 # Require GNU ld or gold 2.21+ for plugin support by default.
24649 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24650 gcc_cv_lto_plugin
=2
24651 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24652 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24653 gcc_cv_lto_plugin
=1
24657 ld_ver
="$save_ld_ver"
24658 ld_vers_major
="$save_ld_vers_major"
24659 ld_vers_minor
="$save_ld_vers_minor"
24660 ld_is_gold
="$save_ld_is_gold"
24663 cat >>confdefs.h
<<_ACEOF
24664 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24668 $as_echo "$gcc_cv_lto_plugin" >&6; }
24670 # Target OS-specific assembler checks.
24672 case "$target_os" in
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24675 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24676 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24677 $as_echo_n "(cached) " >&6
24679 gcc_cv_as_mmacosx_version_min
=no
24680 if test x
$gcc_cv_as != x
; then
24681 $as_echo '.text' > conftest.s
24682 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24684 (eval $ac_try) 2>&5
24686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687 test $ac_status = 0; }; }
24689 gcc_cv_as_mmacosx_version_min
=yes
24691 echo "configure: failed program was" >&5
24694 rm -f conftest.o conftest.s
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24698 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24699 if test $gcc_cv_as_mmacosx_version_min = yes; then
24701 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24708 # Target CPU-specific assembler checks.
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24713 $as_echo_n "checking assembler for -mabi option... " >&6; }
24714 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24715 $as_echo_n "(cached) " >&6
24717 gcc_cv_as_aarch64_mabi
=no
24718 if test x
$gcc_cv_as != x
; then
24719 $as_echo '.text' > conftest.s
24720 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24722 (eval $ac_try) 2>&5
24724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24725 test $ac_status = 0; }; }
24727 gcc_cv_as_aarch64_mabi
=yes
24729 echo "configure: failed program was" >&5
24732 rm -f conftest.o conftest.s
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24736 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24739 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24741 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24744 if test x
$with_abi = xilp32
; then
24745 as_fn_error
"Assembler does not support -mabi=ilp32.\
24746 Upgrade the Assembler." "$LINENO" 5
24748 if test x
"$with_multilib_list" = xdefault
; then
24749 TM_MULTILIB_CONFIG
=lp64
24751 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24752 for aarch64_multilib
in ${aarch64_multilibs}; do
24753 case ${aarch64_multilib} in
24755 as_fn_error
"Assembler does not support -mabi=ilp32.\
24756 Upgrade the Assembler." "$LINENO" 5
24764 # Check if we have binutils support for relocations types needed by -fpic
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24766 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24767 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24768 $as_echo_n "(cached) " >&6
24770 gcc_cv_as_aarch64_picreloc
=no
24771 if test x
$gcc_cv_as != x
; then
24774 ldr x0, [x2, #:gotpage_lo15:globalsym]
24776 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24778 (eval $ac_try) 2>&5
24780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24781 test $ac_status = 0; }; }
24783 gcc_cv_as_aarch64_picreloc
=yes
24785 echo "configure: failed program was" >&5
24788 rm -f conftest.o conftest.s
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24792 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24793 if test $gcc_cv_as_aarch64_picreloc = yes; then
24795 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24799 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24800 # Check whether --enable-fix-cortex-a53-835769 was given.
24801 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24802 enableval
=$enable_fix_cortex_a53_835769;
24805 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24810 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24811 Valid choices are 'yes' and 'no'." "$LINENO" 5
24818 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24819 # Check whether --enable-fix-cortex-a53-843419 was given.
24820 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24821 enableval
=$enable_fix_cortex_a53_843419;
24824 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24829 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24830 Valid choices are 'yes' and 'no'." "$LINENO" 5
24839 # All TARGET_ABI_OSF targets.
24840 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24842 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24843 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24844 $as_echo_n "(cached) " >&6
24846 gcc_cv_as_alpha_explicit_relocs
=no
24847 if test $in_tree_gas = yes; then
24848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24849 then gcc_cv_as_alpha_explicit_relocs
=yes
24851 elif test x
$gcc_cv_as != x
; then
24852 $as_echo ' .set nomacro
24854 extbl $3, $2, $3 !lituse_bytoff!1
24855 ldq $2, a($29) !literal!1
24856 ldq $4, b($29) !literal!2
24857 ldq_u $3, 0($2) !lituse_base!1
24858 ldq $27, f($29) !literal!5
24859 jsr $26, ($27), f !lituse_jsr!5
24860 ldah $29, 0($26) !gpdisp!3
24861 lda $0, c($29) !gprel
24862 ldah $1, d($29) !gprelhigh
24863 lda $1, d($1) !gprellow
24864 lda $29, 0($29) !gpdisp!3' > conftest.s
24865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24867 (eval $ac_try) 2>&5
24869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24870 test $ac_status = 0; }; }
24872 gcc_cv_as_alpha_explicit_relocs
=yes
24874 echo "configure: failed program was" >&5
24877 rm -f conftest.o conftest.s
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24881 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24882 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24884 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24889 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24890 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24891 $as_echo_n "(cached) " >&6
24893 gcc_cv_as_alpha_jsrdirect_relocs
=no
24894 if test $in_tree_gas = yes; then
24895 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24896 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24898 elif test x
$gcc_cv_as != x
; then
24899 $as_echo ' .set nomacro
24901 ldq $27, a($29) !literal!1
24902 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24903 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24905 (eval $ac_try) 2>&5
24907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24908 test $ac_status = 0; }; }
24910 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24912 echo "configure: failed program was" >&5
24915 rm -f conftest.o conftest.s
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24919 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24920 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24922 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24930 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24931 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24932 $as_echo_n "(cached) " >&6
24934 gcc_cv_as_avr_mlink_relax
=no
24935 if test x
$gcc_cv_as != x
; then
24936 $as_echo '.text' > conftest.s
24937 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24939 (eval $ac_try) 2>&5
24941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24942 test $ac_status = 0; }; }
24944 gcc_cv_as_avr_mlink_relax
=yes
24946 echo "configure: failed program was" >&5
24949 rm -f conftest.o conftest.s
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24953 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24954 if test $gcc_cv_as_avr_mlink_relax = yes; then
24956 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24962 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24963 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24964 $as_echo_n "(cached) " >&6
24966 gcc_cv_as_avr_mrmw
=no
24967 if test x
$gcc_cv_as != x
; then
24968 $as_echo '.text' > conftest.s
24969 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24971 (eval $ac_try) 2>&5
24973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24974 test $ac_status = 0; }; }
24976 gcc_cv_as_avr_mrmw
=yes
24978 echo "configure: failed program was" >&5
24981 rm -f conftest.o conftest.s
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24985 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24986 if test $gcc_cv_as_avr_mrmw = yes; then
24988 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
24994 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
24995 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
24996 $as_echo_n "(cached) " >&6
24998 gcc_cv_as_avr_mgccisr
=no
24999 if test x
$gcc_cv_as != x
; then
25005 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25007 (eval $ac_try) 2>&5
25009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25010 test $ac_status = 0; }; }
25012 gcc_cv_as_avr_mgccisr
=yes
25014 echo "configure: failed program was" >&5
25017 rm -f conftest.o conftest.s
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25021 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25022 if test $gcc_cv_as_avr_mgccisr = yes; then
25024 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25029 # Check how default linker description file implements .rodata for
25030 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25031 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25033 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25034 cat > conftest.s
<<EOF
25035 .section .rodata,"a",@progbits
25037 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25042 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25044 (eval $ac_try) 2>&5
25046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25047 test $ac_status = 0; }; }
25048 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25050 (eval $ac_try) 2>&5
25052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25053 test $ac_status = 0; }; }
25054 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
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; }; }
25060 if test -s conftest.nm
25062 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25064 $as_echo "yes" >&6; }
25066 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25070 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25071 echo "$as_me: nm output was" >&5
25072 cat conftest.nm
>&5
25073 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25074 { $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
25075 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25079 $as_echo "test failed" >&6; }
25080 echo "$as_me: failed program was" >&5
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25083 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25085 rm -f conftest.s conftest.o conftest.elf conftest.nm
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25090 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25091 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
25092 $as_echo_n "(cached) " >&6
25094 gcc_cv_as_cris_no_mul_bug
=no
25095 if test $in_tree_gas = yes; then
25096 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25097 then gcc_cv_as_cris_no_mul_bug
=yes
25099 elif test x
$gcc_cv_as != x
; then
25100 $as_echo '.text' > conftest.s
25101 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25103 (eval $ac_try) 2>&5
25105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106 test $ac_status = 0; }; }
25108 gcc_cv_as_cris_no_mul_bug
=yes
25110 echo "configure: failed program was" >&5
25113 rm -f conftest.o conftest.s
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25117 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25118 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25120 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
25128 $as_echo_n "checking assembler for .register... " >&6; }
25129 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25132 gcc_cv_as_sparc_register_op
=no
25133 if test x
$gcc_cv_as != x
; then
25134 $as_echo '.register %g2, #scratch' > conftest.s
25135 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25137 (eval $ac_try) 2>&5
25139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25140 test $ac_status = 0; }; }
25142 gcc_cv_as_sparc_register_op
=yes
25144 echo "configure: failed program was" >&5
25147 rm -f conftest.o conftest.s
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25151 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25152 if test $gcc_cv_as_sparc_register_op = yes; then
25154 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25160 $as_echo_n "checking assembler for -relax option... " >&6; }
25161 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25162 $as_echo_n "(cached) " >&6
25164 gcc_cv_as_sparc_relax
=no
25165 if test x
$gcc_cv_as != x
; then
25166 $as_echo '.text' > conftest.s
25167 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25169 (eval $ac_try) 2>&5
25171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25172 test $ac_status = 0; }; }
25174 gcc_cv_as_sparc_relax
=yes
25176 echo "configure: failed program was" >&5
25179 rm -f conftest.o conftest.s
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25183 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25184 if test $gcc_cv_as_sparc_relax = yes; then
25186 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25192 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25193 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25194 $as_echo_n "(cached) " >&6
25196 gcc_cv_as_sparc_gotdata_op
=no
25197 if test x
$gcc_cv_as != x
; then
25203 sethi %gdop_hix22(foo), %g1
25204 xor %g1, %gdop_lox10(foo), %g1
25205 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25206 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25208 (eval $ac_try) 2>&5
25210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25211 test $ac_status = 0; }; }
25213 if test x
$gcc_cv_ld != x \
25214 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25215 if test x
$gcc_cv_objdump != x
; then
25216 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25217 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25218 gcc_cv_as_sparc_gotdata_op
=no
25220 gcc_cv_as_sparc_gotdata_op
=yes
25226 echo "configure: failed program was" >&5
25229 rm -f conftest.o conftest.s
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25233 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25234 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25236 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25242 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25243 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25244 $as_echo_n "(cached) " >&6
25246 gcc_cv_as_sparc_ua_pcrel
=no
25247 if test x
$gcc_cv_as != x
; then
25254 .uaword %r_disp32(foo)' > conftest.s
25255 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25257 (eval $ac_try) 2>&5
25259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25260 test $ac_status = 0; }; }
25262 if test x
$gcc_cv_ld != x \
25263 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25264 gcc_cv_as_sparc_ua_pcrel
=yes
25268 echo "configure: failed program was" >&5
25271 rm -f conftest.o conftest.s
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25275 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25276 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25278 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25282 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25283 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25284 $as_echo_n "(cached) " >&6
25286 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25287 if test x
$gcc_cv_as != x
; then
25291 .uaword %r_disp32(foo)
25292 .byte 0x32, 0x33, 0x34
25296 .skip 4' > conftest.s
25297 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25299 (eval $ac_try) 2>&5
25301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25302 test $ac_status = 0; }; }
25304 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25305 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25306 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25307 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25308 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25309 |
grep 'DISP32' > /dev
/null
2>&1; then
25312 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25317 echo "configure: failed program was" >&5
25320 rm -f conftest.o conftest.s
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25324 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25325 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25327 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25333 # unaligned pcrel relocs
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25336 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25337 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25338 $as_echo_n "(cached) " >&6
25340 gcc_cv_as_sparc_offsetable_lo10
=no
25341 if test x
$gcc_cv_as != x
; then
25343 or %g1, %lo(ab) + 12, %g1
25344 or %g1, %lo(ab + 12), %g1' > conftest.s
25345 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25347 (eval $ac_try) 2>&5
25349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25350 test $ac_status = 0; }; }
25352 if test x
$gcc_cv_objdump != x \
25353 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25354 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25355 gcc_cv_as_sparc_offsetable_lo10
=yes
25358 echo "configure: failed program was" >&5
25361 rm -f conftest.o conftest.s
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25365 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25366 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25368 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25374 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25375 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25376 $as_echo_n "(cached) " >&6
25378 gcc_cv_as_sparc_fmaf
=no
25379 if test x
$gcc_cv_as != x
; then
25381 .register %g2, #scratch
25382 .register %g3, #scratch
25384 fmaddd %f0, %f2, %f4, %f6
25385 addxccc %g1, %g2, %g3
25386 fsrl32 %f2, %f4, %f8
25387 fnaddd %f10, %f12, %f14' > conftest.s
25388 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25390 (eval $ac_try) 2>&5
25392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25393 test $ac_status = 0; }; }
25395 gcc_cv_as_sparc_fmaf
=yes
25397 echo "configure: failed program was" >&5
25400 rm -f conftest.o conftest.s
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25404 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25405 if test $gcc_cv_as_sparc_fmaf = yes; then
25407 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25413 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25414 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25415 $as_echo_n "(cached) " >&6
25417 gcc_cv_as_sparc_sparc4
=no
25418 if test x
$gcc_cv_as != x
; then
25420 .register %g2, #scratch
25421 .register %g3, #scratch
25424 1: cwbneg %g2, %g3, 1f
25427 aes_kexpand0 %f4, %f6, %f8
25428 des_round %f38, %f40, %f42, %f44
25429 camellia_f %f54, %f56, %f58, %f60
25430 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25431 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25433 (eval $ac_try) 2>&5
25435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25436 test $ac_status = 0; }; }
25438 gcc_cv_as_sparc_sparc4
=yes
25440 echo "configure: failed program was" >&5
25443 rm -f conftest.o conftest.s
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25447 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25448 if test $gcc_cv_as_sparc_sparc4 = yes; then
25450 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25456 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25457 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25458 $as_echo_n "(cached) " >&6
25460 gcc_cv_as_sparc_sparc5
=no
25461 if test x
$gcc_cv_as != x
; then
25463 .register %g2, #scratch
25464 .register %g3, #scratch
25466 subxc %g1, %g2, %g3
25467 fpadd8 %f0, %f2, %f4' > conftest.s
25468 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25470 (eval $ac_try) 2>&5
25472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25473 test $ac_status = 0; }; }
25475 gcc_cv_as_sparc_sparc5
=yes
25477 echo "configure: failed program was" >&5
25480 rm -f conftest.o conftest.s
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25484 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25485 if test $gcc_cv_as_sparc_sparc5 = yes; then
25487 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25493 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25494 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25495 $as_echo_n "(cached) " >&6
25497 gcc_cv_as_sparc_sparc6
=no
25498 if test x
$gcc_cv_as != x
; then
25500 .register %g2, #scratch
25501 .register %g3, #scratch
25504 fpsll64x %f0, %f2, %f4' > conftest.s
25505 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25507 (eval $ac_try) 2>&5
25509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25510 test $ac_status = 0; }; }
25512 gcc_cv_as_sparc_sparc6
=yes
25514 echo "configure: failed program was" >&5
25517 rm -f conftest.o conftest.s
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25521 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25522 if test $gcc_cv_as_sparc_sparc6 = yes; then
25524 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25530 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25531 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25532 $as_echo_n "(cached) " >&6
25534 gcc_cv_as_sparc_leon
=no
25535 if test x
$gcc_cv_as != x
; then
25537 .register %g2, #scratch
25538 .register %g3, #scratch
25542 casa [%g2] 0xb, %g3, %g1' > conftest.s
25543 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25545 (eval $ac_try) 2>&5
25547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25548 test $ac_status = 0; }; }
25550 gcc_cv_as_sparc_leon
=yes
25552 echo "configure: failed program was" >&5
25555 rm -f conftest.o conftest.s
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25559 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25560 if test $gcc_cv_as_sparc_leon = yes; then
25562 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25568 i
[34567]86-*-* | x86_64-
*-*)
25571 # Full C++ conformance when using a shared libstdc++-v3 requires some
25572 # support from the Cygwin DLL, which in more recent versions exports
25573 # wrappers to aid in interposing and redirecting operators new, delete,
25574 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25575 # are configuring for a version of Cygwin that exports the wrappers.
25576 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25577 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25578 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25579 gcc_ac_cygwin_dll_wrappers
=yes
25581 gcc_ac_cygwin_dll_wrappers
=no
25585 # Can't check presence of libc functions during cross-compile, so
25586 # we just have to assume we're building for an up-to-date target.
25587 gcc_ac_cygwin_dll_wrappers
=yes
25590 cat >>confdefs.h
<<_ACEOF
25591 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25596 cygwin
* | pe | mingw32
*)
25597 # Recent binutils allows the three-operand form of ".comm" on PE. This
25598 # definition is used unconditionally to initialise the default state of
25599 # the target option variable that governs usage of the feature.
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25601 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25602 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25603 $as_echo_n "(cached) " >&6
25605 gcc_cv_as_comm_has_align
=no
25606 if test $in_tree_gas = yes; then
25607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25608 then gcc_cv_as_comm_has_align
=yes
25610 elif test x
$gcc_cv_as != x
; then
25611 $as_echo '.comm foo,1,32' > conftest.s
25612 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25614 (eval $ac_try) 2>&5
25616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25617 test $ac_status = 0; }; }
25619 gcc_cv_as_comm_has_align
=yes
25621 echo "configure: failed program was" >&5
25624 rm -f conftest.o conftest.s
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25628 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25632 cat >>confdefs.h
<<_ACEOF
25633 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25636 # Used for DWARF 2 in PE
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25638 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25639 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25640 $as_echo_n "(cached) " >&6
25642 gcc_cv_as_ix86_pe_secrel32
=no
25643 if test $in_tree_gas = yes; then
25644 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25645 then gcc_cv_as_ix86_pe_secrel32
=yes
25647 elif test x
$gcc_cv_as != x
; then
25651 .secrel32 foo' > conftest.s
25652 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25654 (eval $ac_try) 2>&5
25656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25657 test $ac_status = 0; }; }
25659 if test x
$gcc_cv_ld != x \
25660 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25661 gcc_cv_as_ix86_pe_secrel32
=yes
25665 echo "configure: failed program was" >&5
25668 rm -f conftest.o conftest.s
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25672 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25673 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25675 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25679 # Test if the assembler supports the extended form of the .section
25680 # directive that specifies section alignment. LTO support uses this,
25681 # but normally only after installation, so we warn but don't fail the
25682 # configure if LTO is enabled but the assembler does not support it.
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25684 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25685 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25686 $as_echo_n "(cached) " >&6
25688 gcc_cv_as_section_has_align
=no
25689 if test $in_tree_gas = yes; then
25690 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25691 then gcc_cv_as_section_has_align
=yes
25693 elif test x
$gcc_cv_as != x
; then
25694 $as_echo '.section lto_test,"dr0"' > conftest.s
25695 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25697 (eval $ac_try) 2>&5
25699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25700 test $ac_status = 0; }; }
25702 gcc_cv_as_section_has_align
=yes
25704 echo "configure: failed program was" >&5
25707 rm -f conftest.o conftest.s
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25711 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25714 if test x
$gcc_cv_as_section_has_align != xyes
; then
25715 case ",$enable_languages," in
25717 { $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
25718 $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;}
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25726 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25727 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25728 $as_echo_n "(cached) " >&6
25730 gcc_cv_as_ix86_xbrace_comment
=no
25731 if test x
$gcc_cv_as != x
; then
25732 $as_echo '.text' > conftest.s
25733 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25735 (eval $ac_try) 2>&5
25737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25738 test $ac_status = 0; }; }
25740 gcc_cv_as_ix86_xbrace_comment
=yes
25742 echo "configure: failed program was" >&5
25745 rm -f conftest.o conftest.s
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25749 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25750 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25752 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25758 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25759 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25760 $as_echo_n "(cached) " >&6
25762 gcc_cv_as_ix86_filds
=no
25763 if test x
$gcc_cv_as != x
; then
25764 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25765 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25767 (eval $ac_try) 2>&5
25769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25770 test $ac_status = 0; }; }
25772 gcc_cv_as_ix86_filds
=yes
25774 echo "configure: failed program was" >&5
25777 rm -f conftest.o conftest.s
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25781 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25782 if test $gcc_cv_as_ix86_filds = yes; then
25784 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25790 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25791 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25792 $as_echo_n "(cached) " >&6
25794 gcc_cv_as_ix86_fildq
=no
25795 if test x
$gcc_cv_as != x
; then
25796 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25797 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25799 (eval $ac_try) 2>&5
25801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25802 test $ac_status = 0; }; }
25804 gcc_cv_as_ix86_fildq
=yes
25806 echo "configure: failed program was" >&5
25809 rm -f conftest.o conftest.s
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25813 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25814 if test $gcc_cv_as_ix86_fildq = yes; then
25816 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25822 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25823 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25824 $as_echo_n "(cached) " >&6
25826 gcc_cv_as_ix86_cmov_sun_syntax
=no
25827 if test x
$gcc_cv_as != x
; then
25828 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25829 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25831 (eval $ac_try) 2>&5
25833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25834 test $ac_status = 0; }; }
25836 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25838 echo "configure: failed program was" >&5
25841 rm -f conftest.o conftest.s
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25845 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25846 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25848 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25854 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25855 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25856 $as_echo_n "(cached) " >&6
25858 gcc_cv_as_ix86_ffreep
=no
25859 if test x
$gcc_cv_as != x
; then
25860 $as_echo 'ffreep %st(1)' > conftest.s
25861 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25863 (eval $ac_try) 2>&5
25865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25866 test $ac_status = 0; }; }
25868 gcc_cv_as_ix86_ffreep
=yes
25870 echo "configure: failed program was" >&5
25873 rm -f conftest.o conftest.s
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25877 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25878 if test $gcc_cv_as_ix86_ffreep = yes; then
25880 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25886 $as_echo_n "checking assembler for .quad directive... " >&6; }
25887 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25888 $as_echo_n "(cached) " >&6
25890 gcc_cv_as_ix86_quad
=no
25891 if test x
$gcc_cv_as != x
; then
25892 $as_echo '.quad 0' > conftest.s
25893 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25895 (eval $ac_try) 2>&5
25897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25898 test $ac_status = 0; }; }
25900 gcc_cv_as_ix86_quad
=yes
25902 echo "configure: failed program was" >&5
25905 rm -f conftest.o conftest.s
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25909 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25910 if test $gcc_cv_as_ix86_quad = yes; then
25912 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25918 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25919 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25920 $as_echo_n "(cached) " >&6
25922 gcc_cv_as_ix86_sahf
=no
25923 if test x
$gcc_cv_as != x
; then
25926 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25928 (eval $ac_try) 2>&5
25930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25931 test $ac_status = 0; }; }
25933 gcc_cv_as_ix86_sahf
=yes
25935 echo "configure: failed program was" >&5
25938 rm -f conftest.o conftest.s
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25942 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25943 if test $gcc_cv_as_ix86_sahf = yes; then
25945 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25951 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25952 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25953 $as_echo_n "(cached) " >&6
25955 gcc_cv_as_ix86_interunit_movq
=no
25956 if test x
$gcc_cv_as != x
; then
25959 movq %rax, %xmm0' > conftest.s
25960 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25962 (eval $ac_try) 2>&5
25964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25965 test $ac_status = 0; }; }
25967 gcc_cv_as_ix86_interunit_movq
=yes
25969 echo "configure: failed program was" >&5
25972 rm -f conftest.o conftest.s
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25976 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25980 cat >>confdefs.h
<<_ACEOF
25981 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25986 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25987 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25988 $as_echo_n "(cached) " >&6
25990 gcc_cv_as_ix86_hle
=no
25991 if test x
$gcc_cv_as != x
; then
25992 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25993 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25995 (eval $ac_try) 2>&5
25997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25998 test $ac_status = 0; }; }
26000 gcc_cv_as_ix86_hle
=yes
26002 echo "configure: failed program was" >&5
26005 rm -f conftest.o conftest.s
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26009 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26010 if test $gcc_cv_as_ix86_hle = yes; then
26012 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26018 $as_echo_n "checking assembler for swap suffix... " >&6; }
26019 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
26020 $as_echo_n "(cached) " >&6
26022 gcc_cv_as_ix86_swap
=no
26023 if test x
$gcc_cv_as != x
; then
26024 $as_echo 'movl.s %esp, %ebp' > conftest.s
26025 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26027 (eval $ac_try) 2>&5
26029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26030 test $ac_status = 0; }; }
26032 gcc_cv_as_ix86_swap
=yes
26034 echo "configure: failed program was" >&5
26037 rm -f conftest.o conftest.s
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26041 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26042 if test $gcc_cv_as_ix86_swap = yes; then
26044 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26050 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26051 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
26052 $as_echo_n "(cached) " >&6
26054 gcc_cv_as_ix86_diff_sect_delta
=no
26055 if test x
$gcc_cv_as != x
; then
26056 $as_echo '.section .rodata
26062 .L2: nop' > conftest.s
26063 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26065 (eval $ac_try) 2>&5
26067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26068 test $ac_status = 0; }; }
26070 gcc_cv_as_ix86_diff_sect_delta
=yes
26072 echo "configure: failed program was" >&5
26075 rm -f conftest.o conftest.s
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26079 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26080 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26082 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26088 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26089 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
26090 $as_echo_n "(cached) " >&6
26092 gcc_cv_as_ix86_rep_lock_prefix
=no
26093 if test x
$gcc_cv_as != x
; then
26094 $as_echo 'rep movsl
26099 lock addl %edi, (%eax,%esi)
26100 lock orl $0, (%esp)' > conftest.s
26101 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26103 (eval $ac_try) 2>&5
26105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26106 test $ac_status = 0; }; }
26108 gcc_cv_as_ix86_rep_lock_prefix
=yes
26110 echo "configure: failed program was" >&5
26113 rm -f conftest.o conftest.s
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26117 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26118 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26120 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26126 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26127 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26128 $as_echo_n "(cached) " >&6
26130 gcc_cv_as_ix86_ud2
=no
26131 if test x
$gcc_cv_as != x
; then
26132 $as_echo 'ud2' > conftest.s
26133 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26135 (eval $ac_try) 2>&5
26137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26138 test $ac_status = 0; }; }
26140 gcc_cv_as_ix86_ud2
=yes
26142 echo "configure: failed program was" >&5
26145 rm -f conftest.o conftest.s
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26149 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26150 if test $gcc_cv_as_ix86_ud2 = yes; then
26152 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26157 # Enforce 32-bit output with gas and gld.
26158 if test x
$gas = xyes
; then
26159 as_ix86_gas_32_opt
="--32"
26161 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26162 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26163 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26165 ld_ix86_gld_32_opt
="-melf_i386"
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26170 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26171 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26172 $as_echo_n "(cached) " >&6
26174 gcc_cv_as_ix86_tlsgdplt
=no
26175 if test x
$gcc_cv_as != x
; then
26176 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26177 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26179 (eval $ac_try) 2>&5
26181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26182 test $ac_status = 0; }; }
26184 if test x
$gcc_cv_ld != x \
26185 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26186 gcc_cv_as_ix86_tlsgdplt
=yes
26190 echo "configure: failed program was" >&5
26193 rm -f conftest.o conftest.s
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26197 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26198 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26200 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26206 .section .tdata,"aw'$tls_section_flag'",@progbits
26208 .section .text,"ax",@progbits
26209 call tls_ld@tlsldmplt'
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26212 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26213 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26214 $as_echo_n "(cached) " >&6
26216 gcc_cv_as_ix86_tlsldmplt
=no
26217 if test x
$gcc_cv_as != x
; then
26218 $as_echo "$conftest_s" > conftest.s
26219 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26221 (eval $ac_try) 2>&5
26223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26224 test $ac_status = 0; }; }
26226 if test x
$gcc_cv_ld != x \
26227 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26228 gcc_cv_as_ix86_tlsldmplt
=yes
26232 echo "configure: failed program was" >&5
26235 rm -f conftest.o conftest.s
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26239 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26243 cat >>confdefs.h
<<_ACEOF
26244 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26249 .section .text,"ax",@progbits
26251 .type _start, @function
26253 leal value@tlsldm(%ebx), %eax
26254 call ___tls_get_addr@plt
26256 .section .tdata,"aw'$tls_section_flag'",@progbits
26257 .type value, @object
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26260 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26261 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26262 $as_echo_n "(cached) " >&6
26264 gcc_cv_as_ix86_tlsldm
=no
26265 if test x
$gcc_cv_as != x
; then
26266 $as_echo "$conftest_s" > conftest.s
26267 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26269 (eval $ac_try) 2>&5
26271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26272 test $ac_status = 0; }; }
26274 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26275 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26276 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26277 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26278 gcc_cv_as_ix86_tlsldm
=yes
26283 echo "configure: failed program was" >&5
26286 rm -f conftest.o conftest.s
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26290 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26294 cat >>confdefs.h
<<_ACEOF
26295 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26309 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26310 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26311 $as_echo_n "(cached) " >&6
26313 gcc_cv_as_ix86_got32x
=no
26314 if test x
$gcc_cv_as != x
; then
26315 $as_echo "$conftest_s" > conftest.s
26316 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26318 (eval $ac_try) 2>&5
26320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26321 test $ac_status = 0; }; }
26323 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26324 && test x
$gcc_cv_readelf != x \
26325 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26326 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26327 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26328 if $gcc_cv_objdump -dw conftest
2>&1 \
26329 |
grep 0xffffff > /dev
/null
2>&1; then
26330 gcc_cv_as_ix86_got32x
=no
26332 gcc_cv_as_ix86_got32x
=yes
26337 echo "configure: failed program was" >&5
26340 rm -f conftest.o conftest.s
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26344 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26348 cat >>confdefs.h
<<_ACEOF
26349 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26354 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26355 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26356 $as_echo_n "(cached) " >&6
26358 gcc_cv_as_ix86_gotoff_in_data
=no
26359 if test $in_tree_gas = yes; then
26360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26361 then gcc_cv_as_ix86_gotoff_in_data
=yes
26363 elif test x
$gcc_cv_as != x
; then
26368 .long .L0@GOTOFF' > conftest.s
26369 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26371 (eval $ac_try) 2>&5
26373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26374 test $ac_status = 0; }; }
26376 gcc_cv_as_ix86_gotoff_in_data
=yes
26378 echo "configure: failed program was" >&5
26381 rm -f conftest.o conftest.s
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26385 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26389 cat >>confdefs.h
<<_ACEOF
26390 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26395 .section .text,"ax",@progbits
26397 .type _start, @function
26399 leal ld@tlsldm(%ecx), %eax
26400 call *___tls_get_addr@GOT(%ecx)
26401 leal gd@tlsgd(%ecx), %eax
26402 call *___tls_get_addr@GOT(%ecx)
26404 .section .tdata,"aw'$tls_section_flag'",@progbits
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26413 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26414 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26415 $as_echo_n "(cached) " >&6
26417 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26418 if test x
$gcc_cv_as != x
; then
26419 $as_echo "$conftest_s" > conftest.s
26420 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26422 (eval $ac_try) 2>&5
26424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26425 test $ac_status = 0; }; }
26427 if test x
$gcc_cv_ld != x \
26428 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26429 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26433 echo "configure: failed program was" >&5
26436 rm -f conftest.o conftest.s
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26440 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26444 cat >>confdefs.h
<<_ACEOF
26445 #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`
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26452 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26453 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26454 $as_echo_n "(cached) " >&6
26456 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26457 if test $in_tree_gas = yes; then
26458 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26459 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26461 elif test x
$gcc_cv_as != x
; then
26463 addl r15 = @ltoffx(x#), gp
26465 ld8.mov r16 = [r15], x#' > conftest.s
26466 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26468 (eval $ac_try) 2>&5
26470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26471 test $ac_status = 0; }; }
26473 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26475 echo "configure: failed program was" >&5
26478 rm -f conftest.o conftest.s
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26482 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26483 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26485 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26497 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26498 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26499 $as_echo_n "(cached) " >&6
26501 gcc_cv_as_machine_directive
=no
26502 if test x
$gcc_cv_as != x
; then
26503 $as_echo ' .machine ppc7400' > conftest.s
26504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26506 (eval $ac_try) 2>&5
26508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26509 test $ac_status = 0; }; }
26511 gcc_cv_as_machine_directive
=yes
26513 echo "configure: failed program was" >&5
26516 rm -f conftest.o conftest.s
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26520 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26523 if test x
$gcc_cv_as_machine_directive != xyes
; then
26524 echo "*** This target requires an assembler supporting \".machine\"" >&2
26525 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26526 test x
$build = x
$target && exit 1
26532 *-*-aix*) conftest_s
=' .machine "pwr5"
26535 *-*-darwin*) conftest_s
=' .text
26537 *) conftest_s
=' .machine power4
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26543 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26544 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26545 $as_echo_n "(cached) " >&6
26547 gcc_cv_as_powerpc_mfcrf
=no
26548 if test $in_tree_gas = yes; then
26549 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26550 then gcc_cv_as_powerpc_mfcrf
=yes
26552 elif test x
$gcc_cv_as != x
; then
26553 $as_echo "$conftest_s" > conftest.s
26554 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26556 (eval $ac_try) 2>&5
26558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26559 test $ac_status = 0; }; }
26561 gcc_cv_as_powerpc_mfcrf
=yes
26563 echo "configure: failed program was" >&5
26566 rm -f conftest.o conftest.s
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26570 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26571 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26573 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26579 *-*-aix*) conftest_s
=' .machine "pwr5"
26582 *) conftest_s
=' .machine power5
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26588 $as_echo_n "checking assembler for popcntb support... " >&6; }
26589 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26590 $as_echo_n "(cached) " >&6
26592 gcc_cv_as_powerpc_popcntb
=no
26593 if test $in_tree_gas = yes; then
26594 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26595 then gcc_cv_as_powerpc_popcntb
=yes
26597 elif test x
$gcc_cv_as != x
; then
26598 $as_echo "$conftest_s" > conftest.s
26599 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26601 (eval $ac_try) 2>&5
26603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26604 test $ac_status = 0; }; }
26606 gcc_cv_as_powerpc_popcntb
=yes
26608 echo "configure: failed program was" >&5
26611 rm -f conftest.o conftest.s
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26615 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26616 if test $gcc_cv_as_powerpc_popcntb = yes; then
26618 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26624 *-*-aix*) conftest_s
=' .machine "pwr5x"
26627 *) conftest_s
=' .machine power5
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26633 $as_echo_n "checking assembler for fp round support... " >&6; }
26634 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26635 $as_echo_n "(cached) " >&6
26637 gcc_cv_as_powerpc_fprnd
=no
26638 if test $in_tree_gas = yes; then
26639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26640 then gcc_cv_as_powerpc_fprnd
=yes
26642 elif test x
$gcc_cv_as != x
; then
26643 $as_echo "$conftest_s" > conftest.s
26644 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26646 (eval $ac_try) 2>&5
26648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26649 test $ac_status = 0; }; }
26651 gcc_cv_as_powerpc_fprnd
=yes
26653 echo "configure: failed program was" >&5
26656 rm -f conftest.o conftest.s
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26660 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26661 if test $gcc_cv_as_powerpc_fprnd = yes; then
26663 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26669 *-*-aix*) conftest_s
=' .machine "pwr6"
26672 *) conftest_s
=' .machine power6
26677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26678 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26679 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26680 $as_echo_n "(cached) " >&6
26682 gcc_cv_as_powerpc_mfpgpr
=no
26683 if test $in_tree_gas = yes; then
26684 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26685 then gcc_cv_as_powerpc_mfpgpr
=yes
26687 elif test x
$gcc_cv_as != x
; then
26688 $as_echo "$conftest_s" > conftest.s
26689 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26691 (eval $ac_try) 2>&5
26693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26694 test $ac_status = 0; }; }
26696 gcc_cv_as_powerpc_mfpgpr
=yes
26698 echo "configure: failed program was" >&5
26701 rm -f conftest.o conftest.s
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26705 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26706 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26708 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26714 *-*-aix*) conftest_s
=' .csect .text[PR]
26716 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26720 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26721 *) conftest_s
=' .text
26723 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26727 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26728 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26729 $as_echo_n "(cached) " >&6
26731 gcc_cv_as_powerpc_rel16
=no
26732 if test $in_tree_gas = yes; then
26733 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26734 then gcc_cv_as_powerpc_rel16
=yes
26736 elif test x
$gcc_cv_as != x
; then
26737 $as_echo "$conftest_s" > conftest.s
26738 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26740 (eval $ac_try) 2>&5
26742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26743 test $ac_status = 0; }; }
26745 gcc_cv_as_powerpc_rel16
=yes
26747 echo "configure: failed program was" >&5
26750 rm -f conftest.o conftest.s
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26754 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26755 if test $gcc_cv_as_powerpc_rel16 = yes; then
26757 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26763 *-*-aix*) conftest_s
=' .machine "pwr6"
26766 *) conftest_s
=' .machine power6
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26772 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26773 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26774 $as_echo_n "(cached) " >&6
26776 gcc_cv_as_powerpc_cmpb
=no
26777 if test $in_tree_gas = yes; then
26778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26779 then gcc_cv_as_powerpc_cmpb
=yes
26781 elif test x
$gcc_cv_as != x
; then
26782 $as_echo "$conftest_s" > conftest.s
26783 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26785 (eval $ac_try) 2>&5
26787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26788 test $ac_status = 0; }; }
26790 gcc_cv_as_powerpc_cmpb
=yes
26792 echo "configure: failed program was" >&5
26795 rm -f conftest.o conftest.s
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26799 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26800 if test $gcc_cv_as_powerpc_cmpb = yes; then
26802 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26808 *-*-aix*) conftest_s
=' .machine "pwr6"
26811 *) conftest_s
=' .machine power6
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26817 $as_echo_n "checking assembler for decimal float support... " >&6; }
26818 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26819 $as_echo_n "(cached) " >&6
26821 gcc_cv_as_powerpc_dfp
=no
26822 if test $in_tree_gas = yes; then
26823 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26824 then gcc_cv_as_powerpc_dfp
=yes
26826 elif test x
$gcc_cv_as != x
; then
26827 $as_echo "$conftest_s" > conftest.s
26828 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26830 (eval $ac_try) 2>&5
26832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26833 test $ac_status = 0; }; }
26835 gcc_cv_as_powerpc_dfp
=yes
26837 echo "configure: failed program was" >&5
26840 rm -f conftest.o conftest.s
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26844 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26845 if test $gcc_cv_as_powerpc_dfp = yes; then
26847 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26853 *-*-aix*) conftest_s
=' .machine "pwr7"
26856 *) conftest_s
=' .machine power7
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26862 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26863 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26864 $as_echo_n "(cached) " >&6
26866 gcc_cv_as_powerpc_vsx
=no
26867 if test $in_tree_gas = yes; then
26868 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26869 then gcc_cv_as_powerpc_vsx
=yes
26871 elif test x
$gcc_cv_as != x
; then
26872 $as_echo "$conftest_s" > conftest.s
26873 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26875 (eval $ac_try) 2>&5
26877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26878 test $ac_status = 0; }; }
26880 gcc_cv_as_powerpc_vsx
=yes
26882 echo "configure: failed program was" >&5
26885 rm -f conftest.o conftest.s
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26889 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26890 if test $gcc_cv_as_powerpc_vsx = yes; then
26892 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26898 *-*-aix*) conftest_s
=' .machine "pwr7"
26901 *) conftest_s
=' .machine power7
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26907 $as_echo_n "checking assembler for popcntd support... " >&6; }
26908 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26909 $as_echo_n "(cached) " >&6
26911 gcc_cv_as_powerpc_popcntd
=no
26912 if test $in_tree_gas = yes; then
26913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26914 then gcc_cv_as_powerpc_popcntd
=yes
26916 elif test x
$gcc_cv_as != x
; then
26917 $as_echo "$conftest_s" > conftest.s
26918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26920 (eval $ac_try) 2>&5
26922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26923 test $ac_status = 0; }; }
26925 gcc_cv_as_powerpc_popcntd
=yes
26927 echo "configure: failed program was" >&5
26930 rm -f conftest.o conftest.s
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26934 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26935 if test $gcc_cv_as_powerpc_popcntd = yes; then
26937 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26943 *-*-aix*) conftest_s
=' .machine "pwr8"
26944 .csect .text[PR]';;
26945 *) conftest_s
=' .machine power8
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26950 $as_echo_n "checking assembler for power8 support... " >&6; }
26951 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26952 $as_echo_n "(cached) " >&6
26954 gcc_cv_as_powerpc_power8
=no
26955 if test $in_tree_gas = yes; then
26956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26957 then gcc_cv_as_powerpc_power8
=yes
26959 elif test x
$gcc_cv_as != x
; then
26960 $as_echo "$conftest_s" > conftest.s
26961 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26963 (eval $ac_try) 2>&5
26965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26966 test $ac_status = 0; }; }
26968 gcc_cv_as_powerpc_power8
=yes
26970 echo "configure: failed program was" >&5
26973 rm -f conftest.o conftest.s
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26977 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26978 if test $gcc_cv_as_powerpc_power8 = yes; then
26980 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26986 *-*-aix*) conftest_s
=' .machine "pwr9"
26987 .csect .text[PR]';;
26988 *) conftest_s
=' .machine power9
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26993 $as_echo_n "checking assembler for power9 support... " >&6; }
26994 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26995 $as_echo_n "(cached) " >&6
26997 gcc_cv_as_powerpc_power9
=no
26998 if test $in_tree_gas = yes; then
26999 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27000 then gcc_cv_as_powerpc_power9
=yes
27002 elif test x
$gcc_cv_as != x
; then
27003 $as_echo "$conftest_s" > conftest.s
27004 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27006 (eval $ac_try) 2>&5
27008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27009 test $ac_status = 0; }; }
27011 gcc_cv_as_powerpc_power9
=yes
27013 echo "configure: failed program was" >&5
27016 rm -f conftest.o conftest.s
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
27020 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
27021 if test $gcc_cv_as_powerpc_power9 = yes; then
27023 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
27029 *-*-aix*) conftest_s
=' .csect .text[PR]
27031 *) conftest_s
=' .text
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
27036 $as_echo_n "checking assembler for lwsync support... " >&6; }
27037 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
27038 $as_echo_n "(cached) " >&6
27040 gcc_cv_as_powerpc_lwsync
=no
27041 if test $in_tree_gas = yes; then
27042 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27043 then gcc_cv_as_powerpc_lwsync
=yes
27045 elif test x
$gcc_cv_as != x
; then
27046 $as_echo "$conftest_s" > conftest.s
27047 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27049 (eval $ac_try) 2>&5
27051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27052 test $ac_status = 0; }; }
27054 gcc_cv_as_powerpc_lwsync
=yes
27056 echo "configure: failed program was" >&5
27059 rm -f conftest.o conftest.s
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
27063 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
27064 if test $gcc_cv_as_powerpc_lwsync = yes; then
27066 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
27072 *-*-aix*) conftest_s
=' .machine "476"
27075 *) conftest_s
=' .machine "476"
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
27081 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
27082 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
27083 $as_echo_n "(cached) " >&6
27085 gcc_cv_as_powerpc_dci
=no
27086 if test $in_tree_gas = yes; then
27087 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
27088 then gcc_cv_as_powerpc_dci
=yes
27090 elif test x
$gcc_cv_as != x
; then
27091 $as_echo "$conftest_s" > conftest.s
27092 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27094 (eval $ac_try) 2>&5
27096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27097 test $ac_status = 0; }; }
27099 gcc_cv_as_powerpc_dci
=yes
27101 echo "configure: failed program was" >&5
27104 rm -f conftest.o conftest.s
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
27108 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
27109 if test $gcc_cv_as_powerpc_dci = yes; then
27111 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27117 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27118 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
27119 $as_echo_n "(cached) " >&6
27121 gcc_cv_as_powerpc_gnu_attribute
=no
27122 if test $in_tree_gas = yes; then
27123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27124 then gcc_cv_as_powerpc_gnu_attribute
=yes
27126 elif test x
$gcc_cv_as != x
; then
27127 $as_echo '.gnu_attribute 4,1' > conftest.s
27128 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27130 (eval $ac_try) 2>&5
27132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27133 test $ac_status = 0; }; }
27135 gcc_cv_as_powerpc_gnu_attribute
=yes
27137 echo "configure: failed program was" >&5
27140 rm -f conftest.o conftest.s
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27144 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27145 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27147 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27153 $as_echo_n "checking assembler for tls marker support... " >&6; }
27154 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
27155 $as_echo_n "(cached) " >&6
27157 gcc_cv_as_powerpc_tls_markers
=no
27158 if test $in_tree_gas = yes; then
27159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27160 then gcc_cv_as_powerpc_tls_markers
=yes
27162 elif test x
$gcc_cv_as != x
; then
27163 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27166 (eval $ac_try) 2>&5
27168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27169 test $ac_status = 0; }; }
27171 gcc_cv_as_powerpc_tls_markers
=yes
27173 echo "configure: failed program was" >&5
27176 rm -f conftest.o conftest.s
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27180 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27181 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27183 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27189 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27190 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
27191 $as_echo_n "(cached) " >&6
27193 gcc_cv_as_powerpc_entry_markers
=no
27194 if test $in_tree_gas = yes; then
27195 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27196 then gcc_cv_as_powerpc_entry_markers
=yes
27198 elif test x
$gcc_cv_as != x
; then
27199 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27200 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27202 (eval $ac_try) 2>&5
27204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27205 test $ac_status = 0; }; }
27207 gcc_cv_as_powerpc_entry_markers
=yes
27209 echo "configure: failed program was" >&5
27212 rm -f conftest.o conftest.s
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27216 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27217 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27219 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27227 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27228 if test "${gcc_cv_as_aix_ref+set}" = set; then :
27229 $as_echo_n "(cached) " >&6
27231 gcc_cv_as_aix_ref
=no
27232 if test $in_tree_gas = yes; then
27233 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27234 then gcc_cv_as_aix_ref
=yes
27236 elif test x
$gcc_cv_as != x
; then
27237 $as_echo ' .csect stuff[rw]
27243 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27245 (eval $ac_try) 2>&5
27247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27248 test $ac_status = 0; }; }
27250 gcc_cv_as_aix_ref
=yes
27252 echo "configure: failed program was" >&5
27255 rm -f conftest.o conftest.s
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27259 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27260 if test $gcc_cv_as_aix_ref = yes; then
27262 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27268 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27269 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
27270 $as_echo_n "(cached) " >&6
27272 gcc_cv_as_aix_dwloc
=no
27273 if test $in_tree_gas = yes; then
27274 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27275 then gcc_cv_as_aix_dwloc
=yes
27277 elif test x
$gcc_cv_as != x
; then
27278 $as_echo ' .dwsect 0xA0000
27282 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27284 (eval $ac_try) 2>&5
27286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27287 test $ac_status = 0; }; }
27289 gcc_cv_as_aix_dwloc
=yes
27291 echo "configure: failed program was" >&5
27294 rm -f conftest.o conftest.s
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27298 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27299 if test $gcc_cv_as_aix_dwloc = yes; then
27301 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27311 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27312 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27313 $as_echo_n "(cached) " >&6
27315 gcc_cv_as_mips_explicit_relocs
=no
27316 if test $in_tree_gas = yes; then
27317 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27318 then gcc_cv_as_mips_explicit_relocs
=yes
27320 elif test x
$gcc_cv_as != x
; then
27321 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27322 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27324 (eval $ac_try) 2>&5
27326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27327 test $ac_status = 0; }; }
27329 gcc_cv_as_mips_explicit_relocs
=yes
27331 echo "configure: failed program was" >&5
27334 rm -f conftest.o conftest.s
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27338 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27339 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27340 if test x
$target_cpu_default = x
27341 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27342 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27348 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27349 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27350 $as_echo_n "(cached) " >&6
27352 gcc_cv_as_mips_no_shared
=no
27353 if test $in_tree_gas = yes; then
27354 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27355 then gcc_cv_as_mips_no_shared
=yes
27357 elif test x
$gcc_cv_as != x
; then
27358 $as_echo 'nop' > conftest.s
27359 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27361 (eval $ac_try) 2>&5
27363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27364 test $ac_status = 0; }; }
27366 gcc_cv_as_mips_no_shared
=yes
27368 echo "configure: failed program was" >&5
27371 rm -f conftest.o conftest.s
27374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27375 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27376 if test $gcc_cv_as_mips_no_shared = yes; then
27378 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27384 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27385 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27386 $as_echo_n "(cached) " >&6
27388 gcc_cv_as_mips_gnu_attribute
=no
27389 if test $in_tree_gas = yes; then
27390 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27391 then gcc_cv_as_mips_gnu_attribute
=yes
27393 elif test x
$gcc_cv_as != x
; then
27394 $as_echo '.gnu_attribute 4,1' > conftest.s
27395 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27397 (eval $ac_try) 2>&5
27399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27400 test $ac_status = 0; }; }
27402 gcc_cv_as_mips_gnu_attribute
=yes
27404 echo "configure: failed program was" >&5
27407 rm -f conftest.o conftest.s
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27411 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27412 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27414 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27420 $as_echo_n "checking assembler for .module support... " >&6; }
27421 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27422 $as_echo_n "(cached) " >&6
27424 gcc_cv_as_mips_dot_module
=no
27425 if test x
$gcc_cv_as != x
; then
27426 $as_echo '.module mips2
27427 .module fp=xx' > conftest.s
27428 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27430 (eval $ac_try) 2>&5
27432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27433 test $ac_status = 0; }; }
27435 gcc_cv_as_mips_dot_module
=yes
27437 echo "configure: failed program was" >&5
27440 rm -f conftest.o conftest.s
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27444 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27445 if test $gcc_cv_as_mips_dot_module = yes; then
27447 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27451 if test x
$gcc_cv_as_mips_dot_module = xno \
27452 && test x
$with_fp_32 != x
; then
27453 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27457 $as_echo_n "checking assembler for .micromips support... " >&6; }
27458 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27459 $as_echo_n "(cached) " >&6
27461 gcc_cv_as_micromips_support
=no
27462 if test x
$gcc_cv_as != x
; then
27463 $as_echo '.set micromips' > conftest.s
27464 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27466 (eval $ac_try) 2>&5
27468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27469 test $ac_status = 0; }; }
27471 gcc_cv_as_micromips_support
=yes
27473 echo "configure: failed program was" >&5
27476 rm -f conftest.o conftest.s
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27480 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27481 if test $gcc_cv_as_micromips_support = yes; then
27483 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27489 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27490 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27491 $as_echo_n "(cached) " >&6
27493 gcc_cv_as_mips_dtprelword
=no
27494 if test $in_tree_gas = yes; then
27495 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27496 then gcc_cv_as_mips_dtprelword
=yes
27498 elif test x
$gcc_cv_as != x
; then
27499 $as_echo '.section .tdata,"awT",@progbits
27503 .dtprelword x+0x8000' > conftest.s
27504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27506 (eval $ac_try) 2>&5
27508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27509 test $ac_status = 0; }; }
27511 gcc_cv_as_mips_dtprelword
=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_mips_dtprelword" >&5
27520 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27521 if test $gcc_cv_as_mips_dtprelword = yes; then
27523 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27529 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27530 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27531 $as_echo_n "(cached) " >&6
27533 gcc_cv_as_mips_dspr1_mult
=no
27534 if test x
$gcc_cv_as != x
; then
27535 $as_echo ' .set mips32r2
27543 multu $ac3,$4,$5' > conftest.s
27544 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27546 (eval $ac_try) 2>&5
27548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27549 test $ac_status = 0; }; }
27551 gcc_cv_as_mips_dspr1_mult
=yes
27553 echo "configure: failed program was" >&5
27556 rm -f conftest.o conftest.s
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27560 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27561 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27563 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27569 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27570 gcc_cv_as_ld_jalr_reloc
=no
27571 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27572 if test $in_tree_ld = yes ; then
27573 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 \
27574 && test $in_tree_ld_is_elf = yes; then
27575 gcc_cv_as_ld_jalr_reloc
=yes
27577 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27578 echo ' .ent x' > conftest.s
27579 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27580 echo ' lw $25,%call16(y)($28)' >> conftest.s
27581 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27582 echo '1: jalr $25' >> conftest.s
27583 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27584 echo '1: jalr $25' >> conftest.s
27585 echo ' .end x' >> conftest.s
27586 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27587 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27588 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27589 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27590 gcc_cv_as_ld_jalr_reloc
=yes
27596 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27597 if test x
$target_cpu_default = x
; then
27598 target_cpu_default
=MASK_RELAX_PIC_CALLS
27600 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27604 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27607 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27608 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27609 $as_echo_n "(cached) " >&6
27611 gcc_cv_ld_mips_personality_relaxation
=no
27612 if test $in_tree_ld = yes ; then
27613 if test "$gcc_cv_gld_major_version" -eq 2 \
27614 -a "$gcc_cv_gld_minor_version" -ge 21 \
27615 -o "$gcc_cv_gld_major_version" -gt 2; then
27616 gcc_cv_ld_mips_personality_relaxation
=yes
27618 elif test x
$gcc_cv_as != x \
27619 -a x
$gcc_cv_ld != x \
27620 -a x
$gcc_cv_readelf != x
; then
27621 cat > conftest.s
<<EOF
27623 .cfi_personality 0x80,indirect_ptr
27630 .section .data,"aw",@progbits
27634 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27635 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27636 if $gcc_cv_readelf -d conftest
2>&1 \
27637 |
grep TEXTREL
> /dev
/null
2>&1; then
27639 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27640 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27643 gcc_cv_ld_mips_personality_relaxation
=yes
27647 rm -f conftest.s conftest.o conftest
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27650 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27651 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27653 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27658 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27659 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27660 $as_echo_n "(cached) " >&6
27662 gcc_cv_as_mips_nan
=no
27663 if test x
$gcc_cv_as != x
; then
27664 $as_echo '' > conftest.s
27665 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27667 (eval $ac_try) 2>&5
27669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27670 test $ac_status = 0; }; }
27672 gcc_cv_as_mips_nan
=yes
27674 echo "configure: failed program was" >&5
27677 rm -f conftest.o conftest.s
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27681 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27682 if test $gcc_cv_as_mips_nan = yes; then
27684 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27688 if test x
$gcc_cv_as_mips_nan = xno \
27689 && test x
$with_nan != x
; then
27690 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27695 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27696 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27697 $as_echo_n "(cached) " >&6
27699 gcc_cv_as_s390_gnu_attribute
=no
27700 if test $in_tree_gas = yes; then
27701 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27702 then gcc_cv_as_s390_gnu_attribute
=yes
27704 elif test x
$gcc_cv_as != x
; then
27705 $as_echo '.gnu_attribute 8,1' > conftest.s
27706 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27708 (eval $ac_try) 2>&5
27710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27711 test $ac_status = 0; }; }
27713 gcc_cv_as_s390_gnu_attribute
=yes
27715 echo "configure: failed program was" >&5
27718 rm -f conftest.o conftest.s
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27722 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27723 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27725 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27730 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27731 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27732 $as_echo_n "(cached) " >&6
27734 gcc_cv_as_s390_machine_machinemode
=no
27735 if test $in_tree_gas = yes; then
27736 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27737 then gcc_cv_as_s390_machine_machinemode
=yes
27739 elif test x
$gcc_cv_as != x
; then
27740 $as_echo ' .machinemode push
27743 .machine pop' > conftest.s
27744 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27746 (eval $ac_try) 2>&5
27748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27749 test $ac_status = 0; }; }
27751 gcc_cv_as_s390_machine_machinemode
=yes
27753 echo "configure: failed program was" >&5
27756 rm -f conftest.o conftest.s
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27760 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27761 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27763 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27768 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27769 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27770 $as_echo_n "(cached) " >&6
27772 gcc_cv_as_s390_architecture_modifiers
=no
27773 if test $in_tree_gas = yes; then
27774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27775 then gcc_cv_as_s390_architecture_modifiers
=yes
27777 elif test x
$gcc_cv_as != x
; then
27778 $as_echo ' .machine z13+vx ' > conftest.s
27779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27781 (eval $ac_try) 2>&5
27783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27784 test $ac_status = 0; }; }
27786 gcc_cv_as_s390_architecture_modifiers
=yes
27788 echo "configure: failed program was" >&5
27791 rm -f conftest.o conftest.s
27794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27795 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27796 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27798 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27805 # Mips and HP-UX need the GNU assembler.
27806 # Linux on IA64 might be able to use the Intel assembler.
27809 mips
*-*-* |
*-*-hpux* )
27810 if test x
$gas_flag = xyes \
27811 ||
test x
"$host" != x
"$build" \
27812 ||
test ! -x "$gcc_cv_as" \
27813 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27816 echo "*** This configuration requires the GNU assembler" >&2
27822 # ??? Not all targets support dwarf2 debug_line, even within a version
27823 # of gas. Moreover, we need to emit a valid instruction to trigger any
27824 # info to the output file. So, as supported targets are added to gas 2.11,
27825 # add some instruction here to (also) show we expect this might work.
27826 # ??? Once 2.11 is released, probably need to add first known working
27827 # version to the per-target configury.
27828 case "$cpu_type" in
27829 aarch64 | alpha | arc | arm | avr | bfin | cris | i386 | m32c | m68k \
27830 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27831 | tilegx | tilepro | visium | xstormy16 | xtensa
)
27841 if test x
"$insn" != x
; then
27843 .file 1 \"conftest.s\"
27846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27847 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27848 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27849 $as_echo_n "(cached) " >&6
27851 gcc_cv_as_dwarf2_debug_line
=no
27852 if test $in_tree_gas = yes; then
27853 if test $in_tree_gas_is_elf = yes \
27854 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27855 then gcc_cv_as_dwarf2_debug_line
=yes
27857 elif test x
$gcc_cv_as != x
; then
27858 $as_echo "$conftest_s" > conftest.s
27859 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27861 (eval $ac_try) 2>&5
27863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27864 test $ac_status = 0; }; }
27866 if test x
$gcc_cv_objdump != x \
27867 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27868 |
grep debug_line
> /dev
/null
2>&1; then
27869 gcc_cv_as_dwarf2_debug_line
=yes
27872 echo "configure: failed program was" >&5
27875 rm -f conftest.o conftest.s
27878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27879 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27883 # The .debug_line file table must be in the exact order that
27884 # we specified the files, since these indices are also used
27885 # by DW_AT_decl_file. Approximate this test by testing if
27886 # the assembler bitches if the same index is assigned twice.
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27888 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27889 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27890 $as_echo_n "(cached) " >&6
27892 gcc_cv_as_dwarf2_file_buggy
=no
27893 if test x
$gcc_cv_as != x
; then
27894 $as_echo ' .file 1 "foo.s"
27895 .file 1 "bar.s"' > conftest.s
27896 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27898 (eval $ac_try) 2>&5
27900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27901 test $ac_status = 0; }; }
27903 gcc_cv_as_dwarf2_file_buggy
=yes
27905 echo "configure: failed program was" >&5
27908 rm -f conftest.o conftest.s
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27912 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27916 if test $gcc_cv_as_dwarf2_debug_line = yes \
27917 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27919 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27922 if test $gcc_cv_as_leb128 = yes; then
27924 .file 1 \"conftest.s\"
27925 .loc 1 3 0 view .LVU1
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27932 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27933 if test "${gcc_cv_as_dwarf2_debug_view+set}" = set; then :
27934 $as_echo_n "(cached) " >&6
27936 gcc_cv_as_dwarf2_debug_view
=no
27937 if test $in_tree_gas = yes; then
27938 if test $in_tree_gas_is_elf = yes \
27939 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27940 then gcc_cv_as_dwarf2_debug_view
=yes
27942 elif test x
$gcc_cv_as != x
; then
27943 $as_echo "$conftest_s" > conftest.s
27944 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27946 (eval $ac_try) 2>&5
27948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27949 test $ac_status = 0; }; }
27951 gcc_cv_as_dwarf2_debug_view
=yes
27953 echo "configure: failed program was" >&5
27956 rm -f conftest.o conftest.s
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27960 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27961 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27963 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27971 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27972 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27973 $as_echo_n "(cached) " >&6
27975 gcc_cv_as_gdwarf2_flag
=no
27976 if test $in_tree_gas = yes; then
27977 if test $in_tree_gas_is_elf = yes \
27978 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27979 then gcc_cv_as_gdwarf2_flag
=yes
27981 elif test x
$gcc_cv_as != x
; then
27982 $as_echo "$insn" > conftest.s
27983 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27985 (eval $ac_try) 2>&5
27987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27988 test $ac_status = 0; }; }
27990 gcc_cv_as_gdwarf2_flag
=yes
27992 echo "configure: failed program was" >&5
27995 rm -f conftest.o conftest.s
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27999 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28000 if test $gcc_cv_as_gdwarf2_flag = yes; then
28002 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28008 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28009 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
28010 $as_echo_n "(cached) " >&6
28012 gcc_cv_as_gstabs_flag
=no
28013 if test $in_tree_gas = yes; then
28014 if test $in_tree_gas_is_elf = yes \
28015 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28016 then gcc_cv_as_gstabs_flag
=yes
28018 elif test x
$gcc_cv_as != x
; then
28019 $as_echo "$insn" > conftest.s
28020 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28022 (eval $ac_try) 2>&5
28024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28025 test $ac_status = 0; }; }
28027 gcc_cv_as_gstabs_flag
=yes
28029 echo "configure: failed program was" >&5
28032 rm -f conftest.o conftest.s
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28036 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28037 if test $gcc_cv_as_gstabs_flag = yes; then
28039 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28045 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28046 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
28047 $as_echo_n "(cached) " >&6
28049 gcc_cv_as_debug_prefix_map_flag
=no
28050 if test $in_tree_gas = yes; then
28051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28052 then gcc_cv_as_debug_prefix_map_flag
=yes
28054 elif test x
$gcc_cv_as != x
; then
28055 $as_echo "$insn" > conftest.s
28056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28058 (eval $ac_try) 2>&5
28060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28061 test $ac_status = 0; }; }
28063 gcc_cv_as_debug_prefix_map_flag
=yes
28065 echo "configure: failed program was" >&5
28068 rm -f conftest.o conftest.s
28071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28072 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28073 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28075 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28082 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28083 if test "${gcc_cv_as_compress_debug+set}" = set; then :
28084 $as_echo_n "(cached) " >&6
28086 gcc_cv_as_compress_debug
=no
28087 if test x
$gcc_cv_as != x
; then
28088 $as_echo '' > conftest.s
28089 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28091 (eval $ac_try) 2>&5
28093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28094 test $ac_status = 0; }; }
28096 # gas compiled without zlib cannot compress debug sections and warns
28097 # about it, but still exits successfully. So check for this, too.
28098 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
28100 gcc_cv_as_compress_debug
=0
28101 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28102 # defaulting to the ELF gABI format.
28103 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
28105 gcc_cv_as_compress_debug
=2
28106 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28107 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28108 # Before binutils 2.26, gas only supported --compress-debug-options and
28109 # emitted the traditional GNU format.
28110 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
28112 gcc_cv_as_compress_debug
=1
28113 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28114 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28116 gcc_cv_as_compress_debug
=0
28119 echo "configure: failed program was" >&5
28122 rm -f conftest.o conftest.s
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28126 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28130 cat >>confdefs.h
<<_ACEOF
28131 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28135 cat >>confdefs.h
<<_ACEOF
28136 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28140 cat >>confdefs.h
<<_ACEOF
28141 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28146 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28147 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
28148 $as_echo_n "(cached) " >&6
28150 gcc_cv_as_lcomm_with_alignment
=no
28151 if test x
$gcc_cv_as != x
; then
28152 $as_echo '.lcomm bar,4,16' > conftest.s
28153 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28155 (eval $ac_try) 2>&5
28157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28158 test $ac_status = 0; }; }
28160 gcc_cv_as_lcomm_with_alignment
=yes
28162 echo "configure: failed program was" >&5
28165 rm -f conftest.o conftest.s
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28169 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28170 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28172 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28177 if test x
$with_sysroot = x
&& test x
$host = x
$target \
28178 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28179 && test "$prefix" != "NONE"; then
28181 cat >>confdefs.h
<<_ACEOF
28182 #define PREFIX_INCLUDE_DIR "$prefix/include"
28187 # Determine the version of glibc, if any, used on the target.
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28189 $as_echo_n "checking for target glibc version... " >&6; }
28191 # Check whether --with-glibc-version was given.
28192 if test "${with_glibc_version+set}" = set; then :
28193 withval
=$with_glibc_version;
28194 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28195 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28196 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28198 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
28202 glibc_version_major
=0
28203 glibc_version_minor
=0
28204 if test -f $target_header_dir/features.h \
28205 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28206 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28207 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28208 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28213 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28215 cat >>confdefs.h
<<_ACEOF
28216 #define TARGET_GLIBC_MAJOR $glibc_version_major
28220 cat >>confdefs.h
<<_ACEOF
28221 #define TARGET_GLIBC_MINOR $glibc_version_minor
28225 # Check whether --enable-gnu-unique-object was given.
28226 if test "${enable_gnu_unique_object+set}" = set; then :
28227 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28229 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28230 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28234 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28235 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
28236 $as_echo_n "(cached) " >&6
28238 gcc_cv_as_gnu_unique_object
=no
28239 if test $in_tree_gas = yes; then
28240 if test $in_tree_gas_is_elf = yes \
28241 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28242 then gcc_cv_as_gnu_unique_object
=yes
28244 elif test x
$gcc_cv_as != x
; then
28245 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28246 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28248 (eval $ac_try) 2>&5
28250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28251 test $ac_status = 0; }; }
28253 gcc_cv_as_gnu_unique_object
=yes
28255 echo "configure: failed program was" >&5
28258 rm -f conftest.o conftest.s
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28262 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28263 if test $gcc_cv_as_gnu_unique_object = yes; then
28264 # We need to unquote above to to use the definition from config.gcc.
28265 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28267 if test $glibc_version_major -gt 2 \
28268 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28269 enable_gnu_unique_object
=yes
28276 if test x
$enable_gnu_unique_object = xyes
; then
28278 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28283 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28284 if test "${gcc_cv_as_line_zero+set}" = set; then :
28285 $as_echo_n "(cached) " >&6
28287 gcc_cv_as_line_zero
=no
28288 if test $in_tree_gas = yes; then
28289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28290 then gcc_cv_as_line_zero
=yes
28292 elif test "x$gcc_cv_as" != x
; then
28293 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28294 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28296 (eval $ac_try) 2>&5
28298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28299 test $ac_status = 0; }; } &&
28300 test "x`cat conftest.out`" = x
28302 gcc_cv_as_line_zero
=yes
28304 echo "configure: failed program was" >&5
28306 echo "configure: error output was" >&5
28307 cat conftest.out
>&5
28309 rm -f conftest.o conftest.s conftest.out
28312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28313 $as_echo "$gcc_cv_as_line_zero" >&6; }
28314 if test "x$gcc_cv_as_line_zero" = xyes
; then
28316 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28321 $as_echo_n "checking support for thin archives... " >&6; }
28322 thin_archive_support
=no
28323 echo 'int main (void) { return 0; }' > conftest.c
28324 if ($AR --version |
sed 1q |
grep "GNU ar" \
28325 && $CC $CFLAGS -c conftest.c \
28326 && $AR rcT conftest.a conftest.o \
28327 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
28328 thin_archive_support
=yes
28330 rm -f conftest.c conftest.o conftest.a conftest
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28332 $as_echo "$thin_archive_support" >&6; }
28335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28336 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28337 gcc_cv_ld_eh_frame_hdr
=no
28338 if test $in_tree_ld = yes ; then
28339 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 \
28340 && test $in_tree_ld_is_elf = yes; then
28341 gcc_cv_ld_eh_frame_hdr
=yes
28343 elif test x
$gcc_cv_ld != x
; then
28344 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28345 # Check if linker supports --eh-frame-hdr option
28346 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
28347 gcc_cv_ld_eh_frame_hdr
=yes
28352 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28353 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28354 gcc_cv_ld_eh_frame_hdr
=yes
28361 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28363 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28367 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28370 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28371 gcc_cv_ld_eh_frame_ciev3
=no
28372 if test $in_tree_ld = yes ; then
28373 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 \
28374 && test $in_tree_ld_is_elf = yes; then
28375 gcc_cv_ld_eh_frame_ciev3
=yes
28377 elif test x
$gcc_cv_ld != x
; then
28378 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28379 gcc_cv_ld_eh_frame_ciev3
=yes
28380 if test 0"$ld_date" -lt 20040513; then
28381 if test -n "$ld_date"; then
28382 # If there was date string, but was earlier than 2004-05-13, fail
28383 gcc_cv_ld_eh_frame_ciev3
=no
28384 elif test "$ld_vers_major" -lt 2; then
28385 gcc_cv_ld_eh_frame_ciev3
=no
28386 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28387 gcc_cv_ld_eh_frame_ciev3
=no
28393 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28394 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28395 gcc_cv_ld_eh_frame_ciev3
=yes
28402 cat >>confdefs.h
<<_ACEOF
28403 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28407 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28410 $as_echo_n "checking linker position independent executable support... " >&6; }
28412 if test $in_tree_ld = yes ; then
28414 # Full PIE support on Solaris was only introduced in gld 2.26.
28415 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28416 *) gcc_gld_pie_min_version
=15 ;;
28418 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 \
28419 && test $in_tree_ld_is_elf = yes; then
28422 elif test x
$gcc_cv_ld != x
; then
28423 # Check if linker supports -pie option
28424 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28428 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28429 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28436 *-*-solaris2.1
[1-9]*)
28437 # Solaris 11.3 added PIE support.
28438 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28445 if test x
"$gcc_cv_ld_pie" = xyes
; then
28447 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28451 $as_echo "$gcc_cv_ld_pie" >&6; }
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28454 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28455 gcc_cv_ld_pie_copyreloc
=no
28456 if test $gcc_cv_ld_pie = yes ; then
28457 if test $in_tree_ld = yes ; then
28458 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
28459 gcc_cv_ld_pie_copyreloc
=yes
28461 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28462 # Check if linker supports -pie option with copy reloc
28464 i?
86-*-linux* | x86_64-
*-linux*)
28465 cat > conftest1.s
<<EOF
28468 .type a_glob, @object
28473 cat > conftest2.s
<<EOF
28476 .type main, @function
28478 movl %eax, a_glob(%rip)
28481 .section .data.rel,"aw",@progbits
28486 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28487 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28488 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28489 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28490 gcc_cv_ld_pie_copyreloc
=yes
28492 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28498 cat >>confdefs.h
<<_ACEOF
28499 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28503 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28506 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28507 gcc_cv_ld_eh_gc_sections
=no
28508 if test $in_tree_ld = yes ; then
28509 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 \
28510 && test $in_tree_ld_is_elf = yes; then
28511 gcc_cv_ld_eh_gc_sections
=yes
28513 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28514 cat > conftest.s
<<EOF
28517 .type _start, @function
28520 .size _start, .-_start
28521 .section .text.foo,"ax",@progbits
28522 .type foo, @function
28526 .section .gcc_except_table.foo,"a",@progbits
28529 .section .eh_frame,"a",@progbits
28532 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28533 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28534 |
grep "gc-sections option ignored" > /dev
/null
; then
28535 gcc_cv_ld_eh_gc_sections
=no
28536 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28537 |
grep gcc_except_table
> /dev
/null
; then
28538 gcc_cv_ld_eh_gc_sections
=yes
28539 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28540 if test x
$gcc_cv_as_comdat_group != xyes
; then
28541 gcc_cv_ld_eh_gc_sections
=no
28542 cat > conftest.s
<<EOF
28545 .type _start, @function
28548 .size _start, .-_start
28549 .section .gnu.linkonce.t.foo,"ax",@progbits
28550 .type foo, @function
28554 .section .gcc_except_table.foo,"a",@progbits
28557 .section .eh_frame,"a",@progbits
28560 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28561 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28562 |
grep "gc-sections option ignored" > /dev
/null
; then
28563 gcc_cv_ld_eh_gc_sections
=no
28564 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28565 |
grep gcc_except_table
> /dev
/null
; then
28566 gcc_cv_ld_eh_gc_sections
=yes
28572 rm -f conftest.s conftest.o conftest
28576 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28577 gcc_cv_ld_eh_gc_sections
=no
28580 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28582 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28586 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28589 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28590 gcc_cv_ld_eh_gc_sections_bug
=no
28591 if test $in_tree_ld = yes ; then
28592 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 \
28593 && test $in_tree_ld_is_elf = yes; then
28594 gcc_cv_ld_eh_gc_sections_bug
=yes
28596 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
28597 gcc_cv_ld_eh_gc_sections_bug
=yes
28598 cat > conftest.s
<<EOF
28601 .type _start, @function
28604 .size _start, .-_start
28605 .section .text.startup.foo,"ax",@progbits
28606 .type foo, @function
28610 .section .gcc_except_table.foo,"a",@progbits
28613 .section .eh_frame,"a",@progbits
28616 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28617 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28618 |
grep "gc-sections option ignored" > /dev
/null
; then
28620 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28621 |
grep gcc_except_table
> /dev
/null
; then
28622 gcc_cv_ld_eh_gc_sections_bug
=no
28625 rm -f conftest.s conftest.o conftest
28627 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28629 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28633 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28636 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28637 # gold/gld support compressed debug sections since binutils 2.19/2.21
28638 # In binutils 2.26, gld gained support for the ELF gABI format.
28639 if test $in_tree_ld = yes ; then
28640 gcc_cv_ld_compress_debug
=0
28641 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 \
28642 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28643 gcc_cv_ld_compress_debug
=2
28644 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28645 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 \
28646 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28647 gcc_cv_ld_compress_debug
=3
28648 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28649 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 \
28650 && test $in_tree_ld_is_elf = yes; then
28651 gcc_cv_ld_compress_debug
=1
28653 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28654 if test "$ld_vers_major" -lt 2 \
28655 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28656 gcc_cv_ld_compress_debug
=0
28657 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28658 gcc_cv_ld_compress_debug
=1
28660 gcc_cv_ld_compress_debug
=3
28661 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28663 if test $ld_is_gold = yes; then
28664 gcc_cv_ld_compress_debug
=2
28665 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28668 case "${target}" in
28670 # Introduced in Solaris 11.2.
28671 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28672 gcc_cv_ld_compress_debug
=3
28673 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28675 gcc_cv_ld_compress_debug
=0
28679 # Assume linkers other than GNU ld don't support compessed debug
28681 gcc_cv_ld_compress_debug
=0
28686 cat >>confdefs.h
<<_ACEOF
28687 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28691 cat >>confdefs.h
<<_ACEOF
28692 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28696 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28698 if test x
"$ld64_flag" = x
"yes"; then
28700 # Set defaults for possibly untestable items.
28701 gcc_cv_ld64_export_dynamic
=0
28703 if test "$build" = "$host"; then
28709 # On Darwin, because of FAT library support, it is often possible to execute
28710 # exes from compatible archs even when the host differs from the build system.
28711 case "$build","$host" in
28712 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28713 darwin_try_test
=1;;
28717 # If the configurer specified a minimum ld64 version to be supported, then use
28718 # that to determine feature support.
28719 if test x
"${gcc_cv_ld64_version}" != x
; then
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28721 $as_echo_n "checking ld64 specified version... " >&6; }
28722 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28724 $as_echo "$gcc_cv_ld64_major" >&6; }
28725 if test "$gcc_cv_ld64_major" -ge 236; then
28726 gcc_cv_ld64_export_dynamic
=1
28728 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28729 # If the version was not specified, try to find it.
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28731 $as_echo_n "checking linker version... " >&6; }
28732 if test x
"${gcc_cv_ld64_version}" = x
; then
28733 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28736 $as_echo "$gcc_cv_ld64_version" >&6; }
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28739 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28740 gcc_cv_ld64_export_dynamic
=1
28741 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28742 gcc_cv_ld64_export_dynamic
=0
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28745 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28748 if test x
"${gcc_cv_ld64_version}" != x
; then
28750 cat >>confdefs.h
<<_ACEOF
28751 #define LD64_VERSION "${gcc_cv_ld64_version}"
28757 cat >>confdefs.h
<<_ACEOF
28758 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28768 $as_echo_n "checking linker --as-needed support... " >&6; }
28769 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28770 $as_echo_n "(cached) " >&6
28772 gcc_cv_ld_as_needed
=no
28773 gcc_cv_ld_as_needed_option
='--as-needed'
28774 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28775 if test $in_tree_ld = yes ; then
28776 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 \
28777 && test $in_tree_ld_is_elf = yes; then
28778 gcc_cv_ld_as_needed
=yes
28779 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28780 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28781 gcc_cv_ld_no_as_needed_option
='--pop-state'
28784 elif test x
$gcc_cv_ld != x
; then
28785 # Check if linker supports --as-needed and --no-as-needed options
28786 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
28787 gcc_cv_ld_as_needed
=yes
28788 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
28789 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
28790 && echo "$ld_ver" |
grep GNU
> /dev
/null \
28791 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28792 # Use these options only when both ld.bfd and ld.gold support
28793 # --push-state/--pop-state, which unfortunately wasn't added
28794 # at the same time.
28795 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28796 gcc_cv_ld_no_as_needed_option
='--pop-state'
28799 case "$target:$gnu_ld" in
28801 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28803 gcc_cv_ld_as_needed
=yes
28804 gcc_cv_ld_as_needed_option
="-z ignore"
28805 gcc_cv_ld_no_as_needed_option
="-z record"
28809 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28810 # dl_iterate_phdr, i.e. since Solaris 11.
28812 *-*-solaris2.1
[1-9]*)
28814 i?
86-*-* | x86_64-
*-*)
28815 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28816 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28817 gcc_cv_ld_as_needed
=no
28823 gcc_cv_ld_as_needed
=no
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28829 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28830 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28832 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28835 cat >>confdefs.h
<<_ACEOF
28836 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28840 cat >>confdefs.h
<<_ACEOF
28841 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28847 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28848 saved_LDFLAGS
="$LDFLAGS"
28849 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28850 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28852 /* end confdefs.h. */
28853 int main(void) {return 0;}
28855 if ac_fn_cxx_try_link
"$LINENO"; then :
28856 gcc_cv_ld_clearcap
=yes; break
28858 gcc_cv_ld_clearcap
=no
28860 rm -f core conftest.err conftest.
$ac_objext \
28861 conftest
$ac_exeext conftest.
$ac_ext
28863 LDFLAGS
="$saved_LDFLAGS"
28864 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28866 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28868 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28872 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28878 emul_name
="-melf32lppc"
28881 emul_name
="-melf32ppc"
28884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28885 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28886 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28887 $as_echo_n "(cached) " >&6
28889 gcc_cv_ld_ppc_attr
=no
28890 if test x
"$ld_is_gold" = xyes
; then
28891 gcc_cv_ld_ppc_attr
=yes
28892 elif test $in_tree_ld = yes ; then
28893 if test "$gcc_cv_gld_major_version" -eq 2 \
28894 -a "$gcc_cv_gld_minor_version" -ge 28 \
28895 -o "$gcc_cv_gld_major_version" -gt 2; then
28896 gcc_cv_ld_ppc_attr
=yes
28898 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28899 # check that merging the long double .gnu_attribute doesn't warn
28900 cat > conftest1.s
<<EOF
28903 cat > conftest2.s
<<EOF
28906 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28907 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28908 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
28909 && test ! -s conftest.err
; then
28910 gcc_cv_ld_ppc_attr
=yes
28912 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28917 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28918 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
28920 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28926 case "$target:$tm_file" in
28927 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28930 emul_name
="-melf64lppc"
28933 emul_name
="-melf64ppc"
28936 emul_name
="-melf64ppc_fbsd"
28939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28940 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28941 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28942 $as_echo_n "(cached) " >&6
28944 gcc_cv_ld_no_dot_syms
=no
28945 if test x
"$ld_is_gold" = xyes
; then
28946 gcc_cv_ld_no_dot_syms
=yes
28947 elif test $in_tree_ld = yes ; then
28948 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
28949 gcc_cv_ld_no_dot_syms
=yes
28951 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28952 cat > conftest1.s
<<EOF
28956 cat > conftest2.s
<<EOF
28957 .section ".opd","aw"
28960 .type foo,@function
28962 .quad .LEfoo,.TOC.@tocbase,0
28968 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28969 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28970 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28971 gcc_cv_ld_no_dot_syms
=yes
28973 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28978 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28979 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28981 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28986 $as_echo_n "checking linker large toc support... " >&6; }
28987 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28988 $as_echo_n "(cached) " >&6
28990 gcc_cv_ld_large_toc
=no
28991 if test x
"$ld_is_gold" = xyes
; then
28992 gcc_cv_ld_large_toc
=yes
28993 elif test $in_tree_ld = yes ; then
28994 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
28995 gcc_cv_ld_large_toc
=yes
28997 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28998 cat > conftest.s
<<EOF
28999 .section ".tbss","awT",@nobits
29005 addis 9,13,ie0@got@tprel@ha
29006 ld 9,ie0@got@tprel@l(9)
29008 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29009 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
29010 gcc_cv_ld_large_toc
=yes
29012 rm -f conftest conftest.o conftest.s
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29017 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29018 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29020 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29025 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29026 if test "${gcc_cv_ld_toc_align+set}" = set; then :
29027 $as_echo_n "(cached) " >&6
29029 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
29030 cat > conftest.s
<<EOF
29035 .section .data.rel.ro,"aw",@progbits
29040 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29041 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
29042 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)) }'`
29044 rm -f conftest conftest.o conftest.s
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29049 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29050 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29052 cat >>confdefs.h
<<_ACEOF
29053 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29063 $as_echo_n "checking linker large toc support... " >&6; }
29064 if test "${gcc_cv_ld_large_toc+set}" = set; then :
29065 $as_echo_n "(cached) " >&6
29067 gcc_cv_ld_large_toc
=no
29068 if test x
$gcc_cv_as != x
; then
29069 cat > conftest.s
<<EOF
29079 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
29080 gcc_cv_ld_large_toc
=yes
29082 rm -f conftest conftest.o conftest.s
29086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29087 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29088 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29090 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29097 $as_echo_n "checking linker --build-id support... " >&6; }
29098 if test "${gcc_cv_ld_buildid+set}" = set; then :
29099 $as_echo_n "(cached) " >&6
29101 gcc_cv_ld_buildid
=no
29102 if test $in_tree_ld = yes ; then
29103 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29104 "$gcc_cv_gld_minor_version" -ge 18 -o \
29105 "$gcc_cv_gld_major_version" -gt 2 \
29106 && test $in_tree_ld_is_elf = yes; then
29107 gcc_cv_ld_buildid
=yes
29109 elif test x
$gcc_cv_ld != x
; then
29110 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
29111 gcc_cv_ld_buildid
=yes
29115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29116 $as_echo "$gcc_cv_ld_buildid" >&6; }
29117 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29119 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29123 # Check whether --enable-linker-build-id was given.
29124 if test "${enable_linker_build_id+set}" = set; then :
29125 enableval
=$enable_linker_build_id;
29127 enable_linker_build_id
=no
29131 if test x
"$enable_linker_build_id" = xyes
; then
29132 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29134 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29138 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29142 # In binutils 2.21, GNU ld gained support for new emulations fully
29143 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29145 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29146 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
29147 $as_echo_n "(cached) " >&6
29149 gcc_cv_ld_sol2_emulation
=no
29150 if test $in_tree_ld = yes ; then
29151 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29152 "$gcc_cv_gld_minor_version" -ge 21 -o \
29153 "$gcc_cv_gld_major_version" -gt 2 \
29154 && test $in_tree_ld_is_elf = yes; then
29155 gcc_cv_ld_sol2_emulation
=yes
29157 elif test x
$gcc_cv_ld != x
; then
29158 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
29159 grep _sol2
> /dev
/null
; then
29160 gcc_cv_ld_sol2_emulation
=yes
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29165 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29166 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
29168 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29173 $as_echo_n "checking linker --sysroot support... " >&6; }
29174 if test "${gcc_cv_ld_sysroot+set}" = set; then :
29175 $as_echo_n "(cached) " >&6
29177 gcc_cv_ld_sysroot
=no
29178 if test $in_tree_ld = yes ; then
29179 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
29180 gcc_cv_ld_sysroot
=yes
29182 elif test x
$gcc_cv_ld != x
; then
29183 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
29184 gcc_cv_ld_sysroot
=yes
29188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29189 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29190 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
29192 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29198 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29200 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29201 if test "${gcc_cv_solaris_crts+set}" = set; then :
29202 $as_echo_n "(cached) " >&6
29204 gcc_cv_solaris_crts
=no
29205 if test x
$host != x
$target; then
29206 if test "x$with_sysroot" = xyes
; then
29207 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
29209 target_sysroot
="${with_sysroot}"
29212 target_libdir
="$target_sysroot/usr/lib"
29213 # At the time they were added, gcrt1.o became a symlink for backwards
29214 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29216 i?
86-*-solaris2* | x86_64-
*-solaris2*)
29217 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
29219 sparc
*-*-solaris2*)
29220 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
29224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29225 $as_echo "$gcc_cv_solaris_crts" >&6; }
29228 if test x
$gcc_cv_solaris_crts = xyes
; then
29230 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29234 # Check whether --enable-libssp was given.
29235 if test "${enable_libssp+set}" = set; then :
29236 enableval
=$enable_libssp; case "${enableval}" in
29240 as_fn_error
"unknown libssp setting $enableval" "$LINENO" 5
29246 # Test for stack protector support in target C library.
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29248 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29249 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
29250 $as_echo_n "(cached) " >&6
29252 gcc_cv_libc_provides_ssp
=no
29253 if test "x$enable_libssp" = "xno"; then
29254 gcc_cv_libc_provides_ssp
=yes
29255 elif test "x$enable_libssp" = "xyes"; then
29256 gcc_cv_libc_provides_ssp
=no
29260 # All versions of musl provide stack protector
29261 gcc_cv_libc_provides_ssp
=yes;;
29262 *-*-linux* |
*-*-kfreebsd*-gnu)
29263 # glibc 2.4 and later provides __stack_chk_fail and
29264 # either __stack_chk_guard, or TLS access to stack guard canary.
29266 if test $glibc_version_major -gt 2 \
29267 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29268 gcc_cv_libc_provides_ssp
=yes
29271 if test -f $target_header_dir/features.h \
29272 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29273 $target_header_dir/features.h
> /dev
/null
; then
29274 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29275 $target_header_dir/features.h
> /dev
/null
&& \
29276 test -f $target_header_dir/bits
/uClibc_config.h
&& \
29277 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29278 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
29279 gcc_cv_libc_provides_ssp
=yes
29281 # all versions of Bionic support stack protector
29282 elif test -f $target_header_dir/sys
/cdefs.h \
29283 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29284 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
29285 gcc_cv_libc_provides_ssp
=yes
29290 # Avoid complicated tests (see
29291 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29292 # simply assert that glibc does provide this, which is true for all
29293 # realistically usable GNU/Hurd configurations.
29294 # All supported versions of musl provide it as well
29295 gcc_cv_libc_provides_ssp
=yes;;
29296 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
29297 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29298 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
29299 gcc_cv_libc_provides_ssp
=yes
29301 echo "no __stack_chk_fail on this target"
29305 *) gcc_cv_libc_provides_ssp
=no
;;
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29310 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29312 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29314 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29318 # Check whether --enable-default-ssp was given.
29319 # Check whether --enable-default-ssp was given.
29320 if test "${enable_default_ssp+set}" = set; then :
29321 enableval
=$enable_default_ssp;
29322 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29324 ia64
*-*-*) enable_default_ssp
=no
;;
29325 *) enable_default_ssp
=$enableval ;;
29328 enable_default_ssp
=no
29331 enable_default_ssp
=no
29334 if test x
$enable_default_ssp = xyes
; then
29336 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29341 # Test for <sys/sdt.h> on the target.
29343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29344 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29346 if test -f $target_header_dir/sys
/sdt.h
; then
29349 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29353 $as_echo "$have_sys_sdt_h" >&6; }
29355 # Check if TFmode long double should be used by default or not.
29356 # Some glibc targets used DFmode long double, but with glibc 2.4
29357 # and later they can use TFmode.
29359 powerpc
*-*-linux* | \
29360 sparc
*-*-linux* | \
29364 # Check whether --with-long-double-128 was given.
29365 if test "${with_long_double_128+set}" = set; then :
29366 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29369 if test $glibc_version_major -gt 2 \
29370 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29371 gcc_cv_target_ldbl128
=yes
29374 gcc_cv_target_ldbl128
=no
29375 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29376 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29377 && gcc_cv_target_ldbl128
=yes
29384 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29386 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29390 # Check if TFmode long double target should use the IBM extended double or IEEE
29391 # 128-bit floating point formats if long doubles are 128-bits long. The long
29392 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29393 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29396 # Check whether --with-long-double-format was given.
29397 if test "${with_long_double_format+set}" = set; then :
29398 withval
=$with_long_double_format;
29399 case "$target:$with_long_double_format" in
29400 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
29403 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
29404 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29405 case "$with_cpu" in
29406 power7 | power8 | power9 | power1
*)
29410 as_fn_error
"Configuration option --with-long-double-format is only \
29411 supported if the default cpu is power7 or newer" "$LINENO" 5
29412 with_long_double_format
=""
29416 xpowerpc64
*-*-linux*:*)
29417 as_fn_error
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29418 with_long_double_format
=""
29421 as_fn_error
"Configure option --with-long-double-format is only supported \
29422 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29423 with_long_double_format
=""
29429 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29430 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29431 gcc_cv_libc_provides_hwcap_in_tcb
=no
29435 if test $glibc_version_major -gt 2 \
29436 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29437 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29441 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29443 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29448 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29449 gcc_cv_target_dl_iterate_phdr
=unknown
29451 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29452 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29453 # libdl there, both complicating its use and breaking compatibility
29454 # between Solaris 10 updates.
29455 *-*-solaris2.1
[1-9]*)
29456 # <link.h> needs both a dl_iterate_phdr declaration and support for
29457 # compilation with largefile support.
29458 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29459 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29460 gcc_cv_target_dl_iterate_phdr
=yes
29462 gcc_cv_target_dl_iterate_phdr
=no
29465 *-*-dragonfly* |
*-*-freebsd*)
29466 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29467 gcc_cv_target_dl_iterate_phdr
=yes
29469 gcc_cv_target_dl_iterate_phdr
=no
29473 gcc_cv_target_dl_iterate_phdr
=yes
29477 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29479 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29483 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29485 # We no longer support different GC mechanisms. Emit an error if
29486 # the user configures with --with-gc.
29488 # Check whether --with-gc was given.
29489 if test "${with_gc+set}" = set; then :
29490 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29494 # Libraries to use on the host. This will normally be set by the top
29495 # level Makefile. Here we simply capture the value for our Makefile.
29496 if test -z "${HOST_LIBS+set}"; then
29501 # Use the system's zlib library.
29503 # Use the system's zlib library.
29504 zlibdir
="-L\$(top_builddir)/../zlib"
29505 zlibinc
="-I\$(top_srcdir)/../zlib"
29507 # Check whether --with-system-zlib was given.
29508 if test "${with_system_zlib+set}" = set; then :
29509 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29522 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29523 # Check whether --enable-maintainer-mode was given.
29524 if test "${enable_maintainer_mode+set}" = set; then :
29525 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29532 $as_echo "$maintainer_mode" >&6; }
29534 if test "$maintainer_mode" = "yes"; then
29541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29542 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29543 # Check whether --enable-link-mutex was given.
29544 if test "${enable_link_mutex+set}" = set; then :
29545 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29551 $as_echo "$do_link_mutex" >&6; }
29553 if test "$do_link_mutex" = "yes"; then
29556 DO_LINK_MUTEX
=false
29564 # Make empty files to contain the specs and options for each language.
29565 # Then add #include lines to for a compiler that has specs and/or options.
29571 # These (without "all_") are set in each config-lang.in.
29572 # `language' must be a single word so is spelled singularly.
29575 all_outputs
='Makefile'
29576 # List of language makefile fragments.
29577 all_lang_makefrags
=
29578 # Additional files for gengtype
29579 all_gtfiles
="$target_gtfiles"
29581 # These are the languages that are set in --enable-languages,
29582 # and are available in the GCC tree.
29583 all_selected_languages
=
29585 # Add the language fragments.
29586 # Languages are added via two mechanisms. Some information must be
29587 # recorded in makefile variables, these are defined in config-lang.in.
29588 # We accumulate them and plug them into the main Makefile.
29589 # The other mechanism is a set of hooks for each of the main targets
29590 # like `clean', `install', etc.
29592 language_hooks
="Make-hooks"
29594 for lang
in ${srcdir}/*/config-lang.
in
29596 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29598 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29599 if test "x$lang_alias" = x
29601 echo "$lang doesn't set \$language." 1>&2
29604 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29605 subdirs
="$subdirs $subdir"
29607 # $gcc_subdir is where the gcc integration files are to be found
29608 # for a language, both for internal compiler purposes (compiler
29609 # sources implementing front-end to GCC tree converters), and for
29610 # build infrastructure purposes (Make-lang.in, etc.)
29612 # This will be <subdir> (relative to $srcdir) if a line like
29613 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29614 # is found in <langdir>/config-lang.in, and will remain <langdir>
29617 # Except for the language alias (fetched above), the regular
29618 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29619 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29620 # only this and the language alias.
29622 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29623 if [ "$gcc_subdir" = "" ]; then
29624 gcc_subdir
="$subdir"
29627 case ",$enable_languages," in
29629 all_selected_languages
="$all_selected_languages $lang_alias"
29630 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29631 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29642 .
${srcdir}/$gcc_subdir/config-lang.
in
29643 if test "x$language" = x
29645 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29650 case ",$enable_languages," in
29651 *,$lang_alias,*) ;;
29653 for i
in $subdir_requires; do
29654 test -f "${srcdir}/$i/config-lang.in" && continue
29662 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29663 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29664 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29665 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29667 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29668 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29670 all_languages
="$all_languages $language"
29671 all_compilers
="$all_compilers $compilers"
29672 all_outputs
="$all_outputs $outputs"
29673 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29674 case ",$enable_languages," in
29677 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29687 for language
in $all_selected_languages
29689 check_languages
="$check_languages check-$language"
29692 # We link each language in with a set of hooks, reached indirectly via
29693 # lang.${target}. Only do so for selected languages.
29697 target_list
="all.cross start.encap rest.encap tags \
29698 install-common install-man install-info install-pdf install-html dvi \
29699 pdf html uninstall info man srcextra srcman srcinfo \
29700 mostlyclean clean distclean maintainer-clean install-plugin"
29702 for t
in $target_list
29705 for lang
in $all_selected_languages
29709 echo "lang.$t: $x" >> Make-hooks
29713 # Option include files
29716 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29717 option_includes
="option-includes.mk"
29726 echo "dir ." > .gdbinit
29727 echo "dir ${srcdir}" >> .gdbinit
29728 if test x
$gdb_needs_out_file_path = xyes
29730 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29732 if test "x$subdirs" != x
; then
29735 echo "dir ${srcdir}/$s" >> .gdbinit
29738 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29739 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29741 # Put a breakpoint on __asan_report_error to help with debugging buffer
29744 *-fsanitize=address
*)
29745 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29749 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29753 # Find a directory in which to install a shared libgcc.
29755 # Check whether --enable-version-specific-runtime-libs was given.
29756 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29757 enableval
=$enable_version_specific_runtime_libs;
29761 # Substitute configuration variables
29825 if test x
${build} = x
${host} ; then
29826 if test x
${host} = x
${target} ; then
29827 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29829 echo "Links are now set up to build a cross-compiler" 1>&2
29830 echo " from ${host} to ${target}." 1>&2
29833 if test x
${host} = x
${target} ; then
29834 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29835 echo " for ${target}." 1>&2
29837 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29838 echo " from ${host} to ${target}." 1>&2
29847 if test "x${ISLLIBS}" != "x" ; then
29849 $as_echo "#define HAVE_isl 1" >>confdefs.h
29853 # Check for plugin support
29854 # Check whether --enable-plugin was given.
29855 if test "${enable_plugin+set}" = set; then :
29856 enableval
=$enable_plugin; enable_plugin
=$enableval
29858 enable_plugin
=yes; default_plugin
=yes
29867 # Since plugin support under MinGW is not as straightforward as on
29868 # other platforms (e.g., we have to link import library, etc), we
29869 # only enable it if explicitly requested.
29870 if test x
"$default_plugin" = x
"yes"; then
29872 elif test x
"$enable_plugin" = x
"yes"; then
29873 # Use make's target variable to derive import library name.
29874 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29879 if test x
$build = x
$host; then
29880 export_sym_check
="nm${exeext} -g"
29881 elif test x
$host = x
$target; then
29882 export_sym_check
="$gcc_cv_nm -g"
29888 if test x
$build = x
$host; then
29889 export_sym_check
="objdump${exeext} -T"
29890 elif test x
$host = x
$target; then
29891 export_sym_check
="$gcc_cv_objdump -T"
29898 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29901 $as_echo_n "checking for exported symbols... " >&6; }
29902 if test "x$export_sym_check" != x
; then
29903 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29904 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29905 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
29906 : # No need to use a flag
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29908 $as_echo "yes" >&6; }
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29911 $as_echo "yes" >&6; }
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29913 $as_echo_n "checking for -rdynamic... " >&6; }
29914 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29915 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
29916 plugin_rdynamic
=yes
29917 pluginlibs
="-rdynamic"
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29923 $as_echo "$plugin_rdynamic" >&6; }
29926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29927 $as_echo "unable to check" >&6; }
29932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29933 $as_echo_n "checking for library containing dlopen... " >&6; }
29934 if test "${ac_cv_search_dlopen+set}" = set; then :
29935 $as_echo_n "(cached) " >&6
29937 ac_func_search_save_LIBS
=$LIBS
29938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29939 /* end confdefs.h. */
29941 /* Override any GCC internal prototype to avoid an error.
29942 Use char because int might match the return type of a GCC
29943 builtin and then its argument prototype would still apply. */
29956 for ac_lib
in '' dl
; do
29957 if test -z "$ac_lib"; then
29958 ac_res
="none required"
29961 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29963 if ac_fn_cxx_try_link
"$LINENO"; then :
29964 ac_cv_search_dlopen
=$ac_res
29966 rm -f core conftest.err conftest.
$ac_objext \
29968 if test "${ac_cv_search_dlopen+set}" = set; then :
29972 if test "${ac_cv_search_dlopen+set}" = set; then :
29975 ac_cv_search_dlopen
=no
29977 rm conftest.
$ac_ext
29978 LIBS
=$ac_func_search_save_LIBS
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29981 $as_echo "$ac_cv_search_dlopen" >&6; }
29982 ac_res
=$ac_cv_search_dlopen
29983 if test "$ac_res" != no
; then :
29984 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29988 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29989 pluginlibs
="$pluginlibs -ldl"
29993 # Check that we can build shared objects with -fPIC -shared
29994 saved_LDFLAGS
="$LDFLAGS"
29995 saved_CFLAGS
="$CFLAGS"
29998 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29999 CFLAGS
="$CFLAGS -fPIC"
30000 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
30003 CFLAGS
="$CFLAGS -fPIC"
30004 LDFLAGS
="$LDFLAGS -fPIC -shared"
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30008 $as_echo_n "checking for -fPIC -shared... " >&6; }
30009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30010 /* end confdefs.h. */
30020 if ac_fn_cxx_try_link
"$LINENO"; then :
30021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30022 $as_echo "yes" >&6; }; have_pic_shared
=yes
30024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30025 $as_echo "no" >&6; }; have_pic_shared
=no
30027 rm -f core conftest.err conftest.
$ac_objext \
30028 conftest
$ac_exeext conftest.
$ac_ext
30029 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
30033 LDFLAGS
="$saved_LDFLAGS"
30034 CFLAGS
="$saved_CFLAGS"
30036 # If plugin support had been requested but not available, fail.
30037 if test x
"$enable_plugin" = x
"no" ; then
30038 if test x
"$default_plugin" != x
"yes"; then
30040 Building GCC with plugin support requires a host that supports
30041 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30048 if test x
"$enable_plugin" = x
"yes"; then
30050 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30055 # Enable --enable-host-shared
30056 # Check whether --enable-host-shared was given.
30057 if test "${enable_host_shared+set}" = set; then :
30058 enableval
=$enable_host_shared; PICFLAG
=-fPIC
30067 # Check whether --enable-libquadmath-support was given.
30068 if test "${enable_libquadmath_support+set}" = set; then :
30069 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
30071 ENABLE_LIBQUADMATH_SUPPORT
=yes
30074 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30076 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30081 # Specify what hash style to use by default.
30083 # Check whether --with-linker-hash-style was given.
30084 if test "${with_linker_hash_style+set}" = set; then :
30085 withval
=$with_linker_hash_style; case x
"$withval" in
30087 LINKER_HASH_STYLE
=sysv
30090 LINKER_HASH_STYLE
=gnu
30093 LINKER_HASH_STYLE
=both
30096 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30100 LINKER_HASH_STYLE
=''
30103 if test x
"${LINKER_HASH_STYLE}" != x
; then
30105 cat >>confdefs.h
<<_ACEOF
30106 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30111 # Specify what should be the default of -fdiagnostics-color option.
30113 # Check whether --with-diagnostics-color was given.
30114 if test "${with_diagnostics_color+set}" = set; then :
30115 withval
=$with_diagnostics_color; case x
"$withval" in
30117 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
30120 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30123 DIAGNOSTICS_COLOR_DEFAULT
=-1
30126 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
30129 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30133 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30137 cat >>confdefs.h
<<_ACEOF
30138 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30142 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30143 # of jit/jit-playback.c.
30144 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30145 echo "gcc_driver_version: ${gcc_driver_version}"
30146 cat > gcc-driver-name.h
<<EOF
30147 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30150 # Check whether --enable-default-pie was given.
30151 # Check whether --enable-default-pie was given.
30152 if test "${enable_default_pie+set}" = set; then :
30153 enableval
=$enable_default_pie; enable_default_pie
=$enableval
30155 enable_default_pie
=no
30158 if test x
$enable_default_pie = xyes
; then
30160 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30165 # Check if -fno-PIE works.
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30167 $as_echo_n "checking for -fno-PIE option... " >&6; }
30168 if test "${gcc_cv_c_no_fpie+set}" = set; then :
30169 $as_echo_n "(cached) " >&6
30171 saved_CXXFLAGS
="$CXXFLAGS"
30172 CXXFLAGS
="$CXXFLAGS -fno-PIE"
30173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30174 /* end confdefs.h. */
30175 int main(void) {return 0;}
30177 if ac_fn_cxx_try_compile
"$LINENO"; then :
30178 gcc_cv_c_no_fpie
=yes
30180 gcc_cv_c_no_fpie
=no
30182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30183 CXXFLAGS
="$saved_CXXFLAGS"
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30186 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30187 if test "$gcc_cv_c_no_fpie" = "yes"; then
30188 NO_PIE_CFLAGS
="-fno-PIE"
30192 # Check if -no-pie works.
30193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30194 $as_echo_n "checking for -no-pie option... " >&6; }
30195 if test "${gcc_cv_no_pie+set}" = set; then :
30196 $as_echo_n "(cached) " >&6
30198 saved_LDFLAGS
="$LDFLAGS"
30199 LDFLAGS
="$LDFLAGS -no-pie"
30200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30201 /* end confdefs.h. */
30202 int main(void) {return 0;}
30204 if ac_fn_cxx_try_link
"$LINENO"; then :
30209 rm -f core conftest.err conftest.
$ac_objext \
30210 conftest
$ac_exeext conftest.
$ac_ext
30211 LDFLAGS
="$saved_LDFLAGS"
30213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30214 $as_echo "$gcc_cv_no_pie" >&6; }
30215 if test "$gcc_cv_no_pie" = "yes"; then
30216 NO_PIE_FLAG
="-no-pie"
30220 # Check linker supports '-z bndplt'
30221 ld_bndplt_support
=no
30222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30223 $as_echo_n "checking linker -z bndplt option... " >&6; }
30224 if test x
"$ld_is_gold" = xno
; then
30225 if test $in_tree_ld = yes ; then
30226 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
30227 ld_bndplt_support
=yes
30229 elif test x
$gcc_cv_ld != x
; then
30230 # Check if linker supports -a bndplt option
30231 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
30232 ld_bndplt_support
=yes
30236 if test x
"$ld_bndplt_support" = xyes
; then
30238 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30242 $as_echo "$ld_bndplt_support" >&6; }
30244 # Check linker supports '--push-state'/'--pop-state'
30245 ld_pushpopstate_support
=no
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30247 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30248 if test x
"$ld_is_gold" = xno
; then
30249 if test $in_tree_ld = yes ; then
30250 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
30251 ld_pushpopstate_support
=yes
30253 elif test x
$gcc_cv_ld != x
; then
30254 # Check if linker supports --push-state/--pop-state options
30255 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
30256 ld_pushpopstate_support
=yes
30260 if test x
"$ld_pushpopstate_support" = xyes
; then
30262 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30266 $as_echo "$ld_pushpopstate_support" >&6; }
30268 # Configure the subdirectories
30269 # AC_CONFIG_SUBDIRS($subdirs)
30271 # Create the Makefile
30272 # and configure language subdirectories
30273 ac_config_files
="$ac_config_files $all_outputs"
30276 ac_config_commands
="$ac_config_commands default"
30278 cat >confcache
<<\_ACEOF
30279 # This file is a shell script that caches the results of configure
30280 # tests run on this system so they can be shared between configure
30281 # scripts and configure runs, see configure's option --config-cache.
30282 # It is not useful on other systems. If it contains results you don't
30283 # want to keep, you may remove or edit it.
30285 # config.status only pays attention to the cache file if you give it
30286 # the --recheck option to rerun configure.
30288 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30289 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30290 # following values.
30294 # The following way of writing the cache mishandles newlines in values,
30295 # but we know of no workaround that is simple, portable, and efficient.
30296 # So, we kill variables containing newlines.
30297 # Ultrix sh set writes to stderr and can't be redirected directly,
30298 # and sets the high bit in the cache file unless we assign to the vars.
30300 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30301 eval ac_val
=\$
$ac_var
30305 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30306 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30309 _ | IFS | as_nl
) ;; #(
30310 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30311 *) { eval $ac_var=; unset $ac_var;} ;;
30317 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30318 *${as_nl}ac_space
=\
*)
30319 # `set' does not quote correctly, so add quotes: double-quote
30320 # substitution turns \\\\ into \\, and sed turns \\ into \.
30323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30326 # `set' quotes correctly as required by POSIX, so do not add quotes.
30327 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30336 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30338 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30340 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30341 if test -w "$cache_file"; then
30342 test "x$cache_file" != "x/dev/null" &&
30343 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30344 $as_echo "$as_me: updating cache $cache_file" >&6;}
30345 cat confcache
>$cache_file
30347 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30348 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30353 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30354 # Let make expand exec_prefix.
30355 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30357 DEFS
=-DHAVE_CONFIG_H
30361 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30362 # 1. Remove the extension, and $U if already installed.
30363 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30364 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30365 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30366 # will be set to the directory where LIBOBJS objects are built.
30367 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30368 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30370 LIBOBJS
=$ac_libobjs
30372 LTLIBOBJS
=$ac_ltlibobjs
30377 : ${CONFIG_STATUS=./config.status}
30379 ac_clean_files_save
=$ac_clean_files
30380 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30382 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30384 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30386 # Generated by $as_me.
30387 # Run this file to recreate the current configuration.
30388 # Compiler output produced by configure, useful for debugging
30389 # configure, is in config.log if it exists.
30392 ac_cs_recheck=false
30395 SHELL=\${CONFIG_SHELL-$SHELL}
30398 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30399 ## -------------------- ##
30400 ## M4sh Initialization. ##
30401 ## -------------------- ##
30403 # Be more Bourne compatible
30404 DUALCASE
=1; export DUALCASE
# for MKS sh
30405 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30408 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30409 # is contrary to our usage. Disable this feature.
30410 alias -g '${1+"$@"}'='"$@"'
30411 setopt NO_GLOB_SUBST
30413 case `(set -o) 2>/dev/null` in #(
30425 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30426 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30427 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30428 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30429 # Prefer a ksh shell builtin over an external printf program on Solaris,
30430 # but without wasting forks for bash or zsh.
30431 if test -z "$BASH_VERSION$ZSH_VERSION" \
30432 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30433 as_echo='print
-r --'
30434 as_echo_n='print
-rn --'
30435 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30436 as_echo='printf %s
\n'
30437 as_echo_n='printf %s
'
30439 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30440 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30441 as_echo_n='/usr
/ucb
/echo -n'
30443 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30444 as_echo_n_body='eval
30448 expr "X$arg" : "X\\(.*\\)$as_nl";
30449 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30451 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30453 export as_echo_n_body
30454 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30456 export as_echo_body
30457 as_echo='sh
-c $as_echo_body as_echo
'
30460 # The user is always right.
30461 if test "${PATH_SEPARATOR+set}" != set; then
30463 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30464 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30471 # We need space, tab and new line, in precisely that order. Quoting is
30472 # there to prevent editors from complaining about space-tab.
30473 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30474 # splitting by setting IFS to empty value.)
30477 # Find who we are. Look in the path if we contain no directory separator.
30479 *[\\/]* ) as_myself=$0 ;;
30480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30481 for as_dir in $PATH
30484 test -z "$as_dir" && as_dir=.
30485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30491 # We did not find ourselves, most probably we were run as `sh COMMAND'
30492 # in which case we are not to be found in the path.
30493 if test "x$as_myself" = x
; then
30496 if test ! -f "$as_myself"; then
30497 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30501 # Unset variables that we do not need and which cause bugs (e.g. in
30502 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30503 # suppresses any "Segmentation fault" message there. '((' could
30504 # trigger a bug in pdksh 5.2.14.
30505 for as_var
in BASH_ENV ENV MAIL MAILPATH
30506 do eval test x\
${$as_var+set} = xset \
30507 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30520 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30523 # as_fn_error ERROR [LINENO LOG_FD]
30524 # ---------------------------------
30525 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30526 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30527 # script with status $?, using 1 if that was 0.
30530 as_status
=$?
; test $as_status -eq 0 && as_status
=1
30532 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30533 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30535 $as_echo "$as_me: error: $1" >&2
30536 as_fn_exit
$as_status
30540 # as_fn_set_status STATUS
30541 # -----------------------
30542 # Set $? to STATUS, without forking.
30543 as_fn_set_status
()
30546 } # as_fn_set_status
30548 # as_fn_exit STATUS
30549 # -----------------
30550 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30554 as_fn_set_status
$1
30560 # Portably unset VAR.
30563 { eval $1=; unset $1;}
30565 as_unset
=as_fn_unset
30566 # as_fn_append VAR VALUE
30567 # ----------------------
30568 # Append the text in VALUE to the end of the definition contained in VAR. Take
30569 # advantage of any shell optimizations that allow amortized linear growth over
30570 # repeated appends, instead of the typical quadratic growth present in naive
30572 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30573 eval 'as_fn_append ()
30584 # as_fn_arith ARG...
30585 # ------------------
30586 # Perform arithmetic evaluation on the ARGs, and store the result in the
30587 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30588 # must be portable across $(()) and expr.
30589 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30590 eval 'as_fn_arith ()
30597 as_val
=`expr "$@" || test $? -eq 1`
30602 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30603 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30609 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30610 as_basename
=basename
30615 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30621 as_me
=`$as_basename -- "$0" ||
30622 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30623 X"$0" : 'X\(//\)$' \| \
30624 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30626 sed '/^.*\/\([^/][^/]*\)\/*$/{
30640 # Avoid depending upon Character Ranges.
30641 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30642 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30643 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30644 as_cr_digits
='0123456789'
30645 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30647 ECHO_C
= ECHO_N
= ECHO_T
=
30648 case `echo -n x` in #(((((
30650 case `echo 'xy\c'` in
30651 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30653 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30660 rm -f conf$$ conf$$.exe conf$$.
file
30661 if test -d conf$$.dir
; then
30662 rm -f conf$$.dir
/conf$$.
file
30665 mkdir conf$$.dir
2>/dev
/null
30667 if (echo >conf$$.
file) 2>/dev
/null
; then
30668 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30670 # ... but there are two gotchas:
30671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30673 # In both cases, we have to default to `cp -p'.
30674 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30676 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30684 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30685 rmdir conf$$.dir
2>/dev
/null
30690 # Create "$as_dir" as a directory, including parents if necessary.
30695 -*) as_dir
=.
/$as_dir;;
30697 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30701 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30702 *) as_qdir
=$as_dir;;
30704 as_dirs
="'$as_qdir' $as_dirs"
30705 as_dir
=`$as_dirname -- "$as_dir" ||
30706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30707 X"$as_dir" : 'X\(//\)[^/]' \| \
30708 X"$as_dir" : 'X\(//\)$' \| \
30709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30710 $as_echo X"$as_dir" |
30711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30715 /^X\(\/\/\)[^/].*/{
30728 test -d "$as_dir" && break
30730 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30731 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30735 if mkdir
-p .
2>/dev
/null
; then
30736 as_mkdir_p
='mkdir -p "$as_dir"'
30738 test -d .
/-p && rmdir .
/-p
30742 if test -x / >/dev
/null
2>&1; then
30743 as_test_x
='test -x'
30745 if ls -dL / >/dev
/null
2>&1; then
30752 if test -d "$1"; then
30758 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30759 ???[sx]*):;;*)false;;esac;fi
30763 as_executable_p
=$as_test_x
30765 # Sed expression to map a string onto a valid CPP name.
30766 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30768 # Sed expression to map a string onto a valid variable name.
30769 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30773 ## ----------------------------------- ##
30774 ## Main body of $CONFIG_STATUS script. ##
30775 ## ----------------------------------- ##
30777 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30780 # Save the log message, to keep $0 and so on meaningful, and to
30781 # report actual input values of CONFIG_FILES etc. instead of their
30782 # values after options handling.
30784 This file was extended by $as_me, which was
30785 generated by GNU Autoconf 2.64. Invocation command line was
30787 CONFIG_FILES = $CONFIG_FILES
30788 CONFIG_HEADERS = $CONFIG_HEADERS
30789 CONFIG_LINKS = $CONFIG_LINKS
30790 CONFIG_COMMANDS = $CONFIG_COMMANDS
30793 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30798 case $ac_config_files in *"
30799 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30802 case $ac_config_headers in *"
30803 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30808 # Files that config.status was made for.
30809 config_files="$ac_config_files"
30810 config_headers="$ac_config_headers"
30811 config_links="$ac_config_links"
30812 config_commands="$ac_config_commands"
30816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30818 \`$as_me' instantiates files and other configuration actions
30819 from templates according to the current configuration. Unless the files
30820 and actions are specified as TAGs, all are instantiated by default.
30822 Usage: $0 [OPTION]... [TAG]...
30824 -h, --help print this help, then exit
30825 -V, --version print version number and configuration settings, then exit
30826 -q, --quiet, --silent
30827 do not print progress messages
30828 -d, --debug don't remove temporary files
30829 --recheck update $as_me by reconfiguring in the same conditions
30830 --file=FILE[:TEMPLATE]
30831 instantiate the configuration file FILE
30832 --header=FILE[:TEMPLATE]
30833 instantiate the configuration header FILE
30835 Configuration files:
30838 Configuration headers:
30841 Configuration links:
30844 Configuration commands:
30847 Report bugs to the package provider."
30850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30853 configured by $0, generated by GNU Autoconf 2.64,
30854 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30856 Copyright (C) 2009 Free Software Foundation, Inc.
30857 This config.status script is free software; the Free Software Foundation
30858 gives unlimited permission to copy, distribute and modify it."
30863 test -n "\$AWK" || AWK=awk
30866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30867 # The default lists apply if the user does not specify any file.
30873 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30874 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30885 # Handling of the options.
30886 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30888 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30889 $as_echo "$ac_cs_version"; exit ;;
30890 --debug |
--debu |
--deb |
--de |
--d |
-d )
30892 --file |
--fil |
--fi |
--f )
30895 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30897 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30898 ac_need_defaults
=false
;;
30899 --header |
--heade |
--head |
--hea )
30902 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30904 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30905 ac_need_defaults
=false
;;
30907 # Conflict between --help and --header
30908 as_fn_error
"ambiguous option: \`$1'
30909 Try \`$0 --help' for more information.";;
30910 --help |
--hel |
-h )
30911 $as_echo "$ac_cs_usage"; exit ;;
30912 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30913 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30916 # This is an error.
30917 -*) as_fn_error
"unrecognized option: \`$1'
30918 Try \`$0 --help' for more information." ;;
30920 *) as_fn_append ac_config_targets
" $1"
30921 ac_need_defaults
=false
;;
30927 ac_configure_extra_args
=
30929 if $ac_cs_silent; then
30931 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30936 if \$ac_cs_recheck; then
30937 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30939 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30940 CONFIG_SHELL='$SHELL'
30941 export CONFIG_SHELL
30946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30950 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30951 ## Running $as_me. ##
30957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30961 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30962 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30969 # Handling of arguments.
30970 for ac_config_target
in $ac_config_targets
30972 case $ac_config_target in
30973 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30974 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30975 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30976 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30977 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30978 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30979 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30980 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30981 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30983 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30988 # If the user did not use the arguments to specify the items to instantiate,
30989 # then the envvar interface is used. Set only those that are not.
30990 # We use the long form for the default assignment because of an extremely
30991 # bizarre bug on SunOS 4.1.3.
30992 if $ac_need_defaults; then
30993 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30994 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30995 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30996 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30999 # Have a temporary directory for convenience. Make it in the build tree
31000 # simply because there is no reason against having it here, and in addition,
31001 # creating and moving files from /tmp can sometimes cause problems.
31002 # Hook for its removal unless debugging.
31003 # Note that there is a small window in which the directory will not be cleaned:
31004 # after its creation but before its name has been assigned to `$tmp'.
31008 trap 'exit_status=$?
31009 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31011 trap 'as_fn_exit 1' 1 2 13 15
31013 # Create a (secure) tmp directory for tmp files.
31016 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31017 test -n "$tmp" && test -d "$tmp"
31020 tmp
=.
/conf$$
-$RANDOM
31021 (umask 077 && mkdir
"$tmp")
31022 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
31024 # Set up the scripts for CONFIG_FILES section.
31025 # No need to generate them if there are no CONFIG_FILES.
31026 # This happens for instance with `./config.status config.h'.
31027 if test -n "$CONFIG_FILES"; then
31029 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
31030 ac_cs_awk_getline
=:
31031 ac_cs_awk_pipe_init
=
31032 ac_cs_awk_read_file
='
31033 while ((getline aline < (F[key])) > 0)
31036 ac_cs_awk_pipe_fini
=
31038 ac_cs_awk_getline
=false
31039 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
31040 ac_cs_awk_read_file
='
31042 print "cat " F[key] " &&"
31043 '$ac_cs_awk_pipe_init
31044 # The final `:' finishes the AND list.
31045 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
31047 ac_cr
=`echo X | tr X '\015'`
31048 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31049 # But we know of no other shell where ac_cr would be empty at this
31050 # point, so we can use a bashism as a fallback.
31051 if test "x$ac_cr" = x
; then
31052 eval ac_cr
=\$
\'\\r
\'
31054 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31055 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31058 ac_cs_awk_cr
=$ac_cr
31061 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31064 # Create commands to substitute file output variables.
31066 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31067 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31068 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
31071 } >conf$
$files.sh
&&
31072 . .
/conf$
$files.sh ||
31073 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
31074 rm -f conf$
$files.sh
31077 echo "cat >conf$$subs.awk <<_ACEOF" &&
31078 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31080 } >conf$$subs.sh ||
31081 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
31082 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31084 for ac_last_try in false false false false false :; do
31085 . ./conf$$subs.sh ||
31086 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
31088 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
31089 if test $ac_delim_n = $ac_delim_num; then
31091 elif $ac_last_try; then
31092 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
31094 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31097 rm -f conf$$subs.sh
31099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31100 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
31104 s/^/S["/; s
/!.
*/"]=/
31114 s/\(.\{148\}\).*/\1/
31116 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31121 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31128 s/\(.\{148\}\).*/\1/
31130 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31134 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31139 ' <conf$$subs.awk | sed '
31144 ' >>$CONFIG_STATUS || ac_write_fail=1
31145 rm -f conf$$subs.awk
31146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31148 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
31149 for (key in S) S_is_set[key] = 1
31151 \$ac_cs_awk_pipe_init
31155 nfields = split(line, field, "@
")
31157 len = length(field[1])
31158 for (i = 2; i < nfields; i++) {
31160 keylen = length(key)
31161 if (S_is_set[key]) {
31163 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31164 len += length(value) + length(field[++i])
31169 if (nfields == 3 && !substed) {
31171 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31172 \$ac_cs_awk_read_file
31178 \$ac_cs_awk_pipe_fini
31181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31182 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31183 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31186 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
31187 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
31190 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31191 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
31192 # trailing colons and then remove the whole line if VPATH becomes empty
31193 # (actually we leave an empty line to preserve line numbers).
31194 if test "x
$srcdir" = x.; then
31195 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31196 s/:*\$(srcdir):*/:/
31197 s/:*\${srcdir}:*/:/
31199 s/^\([^=]*=[ ]*\):*/\1/
31205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31206 fi # test -n "$CONFIG_FILES"
31208 # Set up the scripts for CONFIG_HEADERS section.
31209 # No need to generate them if there are no CONFIG_HEADERS.
31210 # This happens for instance with `./config.status Makefile'.
31211 if test -n "$CONFIG_HEADERS"; then
31212 cat >"$tmp/defines.
awk" <<\_ACAWK ||
31216 # Transform confdefs.h into an awk script `defines.awk', embedded as
31217 # here-document in config.status, that substitutes the proper values into
31218 # config.h.in to produce config.h.
31220 # Create a delimiter string that does not exist in confdefs.h, to ease
31221 # handling of long lines.
31223 for ac_last_try in false false :; do
31224 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
31225 if test -z "$ac_t"; then
31227 elif $ac_last_try; then
31228 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
31230 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31234 # For the awk script, D is an array of macro values keyed by name,
31235 # likewise P contains macro parameters if any. Preserve backslash
31236 # newline sequences.
31238 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31240 s/.\{148\}/&'"$ac_delim"'/g
31243 s/^[ ]*#[ ]*define[ ][ ]*/ /
31250 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31252 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31256 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31257 D["\
1"]=" \
3\\\\\\n
"\\/p
31259 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31264 s/.\{148\}/&'"$ac_delim"'/g
31269 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31272 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31274 ' <confdefs.h | sed '
31275 s/'"$ac_delim"'/"\\\
31276 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31279 for (key in D) D_is_set[key] = 1
31282 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31284 split(line, arg, " ")
31285 if (arg[1] == "#") {
31289 defundef
= substr
(arg
[1], 2)
31292 split(mac1
, mac2
, "(") #)
31294 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31295 if (D_is_set
[macro
]) {
31296 # Preserve the white space surrounding the "#".
31297 print prefix
"define", macro P
[macro
] D
[macro
]
31300 # Replace #undef with comments. This is necessary, for example,
31301 # in the case of _POSIX_SOURCE, which is predefined and required
31302 # on some systems where configure will not decide to define it.
31303 if (defundef
== "undef") {
31304 print
"/*", prefix defundef
, macro
, "*/"
31312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31313 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
31314 fi # test -n "$CONFIG_HEADERS"
31317 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31322 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31324 case $ac_mode$ac_tag in
31326 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31327 :[FH
]-) ac_tag
=-:-;;
31328 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31345 -) ac_f
="$tmp/stdin";;
31346 *) # Look for the file first in the build tree, then in the source tree
31347 # (if the path is not absolute). The absolute path cannot be DOS-style,
31348 # because $ac_f cannot contain `:'.
31352 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31354 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
31356 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31357 as_fn_append ac_file_inputs
" '$ac_f'"
31360 # Let's still pretend it is `configure' which instantiates (i.e., don't
31361 # use $as_me), people would be surprised to read:
31362 # /* config.h. Generated by config.status. */
31363 configure_input
='Generated from '`
31364 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31366 if test x
"$ac_file" != x-
; then
31367 configure_input
="$ac_file. $configure_input"
31368 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31369 $as_echo "$as_me: creating $ac_file" >&6;}
31371 # Neutralize special characters interpreted by sed in replacement strings.
31372 case $configure_input in #(
31373 *\
&* |
*\|
* |
*\\* )
31374 ac_sed_conf_input
=`$as_echo "$configure_input" |
31375 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31376 *) ac_sed_conf_input
=$configure_input;;
31380 *:-:* |
*:-) cat >"$tmp/stdin" \
31381 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
31386 ac_dir
=`$as_dirname -- "$ac_file" ||
31387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31388 X"$ac_file" : 'X\(//\)[^/]' \| \
31389 X"$ac_file" : 'X\(//\)$' \| \
31390 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31391 $as_echo X"$ac_file" |
31392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31396 /^X\(\/\/\)[^/].*/{
31409 as_dir
="$ac_dir"; as_fn_mkdir_p
31413 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31415 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31416 # A ".." for each directory in $ac_dir_suffix.
31417 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31418 case $ac_top_builddir_sub in
31419 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31420 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31423 ac_abs_top_builddir
=$ac_pwd
31424 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31425 # for backward compatibility:
31426 ac_top_builddir
=$ac_top_build_prefix
31429 .
) # We are building in place.
31431 ac_top_srcdir
=$ac_top_builddir_sub
31432 ac_abs_top_srcdir
=$ac_pwd ;;
31433 [\\/]* | ?
:[\\/]* ) # Absolute name.
31434 ac_srcdir
=$srcdir$ac_dir_suffix;
31435 ac_top_srcdir
=$srcdir
31436 ac_abs_top_srcdir
=$srcdir ;;
31437 *) # Relative name.
31438 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31439 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31440 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31442 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31454 # If the template does not know about datarootdir, expand it.
31455 # FIXME: This hack should be removed a few years after 2.60.
31456 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31467 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31468 *datarootdir
*) ac_datarootdir_seen
=yes;;
31469 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31471 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31474 ac_datarootdir_hack='
31475 s&@datadir@&$datadir&g
31476 s&@docdir@&$docdir&g
31477 s&@infodir@&$infodir&g
31478 s&@localedir@&$localedir&g
31479 s&@mandir@&$mandir&g
31480 s&\\\${datarootdir}&$datarootdir&g' ;;
31484 # Neutralize VPATH when `$srcdir' = `.'.
31485 # Shell code in configure.ac might set extrasub.
31486 # FIXME: do we really want to maintain this feature?
31487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31488 ac_sed_extra="$ac_vpsub
31491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31493 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31494 s|@configure_input@|
$ac_sed_conf_input|
;t t
31495 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31496 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31497 s
&@srcdir@
&$ac_srcdir&;t t
31498 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31499 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31500 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31501 s
&@builddir@
&$ac_builddir&;t t
31502 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31503 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31504 $ac_datarootdir_hack
31506 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31507 if $ac_cs_awk_getline; then
31508 $AWK -f "$tmp/subs.
awk"
31510 $AWK -f "$tmp/subs.
awk" | $SHELL
31512 || as_fn_error "could not create
$ac_file" "$LINENO" 5
31514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31515 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
31516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
31517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31518 which seems to be undefined. Please make sure it is defined." >&5
31519 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31520 which seems to be undefined. Please make sure it is defined." >&2;}
31524 -) cat "$tmp/out" && rm -f "$tmp/out";;
31525 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31527 || as_fn_error "could not create $ac_file" "$LINENO" 5
31533 if test x"$ac_file" != x-; then
31535 $as_echo "/* $configure_input */" \
31536 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31537 } >"$tmp/config.h" \
31538 || as_fn_error "could not create $ac_file" "$LINENO" 5
31539 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31540 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31541 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31544 mv "$tmp/config.h" "$ac_file" \
31545 || as_fn_error "could not create $ac_file" "$LINENO" 5
31548 $as_echo "/* $configure_input */" \
31549 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31550 || as_fn_error "could not create -" "$LINENO" 5
31558 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31561 # Prefer the file from the source tree if names are identical.
31562 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31563 ac_source=$srcdir/$ac_source
31566 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31567 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31569 if test ! -r "$ac_source"; then
31570 as_fn_error "$ac_source: file not found" "$LINENO" 5
31574 # Try a relative symlink, then a hard link, then a copy.
31576 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31577 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31579 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31580 ln "$ac_source" "$ac_file" 2>/dev/null ||
31581 cp -p "$ac_source" "$ac_file" ||
31582 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31585 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31586 $as_echo "$as_me: executing $ac_file commands" >&6;}
31591 case $ac_file$ac_mode in
31592 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31594 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31595 for lang in $subdirs c-family common
31597 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31599 "as":F) chmod +x as ;;
31600 "collect-ld":F) chmod +x collect-ld ;;
31601 "nm":F) chmod +x nm ;;
31603 case ${CONFIG_HEADERS} in
31604 *auto-host.h:config.in*)
31607 # Make sure all the subdirs exist.
31608 for d in $subdirs doc build common c-family
31610 test -d $d || mkdir $d
31620 ac_clean_files=$ac_clean_files_save
31622 test $ac_write_fail = 0 ||
31623 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31626 # configure is writing to config.log, and then calls config.status.
31627 # config.status does its own redirection, appending to config.log.
31628 # Unfortunately, on DOS this fails, as config.log is still kept open
31629 # by configure, so config.status won't be able to
write to it
; its
31630 # output is simply discarded. So we exec the FD to /dev/null,
31631 # effectively closing config.log, so it can be properly (re)opened and
31632 # appended to by config.status. When coming back to configure, we
31633 # need to make the FD available again.
31634 if test "$no_create" != yes; then
31636 ac_config_status_args
=
31637 test "$silent" = yes &&
31638 ac_config_status_args
="$ac_config_status_args --quiet"
31640 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31642 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31643 # would make configure fail if this is the last instruction.
31644 $ac_cs_success || as_fn_exit $?
31646 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31648 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}