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
686 ORIGINAL_NM_FOR_TARGET
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
693 ORIGINAL_AS_FOR_TARGET
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
722 BUILD_SYSTEM_HEADER_DIR
741 NATIVE_SYSTEM_HEADER_DIR
774 real_target_noncanonical
775 enable_as_accelerator
789 valgrind_path_defines
819 CROSS_SYSTEM_HEADER_DIR
820 TARGET_SYSTEM_ROOT_DEFINE
822 SYSROOT_CFLAGS_FOR_TARGET
868 program_transform_name
879 ac_subst_files
='option_includes
882 enable_option_checking
885 with_native_system_header_dir
890 enable_generated_files_in_srcdir
897 enable_build_format_warnings
901 enable_gather_detailed_mem_stats
902 enable_valgrind_annotations
922 enable_sjlj_exceptions
923 with_gcc_major_version_only
925 enable_mingw_wildcard
926 enable_leading_mingw64_underscores
929 enable_win32_registry
937 enable_gnu_indirect_function
938 enable_initfini_array
940 enable_fix_cortex_a53_835769
941 enable_fix_cortex_a53_843419
943 enable_gnu_unique_object
944 enable_linker_build_id
948 with_long_double_format
951 enable_maintainer_mode
953 enable_version_specific_runtime_libs
956 enable_libquadmath_support
957 with_linker_hash_style
958 with_diagnostics_color
961 ac_precious_vars
='build_alias
980 # Initialize some variables set by options.
982 ac_init_version
=false
983 ac_unrecognized_opts
=
985 # The variables have the same names as the options, with
986 # dashes changed to underlines.
994 program_transform_name
=s
,x
,x
,
1002 # Installation directory options.
1003 # These are left unexpanded so users can "make install exec_prefix=/foo"
1004 # and all the variables that are supposed to be based on exec_prefix
1005 # by default will actually change.
1006 # Use braces instead of parens because sh, perl, etc. also accept them.
1007 # (The list follows the same order as the GNU Coding Standards.)
1008 bindir
='${exec_prefix}/bin'
1009 sbindir
='${exec_prefix}/sbin'
1010 libexecdir
='${exec_prefix}/libexec'
1011 datarootdir
='${prefix}/share'
1012 datadir
='${datarootdir}'
1013 sysconfdir
='${prefix}/etc'
1014 sharedstatedir
='${prefix}/com'
1015 localstatedir
='${prefix}/var'
1016 includedir
='${prefix}/include'
1017 oldincludedir
='/usr/include'
1018 docdir
='${datarootdir}/doc/${PACKAGE}'
1019 infodir
='${datarootdir}/info'
1024 libdir
='${exec_prefix}/lib'
1025 localedir
='${datarootdir}/locale'
1026 mandir
='${datarootdir}/man'
1032 # If the previous option needs an argument, assign it.
1033 if test -n "$ac_prev"; then
1034 eval $ac_prev=\
$ac_option
1040 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1044 # Accept the important Cygnus configure options, so we can diagnose typos.
1046 case $ac_dashdash$ac_option in
1050 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1052 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1053 bindir
=$ac_optarg ;;
1055 -build |
--build |
--buil |
--bui |
--bu)
1056 ac_prev
=build_alias
;;
1057 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1058 build_alias
=$ac_optarg ;;
1060 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1061 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1062 ac_prev
=cache_file
;;
1063 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1064 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1065 cache_file
=$ac_optarg ;;
1067 --config-cache |
-C)
1068 cache_file
=config.cache
;;
1070 -datadir |
--datadir |
--datadi |
--datad)
1072 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1073 datadir
=$ac_optarg ;;
1075 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1076 |
--dataroo |
--dataro |
--datar)
1077 ac_prev
=datarootdir
;;
1078 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1079 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1080 datarootdir
=$ac_optarg ;;
1082 -disable-* |
--disable-*)
1083 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1086 as_fn_error
"invalid feature name: $ac_useropt"
1087 ac_useropt_orig
=$ac_useropt
1088 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1091 "enable_
$ac_useropt"
1093 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1094 ac_unrecognized_sep
=', ';;
1096 eval enable_
$ac_useropt=no
;;
1098 -docdir |
--docdir |
--docdi |
--doc |
--do)
1100 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1101 docdir
=$ac_optarg ;;
1103 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1105 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1106 dvidir
=$ac_optarg ;;
1108 -enable-* |
--enable-*)
1109 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1112 as_fn_error
"invalid feature name: $ac_useropt"
1113 ac_useropt_orig
=$ac_useropt
1114 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1117 "enable_
$ac_useropt"
1119 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1120 ac_unrecognized_sep
=', ';;
1122 eval enable_
$ac_useropt=\
$ac_optarg ;;
1124 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1125 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1126 |
--exec |
--exe |
--ex)
1127 ac_prev
=exec_prefix
;;
1128 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1129 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1130 |
--exec=* |
--exe=* |
--ex=*)
1131 exec_prefix
=$ac_optarg ;;
1133 -gas |
--gas |
--ga |
--g)
1134 # Obsolete; use --with-gas.
1137 -help |
--help |
--hel |
--he |
-h)
1138 ac_init_help
=long
;;
1139 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1140 ac_init_help
=recursive
;;
1141 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1142 ac_init_help
=short
;;
1144 -host |
--host |
--hos |
--ho)
1145 ac_prev
=host_alias
;;
1146 -host=* |
--host=* |
--hos=* |
--ho=*)
1147 host_alias
=$ac_optarg ;;
1149 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1151 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1153 htmldir
=$ac_optarg ;;
1155 -includedir |
--includedir |
--includedi |
--included |
--include \
1156 |
--includ |
--inclu |
--incl |
--inc)
1157 ac_prev
=includedir
;;
1158 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1159 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1160 includedir
=$ac_optarg ;;
1162 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1164 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1165 infodir
=$ac_optarg ;;
1167 -libdir |
--libdir |
--libdi |
--libd)
1169 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1170 libdir
=$ac_optarg ;;
1172 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1173 |
--libexe |
--libex |
--libe)
1174 ac_prev
=libexecdir
;;
1175 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1176 |
--libexe=* |
--libex=* |
--libe=*)
1177 libexecdir
=$ac_optarg ;;
1179 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1180 ac_prev
=localedir
;;
1181 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1182 localedir
=$ac_optarg ;;
1184 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1185 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1186 ac_prev
=localstatedir
;;
1187 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1188 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1189 localstatedir
=$ac_optarg ;;
1191 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1193 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1194 mandir
=$ac_optarg ;;
1196 -nfp |
--nfp |
--nf)
1197 # Obsolete; use --without-fp.
1200 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1201 |
--no-cr |
--no-c |
-n)
1204 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1205 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1208 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1209 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1210 |
--oldin |
--oldi |
--old |
--ol |
--o)
1211 ac_prev
=oldincludedir
;;
1212 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1213 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1214 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1215 oldincludedir
=$ac_optarg ;;
1217 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1219 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1220 prefix
=$ac_optarg ;;
1222 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1223 |
--program-pre |
--program-pr |
--program-p)
1224 ac_prev
=program_prefix
;;
1225 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1226 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1227 program_prefix
=$ac_optarg ;;
1229 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1230 |
--program-suf |
--program-su |
--program-s)
1231 ac_prev
=program_suffix
;;
1232 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1233 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1234 program_suffix
=$ac_optarg ;;
1236 -program-transform-name |
--program-transform-name \
1237 |
--program-transform-nam |
--program-transform-na \
1238 |
--program-transform-n |
--program-transform- \
1239 |
--program-transform |
--program-transfor \
1240 |
--program-transfo |
--program-transf \
1241 |
--program-trans |
--program-tran \
1242 |
--progr-tra |
--program-tr |
--program-t)
1243 ac_prev
=program_transform_name
;;
1244 -program-transform-name=* |
--program-transform-name=* \
1245 |
--program-transform-nam=* |
--program-transform-na=* \
1246 |
--program-transform-n=* |
--program-transform-=* \
1247 |
--program-transform=* |
--program-transfor=* \
1248 |
--program-transfo=* |
--program-transf=* \
1249 |
--program-trans=* |
--program-tran=* \
1250 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1251 program_transform_name
=$ac_optarg ;;
1253 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1255 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1256 pdfdir
=$ac_optarg ;;
1258 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1260 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1263 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1264 |
-silent |
--silent |
--silen |
--sile |
--sil)
1267 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1269 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1271 sbindir
=$ac_optarg ;;
1273 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1274 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1275 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1277 ac_prev
=sharedstatedir
;;
1278 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1279 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1280 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1282 sharedstatedir
=$ac_optarg ;;
1284 -site |
--site |
--sit)
1286 -site=* |
--site=* |
--sit=*)
1289 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1291 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1292 srcdir
=$ac_optarg ;;
1294 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1295 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1296 ac_prev
=sysconfdir
;;
1297 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1298 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1299 sysconfdir
=$ac_optarg ;;
1301 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1302 ac_prev
=target_alias
;;
1303 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1304 target_alias
=$ac_optarg ;;
1306 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1309 -version |
--version |
--versio |
--versi |
--vers |
-V)
1310 ac_init_version
=: ;;
1313 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1316 as_fn_error
"invalid package name: $ac_useropt"
1317 ac_useropt_orig
=$ac_useropt
1318 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319 case $ac_user_opts in
1323 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1324 ac_unrecognized_sep
=', ';;
1326 eval with_
$ac_useropt=\
$ac_optarg ;;
1328 -without-* |
--without-*)
1329 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1332 as_fn_error
"invalid package name: $ac_useropt"
1333 ac_useropt_orig
=$ac_useropt
1334 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1339 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1340 ac_unrecognized_sep
=', ';;
1342 eval with_
$ac_useropt=no
;;
1345 # Obsolete; use --with-x.
1348 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1349 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1350 ac_prev
=x_includes
;;
1351 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1352 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1353 x_includes
=$ac_optarg ;;
1355 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1356 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1357 ac_prev
=x_libraries
;;
1358 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1359 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1360 x_libraries
=$ac_optarg ;;
1362 -*) as_fn_error
"unrecognized option: \`$ac_option'
1363 Try \`$0 --help' for more information."
1367 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1368 # Reject names that are not valid shell variable names.
1369 case $ac_envvar in #(
1370 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1371 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1373 eval $ac_envvar=\
$ac_optarg
1374 export $ac_envvar ;;
1377 # FIXME: should be removed in autoconf 3.0.
1378 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1379 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1380 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1381 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1387 if test -n "$ac_prev"; then
1388 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1389 as_fn_error
"missing argument to $ac_option"
1392 if test -n "$ac_unrecognized_opts"; then
1393 case $enable_option_checking in
1395 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1396 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1400 # Check all directory arguments for consistency.
1401 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1402 datadir sysconfdir sharedstatedir localstatedir includedir \
1403 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1404 libdir localedir mandir
1406 eval ac_val
=\$
$ac_var
1407 # Remove trailing slashes.
1410 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1411 eval $ac_var=\
$ac_val;;
1413 # Be sure to have absolute directory names.
1415 [\\/$
]* | ?
:[\\/]* ) continue;;
1416 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1418 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1421 # There might be people who depend on the old broken behavior: `$host'
1422 # used to hold the argument of --host etc.
1423 # FIXME: To remove some day.
1426 target
=$target_alias
1428 # FIXME: To remove some day.
1429 if test "x$host_alias" != x
; then
1430 if test "x$build_alias" = x
; then
1431 cross_compiling
=maybe
1432 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1433 If a cross compiler is detected then cross compile mode will be used." >&2
1434 elif test "x$build_alias" != "x$host_alias"; then
1440 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1442 test "$silent" = yes && exec 6>/dev
/null
1445 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1446 ac_ls_di
=`ls -di .` &&
1447 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1448 as_fn_error
"working directory cannot be determined"
1449 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1450 as_fn_error
"pwd does not report name of working directory"
1453 # Find the source files, if location was not specified.
1454 if test -z "$srcdir"; then
1455 ac_srcdir_defaulted
=yes
1456 # Try the directory containing this script, then the parent directory.
1457 ac_confdir
=`$as_dirname -- "$as_myself" ||
1458 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1459 X"$as_myself" : 'X\(//\)[^/]' \| \
1460 X"$as_myself" : 'X\(//\)$' \| \
1461 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1462 $as_echo X"$as_myself" |
1463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1485 ac_srcdir_defaulted
=no
1487 if test ! -r "$srcdir/$ac_unique_file"; then
1488 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1489 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1491 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1493 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1495 # When building in place, set srcdir=.
1496 if test "$ac_abs_confdir" = "$ac_pwd"; then
1499 # Remove unnecessary trailing slashes from srcdir.
1500 # Double slashes in file names in object file debugging info
1501 # mess up M-x gdb in Emacs.
1503 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1505 for ac_var
in $ac_precious_vars; do
1506 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1507 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1508 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1509 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1513 # Report the --help message.
1515 if test "$ac_init_help" = "long"; then
1516 # Omit some internal or obsolete options to make the list less imposing.
1517 # This message is too long to be a string in the A/UX 3.1 sh.
1519 \`configure' configures this package to adapt to many kinds of systems.
1521 Usage: $0 [OPTION]... [VAR=VALUE]...
1523 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524 VAR=VALUE. See below for descriptions of some of the useful variables.
1526 Defaults for the options are specified in brackets.
1529 -h, --help display this help and exit
1530 --help=short display options specific to this package
1531 --help=recursive display the short help of all the included packages
1532 -V, --version display version information and exit
1533 -q, --quiet, --silent do not print \`checking...' messages
1534 --cache-file=FILE cache test results in FILE [disabled]
1535 -C, --config-cache alias for \`--cache-file=config.cache'
1536 -n, --no-create do not create output files
1537 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1539 Installation directories:
1540 --prefix=PREFIX install architecture-independent files in PREFIX
1541 [$ac_default_prefix]
1542 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1545 By default, \`make install' will install all the files in
1546 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1547 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548 for instance \`--prefix=\$HOME'.
1550 For better control, use the options below.
1552 Fine tuning of the installation directories:
1553 --bindir=DIR user executables [EPREFIX/bin]
1554 --sbindir=DIR system admin executables [EPREFIX/sbin]
1555 --libexecdir=DIR program executables [EPREFIX/libexec]
1556 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1557 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1558 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1559 --libdir=DIR object code libraries [EPREFIX/lib]
1560 --includedir=DIR C header files [PREFIX/include]
1561 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1562 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1563 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1564 --infodir=DIR info documentation [DATAROOTDIR/info]
1565 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1566 --mandir=DIR man documentation [DATAROOTDIR/man]
1567 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1568 --htmldir=DIR html documentation [DOCDIR]
1569 --dvidir=DIR dvi documentation [DOCDIR]
1570 --pdfdir=DIR pdf documentation [DOCDIR]
1571 --psdir=DIR ps documentation [DOCDIR]
1577 --program-prefix=PREFIX prepend PREFIX to installed program names
1578 --program-suffix=SUFFIX append SUFFIX to installed program names
1579 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1582 --build=BUILD configure
for building on BUILD
[guessed
]
1583 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1584 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1588 if test -n "$ac_init_help"; then
1593 --disable-option-checking ignore unrecognized
--enable/--with options
1594 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1595 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1596 --enable-generated-files-in-srcdir
1597 put copies of generated files
in source dir intended
1598 for creating
source tarballs
for users without
1599 texinfo bison or flex
1600 --disable-largefile omit support
for large files
1601 --disable-build-format-warnings
1602 don
't use -Wformat while building GCC
1603 --enable-werror-always enable -Werror despite compiler version
1604 --enable-checking[=LIST]
1605 enable expensive run-time checks. With LIST, enable
1606 only specific categories of checks. Categories are:
1607 yes,no,all,none,release. Flags are:
1608 assert,df,extra,fold,gc,gcac,gimple,misc,
1609 rtlflag,rtl,runtime,tree,valgrind,types
1610 --enable-coverage[=LEVEL]
1611 enable compiler's code coverage collection. Use to
1612 measure compiler performance and
locate unused parts
1613 of the compiler. With LEVEL
, specify optimization.
1614 Values are opt
, noopt
, default is noopt
1615 --enable-gather-detailed-mem-stats
1616 enable detailed memory allocation stats gathering
1617 --enable-valgrind-annotations
1618 enable valgrind runtime interaction
1619 --enable-multilib enable library support
for multiple ABIs
1620 --enable-multiarch enable support
for multiarch paths
1621 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1622 --enable-decimal-float={no
,yes,bid
,dpd
}
1623 enable decimal float extension to C. Selecting
'bid'
1624 or
'dpd' choses
which decimal floating point format
1626 --enable-fixed-point enable fixed-point arithmetic extension to C
1627 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1629 --enable-tls enable or disable generation of tls code overriding
1630 the assembler check
for tls support
1631 --enable-vtable-verify enable vtable verification feature
1632 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1633 GNU Objective-C runtime
1634 --disable-shared don't provide a shared libgcc
1635 --enable-languages=LIST specify
which front-ends to build
1636 --disable-rpath do not hardcode runtime library paths
1637 --enable-sjlj-exceptions
1638 arrange to use setjmp
/longjmp exception handling
1639 --enable-secureplt enable -msecure-plt by default
for PowerPC
1640 --enable-mingw-wildcard Set whether to
expand wildcard on command-line.
1641 Default to platform configuration
1642 --enable-leading-mingw64-underscores
1643 enable leading underscores on
64 bit mingw targets
1644 --enable-cld enable -mcld by default
for 32bit x86
1645 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1647 --disable-win32-registry
1648 disable lookup of installation paths
in the Registry
1650 --enable-win32-registry enable registry lookup
(default
)
1651 --enable-win32-registry=KEY
1652 use KEY instead of GCC version as the last portion
1654 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1655 --enable-static[=PKGS
] build static libraries
[default
=yes]
1656 --enable-fast-install[=PKGS
]
1657 optimize
for fast installation
[default
=yes]
1658 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1659 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1660 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1661 --enable-gnu-indirect-function
1662 enable the use of the @gnu_indirect_function to
1664 --enable-initfini-array use .init_array
/.fini_array sections
1665 --enable-comdat enable COMDAT group support
1667 --enable-fix-cortex-a53-835769
1668 enable workaround
for AArch64 Cortex-A53 erratum
1670 --disable-fix-cortex-a53-835769
1671 disable workaround
for AArch64 Cortex-A53 erratum
1675 --enable-fix-cortex-a53-843419
1676 enable workaround
for AArch64 Cortex-A53 erratum
1678 --disable-fix-cortex-a53-843419
1679 disable workaround
for AArch64 Cortex-A53 erratum
1682 --enable-gnu-unique-object
1683 enable the use of the @gnu_unique_object ELF
1684 extension on glibc systems
1685 --enable-linker-build-id
1686 compiler will always pass
--build-id to linker
1687 --enable-libssp enable linking against libssp
1688 --enable-default-ssp enable Stack Smashing Protection as default
1689 --enable-maintainer-mode
1690 enable make rules and dependencies not useful
(and
1691 sometimes confusing
) to the casual installer
1692 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1693 thrashing on the build machine
1694 --enable-version-specific-runtime-libs
1695 specify that runtime libraries should be installed
1696 in a compiler-specific directory
1697 --enable-plugin enable plugin support
1698 --enable-host-shared build
host code as shared libraries
1699 --disable-libquadmath-support
1700 disable libquadmath support
for Fortran
1701 --enable-default-pie enable Position Independent Executable as default
1704 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1705 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1706 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1707 --with-local-prefix=DIR specifies directory to put
local include
1708 --with-native-system-header-dir=dir
1709 use dir as the directory to
look for standard
1710 system header files
in. Defaults to
/usr
/include.
1711 --with-build-sysroot=sysroot
1712 use sysroot as the system root during the build
1713 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1714 --with-gxx-include-dir=DIR
1715 specifies directory to put g
++ header files
1716 --with-cpp-install-dir=DIR
1717 install the user visible C preprocessor
in DIR
1718 (relative to PREFIX
) as well as PREFIX
/bin
1719 --with-gnu-ld arrange to work with GNU ld
1720 --with-ld arrange to use the specified ld
(full pathname
)
1721 --with-demangler-in-ld try to use demangler
in GNU ld
1722 --with-gnu-as arrange to work with GNU as
1723 --with-as arrange to use the specified as
(full pathname
)
1724 --with-stabs arrange to use stabs instead of
host debug format
1725 --with-dwarf2 force the default debug format to be DWARF
2
1726 --with-specs=SPECS add SPECS to driver command-line processing
1727 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1728 --with-bugurl=URL Direct users to URL to report a bug
1729 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1730 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1731 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1732 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1733 --with-gcc-major-version-only
1734 use only GCC major number in filesystem paths
1735 --with-pic try to use only PIC/non-PIC objects [default=use
1737 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1738 --with-plugin-ld=[ARG] specify the plugin linker
1739 --with-glibc-version=M.N
1740 assume GCC used with glibc version M.N or later
1741 --with-long-double-128 use 128-bit long double by default
1742 --with-long-double-format={ieee,ibm}
1743 Specify whether PowerPC long double uses IEEE or IBM format
1745 --with-gc={page,zone} this option is not supported anymore. It used to
1746 choose the garbage collection mechanism to use with
1748 --with-system-zlib use installed libz
1749 --with-linker-hash-style={sysv,gnu,both}
1750 specify the linker hash style
1751 --with-diagnostics-color={never,auto,auto-if-env,always}
1752 specify the default of -fdiagnostics-color option
1753 auto-if-env stands for -fdiagnostics-color=auto if
1754 GCC_COLOR environment variable is present and
1755 -fdiagnostics-color=never otherwise
1757 Some influential environment variables:
1758 CC C compiler command
1759 CFLAGS C compiler flags
1760 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1761 nonstandard directory <lib dir>
1762 LIBS libraries to pass to the linker, e.g. -l<library>
1763 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1764 you have headers in a nonstandard directory <include dir>
1765 CXX C++ compiler command
1766 CXXFLAGS C++ compiler flags
1767 CXXCPP C++ preprocessor
1769 GMPLIBS How to link GMP
1770 GMPINC How to find GMP include files
1771 ISLLIBS How to link isl
1772 ISLINC How to find isl include files
1774 Use these variables to override the choices made by `configure' or to
help
1775 it to
find libraries and programs with nonstandard names
/locations.
1777 Report bugs to the package provider.
1782 if test "$ac_init_help" = "recursive"; then
1783 # If there are subdirs, report their specific --help.
1784 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1785 test -d "$ac_dir" ||
1786 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1791 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1793 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1794 # A ".." for each directory in $ac_dir_suffix.
1795 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1796 case $ac_top_builddir_sub in
1797 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1798 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1801 ac_abs_top_builddir
=$ac_pwd
1802 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1803 # for backward compatibility:
1804 ac_top_builddir
=$ac_top_build_prefix
1807 .
) # We are building in place.
1809 ac_top_srcdir
=$ac_top_builddir_sub
1810 ac_abs_top_srcdir
=$ac_pwd ;;
1811 [\\/]* | ?
:[\\/]* ) # Absolute name.
1812 ac_srcdir
=$srcdir$ac_dir_suffix;
1813 ac_top_srcdir
=$srcdir
1814 ac_abs_top_srcdir
=$srcdir ;;
1816 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1817 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1818 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1820 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1822 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1823 # Check for guested configure.
1824 if test -f "$ac_srcdir/configure.gnu"; then
1826 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1827 elif test -f "$ac_srcdir/configure"; then
1829 $SHELL "$ac_srcdir/configure" --help=recursive
1831 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1833 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1837 test -n "$ac_init_help" && exit $ac_status
1838 if $ac_init_version; then
1841 generated by GNU Autoconf
2.64
1843 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1844 This configure
script is free software
; the Free Software Foundation
1845 gives unlimited permission to copy
, distribute and modify it.
1850 ## ------------------------ ##
1851 ## Autoconf initialization. ##
1852 ## ------------------------ ##
1854 # ac_fn_c_try_compile LINENO
1855 # --------------------------
1856 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_compile
()
1859 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1860 rm -f conftest.
$ac_objext
1861 if { { ac_try
="$ac_compile"
1863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_compile") 2>conftest.err
1870 if test -s conftest.err; then
1871 grep -v '^ *+' conftest.err >conftest.er1
1872 cat conftest.er1 >&5
1873 mv -f conftest.er1 conftest.err
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && {
1877 test -z "$ac_c_werror_flag" ||
1878 test ! -s conftest.err
1879 } && test -s conftest.$ac_objext; then :
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 } # ac_fn_c_try_compile
1892 # ac_fn_cxx_try_compile LINENO
1893 # ----------------------------
1894 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_cxx_try_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext
1899 if { { ac_try="$ac_compile"
1901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1902 *) ac_try_echo
=$ac_try;;
1904 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_compile") 2>conftest.err
1908 if test -s conftest.err
; then
1909 grep -v '^ *+' conftest.err
>conftest.er1
1910 cat conftest.er1
>&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest.
$ac_objext; then :
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.
$ac_ext >&5
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1928 } # ac_fn_cxx_try_compile
1930 # ac_fn_cxx_try_cpp LINENO
1931 # ------------------------
1932 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_cxx_try_cpp
()
1935 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1936 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1945 if test -s conftest.err; then
1946 grep -v '^ *+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } >/dev/null && {
1952 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1953 test ! -s conftest.err
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965 } # ac_fn_cxx_try_cpp
1967 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1968 # ---------------------------------------------------------
1969 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1970 # the include files in INCLUDES and setting the cache variable VAR
1972 ac_fn_cxx_check_header_mongrel ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1979 $as_echo_n "(cached) " >&6
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1985 # Is the header compilable?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1987 $as_echo_n "checking $2 usability... " >&6; }
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1993 if ac_fn_cxx_try_compile "$LINENO"; then :
1994 ac_header_compiler=yes
1996 ac_header_compiler=no
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2000 $as_echo "$ac_header_compiler" >&6; }
2002 # Is the header present?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2004 $as_echo_n "checking $2 presence... " >&6; }
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2009 if ac_fn_cxx_try_cpp "$LINENO"; then :
2010 ac_header_preproc=yes
2012 ac_header_preproc=no
2014 rm -f conftest.err conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2016 $as_echo "$ac_header_preproc" >&6; }
2018 # So? What about this header?
2019 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2022 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2028 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2030 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2032 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2034 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 $as_echo_n "(cached) " >&6
2044 eval "$3=\$ac_header_compiler"
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052 } # ac_fn_cxx_check_header_mongrel
2054 # ac_fn_cxx_try_run LINENO
2055 # ------------------------
2056 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2057 # that executables *can* be run.
2058 ac_fn_cxx_try_run ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_link"
2063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2064 *) ac_try_echo
=$ac_try;;
2066 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_link") 2>&5
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2072 { { case "(($ac_try" in
2073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2074 *) ac_try_echo=$ac_try;;
2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078 (eval "$ac_try") 2>&5
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; }; }; then :
2084 $as_echo "$as_me: program exited with status $ac_status" >&5
2085 $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2088 ac_retval=$ac_status
2090 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094 } # ac_fn_cxx_try_run
2096 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2097 # ---------------------------------------------------------
2098 # Tests whether HEADER exists and can be compiled using the include files in
2099 # INCLUDES, setting the cache variable VAR accordingly.
2100 ac_fn_cxx_check_header_compile ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2106 $as_echo_n "(cached) " >&6
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2113 if ac_fn_cxx_try_compile "$LINENO"; then :
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125 } # ac_fn_cxx_check_header_compile
2127 # ac_fn_c_try_cpp LINENO
2128 # ----------------------
2129 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 if { { ac_try="$ac_cpp conftest.$ac_ext"
2135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2136 *) ac_try_echo
=$ac_try;;
2138 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2139 $as_echo "$ac_try_echo"; } >&5
2140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2142 if test -s conftest.err
; then
2143 grep -v '^ *+' conftest.err
>conftest.er1
2144 cat conftest.er1
>&5
2145 mv -f conftest.er1 conftest.err
2147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148 test $ac_status = 0; } >/dev
/null
&& {
2149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2150 test ! -s conftest.err
2154 $as_echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.
$ac_ext >&5
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2164 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2165 # ----------------------------------------------
2166 # Tries to find the compile-time value of EXPR in a program that includes
2167 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2169 ac_fn_cxx_compute_int
()
2171 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2172 if test "$cross_compiling" = yes; then
2173 # Depending upon the size, compute the lo and hi bounds.
2174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2180 static int test_array [1 - 2 * !(($2) >= 0)];
2187 if ac_fn_cxx_try_compile
"$LINENO"; then :
2190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2203 if ac_fn_cxx_try_compile
"$LINENO"; then :
2204 ac_hi
=$ac_mid; break
2206 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2207 if test $ac_lo -le $ac_mid; then
2211 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2222 static int test_array [1 - 2 * !(($2) < 0)];
2229 if ac_fn_cxx_try_compile
"$LINENO"; then :
2232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2238 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2245 if ac_fn_cxx_try_compile
"$LINENO"; then :
2246 ac_lo
=$ac_mid; break
2248 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2249 if test $ac_mid -le $ac_hi; then
2253 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2263 # Binary search between lo and hi bounds.
2264 while test "x$ac_lo" != "x$ac_hi"; do
2265 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2272 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2279 if ac_fn_cxx_try_compile
"$LINENO"; then :
2282 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2287 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2294 static long int longval () { return $2; }
2295 static unsigned long int ulongval () { return $2; }
2302 FILE *f = fopen ("conftest.val", "w");
2307 long int i = longval ();
2310 fprintf (f, "%ld", i);
2314 unsigned long int i = ulongval ();
2317 fprintf (f, "%lu", i);
2319 /* Do not output a trailing newline, as this causes \r\n confusion
2320 on some platforms. */
2321 return ferror (f) || fclose (f) != 0;
2327 if ac_fn_cxx_try_run
"$LINENO"; then :
2328 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2337 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2340 } # ac_fn_cxx_compute_int
2342 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2343 # ---------------------------------------------
2344 # Tests whether TYPE exists after having included INCLUDES, setting cache
2345 # variable VAR accordingly.
2346 ac_fn_cxx_check_type
()
2348 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2350 $as_echo_n "checking for $2... " >&6; }
2351 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2352 $as_echo_n "(cached) " >&6
2355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2367 if ac_fn_cxx_try_compile
"$LINENO"; then :
2368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2380 if ac_fn_cxx_try_compile
"$LINENO"; then :
2385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2391 $as_echo "$ac_res" >&6; }
2392 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2394 } # ac_fn_cxx_check_type
2396 # ac_fn_c_find_intX_t LINENO BITS VAR
2397 # -----------------------------------
2398 # Finds a signed integer type with width BITS, setting cache variable VAR
2400 ac_fn_c_find_intX_t
()
2402 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2404 $as_echo_n "checking for int$2_t... " >&6; }
2405 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406 $as_echo_n "(cached) " >&6
2409 for ac_type
in int
$2_t 'int' 'long int' \
2410 'long long int' 'short int' 'signed char'; do
2411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2417 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2424 if ac_fn_cxx_try_compile
"$LINENO"; then :
2425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2427 $ac_includes_default
2431 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2432 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2439 if ac_fn_cxx_try_compile
"$LINENO"; then :
2446 eval "$3=\$ac_type" ;;
2449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2453 if test "x$as_val" = x
""no
; then :
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2462 $as_echo "$ac_res" >&6; }
2463 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2465 } # ac_fn_c_find_intX_t
2467 # ac_fn_cxx_try_link LINENO
2468 # -------------------------
2469 # Try to link conftest.$ac_ext, and return whether this succeeded.
2470 ac_fn_cxx_try_link
()
2472 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2473 rm -f conftest.
$ac_objext conftest
$ac_exeext
2474 if { { ac_try
="$ac_link"
2476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2480 $as_echo "$ac_try_echo"; } >&5
2481 (eval "$ac_link") 2>conftest.err
2483 if test -s conftest.err; then
2484 grep -v '^ *+' conftest.err >conftest.er1
2485 cat conftest.er1 >&5
2486 mv -f conftest.er1 conftest.err
2488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2489 test $ac_status = 0; } && {
2490 test -z "$ac_cxx_werror_flag" ||
2491 test ! -s conftest.err
2492 } && test -s conftest$ac_exeext && {
2493 test "$cross_compiling" = yes ||
2494 $as_test_x conftest$ac_exeext
2498 $as_echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2503 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2504 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2505 # interfere with the next link command; also delete a directory that is
2506 # left behind by Apple's compiler. We do this before executing the actions.
2507 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511 } # ac_fn_cxx_try_link
2513 # ac_fn_c_find_uintX_t LINENO BITS VAR
2514 # ------------------------------------
2515 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2517 ac_fn_c_find_uintX_t ()
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2521 $as_echo_n "checking for uint$2_t... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2526 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2527 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2530 $ac_includes_default
2534 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2541 if ac_fn_cxx_try_compile "$LINENO"; then :
2546 eval "$3=\$ac_type" ;;
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 if test "x$as_val" = x""no; then :
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2560 $as_echo "$ac_res" >&6; }
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563 } # ac_fn_c_find_uintX_t
2565 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2566 # ------------------------------------------------
2567 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2568 ac_fn_cxx_check_header_preproc ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2572 $as_echo_n "checking for $2... " >&6; }
2573 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2574 $as_echo_n "(cached) " >&6
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h. */
2580 if ac_fn_cxx_try_cpp "$LINENO"; then :
2585 rm -f conftest.err conftest.$ac_ext
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2589 $as_echo "$ac_res" >&6; }
2590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2592 } # ac_fn_cxx_check_header_preproc
2594 # ac_fn_cxx_check_func LINENO FUNC VAR
2595 # ------------------------------------
2596 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2597 ac_fn_cxx_check_func ()
2599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2601 $as_echo_n "checking for $2... " >&6; }
2602 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2603 $as_echo_n "(cached) " >&6
2605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2606 /* end confdefs.h. */
2607 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2609 #define $2 innocuous_$2
2611 /* System header to define __stub macros and hopefully few prototypes,
2612 which can conflict with char $2 (); below.
2613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2614 <limits.h> exists even on freestanding compilers. */
2617 # include <limits.h>
2619 # include <assert.h>
2624 /* Override any GCC internal prototype to avoid an error.
2625 Use char because int might match the return type of a GCC
2626 builtin and then its argument prototype would still apply. */
2631 /* The GNU C library defines this for functions which it implements
2632 to always fail with ENOSYS. Some functions are actually named
2633 something starting with __ and the normal name is an alias. */
2634 #if defined __stub_$2 || defined __stub___$2
2646 if ac_fn_cxx_try_link "$LINENO"; then :
2651 rm -f core conftest.err conftest.$ac_objext \
2652 conftest$ac_exeext conftest.$ac_ext
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2656 $as_echo "$ac_res" >&6; }
2657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2659 } # ac_fn_cxx_check_func
2661 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2662 # --------------------------------------
2663 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2664 ac_fn_cxx_check_decl ()
2666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2667 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2668 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2670 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2671 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2672 $as_echo_n "(cached) " >&6
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2680 #ifndef $as_decl_name
2682 (void) $as_decl_use;
2684 (void) $as_decl_name;
2692 if ac_fn_cxx_try_compile "$LINENO"; then :
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2701 $as_echo "$ac_res" >&6; }
2702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2704 } # ac_fn_cxx_check_decl
2706 # ac_fn_c_try_link LINENO
2707 # -----------------------
2708 # Try to link conftest.$ac_ext, and return whether this succeeded.
2711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2712 rm -f conftest.$ac_objext conftest$ac_exeext
2713 if { { ac_try="$ac_link"
2715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2716 *) ac_try_echo
=$ac_try;;
2718 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2719 $as_echo "$ac_try_echo"; } >&5
2720 (eval "$ac_link") 2>conftest.err
2722 if test -s conftest.err
; then
2723 grep -v '^ *+' conftest.err
>conftest.er1
2724 cat conftest.er1
>&5
2725 mv -f conftest.er1 conftest.err
2727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2728 test $ac_status = 0; } && {
2729 test -z "$ac_c_werror_flag" ||
2730 test ! -s conftest.err
2731 } && test -s conftest
$ac_exeext && {
2732 test "$cross_compiling" = yes ||
2733 $as_test_x conftest
$ac_exeext
2737 $as_echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.
$ac_ext >&5
2742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2744 # interfere with the next link command; also delete a directory that is
2745 # left behind by Apple's compiler. We do this before executing the actions.
2746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2747 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2750 } # ac_fn_c_try_link
2752 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2753 # ----------------------------------------------
2754 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2755 ac_fn_c_check_header_preproc
()
2757 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2759 $as_echo_n "checking for $2... " >&6; }
2760 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2761 $as_echo_n "(cached) " >&6
2763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2764 /* end confdefs.h. */
2767 if ac_fn_c_try_cpp
"$LINENO"; then :
2772 rm -f conftest.err conftest.
$ac_ext
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2776 $as_echo "$ac_res" >&6; }
2777 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2779 } # ac_fn_c_check_header_preproc
2781 # ac_fn_c_check_func LINENO FUNC VAR
2782 # ----------------------------------
2783 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2784 ac_fn_c_check_func
()
2786 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2788 $as_echo_n "checking for $2... " >&6; }
2789 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2790 $as_echo_n "(cached) " >&6
2792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2796 #define $2 innocuous_$2
2798 /* System header to define __stub macros and hopefully few prototypes,
2799 which can conflict with char $2 (); below.
2800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2801 <limits.h> exists even on freestanding compilers. */
2804 # include <limits.h>
2806 # include <assert.h>
2811 /* Override any GCC internal prototype to avoid an error.
2812 Use char because int might match the return type of a GCC
2813 builtin and then its argument prototype would still apply. */
2818 /* The GNU C library defines this for functions which it implements
2819 to always fail with ENOSYS. Some functions are actually named
2820 something starting with __ and the normal name is an alias. */
2821 #if defined __stub_$2 || defined __stub___$2
2833 if ac_fn_c_try_link
"$LINENO"; then :
2838 rm -f core conftest.err conftest.
$ac_objext \
2839 conftest
$ac_exeext conftest.
$ac_ext
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2843 $as_echo "$ac_res" >&6; }
2844 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2846 } # ac_fn_c_check_func
2847 cat >config.log
<<_ACEOF
2848 This file contains any messages produced by compilers while
2849 running configure, to aid debugging if configure makes a mistake.
2851 It was created by $as_me, which was
2852 generated by GNU Autoconf 2.64. Invocation command line was
2864 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2865 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2866 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2867 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2868 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2870 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2871 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2873 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2874 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2875 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2876 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2877 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2878 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2879 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir
=.
2888 $as_echo "PATH: $as_dir"
2904 # Keep a trace of the command line.
2905 # Strip out --no-create and --no-recursion so they do not pile up.
2906 # Strip out --silent because we don't want to record it for future runs.
2907 # Also quote any args containing shell meta-characters.
2908 # Make two passes to allow for proper duplicate-argument suppression.
2912 ac_must_keep_next
=false
2918 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2919 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2920 |
-silent |
--silent |
--silen |
--sile |
--sil)
2923 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2926 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2928 as_fn_append ac_configure_args1
" '$ac_arg'"
2929 if test $ac_must_keep_next = true
; then
2930 ac_must_keep_next
=false
# Got value, back to normal.
2933 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2934 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2935 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2936 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2937 case "$ac_configure_args0 " in
2938 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2941 -* ) ac_must_keep_next
=true
;;
2944 as_fn_append ac_configure_args
" '$ac_arg'"
2949 { ac_configure_args0
=; unset ac_configure_args0
;}
2950 { ac_configure_args1
=; unset ac_configure_args1
;}
2952 # When interrupted or exit'd, cleanup temporary files, and complete
2953 # config.log. We remove comments because anyway the quotes in there
2954 # would cause problems or look ugly.
2955 # WARNING: Use '\'' to represent an apostrophe within the trap.
2956 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2957 trap 'exit_status=$?
2958 # Save into config.log some information that might help in debugging.
2963 ## ---------------- ##
2964 ## Cache variables. ##
2965 ## ---------------- ##
2968 # The following way of writing the cache mishandles newlines in values,
2970 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2971 eval ac_val=\$$ac_var
2975 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2976 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2979 _ | IFS | as_nl) ;; #(
2980 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2981 *) { eval $ac_var=; unset $ac_var;} ;;
2986 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2987 *${as_nl}ac_space=\ *)
2989 "s/'\''/'\''\\\\'\'''\''/g;
2990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2993 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3001 ## ----------------- ##
3002 ## Output variables. ##
3003 ## ----------------- ##
3006 for ac_var in $ac_subst_vars
3008 eval ac_val=\$$ac_var
3010 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3012 $as_echo "$ac_var='\''$ac_val'\''"
3016 if test -n "$ac_subst_files"; then
3018 ## ------------------- ##
3019 ## File substitutions. ##
3020 ## ------------------- ##
3023 for ac_var
in $ac_subst_files
3025 eval ac_val
=\$
$ac_var
3027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3029 $as_echo "$ac_var='\''$ac_val'\''"
3034 if test -s confdefs.h; then
3044 test "$ac_signal" != 0 &&
3045 $as_echo "$as_me: caught signal $ac_signal"
3046 $as_echo "$as_me: exit $exit_status"
3048 rm -f core *.core core.conftest.* &&
3049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3052 for ac_signal
in 1 2 13 15; do
3053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3057 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3058 rm -f -r conftest
* confdefs.h
3060 $as_echo "/* confdefs.h */" > confdefs.h
3062 # Predefined preprocessor variables.
3064 cat >>confdefs.h
<<_ACEOF
3065 #define PACKAGE_NAME "$PACKAGE_NAME"
3068 cat >>confdefs.h
<<_ACEOF
3069 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3072 cat >>confdefs.h
<<_ACEOF
3073 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3076 cat >>confdefs.h
<<_ACEOF
3077 #define PACKAGE_STRING "$PACKAGE_STRING"
3080 cat >>confdefs.h
<<_ACEOF
3081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3084 cat >>confdefs.h
<<_ACEOF
3085 #define PACKAGE_URL "$PACKAGE_URL"
3089 # Let the site file select an alternate cache file if it wants to.
3090 # Prefer an explicitly selected file to automatically selected ones.
3093 if test -n "$CONFIG_SITE"; then
3094 ac_site_file1
=$CONFIG_SITE
3095 elif test "x$prefix" != xNONE
; then
3096 ac_site_file1
=$prefix/share
/config.site
3097 ac_site_file2
=$prefix/etc
/config.site
3099 ac_site_file1
=$ac_default_prefix/share
/config.site
3100 ac_site_file2
=$ac_default_prefix/etc
/config.site
3102 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3104 test "x$ac_site_file" = xNONE
&& continue
3105 if test -r "$ac_site_file"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3107 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3108 sed 's/^/| /' "$ac_site_file" >&5
3113 if test -r "$cache_file"; then
3114 # Some versions of bash will fail to source /dev/null (special
3115 # files actually), so we avoid doing that.
3116 if test -f "$cache_file"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3118 $as_echo "$as_me: loading cache $cache_file" >&6;}
3120 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3121 *) .
"./$cache_file";;
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3126 $as_echo "$as_me: creating cache $cache_file" >&6;}
3130 # Check that the precious variables saved in the cache have kept the same
3132 ac_cache_corrupted
=false
3133 for ac_var
in $ac_precious_vars; do
3134 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3135 eval ac_new_set
=\
$ac_env_${ac_var}_set
3136 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3137 eval ac_new_val
=\
$ac_env_${ac_var}_value
3138 case $ac_old_set,$ac_new_set in
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3141 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3142 ac_cache_corrupted
=: ;;
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3145 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3146 ac_cache_corrupted
=: ;;
3149 if test "x$ac_old_val" != "x$ac_new_val"; then
3150 # differences in whitespace do not lead to failure.
3151 ac_old_val_w
=`echo x $ac_old_val`
3152 ac_new_val_w
=`echo x $ac_new_val`
3153 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3155 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3156 ac_cache_corrupted
=:
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3159 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3160 eval $ac_var=\
$ac_old_val
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3163 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3165 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3168 # Pass precious variables to config.status.
3169 if test "$ac_new_set" = set; then
3171 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3172 *) ac_arg
=$ac_var=$ac_new_val ;;
3174 case " $ac_configure_args " in
3175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3176 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3180 if $ac_cache_corrupted; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3184 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3185 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3187 ## -------------------- ##
3188 ## Main body of script. ##
3189 ## -------------------- ##
3192 ac_cpp
='$CPP $CPPFLAGS'
3193 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3202 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3205 gcc_version
=`cat $srcdir/BASE-VER`
3207 # Determine the host, build, and target systems
3209 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3210 for ac_t
in install-sh
install.sh shtool
; do
3211 if test -f "$ac_dir/$ac_t"; then
3213 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3218 if test -z "$ac_aux_dir"; then
3219 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3222 # These three variables are undocumented and unsupported,
3223 # and are intended to be withdrawn in a future Autoconf release.
3224 # They can cause serious problems if a builder's source tree is in a directory
3225 # whose full name contains unusual characters.
3226 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3227 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3228 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3231 # Make sure we can run config.sub.
3232 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3233 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3236 $as_echo_n "checking build system type... " >&6; }
3237 if test "${ac_cv_build+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3240 ac_build_alias
=$build_alias
3241 test "x$ac_build_alias" = x
&&
3242 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3243 test "x$ac_build_alias" = x
&&
3244 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3245 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3246 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3250 $as_echo "$ac_cv_build" >&6; }
3251 case $ac_cv_build in
3253 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3256 ac_save_IFS
=$IFS; IFS
='-'
3262 # Remember, the first character of IFS is used to create $*,
3263 # except with old shells:
3266 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3270 $as_echo_n "checking host system type... " >&6; }
3271 if test "${ac_cv_host+set}" = set; then :
3272 $as_echo_n "(cached) " >&6
3274 if test "x$host_alias" = x
; then
3275 ac_cv_host
=$ac_cv_build
3277 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3278 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3283 $as_echo "$ac_cv_host" >&6; }
3286 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3289 ac_save_IFS
=$IFS; IFS
='-'
3295 # Remember, the first character of IFS is used to create $*,
3296 # except with old shells:
3299 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3303 $as_echo_n "checking target system type... " >&6; }
3304 if test "${ac_cv_target+set}" = set; then :
3305 $as_echo_n "(cached) " >&6
3307 if test "x$target_alias" = x
; then
3308 ac_cv_target
=$ac_cv_host
3310 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3311 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3316 $as_echo "$ac_cv_target" >&6; }
3317 case $ac_cv_target in
3319 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3321 target
=$ac_cv_target
3322 ac_save_IFS
=$IFS; IFS
='-'
3328 # Remember, the first character of IFS is used to create $*,
3329 # except with old shells:
3332 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3335 # The aliases save the names the user supplied, while $host etc.
3336 # will get canonicalized.
3337 test -n "$target_alias" &&
3338 test "$program_prefix$program_suffix$program_transform_name" = \
3340 program_prefix
=${target_alias}-
3342 # Determine the noncanonical host name, for Ada.
3343 case ${build_alias} in
3344 "") build_noncanonical
=${build} ;;
3345 *) build_noncanonical
=${build_alias} ;;
3348 case ${host_alias} in
3349 "") host_noncanonical
=${build_noncanonical} ;;
3350 *) host_noncanonical
=${host_alias} ;;
3356 # Determine the noncanonical target name, for directory use.
3357 case ${target_alias} in
3358 "") target_noncanonical
=${host_noncanonical} ;;
3359 *) target_noncanonical
=${target_alias} ;;
3365 # Used for constructing correct paths for offload compilers.
3366 real_target_noncanonical
=${target_noncanonical}
3369 # Determine the target- and build-specific subdirectories
3371 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3372 # have matching libraries, they should use host libraries: Makefile.tpl
3373 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3374 # However, they still use the build modules, because the corresponding
3375 # host modules (e.g. bison) are only built for the host when bootstrap
3377 # - build_subdir is where we find build modules, and never changes.
3378 # - build_libsubdir is where we find build libraries, and can be overridden.
3380 # Prefix 'build-' so this never conflicts with target_subdir.
3381 build_subdir
="build-${build_noncanonical}"
3383 # Check whether --with-build-libsubdir was given.
3384 if test "${with_build_libsubdir+set}" = set; then :
3385 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3387 build_libsubdir
="$build_subdir"
3390 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3391 if ( test $srcdir = .
&& test -d gcc
) \
3392 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3393 host_subdir
="host-${host_noncanonical}"
3398 target_subdir
=${target_noncanonical}
3401 # Set program_transform_name
3402 test "$program_prefix" != NONE
&&
3403 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3404 # Use a double $ so make ignores it.
3405 test "$program_suffix" != NONE
&&
3406 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3407 # Double any \ or $.
3408 # By default was `s,x,x', remove it if useless.
3409 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3410 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3413 # Check for bogus environment variables.
3414 # Test if LIBRARY_PATH contains the notation for the current directory
3415 # since this would lead to problems installing/building glibc.
3416 # LIBRARY_PATH contains the current directory if one of the following
3418 # - one of the terminals (":" and ";") is the first or last sign
3419 # - two terminals occur directly after each other
3420 # - the path contains an element with a dot in it
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3422 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3423 case ${LIBRARY_PATH} in
3424 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3425 library_path_setting
="contains current directory"
3428 library_path_setting
="ok"
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3432 $as_echo "$library_path_setting" >&6; }
3433 if test "$library_path_setting" != "ok"; then
3435 *** LIBRARY_PATH shouldn't contain the current directory when
3436 *** building gcc. Please change the environment variable
3437 *** and run configure again." "$LINENO" 5
3440 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3441 # since this would lead to problems installing/building glibc.
3442 # GCC_EXEC_PREFIX contains the current directory if one of the following
3444 # - one of the terminals (":" and ";") is the first or last sign
3445 # - two terminals occur directly after each other
3446 # - the path contains an element with a dot in it
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3448 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3449 case ${GCC_EXEC_PREFIX} in
3450 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3451 gcc_exec_prefix_setting
="contains current directory"
3454 gcc_exec_prefix_setting
="ok"
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3458 $as_echo "$gcc_exec_prefix_setting" >&6; }
3459 if test "$gcc_exec_prefix_setting" != "ok"; then
3461 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3462 *** building gcc. Please change the environment variable
3463 *** and run configure again." "$LINENO" 5
3470 # Specify the local prefix
3473 # Check whether --with-local-prefix was given.
3474 if test "${with_local_prefix+set}" = set; then :
3475 withval
=$with_local_prefix; case "${withval}" in
3476 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3478 *) local_prefix
=$with_local_prefix ;;
3483 # Default local prefix if it is empty
3484 if test x
$local_prefix = x
; then
3485 local_prefix
=/usr
/local
3489 # Check whether --with-native-system-header-dir was given.
3490 if test "${with_native_system_header_dir+set}" = set; then :
3491 withval
=$with_native_system_header_dir;
3492 case ${with_native_system_header_dir} in
3493 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3494 /* |
[A-Za-z
]:[\\/]*) ;;
3495 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3497 configured_native_system_header_dir
="${withval}"
3500 configured_native_system_header_dir
=
3505 # Check whether --with-build-sysroot was given.
3506 if test "${with_build_sysroot+set}" = set; then :
3507 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3508 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3511 SYSROOT_CFLAGS_FOR_TARGET
=
3516 if test "x$prefix" = xNONE
; then
3517 test_prefix
=/usr
/local
3521 if test "x$exec_prefix" = xNONE
; then
3522 test_exec_prefix
=$test_prefix
3524 test_exec_prefix
=$exec_prefix
3528 # Check whether --with-sysroot was given.
3529 if test "${with_sysroot+set}" = set; then :
3530 withval
=$with_sysroot;
3531 case ${with_sysroot} in
3533 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3535 case ${with_sysroot} in
3536 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3537 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3540 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3541 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3543 case ${TARGET_SYSTEM_ROOT} in
3544 "${test_prefix}"|
"${test_prefix}/"*|\
3545 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3546 '${prefix}'|
'${prefix}/'*|\
3547 '${exec_prefix}'|
'${exec_prefix}/'*)
3548 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3549 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3556 TARGET_SYSTEM_ROOT_DEFINE
=
3557 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3565 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3566 # passed in by the toplevel make and thus we'd get different behavior
3567 # depending on where we built the sources.
3568 gcc_gxx_include_dir
=
3569 # Specify the g++ header file directory
3571 # Check whether --with-gxx-include-dir was given.
3572 if test "${with_gxx_include_dir+set}" = set; then :
3573 withval
=$with_gxx_include_dir; case "${withval}" in
3574 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3576 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3581 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3582 if test x
${gcc_gxx_include_dir} = x
; then
3583 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3584 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3586 libstdcxx_incdir
='include/c++/$(version)'
3587 if test x
$host != x
$target; then
3588 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3590 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3594 gcc_gxx_include_dir_add_sysroot
=0
3595 if test "${with_sysroot+set}" = set; then
3596 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3597 if test "${gcc_gxx_without_sysroot}"; then
3598 if test x
${with_sysroot} != x
/; then
3599 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3601 gcc_gxx_include_dir_add_sysroot
=1
3606 # Check whether --with-cpp_install_dir was given.
3607 if test "${with_cpp_install_dir+set}" = set; then :
3608 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3609 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3610 elif test x
$withval != xno
; then
3611 cpp_install_dir
=$withval
3616 # We would like to our source tree to be readonly. However when releases or
3617 # pre-releases are generated, the flex/bison generated files as well as the
3618 # various formats of manuals need to be included along with the rest of the
3619 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3623 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3624 # Check whether --enable-generated-files-in-srcdir was given.
3625 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3626 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3628 generated_files_in_srcdir
=no
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3633 $as_echo "$generated_files_in_srcdir" >&6; }
3635 if test "$generated_files_in_srcdir" = "yes"; then
3642 # -------------------
3643 # Find default linker
3644 # -------------------
3648 # Check whether --with-gnu-ld was given.
3649 if test "${with_gnu_ld+set}" = set; then :
3650 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3657 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3661 # With pre-defined ld
3663 # Check whether --with-ld was given.
3664 if test "${with_ld+set}" = set; then :
3665 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3668 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3669 if test ! -x "$DEFAULT_LINKER"; then
3670 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3671 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3673 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3677 cat >>confdefs.h
<<_ACEOF
3678 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3684 $as_echo_n "checking whether a default linker was specified... " >&6; }
3685 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3686 if test x
"$gnu_ld_flag" = x
"no"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3688 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3691 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3698 # With demangler in GNU ld
3700 # Check whether --with-demangler-in-ld was given.
3701 if test "${with_demangler_in_ld+set}" = set; then :
3702 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3708 # ----------------------
3709 # Find default assembler
3710 # ----------------------
3714 # Check whether --with-gnu-as was given.
3715 if test "${with_gnu_as+set}" = set; then :
3716 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3723 # Check whether --with-as was given.
3724 if test "${with_as+set}" = set; then :
3725 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3728 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3729 if test ! -x "$DEFAULT_ASSEMBLER"; then
3730 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3731 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3735 cat >>confdefs.h
<<_ACEOF
3736 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3742 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3743 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3744 if test x
"$gas_flag" = x
"no"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3746 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3749 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3760 # If a non-executable a.out is present (e.g. created by GNU as above even if
3761 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3762 # file, even when creating an executable, so an execution test fails.
3763 # Remove possible default executable files to avoid this.
3765 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3766 # Autoconf includes it.
3767 rm -f a.out a.exe b.out
3769 # Find the native compiler
3771 ac_cpp
='$CPP $CPPFLAGS'
3772 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3775 if test -n "$ac_tool_prefix"; then
3776 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3777 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if test "${ac_cv_prog_CC+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
3783 if test -n "$CC"; then
3784 ac_cv_prog_CC
="$CC" # Let the user override the test.
3786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3790 test -z "$as_dir" && as_dir
=.
3791 for ac_exec_ext
in '' $ac_executable_extensions; do
3792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3793 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 if test -n "$CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3806 $as_echo "$CC" >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3814 if test -z "$ac_cv_prog_CC"; then
3816 # Extract the first word of "gcc", so it can be a program name with args.
3817 set dummy gcc
; ac_word
=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3823 if test -n "$ac_ct_CC"; then
3824 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3830 test -z "$as_dir" && as_dir
=.
3831 for ac_exec_ext
in '' $ac_executable_extensions; do
3832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3833 ac_cv_prog_ac_ct_CC
="gcc"
3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3844 if test -n "$ac_ct_CC"; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3846 $as_echo "$ac_ct_CC" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3852 if test "x$ac_ct_CC" = x
; then
3855 case $cross_compiling:$ac_tool_warned in
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3859 ac_tool_warned
=yes ;;
3867 if test -z "$CC"; then
3868 if test -n "$ac_tool_prefix"; then
3869 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3870 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if test "${ac_cv_prog_CC+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3876 if test -n "$CC"; then
3877 ac_cv_prog_CC
="$CC" # Let the user override the test.
3879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3883 test -z "$as_dir" && as_dir
=.
3884 for ac_exec_ext
in '' $ac_executable_extensions; do
3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3886 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 if test -n "$CC"; then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 $as_echo "$CC" >&6; }
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3908 if test -z "$CC"; then
3909 # Extract the first word of "cc", so it can be a program name with args.
3910 set dummy cc
; ac_word
=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if test "${ac_cv_prog_CC+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3916 if test -n "$CC"; then
3917 ac_cv_prog_CC
="$CC" # Let the user override the test.
3920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir
=.
3925 for ac_exec_ext
in '' $ac_executable_extensions; do
3926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3928 ac_prog_rejected
=yes
3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 if test $ac_prog_rejected = yes; then
3940 # We found a bogon in the path, so make sure we never use it.
3941 set dummy
$ac_cv_prog_CC
3943 if test $# != 0; then
3944 # We chose a different compiler from the bogus one.
3945 # However, it has the same basename, so the bogon will be chosen
3946 # first if we set CC to just the basename; use the full file name.
3948 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3954 if test -n "$CC"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3956 $as_echo "$CC" >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3964 if test -z "$CC"; then
3965 if test -n "$ac_tool_prefix"; then
3966 for ac_prog
in cl.exe
3968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971 $as_echo_n "checking for $ac_word... " >&6; }
3972 if test "${ac_cv_prog_CC+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
3975 if test -n "$CC"; then
3976 ac_cv_prog_CC
="$CC" # Let the user override the test.
3978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3982 test -z "$as_dir" && as_dir
=.
3983 for ac_exec_ext
in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 if test -n "$CC"; then
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3998 $as_echo "$CC" >&6; }
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 $as_echo "no" >&6; }
4005 test -n "$CC" && break
4008 if test -z "$CC"; then
4010 for ac_prog
in cl.exe
4012 # Extract the first word of "$ac_prog", so it can be a program name with args.
4013 set dummy
$ac_prog; ac_word
=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4019 if test -n "$ac_ct_CC"; then
4020 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4026 test -z "$as_dir" && as_dir
=.
4027 for ac_exec_ext
in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 ac_cv_prog_ac_ct_CC
="$ac_prog"
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4040 if test -n "$ac_ct_CC"; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4042 $as_echo "$ac_ct_CC" >&6; }
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4049 test -n "$ac_ct_CC" && break
4052 if test "x$ac_ct_CC" = x
; then
4055 case $cross_compiling:$ac_tool_warned in
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059 ac_tool_warned
=yes ;;
4068 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070 as_fn_error
"no acceptable C compiler found in \$PATH
4071 See \`config.log' for more details." "$LINENO" 5; }
4073 # Provide some information about the compiler.
4074 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4077 for ac_option
in --version -v -V -qversion; do
4078 { { ac_try
="$ac_compiler $ac_option >&5"
4080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 $as_echo "$ac_try_echo"; } >&5
4085 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4087 if test -s conftest.err; then
4089 ... rest of stderr output deleted ...
4090 10q' conftest.err >conftest.er1
4091 cat conftest.er1 >&5
4092 rm -f conftest.er1 conftest.err
4094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095 test $ac_status = 0; }
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4109 ac_clean_files_save=$ac_clean_files
4110 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4111 # Try to create an executable without -o first, disregard a.out.
4112 # It will help us diagnose broken compilers, and finding out an intuition
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4115 $as_echo_n "checking for C compiler default output file name... " >&6; }
4116 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4118 # The possible output files:
4119 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4122 for ac_file in $ac_files
4125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4126 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4131 if { { ac_try="$ac_link_default"
4133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4134 *) ac_try_echo
=$ac_try;;
4136 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4137 $as_echo "$ac_try_echo"; } >&5
4138 (eval "$ac_link_default") 2>&5
4140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4141 test $ac_status = 0; }; then :
4142 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4143 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4144 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4145 # so that the user can short-circuit this test for compilers unknown to
4147 for ac_file
in $ac_files ''
4149 test -f "$ac_file" ||
continue
4151 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4154 # We found the default executable, but exeext='' is most
4158 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4160 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4162 # We set ac_cv_exeext here because the later test for it is not
4163 # safe: cross compilers may not add the suffix if given an `-o'
4164 # argument, so we may need to know it at that point already.
4165 # Even if this section looks crufty: it has the advantage of
4172 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4178 $as_echo "$ac_file" >&6; }
4179 if test -z "$ac_file"; then :
4180 $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.
$ac_ext >&5
4183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185 { as_fn_set_status
77
4186 as_fn_error
"C compiler cannot create executables
4187 See \`config.log' for more details." "$LINENO" 5; }; }
4189 ac_exeext
=$ac_cv_exeext
4191 # Check that the compiler produces executables we can run. If not, either
4192 # the compiler is broken, or we cross compile.
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4194 $as_echo_n "checking whether the C compiler works... " >&6; }
4195 # If not cross compiling, check that we can run a simple program.
4196 if test "$cross_compiling" != yes; then
4197 if { ac_try
='./$ac_file'
4198 { { case "(($ac_try" in
4199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_try") 2>&5
4206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4207 test $ac_status = 0; }; }; then
4210 if test "$cross_compiling" = maybe; then
4213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4215 as_fn_error "cannot run C compiled programs.
4216 If you meant to cross compile
, use \
`--host'.
4217 See \`config.log
' for more details." "$LINENO" 5; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4222 $as_echo "yes" >&6; }
4224 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4225 ac_clean_files=$ac_clean_files_save
4226 # Check that the compiler produces executables we can run. If not, either
4227 # the compiler is broken, or we cross compile.
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4229 $as_echo_n "checking whether we are cross compiling... " >&6; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4231 $as_echo "$cross_compiling" >&6; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4234 $as_echo_n "checking for suffix of executables... " >&6; }
4235 if { { ac_try="$ac_link"
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241 $as_echo "$ac_try_echo"; } >&5
4242 (eval "$ac_link") 2>&5
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }; then :
4246 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4247 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4248 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4250 for ac_file
in conftest.exe conftest conftest.
*; do
4251 test -f "$ac_file" ||
continue
4253 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4254 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4263 See \`config.log' for more details." "$LINENO" 5; }
4265 rm -f conftest
$ac_cv_exeext
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4267 $as_echo "$ac_cv_exeext" >&6; }
4269 rm -f conftest.
$ac_ext
4270 EXEEXT
=$ac_cv_exeext
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4273 $as_echo_n "checking for suffix of object files... " >&6; }
4274 if test "${ac_cv_objext+set}" = set; then :
4275 $as_echo_n "(cached) " >&6
4277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4288 rm -f conftest.o conftest.obj
4289 if { { ac_try
="$ac_compile"
4291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_compile") 2>&5
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; }; then :
4300 for ac_file in conftest.o conftest.obj conftest.*; do
4301 test -f "$ac_file" || continue;
4303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4304 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4309 $as_echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4314 as_fn_error "cannot compute suffix of object files
: cannot compile
4315 See \
`config.log' for more details." "$LINENO" 5; }
4317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4320 $as_echo "$ac_cv_objext" >&6; }
4321 OBJEXT=$ac_cv_objext
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4324 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4325 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4342 if ac_fn_c_try_compile "$LINENO"; then :
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4352 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4353 if test $ac_compiler_gnu = yes; then
4358 ac_test_CFLAGS=${CFLAGS+set}
4359 ac_save_CFLAGS=$CFLAGS
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4361 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4362 if test "${ac_cv_prog_cc_g+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4365 ac_save_c_werror_flag=$ac_c_werror_flag
4366 ac_c_werror_flag=yes
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4380 if ac_fn_c_try_compile "$LINENO"; then :
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4395 if ac_fn_c_try_compile "$LINENO"; then :
4398 ac_c_werror_flag=$ac_save_c_werror_flag
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4411 if ac_fn_c_try_compile "$LINENO"; then :
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 ac_c_werror_flag=$ac_save_c_werror_flag
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4422 $as_echo "$ac_cv_prog_cc_g" >&6; }
4423 if test "$ac_test_CFLAGS" = set; then
4424 CFLAGS=$ac_save_CFLAGS
4425 elif test $ac_cv_prog_cc_g = yes; then
4426 if test "$GCC" = yes; then
4432 if test "$GCC" = yes; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4439 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4440 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4443 ac_cv_prog_cc_c89=no
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4449 #include <sys/types.h>
4450 #include <sys/stat.h>
4451 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4452 struct buf { int x; };
4453 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4454 static char *e (p, i)
4460 static char *f (char * (*g) (char **, int), char **p, ...)
4465 s = g (p, va_arg (v,int));
4470 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4471 function prototypes and stuff, but not '\xHH' hex character constants.
4472 These don't provoke an error unfortunately, instead are silently treated
4473 as 'x'. The following induces an error, until -std is added to get
4474 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4475 array size at least. It's necessary to write '\x00'==0 to get something
4476 that's true only with -std. */
4477 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4479 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4480 inside strings and character constants. */
4482 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4484 int test (int i, double x);
4485 struct s1 {int (*f) (int a);};
4486 struct s2 {int (*f) (double a);};
4487 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4493 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4498 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4499 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4501 CC="$ac_save_CC $ac_arg"
4502 if ac_fn_c_try_compile "$LINENO"; then :
4503 ac_cv_prog_cc_c89=$ac_arg
4505 rm -f core conftest.err conftest.$ac_objext
4506 test "x$ac_cv_prog_cc_c89" != "xno" && break
4508 rm -f conftest.$ac_ext
4513 case "x$ac_cv_prog_cc_c89" in
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4516 $as_echo "none needed" >&6; } ;;
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4519 $as_echo "unsupported" >&6; } ;;
4521 CC="$CC $ac_cv_prog_cc_c89"
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4523 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4525 if test "x$ac_cv_prog_cc_c89" != xno; then :
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536 ac_cpp='$CXXCPP $CPPFLAGS'
4537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4540 if test -z "$CXX"; then
4541 if test -n "$CCC"; then
4544 if test -n "$ac_tool_prefix"; then
4545 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4548 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if test "${ac_cv_prog_CXX+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4554 if test -n "$CXX"; then
4555 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 if test -n "$CXX"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4577 $as_echo "$CXX" >&6; }
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4584 test -n "$CXX" && break
4587 if test -z "$CXX"; then
4589 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4591 # Extract the first word of "$ac_prog", so it can be a program name with args.
4592 set dummy $ac_prog; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4596 $as_echo_n "(cached) " >&6
4598 if test -n "$ac_ct_CXX"; then
4599 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4608 ac_cv_prog_ac_ct_CXX="$ac_prog"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4619 if test -n "$ac_ct_CXX"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4621 $as_echo "$ac_ct_CXX" >&6; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4628 test -n "$ac_ct_CXX" && break
4631 if test "x$ac_ct_CXX" = x; then
4634 case $cross_compiling:$ac_tool_warned in
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned=yes ;;
4646 # Provide some information about the compiler.
4647 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4650 for ac_option in --version -v -V -qversion; do
4651 { { ac_try="$ac_compiler $ac_option >&5"
4653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4654 *) ac_try_echo
=$ac_try;;
4656 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4657 $as_echo "$ac_try_echo"; } >&5
4658 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4660 if test -s conftest.err
; then
4662 ... rest of stderr output deleted ...
4663 10q' conftest.err
>conftest.er1
4664 cat conftest.er1
>&5
4665 rm -f conftest.er1 conftest.err
4667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4668 test $ac_status = 0; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4672 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4673 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4674 $as_echo_n "(cached) " >&6
4676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4690 if ac_fn_cxx_try_compile
"$LINENO"; then :
4695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4696 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4700 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4701 if test $ac_compiler_gnu = yes; then
4706 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4707 ac_save_CXXFLAGS
=$CXXFLAGS
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4709 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4710 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
4713 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4714 ac_cxx_werror_flag
=yes
4717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4728 if ac_fn_cxx_try_compile
"$LINENO"; then :
4729 ac_cv_prog_cxx_g
=yes
4732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4743 if ac_fn_cxx_try_compile
"$LINENO"; then :
4746 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4759 if ac_fn_cxx_try_compile
"$LINENO"; then :
4760 ac_cv_prog_cxx_g
=yes
4762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4767 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4770 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4771 if test "$ac_test_CXXFLAGS" = set; then
4772 CXXFLAGS
=$ac_save_CXXFLAGS
4773 elif test $ac_cv_prog_cxx_g = yes; then
4774 if test "$GXX" = yes; then
4780 if test "$GXX" = yes; then
4787 ac_cpp
='$CPP $CPPFLAGS'
4788 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4795 if test -n "$ac_tool_prefix"; then
4796 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4797 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 $as_echo_n "checking for $ac_word... " >&6; }
4800 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4801 $as_echo_n "(cached) " >&6
4803 if test -n "$GNATBIND"; then
4804 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4810 test -z "$as_dir" && as_dir
=.
4811 for ac_exec_ext
in '' $ac_executable_extensions; do
4812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4813 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 GNATBIND
=$ac_cv_prog_GNATBIND
4824 if test -n "$GNATBIND"; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4826 $as_echo "$GNATBIND" >&6; }
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 $as_echo "no" >&6; }
4834 if test -z "$ac_cv_prog_GNATBIND"; then
4835 ac_ct_GNATBIND
=$GNATBIND
4836 # Extract the first word of "gnatbind", so it can be a program name with args.
4837 set dummy gnatbind
; ac_word
=$2
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839 $as_echo_n "checking for $ac_word... " >&6; }
4840 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4843 if test -n "$ac_ct_GNATBIND"; then
4844 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4850 test -z "$as_dir" && as_dir
=.
4851 for ac_exec_ext
in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4864 if test -n "$ac_ct_GNATBIND"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4866 $as_echo "$ac_ct_GNATBIND" >&6; }
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4872 if test "x$ac_ct_GNATBIND" = x
; then
4875 case $cross_compiling:$ac_tool_warned in
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4879 ac_tool_warned
=yes ;;
4881 GNATBIND
=$ac_ct_GNATBIND
4884 GNATBIND
="$ac_cv_prog_GNATBIND"
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4889 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4895 if test -n "$GNATMAKE"; then
4896 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir
=.
4903 for ac_exec_ext
in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 GNATMAKE
=$ac_cv_prog_GNATMAKE
4916 if test -n "$GNATMAKE"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4918 $as_echo "$GNATMAKE" >&6; }
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4926 if test -z "$ac_cv_prog_GNATMAKE"; then
4927 ac_ct_GNATMAKE
=$GNATMAKE
4928 # Extract the first word of "gnatmake", so it can be a program name with args.
4929 set dummy gnatmake
; ac_word
=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4935 if test -n "$ac_ct_GNATMAKE"; then
4936 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4942 test -z "$as_dir" && as_dir
=.
4943 for ac_exec_ext
in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4956 if test -n "$ac_ct_GNATMAKE"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4958 $as_echo "$ac_ct_GNATMAKE" >&6; }
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4964 if test "x$ac_ct_GNATMAKE" = x
; then
4967 case $cross_compiling:$ac_tool_warned in
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned
=yes ;;
4973 GNATMAKE
=$ac_ct_GNATMAKE
4976 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4980 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4981 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4984 cat >conftest.adb
<<EOF
4985 procedure conftest is begin null; end conftest;
4987 acx_cv_cc_gcc_supports_ada
=no
4988 # There is a bug in old released versions of GCC which causes the
4989 # driver to exit successfully when the appropriate language module
4990 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4991 # Therefore we must check for the error message as well as an
4992 # unsuccessful exit.
4993 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4994 # given a .adb file, but produce no object file. So we must check
4995 # if an object file was really produced to guard against this.
4996 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
4997 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4998 acx_cv_cc_gcc_supports_ada
=yes
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5003 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5005 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5012 # Do configure tests with the C++ compiler, since that's what we build with.
5014 ac_cpp
='$CXXCPP $CPPFLAGS'
5015 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5020 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5021 # optimizations to be activated explicitly by the toplevel.
5023 */prev-gcc
/xgcc
*) ;;
5024 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5025 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5030 # Determine PICFLAG for target gnatlib.
5036 # PIC is the default on some targets or must not be used.
5038 # For darwin, common symbols are not allowed in MH_DYLIB files
5040 # If we are using a compiler supporting mdynamic-no-pic
5041 # and the option has been tested as safe to add, then cancel
5042 # it here, since the code generated is incompatible with shared
5044 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5045 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5049 # PIC is the default.
5052 # PIC is the default for 64-bit PA HP-UX.
5054 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5056 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5058 i
[34567]86-*-interix[3-9]*)
5059 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5060 # Instead, we relocate shared libraries at runtime.
5062 i
[34567]86-*-nto-qnx*)
5063 # QNX uses GNU C++, but need to define -shared option too, otherwise
5065 PICFLAG_FOR_TARGET
='-fPIC -shared'
5067 i
[34567]86-pc-msdosdjgpp*)
5068 # DJGPP does not support shared libraries at all.
5071 # On IA64 HP-UX, PIC is the default but the pic flag
5072 # sets the default TLS model and affects inlining.
5073 PICFLAG_FOR_TARGET
=-fPIC
5076 # PIC is the default.
5078 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5079 # All AIX code is PIC.
5082 # Some targets support both -fPIC and -fpic, but prefer the latter.
5084 i
[34567]86-*-* | x86_64-
*-*)
5085 PICFLAG_FOR_TARGET
=-fpic
5087 # FIXME: Override -fPIC default in libgcc only?
5088 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5089 PICFLAG_FOR_TARGET
=-fpic
5091 # FIXME: Simplify to sh*-*-netbsd*?
5092 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5093 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5094 PICFLAG_FOR_TARGET
=-fpic
5096 # Default to -fPIC unless specified otherwise.
5098 PICFLAG_FOR_TARGET
=-fPIC
5102 # If the user explicitly uses -fpic/-fPIC, keep that.
5103 case "${CFLAGS_FOR_TARGET}" in
5105 PICFLAG_FOR_TARGET
=-fpic
5108 PICFLAG_FOR_TARGET
=-fPIC
5114 # -------------------------
5115 # Check C compiler features
5116 # -------------------------
5120 ac_cpp
='$CXXCPP $CPPFLAGS'
5121 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5125 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5126 if test -z "$CXXCPP"; then
5127 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
5130 # Double quotes because CXXCPP needs to be expanded
5131 for CXXCPP
in "$CXX -E" "/lib/cpp"
5134 for ac_cxx_preproc_warn_flag
in '' yes
5136 # Use a header file that comes with gcc, so configuring glibc
5137 # with a fresh cross-compiler works.
5138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5139 # <limits.h> exists even on freestanding compilers.
5140 # On the NeXT, cc -E runs the code through the compiler's parser,
5141 # not just through cpp. "Syntax error" is here to catch this case.
5142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5145 # include <limits.h>
5147 # include <assert.h>
5151 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5154 # Broken: fails on valid input.
5157 rm -f conftest.err conftest.
$ac_ext
5159 # OK, works on sane cases. Now check whether nonexistent headers
5160 # can be detected and how.
5161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <ac_nonexistent.h>
5165 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5166 # Broken: success on invalid input.
5169 # Passes both tests.
5173 rm -f conftest.err conftest.
$ac_ext
5176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5177 rm -f conftest.err conftest.
$ac_ext
5178 if $ac_preproc_ok; then :
5183 ac_cv_prog_CXXCPP
=$CXXCPP
5186 CXXCPP
=$ac_cv_prog_CXXCPP
5188 ac_cv_prog_CXXCPP
=$CXXCPP
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5191 $as_echo "$CXXCPP" >&6; }
5193 for ac_cxx_preproc_warn_flag
in '' yes
5195 # Use a header file that comes with gcc, so configuring glibc
5196 # with a fresh cross-compiler works.
5197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5198 # <limits.h> exists even on freestanding compilers.
5199 # On the NeXT, cc -E runs the code through the compiler's parser,
5200 # not just through cpp. "Syntax error" is here to catch this case.
5201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5204 # include <limits.h>
5206 # include <assert.h>
5210 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5213 # Broken: fails on valid input.
5216 rm -f conftest.err conftest.
$ac_ext
5218 # OK, works on sane cases. Now check whether nonexistent headers
5219 # can be detected and how.
5220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5222 #include <ac_nonexistent.h>
5224 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5225 # Broken: success on invalid input.
5228 # Passes both tests.
5232 rm -f conftest.err conftest.
$ac_ext
5235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5236 rm -f conftest.err conftest.
$ac_ext
5237 if $ac_preproc_ok; then :
5240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5242 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5243 See \`config.log' for more details." "$LINENO" 5; }
5247 ac_cpp
='$CXXCPP $CPPFLAGS'
5248 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5254 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5255 if test "${ac_cv_path_GREP+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5258 if test -z "$GREP"; then
5259 ac_path_GREP_found
=false
5260 # Loop through the user's path and test for each of PROGNAME-LIST
5261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5262 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5265 test -z "$as_dir" && as_dir
=.
5266 for ac_prog
in grep ggrep
; do
5267 for ac_exec_ext
in '' $ac_executable_extensions; do
5268 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5269 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5270 # Check for GNU ac_path_GREP and select it if it is found.
5271 # Check for GNU $ac_path_GREP
5272 case `"$ac_path_GREP" --version 2>&1` in
5274 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5277 $as_echo_n 0123456789 >"conftest.in"
5280 cat "conftest.in" "conftest.in" >"conftest.tmp"
5281 mv "conftest.tmp" "conftest.in"
5282 cp "conftest.in" "conftest.nl"
5283 $as_echo 'GREP' >> "conftest.nl"
5284 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5285 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5286 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5287 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5288 # Best one so far, save it but keep looking for a better one
5289 ac_cv_path_GREP
="$ac_path_GREP"
5290 ac_path_GREP_max
=$ac_count
5292 # 10*(2^10) chars as input seems more than enough
5293 test $ac_count -gt 10 && break
5295 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5298 $ac_path_GREP_found && break 3
5303 if test -z "$ac_cv_path_GREP"; then
5304 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5307 ac_cv_path_GREP
=$GREP
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5312 $as_echo "$ac_cv_path_GREP" >&6; }
5313 GREP
="$ac_cv_path_GREP"
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5317 $as_echo_n "checking for egrep... " >&6; }
5318 if test "${ac_cv_path_EGREP+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5321 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5322 then ac_cv_path_EGREP
="$GREP -E"
5324 if test -z "$EGREP"; then
5325 ac_path_EGREP_found
=false
5326 # Loop through the user's path and test for each of PROGNAME-LIST
5327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5328 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5331 test -z "$as_dir" && as_dir
=.
5332 for ac_prog
in egrep; do
5333 for ac_exec_ext
in '' $ac_executable_extensions; do
5334 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5335 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5336 # Check for GNU ac_path_EGREP and select it if it is found.
5337 # Check for GNU $ac_path_EGREP
5338 case `"$ac_path_EGREP" --version 2>&1` in
5340 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5343 $as_echo_n 0123456789 >"conftest.in"
5346 cat "conftest.in" "conftest.in" >"conftest.tmp"
5347 mv "conftest.tmp" "conftest.in"
5348 cp "conftest.in" "conftest.nl"
5349 $as_echo 'EGREP' >> "conftest.nl"
5350 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5351 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5352 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5353 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5354 # Best one so far, save it but keep looking for a better one
5355 ac_cv_path_EGREP
="$ac_path_EGREP"
5356 ac_path_EGREP_max
=$ac_count
5358 # 10*(2^10) chars as input seems more than enough
5359 test $ac_count -gt 10 && break
5361 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5364 $ac_path_EGREP_found && break 3
5369 if test -z "$ac_cv_path_EGREP"; then
5370 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5373 ac_cv_path_EGREP
=$EGREP
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5379 $as_echo "$ac_cv_path_EGREP" >&6; }
5380 EGREP
="$ac_cv_path_EGREP"
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5384 $as_echo_n "checking for ANSI C header files... " >&6; }
5385 if test "${ac_cv_header_stdc+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5403 if ac_fn_cxx_try_compile
"$LINENO"; then :
5404 ac_cv_header_stdc
=yes
5406 ac_cv_header_stdc
=no
5408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5410 if test $ac_cv_header_stdc = yes; then
5411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5418 $EGREP "memchr" >/dev
/null
2>&1; then :
5421 ac_cv_header_stdc
=no
5427 if test $ac_cv_header_stdc = yes; then
5428 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5435 $EGREP "free" >/dev
/null
2>&1; then :
5438 ac_cv_header_stdc
=no
5444 if test $ac_cv_header_stdc = yes; then
5445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5446 if test "$cross_compiling" = yes; then :
5449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5453 #if ((' ' & 0x0FF) == 0x020)
5454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5457 # define ISLOWER(c) \
5458 (('a' <= (c) && (c) <= 'i') \
5459 || ('j' <= (c) && (c) <= 'r') \
5460 || ('s' <= (c) && (c) <= 'z'))
5461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5469 for (i = 0; i < 256; i++)
5470 if (XOR (islower (i), ISLOWER (i))
5471 || toupper (i) != TOUPPER (i))
5476 if ac_fn_cxx_try_run
"$LINENO"; then :
5479 ac_cv_header_stdc
=no
5481 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5482 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5488 $as_echo "$ac_cv_header_stdc" >&6; }
5489 if test $ac_cv_header_stdc = yes; then
5491 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5495 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5496 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5497 inttypes.h stdint.h unistd.h
5499 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5500 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5502 eval as_val
=\$
$as_ac_Header
5503 if test "x$as_val" = x
""yes; then :
5504 cat >>confdefs.h
<<_ACEOF
5505 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5514 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5515 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5522 if test "$MINIX" = yes; then
5524 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5527 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5530 $as_echo "#define _MINIX 1" >>confdefs.h
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5536 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5537 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5543 # define __EXTENSIONS__ 1
5544 $ac_includes_default
5553 if ac_fn_cxx_try_compile
"$LINENO"; then :
5554 ac_cv_safe_to_define___extensions__
=yes
5556 ac_cv_safe_to_define___extensions__
=no
5558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5561 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5562 test $ac_cv_safe_to_define___extensions__ = yes &&
5563 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5565 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5567 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5569 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5571 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5575 ac_cpp
='$CPP $CPPFLAGS'
5576 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5577 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5578 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5580 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5581 # On Suns, sometimes $CPP names a directory.
5582 if test -n "$CPP" && test -d "$CPP"; then
5585 if test -z "$CPP"; then
5586 if test "${ac_cv_prog_CPP+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5589 # Double quotes because CPP needs to be expanded
5590 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5593 for ac_c_preproc_warn_flag
in '' yes
5595 # Use a header file that comes with gcc, so configuring glibc
5596 # with a fresh cross-compiler works.
5597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598 # <limits.h> exists even on freestanding compilers.
5599 # On the NeXT, cc -E runs the code through the compiler's parser,
5600 # not just through cpp. "Syntax error" is here to catch this case.
5601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5604 # include <limits.h>
5606 # include <assert.h>
5610 if ac_fn_c_try_cpp
"$LINENO"; then :
5613 # Broken: fails on valid input.
5616 rm -f conftest.err conftest.
$ac_ext
5618 # OK, works on sane cases. Now check whether nonexistent headers
5619 # can be detected and how.
5620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 #include <ac_nonexistent.h>
5624 if ac_fn_c_try_cpp
"$LINENO"; then :
5625 # Broken: success on invalid input.
5628 # Passes both tests.
5632 rm -f conftest.err conftest.
$ac_ext
5635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5636 rm -f conftest.err conftest.
$ac_ext
5637 if $ac_preproc_ok; then :
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5650 $as_echo "$CPP" >&6; }
5652 for ac_c_preproc_warn_flag
in '' yes
5654 # Use a header file that comes with gcc, so configuring glibc
5655 # with a fresh cross-compiler works.
5656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5657 # <limits.h> exists even on freestanding compilers.
5658 # On the NeXT, cc -E runs the code through the compiler's parser,
5659 # not just through cpp. "Syntax error" is here to catch this case.
5660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5663 # include <limits.h>
5665 # include <assert.h>
5669 if ac_fn_c_try_cpp
"$LINENO"; then :
5672 # Broken: fails on valid input.
5675 rm -f conftest.err conftest.
$ac_ext
5677 # OK, works on sane cases. Now check whether nonexistent headers
5678 # can be detected and how.
5679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #include <ac_nonexistent.h>
5683 if ac_fn_c_try_cpp
"$LINENO"; then :
5684 # Broken: success on invalid input.
5687 # Passes both tests.
5691 rm -f conftest.err conftest.
$ac_ext
5694 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5695 rm -f conftest.err conftest.
$ac_ext
5696 if $ac_preproc_ok; then :
5699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5701 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5702 See \`config.log' for more details." "$LINENO" 5; }
5706 ac_cpp
='$CXXCPP $CPPFLAGS'
5707 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5712 $as_echo_n "checking for inline... " >&6; }
5713 if test "${ac_cv_c_inline+set}" = set; then :
5714 $as_echo_n "(cached) " >&6
5717 for ac_kw
in inline __inline__ __inline
; do
5718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5722 static $ac_kw foo_t static_foo () {return 0; }
5723 $ac_kw foo_t foo () {return 0; }
5727 if ac_fn_cxx_try_compile
"$LINENO"; then :
5728 ac_cv_c_inline
=$ac_kw
5730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5731 test "$ac_cv_c_inline" != no
&& break
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5736 $as_echo "$ac_cv_c_inline" >&6; }
5738 case $ac_cv_c_inline in
5741 case $ac_cv_c_inline in
5743 *) ac_val
=$ac_cv_c_inline;;
5745 cat >>confdefs.h
<<_ACEOF
5747 #define inline $ac_val
5754 # Check whether --enable-largefile was given.
5755 if test "${enable_largefile+set}" = set; then :
5756 enableval
=$enable_largefile;
5759 if test "$enable_largefile" != no
; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5762 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5763 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
5766 ac_cv_sys_largefile_CC
=no
5767 if test "$GCC" != yes; then
5770 # IRIX 6.2 and later do not support large files by default,
5771 # so use the C compiler's -n32 option if that helps.
5772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 #include <sys/types.h>
5775 /* Check that off_t can represent 2**63 - 1 correctly.
5776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5777 since some C++ compilers masquerading as C compilers
5778 incorrectly reject 9223372036854775807. */
5779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5781 && LARGE_OFF_T % 2147483647 == 1)
5791 if ac_fn_cxx_try_compile
"$LINENO"; then :
5794 rm -f core conftest.err conftest.
$ac_objext
5796 if ac_fn_cxx_try_compile
"$LINENO"; then :
5797 ac_cv_sys_largefile_CC
=' -n32'; break
5799 rm -f core conftest.err conftest.
$ac_objext
5803 rm -f conftest.
$ac_ext
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5807 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5808 if test "$ac_cv_sys_largefile_CC" != no
; then
5809 CC
=$CC$ac_cv_sys_largefile_CC
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5813 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5814 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 #include <sys/types.h>
5821 /* Check that off_t can represent 2**63 - 1 correctly.
5822 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5823 since some C++ compilers masquerading as C compilers
5824 incorrectly reject 9223372036854775807. */
5825 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5827 && LARGE_OFF_T % 2147483647 == 1)
5837 if ac_fn_cxx_try_compile
"$LINENO"; then :
5838 ac_cv_sys_file_offset_bits
=no
; break
5840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 #define _FILE_OFFSET_BITS 64
5844 #include <sys/types.h>
5845 /* Check that off_t can represent 2**63 - 1 correctly.
5846 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5847 since some C++ compilers masquerading as C compilers
5848 incorrectly reject 9223372036854775807. */
5849 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5850 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5851 && LARGE_OFF_T % 2147483647 == 1)
5861 if ac_fn_cxx_try_compile
"$LINENO"; then :
5862 ac_cv_sys_file_offset_bits
=64; break
5864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5865 ac_cv_sys_file_offset_bits
=unknown
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5870 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5871 case $ac_cv_sys_file_offset_bits in #(
5874 cat >>confdefs.h
<<_ACEOF
5875 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5880 if test $ac_cv_sys_file_offset_bits = unknown
; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5882 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5883 if test "${ac_cv_sys_large_files+set}" = set; then :
5884 $as_echo_n "(cached) " >&6
5887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 #include <sys/types.h>
5890 /* Check that off_t can represent 2**63 - 1 correctly.
5891 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5892 since some C++ compilers masquerading as C compilers
5893 incorrectly reject 9223372036854775807. */
5894 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5895 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5896 && LARGE_OFF_T % 2147483647 == 1)
5906 if ac_fn_cxx_try_compile
"$LINENO"; then :
5907 ac_cv_sys_large_files
=no
; break
5909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5912 #define _LARGE_FILES 1
5913 #include <sys/types.h>
5914 /* Check that off_t can represent 2**63 - 1 correctly.
5915 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5916 since some C++ compilers masquerading as C compilers
5917 incorrectly reject 9223372036854775807. */
5918 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5920 && LARGE_OFF_T % 2147483647 == 1)
5930 if ac_fn_cxx_try_compile
"$LINENO"; then :
5931 ac_cv_sys_large_files
=1; break
5933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5934 ac_cv_sys_large_files
=unknown
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5939 $as_echo "$ac_cv_sys_large_files" >&6; }
5940 case $ac_cv_sys_large_files in #(
5943 cat >>confdefs.h
<<_ACEOF
5944 #define _LARGE_FILES $ac_cv_sys_large_files
5953 # sizeof(char) is 1 by definition.
5954 # The cast to long int works around a bug in the HP C Compiler
5955 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5956 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5957 # This bug is HP SR number 8606223364.
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5959 $as_echo_n "checking size of void *... " >&6; }
5960 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5963 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5966 if test "$ac_cv_type_void_p" = yes; then
5967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5969 { as_fn_set_status
77
5970 as_fn_error
"cannot compute sizeof (void *)
5971 See \`config.log' for more details." "$LINENO" 5; }; }
5973 ac_cv_sizeof_void_p
=0
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5979 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5983 cat >>confdefs.h
<<_ACEOF
5984 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5988 # The cast to long int works around a bug in the HP C Compiler
5989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5991 # This bug is HP SR number 8606223364.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5993 $as_echo_n "checking size of short... " >&6; }
5994 if test "${ac_cv_sizeof_short+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5997 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6000 if test "$ac_cv_type_short" = yes; then
6001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6003 { as_fn_set_status
77
6004 as_fn_error
"cannot compute sizeof (short)
6005 See \`config.log' for more details." "$LINENO" 5; }; }
6007 ac_cv_sizeof_short
=0
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6013 $as_echo "$ac_cv_sizeof_short" >&6; }
6017 cat >>confdefs.h
<<_ACEOF
6018 #define SIZEOF_SHORT $ac_cv_sizeof_short
6022 # The cast to long int works around a bug in the HP C Compiler
6023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6025 # This bug is HP SR number 8606223364.
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6027 $as_echo_n "checking size of int... " >&6; }
6028 if test "${ac_cv_sizeof_int+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
6031 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6034 if test "$ac_cv_type_int" = yes; then
6035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6037 { as_fn_set_status
77
6038 as_fn_error
"cannot compute sizeof (int)
6039 See \`config.log' for more details." "$LINENO" 5; }; }
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6047 $as_echo "$ac_cv_sizeof_int" >&6; }
6051 cat >>confdefs.h
<<_ACEOF
6052 #define SIZEOF_INT $ac_cv_sizeof_int
6056 # The cast to long int works around a bug in the HP C Compiler
6057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6059 # This bug is HP SR number 8606223364.
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6061 $as_echo_n "checking size of long... " >&6; }
6062 if test "${ac_cv_sizeof_long+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6065 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6068 if test "$ac_cv_type_long" = yes; then
6069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6071 { as_fn_set_status
77
6072 as_fn_error
"cannot compute sizeof (long)
6073 See \`config.log' for more details." "$LINENO" 5; }; }
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6081 $as_echo "$ac_cv_sizeof_long" >&6; }
6085 cat >>confdefs.h
<<_ACEOF
6086 #define SIZEOF_LONG $ac_cv_sizeof_long
6090 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6091 if test "x$ac_cv_type_long_long" = x
""yes; then :
6093 cat >>confdefs.h
<<_ACEOF
6094 #define HAVE_LONG_LONG 1
6097 # The cast to long int works around a bug in the HP C Compiler
6098 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6099 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6100 # This bug is HP SR number 8606223364.
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6102 $as_echo_n "checking size of long long... " >&6; }
6103 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6104 $as_echo_n "(cached) " >&6
6106 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6109 if test "$ac_cv_type_long_long" = yes; then
6110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6112 { as_fn_set_status
77
6113 as_fn_error
"cannot compute sizeof (long long)
6114 See \`config.log' for more details." "$LINENO" 5; }; }
6116 ac_cv_sizeof_long_long
=0
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6122 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6126 cat >>confdefs.h
<<_ACEOF
6127 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6133 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6134 case $ac_cv_c_int8_t in #(
6138 cat >>confdefs.h
<<_ACEOF
6139 #define int8_t $ac_cv_c_int8_t
6144 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6145 case $ac_cv_c_int16_t in #(
6149 cat >>confdefs.h
<<_ACEOF
6150 #define int16_t $ac_cv_c_int16_t
6155 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6156 case $ac_cv_c_int32_t in #(
6160 cat >>confdefs.h
<<_ACEOF
6161 #define int32_t $ac_cv_c_int32_t
6166 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6167 case $ac_cv_c_int64_t in #(
6171 cat >>confdefs.h
<<_ACEOF
6172 #define int64_t $ac_cv_c_int64_t
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6179 $as_echo_n "checking for long long int... " >&6; }
6180 if test "${ac_cv_type_long_long_int+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6186 /* For now, do not test the preprocessor; as of 2007 there are too many
6187 implementations with broken preprocessors. Perhaps this can
6188 be revisited in 2012. In the meantime, code should not expect
6189 #if to work with literals wider than 32 bits. */
6190 /* Test literals. */
6191 long long int ll = 9223372036854775807ll;
6192 long long int nll = -9223372036854775807LL;
6193 unsigned long long int ull = 18446744073709551615ULL;
6194 /* Test constant expressions. */
6195 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6197 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6203 /* Test availability of runtime routines for shift and division. */
6204 long long int llmax = 9223372036854775807ll;
6205 unsigned long long int ullmax = 18446744073709551615ull;
6206 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6207 | (llmax / ll) | (llmax % ll)
6208 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6209 | (ullmax / ull) | (ullmax % ull));
6215 if ac_fn_cxx_try_link
"$LINENO"; then :
6216 if test "$cross_compiling" = yes; then :
6217 ac_cv_type_long_long_int
=yes
6219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6224 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6225 # define LLONG_MAX (HALF - 1 + HALF)
6230 long long int n = 1;
6234 long long int m = n << i;
6237 if (LLONG_MAX / 2 < m)
6245 if ac_fn_cxx_try_run
"$LINENO"; then :
6246 ac_cv_type_long_long_int
=yes
6248 ac_cv_type_long_long_int
=no
6250 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6251 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6255 ac_cv_type_long_long_int
=no
6257 rm -f core conftest.err conftest.
$ac_objext \
6258 conftest
$ac_exeext conftest.
$ac_ext
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6261 $as_echo "$ac_cv_type_long_long_int" >&6; }
6262 if test $ac_cv_type_long_long_int = yes; then
6264 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6270 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6271 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6273 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6276 test $ac_cv_type_long_long_int = yes \
6277 && ac_type
='long long int' \
6278 || ac_type
='long int'
6280 cat >>confdefs.h
<<_ACEOF
6281 #define intmax_t $ac_type
6288 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6289 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6291 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6294 for ac_type
in 'int' 'long int' 'long long int'; do
6295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6297 $ac_includes_default
6301 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6308 if ac_fn_cxx_try_compile
"$LINENO"; then :
6310 cat >>confdefs.h
<<_ACEOF
6311 #define intptr_t $ac_type
6316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6317 test -z "$ac_type" && break
6322 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6323 case $ac_cv_c_uint8_t in #(
6327 $as_echo "#define _UINT8_T 1" >>confdefs.h
6330 cat >>confdefs.h
<<_ACEOF
6331 #define uint8_t $ac_cv_c_uint8_t
6336 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6337 case $ac_cv_c_uint16_t in #(
6342 cat >>confdefs.h
<<_ACEOF
6343 #define uint16_t $ac_cv_c_uint16_t
6348 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6349 case $ac_cv_c_uint32_t in #(
6353 $as_echo "#define _UINT32_T 1" >>confdefs.h
6356 cat >>confdefs.h
<<_ACEOF
6357 #define uint32_t $ac_cv_c_uint32_t
6362 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6363 case $ac_cv_c_uint64_t in #(
6367 $as_echo "#define _UINT64_T 1" >>confdefs.h
6370 cat >>confdefs.h
<<_ACEOF
6371 #define uint64_t $ac_cv_c_uint64_t
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6378 $as_echo_n "checking for unsigned long long int... " >&6; }
6379 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6380 $as_echo_n "(cached) " >&6
6382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6385 /* For now, do not test the preprocessor; as of 2007 there are too many
6386 implementations with broken preprocessors. Perhaps this can
6387 be revisited in 2012. In the meantime, code should not expect
6388 #if to work with literals wider than 32 bits. */
6389 /* Test literals. */
6390 long long int ll = 9223372036854775807ll;
6391 long long int nll = -9223372036854775807LL;
6392 unsigned long long int ull = 18446744073709551615ULL;
6393 /* Test constant expressions. */
6394 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6396 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6402 /* Test availability of runtime routines for shift and division. */
6403 long long int llmax = 9223372036854775807ll;
6404 unsigned long long int ullmax = 18446744073709551615ull;
6405 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6406 | (llmax / ll) | (llmax % ll)
6407 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6408 | (ullmax / ull) | (ullmax % ull));
6414 if ac_fn_cxx_try_link
"$LINENO"; then :
6415 ac_cv_type_unsigned_long_long_int
=yes
6417 ac_cv_type_unsigned_long_long_int
=no
6419 rm -f core conftest.err conftest.
$ac_objext \
6420 conftest
$ac_exeext conftest.
$ac_ext
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6423 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6424 if test $ac_cv_type_unsigned_long_long_int = yes; then
6426 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6432 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6433 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6435 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6438 test $ac_cv_type_unsigned_long_long_int = yes \
6439 && ac_type
='unsigned long long int' \
6440 || ac_type
='unsigned long int'
6442 cat >>confdefs.h
<<_ACEOF
6443 #define uintmax_t $ac_type
6450 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6451 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6453 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6456 for ac_type
in 'unsigned int' 'unsigned long int' \
6457 'unsigned long long int'; do
6458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 $ac_includes_default
6464 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6471 if ac_fn_cxx_try_compile
"$LINENO"; then :
6473 cat >>confdefs.h
<<_ACEOF
6474 #define uintptr_t $ac_type
6479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6480 test -z "$ac_type" && break
6497 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6498 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6501 # check what underlying integer type int64_t uses
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6503 $as_echo_n "checking for int64_t underlying type... " >&6; }
6504 if test "${ac_cv_int64_t_type+set}" = set; then :
6505 $as_echo_n "(cached) " >&6
6508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6511 #ifdef HAVE_STDINT_H
6514 template <typename T> struct X { };
6516 struct X<long> { typedef long t; };
6526 if ac_fn_cxx_try_compile
"$LINENO"; then :
6527 ac_cv_int64_t_type
=long
6529 ac_cv_int64_t_type
="long long"
6531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6534 $as_echo "$ac_cv_int64_t_type" >&6; }
6535 if test "$ac_cv_int64_t_type" = "long"; then
6537 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6543 #ifdef HAVE_STDINT_H
6546 template <typename T> struct X { };
6548 struct X<long long> { typedef long long t; };
6558 if ac_fn_cxx_try_compile
"$LINENO"; then :
6561 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6567 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6568 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6580 int a, b; std::swap(a,b);
6585 if ac_fn_cxx_try_compile
"$LINENO"; then :
6586 ac_cv_std_swap_in_utility
=yes
6588 ac_cv_std_swap_in_utility
=no
6590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6593 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6594 if test $ac_cv_std_swap_in_utility = yes; then
6596 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6600 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6601 # If the host compiler is affected by the bug, and we build with optimization
6602 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6603 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6604 # Since there is no reliable feature check for the presence of this bug,
6605 # we simply use a GCC version number check. (This should never trigger for
6606 # stages 2 or 3 of a native bootstrap.)
6608 if test "$GCC" = yes; then
6609 saved_CXXFLAGS
="$CXXFLAGS"
6611 # The following test compilation will succeed if and only if $CXX accepts
6612 # -fno-strict-aliasing *and* is older than GCC 4.3.
6613 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6615 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6619 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6620 #error compiler not affected by placement new aliasing bug
6624 if ac_fn_cxx_try_compile
"$LINENO"; then :
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6626 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6633 CXXFLAGS
="$saved_CXXFLAGS"
6639 # ---------------------
6640 # Warnings and checking
6641 # ---------------------
6643 # Check $CC warning features (if it's GCC).
6644 # We want to use -pedantic, but we don't want warnings about
6647 # * overlong strings
6648 # * C++11 narrowing conversions in { }
6649 # So, we only use -pedantic if we can disable those warnings.
6651 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6652 # Check whether --enable-build-format-warnings was given.
6653 if test "${enable_build_format_warnings+set}" = set; then :
6654 enableval
=$enable_build_format_warnings;
6656 enable_build_format_warnings
=yes
6659 if test $enable_build_format_warnings = no
; then :
6665 ac_cpp
='$CXXCPP $CPPFLAGS'
6666 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6667 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6668 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6671 save_CXXFLAGS
="$CXXFLAGS"
6672 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6673 # Do the check with the no- prefix removed since gcc silently
6674 # accepts any -Wno-* option on purpose
6675 case $real_option in
6676 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6677 *) option
=$real_option ;;
6679 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6682 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6683 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6684 $as_echo_n "(cached) " >&6
6687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6698 if ac_fn_cxx_try_compile
"$LINENO"; then :
6699 eval "$as_acx_Woption=yes"
6701 eval "$as_acx_Woption=no"
6703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6706 eval ac_res
=\$
$as_acx_Woption
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6708 $as_echo "$ac_res" >&6; }
6709 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6710 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6713 CXXFLAGS
="$save_CXXFLAGS"
6715 ac_cpp
='$CXXCPP $CPPFLAGS'
6716 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6717 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6718 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6723 ac_cpp
='$CPP $CPPFLAGS'
6724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6729 save_CFLAGS
="$CFLAGS"
6730 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6731 # Do the check with the no- prefix removed since gcc silently
6732 # accepts any -Wno-* option on purpose
6733 case $real_option in
6734 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6735 *) option
=$real_option ;;
6737 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6740 $as_echo_n "checking whether $CC supports $option... " >&6; }
6741 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6742 $as_echo_n "(cached) " >&6
6745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6756 if ac_fn_c_try_compile
"$LINENO"; then :
6757 eval "$as_acx_Woption=yes"
6759 eval "$as_acx_Woption=no"
6761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6764 eval ac_res
=\$
$as_acx_Woption
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6766 $as_echo "$ac_res" >&6; }
6767 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6768 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6771 CFLAGS
="$save_CFLAGS"
6773 ac_cpp
='$CXXCPP $CPPFLAGS'
6774 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6775 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6776 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6780 ac_cpp
='$CXXCPP $CPPFLAGS'
6781 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6786 save_CXXFLAGS
="$CXXFLAGS"
6787 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6788 # Do the check with the no- prefix removed since gcc silently
6789 # accepts any -Wno-* option on purpose
6790 case $real_option in
6791 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6792 *) option
=$real_option ;;
6794 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6797 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6798 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6799 $as_echo_n "(cached) " >&6
6802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6813 if ac_fn_cxx_try_compile
"$LINENO"; then :
6814 eval "$as_acx_Woption=yes"
6816 eval "$as_acx_Woption=no"
6818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6821 eval ac_res
=\$
$as_acx_Woption
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6823 $as_echo "$ac_res" >&6; }
6824 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6825 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6828 CXXFLAGS
="$save_CXXFLAGS"
6830 ac_cpp
='$CXXCPP $CPPFLAGS'
6831 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6832 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6833 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6837 ac_cpp
='$CPP $CPPFLAGS'
6838 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6843 save_CFLAGS
="$CFLAGS"
6844 for real_option
in -Wold-style-definition -Wc++-compat; do
6845 # Do the check with the no- prefix removed since gcc silently
6846 # accepts any -Wno-* option on purpose
6847 case $real_option in
6848 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6849 *) option
=$real_option ;;
6851 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6854 $as_echo_n "checking whether $CC supports $option... " >&6; }
6855 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6856 $as_echo_n "(cached) " >&6
6859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6870 if ac_fn_c_try_compile
"$LINENO"; then :
6871 eval "$as_acx_Woption=yes"
6873 eval "$as_acx_Woption=no"
6875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6878 eval ac_res
=\$
$as_acx_Woption
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6880 $as_echo "$ac_res" >&6; }
6881 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6882 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6885 CFLAGS
="$save_CFLAGS"
6887 ac_cpp
='$CXXCPP $CPPFLAGS'
6888 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6889 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6890 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6894 ac_cpp
='$CXXCPP $CPPFLAGS'
6895 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6896 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6897 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6899 # Do the check with the no- prefix removed from the warning options
6900 # since gcc silently accepts any -Wno-* option on purpose
6901 if test "$GXX" = yes; then :
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6903 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6904 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6907 save_CXXFLAGS
="$CXXFLAGS"
6908 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6920 if ac_fn_cxx_try_compile
"$LINENO"; then :
6921 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6923 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6926 CXXFLAGS
="$save_CXXFLAGS"
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6929 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6930 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6931 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6936 ac_cpp
='$CXXCPP $CPPFLAGS'
6937 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6943 ac_cpp
='$CXXCPP $CPPFLAGS'
6944 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6948 # Check whether --enable-werror-always was given.
6949 if test "${enable_werror_always+set}" = set; then :
6950 enableval
=$enable_werror_always;
6952 enable_werror_always
=no
6955 if test $enable_werror_always = yes; then :
6956 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6960 ac_cpp
='$CXXCPP $CPPFLAGS'
6961 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6967 # The above macros do nothing if the compiler is not GCC. However, the
6968 # Makefile has more goo to add other flags, so these variables are used
6969 # to enable warnings only for GCC.
6972 if test "x$GCC" = "xyes"; then
6973 warn_cflags
='$(GCC_WARN_CFLAGS)'
6974 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6979 # Disable exceptions and RTTI if building with g++
6981 ac_cpp
='$CPP $CPPFLAGS'
6982 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6987 save_CFLAGS
="$CFLAGS"
6988 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6989 # Do the check with the no- prefix removed since gcc silently
6990 # accepts any -Wno-* option on purpose
6991 case $real_option in
6992 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6993 *) option
=$real_option ;;
6995 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6998 $as_echo_n "checking whether $CC supports $option... " >&6; }
6999 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7000 $as_echo_n "(cached) " >&6
7003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7014 if ac_fn_c_try_compile
"$LINENO"; then :
7015 eval "$as_acx_Woption=yes"
7017 eval "$as_acx_Woption=no"
7019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7022 eval ac_res
=\$
$as_acx_Woption
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7024 $as_echo "$ac_res" >&6; }
7025 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7026 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7029 CFLAGS
="$save_CFLAGS"
7031 ac_cpp
='$CXXCPP $CPPFLAGS'
7032 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7038 # Enable expensive internal checks
7040 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7044 # Check whether --enable-checking was given.
7045 if test "${enable_checking+set}" = set; then :
7046 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7049 # Determine the default checks.
7050 if test x
$is_release = x
; then
7051 ac_checking_flags
=yes,extra
7053 ac_checking_flags
=release
7057 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7058 for check
in release
$ac_checking_flags
7061 # these set all the flags to specific states
7062 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7063 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7064 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7065 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7066 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7067 ac_types_checking
=1 ;;
7068 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7069 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7070 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7071 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7072 ac_tree_checking
= ; ac_valgrind_checking
= ;
7073 ac_types_checking
= ;;
7074 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7075 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7076 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7077 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7078 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7079 ac_types_checking
=1 ;;
7080 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7081 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7082 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7083 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7084 ac_tree_checking
= ; ac_valgrind_checking
= ;
7085 ac_types_checking
= ;;
7086 # these enable particular checks
7087 assert
) ac_assert_checking
=1 ;;
7088 df
) ac_df_checking
=1 ;;
7089 extra
) ac_extra_checking
=1 ;;
7090 fold) ac_fold_checking
=1 ;;
7091 gc
) ac_gc_checking
=1 ;;
7092 gcac
) ac_gc_always_collect
=1 ;;
7093 gimple
) ac_gimple_checking
=1 ;;
7094 misc
) ac_checking
=1 ;;
7095 rtl
) ac_rtl_checking
=1 ;;
7096 rtlflag
) ac_rtlflag_checking
=1 ;;
7097 runtime
) ac_runtime_checking
=1 ;;
7098 tree
) ac_tree_checking
=1 ;;
7099 types
) ac_types_checking
=1 ;;
7100 valgrind
) ac_valgrind_checking
=1 ;;
7101 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7107 if test x
$ac_checking != x
; then
7109 $as_echo "#define CHECKING_P 1" >>confdefs.h
7111 nocommon_flag
=-fno-common
7113 $as_echo "#define CHECKING_P 0" >>confdefs.h
7117 if test x
$ac_extra_checking != x
; then
7119 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7122 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7125 if test x
$ac_df_checking != x
; then
7127 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7130 if test x
$ac_assert_checking != x
; then
7132 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7135 if test x
$ac_gimple_checking != x
; then
7137 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7141 if test x
$ac_runtime_checking != x
; then
7143 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7146 if test x
$ac_tree_checking != x
; then
7148 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7152 if test x
$ac_types_checking != x
; then
7154 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7158 if test x
$ac_rtl_checking != x
; then
7160 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7163 if test x
$ac_rtlflag_checking != x
; then
7165 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7168 if test x
$ac_gc_checking != x
; then
7170 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7173 if test x
$ac_gc_always_collect != x
; then
7175 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7178 if test x
$ac_fold_checking != x
; then
7180 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7183 valgrind_path_defines
=
7186 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7187 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7195 # It is certainly possible that there's valgrind but no valgrind.h.
7196 # GCC relies on making annotations so we must have both.
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7198 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 #include <valgrind/memcheck.h>
7202 #ifndef VALGRIND_DISCARD
7203 #error VALGRIND_DISCARD not defined
7206 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7207 gcc_cv_header_valgrind_memcheck_h
=yes
7209 gcc_cv_header_valgrind_memcheck_h
=no
7211 rm -f conftest.err conftest.
$ac_ext
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7213 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7215 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218 #include <memcheck.h>
7219 #ifndef VALGRIND_DISCARD
7220 #error VALGRIND_DISCARD not defined
7223 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7224 gcc_cv_header_memcheck_h
=yes
7226 gcc_cv_header_memcheck_h
=no
7228 rm -f conftest.err conftest.
$ac_ext
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7230 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7231 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7233 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7236 if test $gcc_cv_header_memcheck_h = yes; then
7238 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7242 if test x
$ac_valgrind_checking != x
; then
7244 # Prepare PATH_SEPARATOR.
7245 # The user is always right.
7246 if test "${PATH_SEPARATOR+set}" != set; then
7247 echo "#! /bin/sh" >conf$$.sh
7248 echo "exit 0" >>conf$$.sh
7250 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7258 # Find out how to test for executable files. Don't use a zero-byte file,
7259 # as systems may use methods other than mode bits to determine executability.
7260 cat >conf$$.
file <<_ASEOF
7264 chmod +x conf$$.
file
7265 if test -x conf$$.
file >/dev
/null
2>&1; then
7266 ac_executable_p
="test -x"
7268 ac_executable_p
="test -f"
7272 # Extract the first word of "valgrind", so it can be a program name with args.
7273 set dummy valgrind
; ac_word
=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7279 case "$valgrind_path" in
7281 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7284 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7285 for ac_dir
in $PATH; do
7287 test -z "$ac_dir" && ac_dir
=.
7288 for ac_exec_ext
in '' $ac_executable_extensions; do
7289 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7290 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7291 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7301 valgrind_path
="$ac_cv_path_valgrind_path"
7302 if test -n "$valgrind_path"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7304 $as_echo "$valgrind_path" >&6; }
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7310 if test "x$valgrind_path" = "x" \
7311 ||
(test $have_valgrind_h = no \
7312 && test $gcc_cv_header_memcheck_h = no \
7313 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7314 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7316 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7317 valgrind_command
="$valgrind_path -q"
7319 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7325 # Enable code coverage collection
7326 # Check whether --enable-coverage was given.
7327 if test "${enable_coverage+set}" = set; then :
7328 enableval
=$enable_coverage; case "${enableval}" in
7330 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7333 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7336 # a.k.a. --disable-coverage
7340 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7349 # Check whether --enable-gather-detailed-mem-stats was given.
7350 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7351 enableval
=$enable_gather_detailed_mem_stats;
7353 enable_gather_detailed_mem_stats
=no
7356 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7358 cat >>confdefs.h
<<_ACEOF
7359 #define GATHER_STATISTICS $gather_stats
7363 # Check whether --enable-valgrind-annotations was given.
7364 if test "${enable_valgrind_annotations+set}" = set; then :
7365 enableval
=$enable_valgrind_annotations;
7367 enable_valgrind_annotations
=no
7370 if test x
$enable_valgrind_annotations != xno \
7371 ||
test x
$ac_valgrind_checking != x
; then
7372 if (test $have_valgrind_h = no \
7373 && test $gcc_cv_header_memcheck_h = no \
7374 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7375 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7378 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7382 # -------------------------------
7383 # Miscenalleous configure options
7384 # -------------------------------
7388 # Check whether --with-stabs was given.
7389 if test "${with_stabs+set}" = set; then :
7390 withval
=$with_stabs; stabs
="$with_stabs"
7396 # Determine whether or not multilibs are enabled.
7397 # Check whether --enable-multilib was given.
7398 if test "${enable_multilib+set}" = set; then :
7399 enableval
=$enable_multilib;
7406 # Determine whether or not multiarch is enabled.
7407 # Check whether --enable-multiarch was given.
7408 if test "${enable_multiarch+set}" = set; then :
7409 enableval
=$enable_multiarch; case "${enableval}" in
7410 yes|no|auto
) enable_multiarch
=$enableval;;
7411 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7414 enable_multiarch
=auto
7417 if test x
${enable_multiarch} = xauto
; then
7418 if test x
${with_native_system_header_dir} != x
; then
7419 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7422 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7423 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7428 $as_echo_n "checking for multiarch configuration... " >&6; }
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7431 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7433 # needed for setting the multiarch name for soft-float/hard-float ABIs
7437 # Enable __cxa_atexit for C++.
7438 # Check whether --enable-__cxa_atexit was given.
7439 if test "${enable___cxa_atexit+set}" = set; then :
7440 enableval
=$enable___cxa_atexit;
7444 # Enable C extension for decimal float if target supports it.
7446 # Check whether --enable-decimal-float was given.
7447 if test "${enable_decimal_float+set}" = set; then :
7448 enableval
=$enable_decimal_float;
7449 case $enable_decimal_float in
7450 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7451 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7452 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7458 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7459 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7460 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7461 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7462 enable_decimal_float
=yes
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7466 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7467 enable_decimal_float
=no
7474 # x86's use BID format instead of DPD
7475 case x
$enable_decimal_float in
7478 i?
86*-*-* | x86_64
*-*-*)
7479 enable_decimal_float
=bid
7482 enable_decimal_float
=dpd
7485 default_decimal_float
=$enable_decimal_float
7488 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7489 # dependency on libdecnumber.
7490 default_decimal_float
=dpd
7497 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7499 cat >>confdefs.h
<<_ACEOF
7500 #define ENABLE_DECIMAL_FLOAT $dfp
7504 # Use default_decimal_float for dependency.
7505 enable_decimal_float
=$default_decimal_float
7507 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7509 cat >>confdefs.h
<<_ACEOF
7510 #define ENABLE_DECIMAL_BID_FORMAT $bid
7514 # Enable C extension for fixed-point arithmetic.
7515 # Check whether --enable-fixed-point was given.
7516 if test "${enable_fixed_point+set}" = set; then :
7517 enableval
=$enable_fixed_point;
7522 enable_fixed_point
=yes
7526 enable_fixed_point
=yes
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7530 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7531 enable_fixed_point
=no
7539 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7541 cat >>confdefs.h
<<_ACEOF
7542 #define ENABLE_FIXED_POINT $fixedpoint
7547 # Pass with no value to take the default
7548 # Pass with a value to specify a thread package
7549 # Check whether --enable-threads was given.
7550 if test "${enable_threads+set}" = set; then :
7551 enableval
=$enable_threads;
7557 # Check whether --enable-tls was given.
7558 if test "${enable_tls+set}" = set; then :
7559 enableval
=$enable_tls;
7562 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7563 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7571 # Check whether --enable-vtable-verify was given.
7572 if test "${enable_vtable_verify+set}" = set; then :
7573 enableval
=$enable_vtable_verify;
7575 enable_vtable_verify
=no
7578 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7580 cat >>confdefs.h
<<_ACEOF
7581 #define ENABLE_VTABLE_VERIFY $vtable_verify
7585 # Check whether --enable-objc-gc was given.
7586 if test "${enable_objc_gc+set}" = set; then :
7587 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7598 # Check whether --with-dwarf2 was given.
7599 if test "${with_dwarf2+set}" = set; then :
7600 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7606 # Check whether --enable-shared was given.
7607 if test "${enable_shared+set}" = set; then :
7608 enableval
=$enable_shared;
7609 case $enable_shared in
7613 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7614 for pkg
in $enableval; do
7615 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7630 # Check whether --with-specs was given.
7631 if test "${with_specs+set}" = set; then :
7632 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7642 # Check whether --with-pkgversion was given.
7643 if test "${with_pkgversion+set}" = set; then :
7644 withval
=$with_pkgversion; case "$withval" in
7645 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7647 *) PKGVERSION
="($withval) " ;;
7658 # Check whether --with-bugurl was given.
7659 if test "${with_bugurl+set}" = set; then :
7660 withval
=$with_bugurl; case "$withval" in
7661 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7664 *) BUGURL
="$withval"
7668 BUGURL
="https://gcc.gnu.org/bugs/"
7678 REPORT_BUGS_TO
="<$BUGURL>"
7679 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7686 # Sanity check enable_languages in case someone does not run the toplevel
7687 # configure # script.
7688 # Check whether --enable-languages was given.
7689 if test "${enable_languages+set}" = set; then :
7690 enableval
=$enable_languages; case ,${enable_languages}, in
7692 # go safe -- we cannot be much sure without the toplevel
7694 # analysis of which target libs are present and usable
7698 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7703 enable_languages
=c
,${enable_languages}
7711 if test x
"$enable_as_accelerator_for" != x
; then
7713 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7715 enable_as_accelerator
=yes
7718 # In this case we expect offload compiler to be built as native, so we
7719 # need to rename the driver to avoid clashes with host's drivers.
7720 program_transform_name
="s&^&${target}-&" ;;
7722 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7723 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7724 accel_dir_suffix
=/accel
/${target_noncanonical}
7725 real_target_noncanonical
=${enable_as_accelerator_for}
7731 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7732 tgt
=`echo $tgt | sed 's/=.*//'`
7734 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7740 if test x
"$offload_targets" = x
; then
7741 offload_targets
=$tgt
7743 offload_targets
="$offload_targets,$tgt"
7747 cat >>confdefs.h
<<_ACEOF
7748 #define OFFLOAD_TARGETS "$offload_targets"
7751 if test x
"$enable_offloading" != x
; then
7753 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7757 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7761 if test x
"$enable_hsa" = x1
; then
7763 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7768 # Check whether --with-multilib-list was given.
7769 if test "${with_multilib_list+set}" = set; then :
7770 withval
=$with_multilib_list; :
7772 with_multilib_list
=default
7776 # -------------------------
7777 # Checks for other programs
7778 # -------------------------
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7781 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7783 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7784 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7785 $as_echo_n "(cached) " >&6
7787 cat >conftest.
make <<\_ACEOF
7790 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7792 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7793 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7795 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7797 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7801 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7803 $as_echo "yes" >&6; }
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808 SET_MAKE
="MAKE=${MAKE-make}"
7812 # Find some useful tools
7813 for ac_prog
in gawk mawk nawk
awk
7815 # Extract the first word of "$ac_prog", so it can be a program name with args.
7816 set dummy
$ac_prog; ac_word
=$2
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 $as_echo_n "checking for $ac_word... " >&6; }
7819 if test "${ac_cv_prog_AWK+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7822 if test -n "$AWK"; then
7823 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7829 test -z "$as_dir" && as_dir
=.
7830 for ac_exec_ext
in '' $ac_executable_extensions; do
7831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7832 ac_cv_prog_AWK
="$ac_prog"
7833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 if test -n "$AWK"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7845 $as_echo "$AWK" >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7852 test -n "$AWK" && break
7855 # We need awk to create options.c and options.h.
7856 # Bail out if it's missing.
7858 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7862 $as_echo_n "checking whether ln -s works... " >&6; }
7863 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7866 rm -f conftestdata_t
7867 echo >conftestdata_f
7868 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7870 gcc_cv_prog_LN_S
="ln -s"
7872 if ln conftestdata_f conftestdata_t
2>/dev
/null
7876 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7878 gcc_cv_prog_LN_S
="cp -p"
7884 rm -f conftestdata_f conftestdata_t
7887 LN_S
="$gcc_cv_prog_LN_S"
7888 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7890 $as_echo "yes" >&6; }
7892 if test "$gcc_cv_prog_LN_S" = "ln"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7894 $as_echo "no, using ln" >&6; }
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7897 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7902 $as_echo_n "checking whether ln works... " >&6; }
7903 if test "${acx_cv_prog_LN+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7906 rm -f conftestdata_t
7907 echo >conftestdata_f
7908 if ln conftestdata_f conftestdata_t
2>/dev
/null
7914 rm -f conftestdata_f conftestdata_t
7917 if test $acx_cv_prog_LN = no
; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7920 $as_echo "no, using $LN" >&6; }
7922 LN
="$acx_cv_prog_LN"
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7924 $as_echo "yes" >&6; }
7927 if test -n "$ac_tool_prefix"; then
7928 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7929 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7935 if test -n "$RANLIB"; then
7936 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7942 test -z "$as_dir" && as_dir
=.
7943 for ac_exec_ext
in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 RANLIB
=$ac_cv_prog_RANLIB
7956 if test -n "$RANLIB"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7958 $as_echo "$RANLIB" >&6; }
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7966 if test -z "$ac_cv_prog_RANLIB"; then
7967 ac_ct_RANLIB
=$RANLIB
7968 # Extract the first word of "ranlib", so it can be a program name with args.
7969 set dummy ranlib
; ac_word
=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7975 if test -n "$ac_ct_RANLIB"; then
7976 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7982 test -z "$as_dir" && as_dir
=.
7983 for ac_exec_ext
in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7996 if test -n "$ac_ct_RANLIB"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7998 $as_echo "$ac_ct_RANLIB" >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8004 if test "x$ac_ct_RANLIB" = x
; then
8007 case $cross_compiling:$ac_tool_warned in
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8011 ac_tool_warned
=yes ;;
8013 RANLIB
=$ac_ct_RANLIB
8016 RANLIB
="$ac_cv_prog_RANLIB"
8022 # Find a good install program. We prefer a C program (faster),
8023 # so one script is as good as another. But avoid the broken or
8024 # incompatible versions:
8025 # SysV /etc/install, /usr/sbin/install
8026 # SunOS /usr/etc/install
8027 # IRIX /sbin/install
8029 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8030 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8031 # ./install, which can be erroneously created by make from ./install.sh.
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8033 $as_echo_n "checking for a BSD compatible install... " >&6; }
8034 if test -z "$INSTALL"; then
8035 if test "${ac_cv_path_install+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
8038 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8039 for ac_dir
in $PATH; do
8040 # Account for people who put trailing slashes in PATH elements.
8042 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8044 # OSF1 and SCO ODT 3.0 have their own names for install.
8045 for ac_prog
in ginstall scoinst
install; do
8046 if test -f $ac_dir/$ac_prog; then
8047 if test $ac_prog = install &&
8048 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8049 # AIX install. It has an incompatible calling convention.
8050 # OSF/1 installbsd also uses dspmsg, but is usable.
8053 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8064 if test "${ac_cv_path_install+set}" = set; then
8065 INSTALL
="$ac_cv_path_install"
8067 # As a last resort, use the slow shell script. We don't cache a
8068 # path for INSTALL within a source directory, because that will
8069 # break other packages using the cache if that directory is
8070 # removed, or if the path is relative.
8071 INSTALL
="$ac_install_sh"
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8075 $as_echo "$INSTALL" >&6; }
8077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8078 # It thinks the first close brace ends the variable substitution.
8079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8081 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8084 # See if cmp has --ignore-initial.
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8086 $as_echo_n "checking for cmp's capabilities... " >&6; }
8087 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8088 $as_echo_n "(cached) " >&6
8092 gcc_cv_prog_cmp_skip
=slowcompare
8093 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8094 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8097 gcc_cv_prog_cmp_skip
=gnucompare
8100 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8101 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8102 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8105 gcc_cv_prog_cmp_skip
=fastcompare
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8113 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8114 make_compare_target
=$gcc_cv_prog_cmp_skip
8118 # See if we have the mktemp command.
8119 # Extract the first word of "mktemp", so it can be a program name with args.
8120 set dummy mktemp
; ac_word
=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8126 if test -n "$have_mktemp_command"; then
8127 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8133 test -z "$as_dir" && as_dir
=.
8134 for ac_exec_ext
in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136 ac_cv_prog_have_mktemp_command
="yes"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8147 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8148 if test -n "$have_mktemp_command"; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8150 $as_echo "$have_mktemp_command" >&6; }
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }
8158 # See if makeinfo has been installed and is modern enough
8159 # that we can use it.
8161 # Extract the first word of "makeinfo", so it can be a program name with args.
8162 set dummy makeinfo
; ac_word
=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8168 if test -n "$MAKEINFO"; then
8169 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8175 test -z "$as_dir" && as_dir
=.
8176 for ac_exec_ext
in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_prog_MAKEINFO
="makeinfo"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 MAKEINFO
=$ac_cv_prog_MAKEINFO
8189 if test -n "$MAKEINFO"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8191 $as_echo "$MAKEINFO" >&6; }
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8198 if test -n "$MAKEINFO"; then
8199 # Found it, now check the version.
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8201 $as_echo_n "checking for modern makeinfo... " >&6; }
8202 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8205 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8206 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8208 case $ac_prog_version in
8209 '') gcc_cv_prog_makeinfo_modern
=no
;;
8210 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8211 *) gcc_cv_prog_makeinfo_modern
=no
;;
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8216 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8218 gcc_cv_prog_makeinfo_modern
=no
8220 if test $gcc_cv_prog_makeinfo_modern = no
; then
8221 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8224 if test $gcc_cv_prog_makeinfo_modern = no
; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8226 *** Makeinfo is missing or too old.
8227 *** Info documentation will not be built." >&5
8228 $as_echo "$as_me: WARNING:
8229 *** Makeinfo is missing or too old.
8230 *** Info documentation will not be built." >&2;}
8237 # Is pod2man recent enough to regenerate manpages?
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8239 $as_echo_n "checking for recent Pod::Man... " >&6; }
8240 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8242 $as_echo "yes" >&6; }
8243 GENERATED_MANPAGES
=generated-manpages
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8251 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8256 # Extract the first word of "$ac_prog", so it can be a program name with args.
8257 set dummy
$ac_prog; ac_word
=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_FLEX+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8263 if test -n "$FLEX"; then
8264 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8270 test -z "$as_dir" && as_dir
=.
8271 for ac_exec_ext
in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_prog_FLEX
="$ac_prog"
8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 FLEX
=$ac_cv_prog_FLEX
8284 if test -n "$FLEX"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8286 $as_echo "$FLEX" >&6; }
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8293 test -n "$FLEX" && break
8295 test -n "$FLEX" || FLEX
="$MISSING flex"
8299 for ac_prog
in bison
8301 # Extract the first word of "$ac_prog", so it can be a program name with args.
8302 set dummy
$ac_prog; ac_word
=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if test "${ac_cv_prog_BISON+set}" = set; then :
8306 $as_echo_n "(cached) " >&6
8308 if test -n "$BISON"; then
8309 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8315 test -z "$as_dir" && as_dir
=.
8316 for ac_exec_ext
in '' $ac_executable_extensions; do
8317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8318 ac_cv_prog_BISON
="$ac_prog"
8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 BISON
=$ac_cv_prog_BISON
8329 if test -n "$BISON"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8331 $as_echo "$BISON" >&6; }
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8338 test -n "$BISON" && break
8340 test -n "$BISON" || BISON
="$MISSING bison"
8343 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8344 # check for build == host before using them.
8347 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8348 && test -d ..
/binutils
; then
8349 NM
='${objdir}/../binutils/nm-new'
8351 # Extract the first word of "nm", so it can be a program name with args.
8352 set dummy nm
; ac_word
=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if test "${ac_cv_prog_NM+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
8358 if test -n "$NM"; then
8359 ac_cv_prog_NM
="$NM" # Let the user override the test.
8361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8365 test -z "$as_dir" && as_dir
=.
8366 for ac_exec_ext
in '' $ac_executable_extensions; do
8367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8380 if test -n "$NM"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8382 $as_echo "$NM" >&6; }
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8392 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8393 && test -d ..
/binutils
; then
8394 AR
='${objdir}/../binutils/ar'
8396 # Extract the first word of "ar", so it can be a program name with args.
8397 set dummy
ar; ac_word
=$2
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8399 $as_echo_n "checking for $ac_word... " >&6; }
8400 if test "${ac_cv_prog_AR+set}" = set; then :
8401 $as_echo_n "(cached) " >&6
8403 if test -n "$AR"; then
8404 ac_cv_prog_AR
="$AR" # Let the user override the test.
8406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8410 test -z "$as_dir" && as_dir
=.
8411 for ac_exec_ext
in '' $ac_executable_extensions; do
8412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8425 if test -n "$AR"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8427 $as_echo "$AR" >&6; }
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8436 # The jit documentation looks better if built with sphinx, but can be
8437 # built with texinfo if sphinx is not available.
8438 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8439 # Extract the first word of "sphinx-build", so it can be a program name with args.
8440 set dummy sphinx-build
; ac_word
=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
8446 if test -n "$doc_build_sys"; then
8447 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8453 test -z "$as_dir" && as_dir
=.
8454 for ac_exec_ext
in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_prog_doc_build_sys
="sphinx"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8467 doc_build_sys
=$ac_cv_prog_doc_build_sys
8468 if test -n "$doc_build_sys"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8470 $as_echo "$doc_build_sys" >&6; }
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8478 # --------------------
8479 # Checks for C headers
8480 # --------------------
8482 # Need to reject headers which give warnings, so that the -Werror bootstrap
8483 # works later. *sigh* This needs to come before all header checks.
8485 ac_c_preproc_warn_flag
=yes
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8488 $as_echo_n "checking for ANSI C header files... " >&6; }
8489 if test "${ac_cv_header_stdc+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8507 if ac_fn_cxx_try_compile
"$LINENO"; then :
8508 ac_cv_header_stdc
=yes
8510 ac_cv_header_stdc
=no
8512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8514 if test $ac_cv_header_stdc = yes; then
8515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8522 $EGREP "memchr" >/dev
/null
2>&1; then :
8525 ac_cv_header_stdc
=no
8531 if test $ac_cv_header_stdc = yes; then
8532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8539 $EGREP "free" >/dev
/null
2>&1; then :
8542 ac_cv_header_stdc
=no
8548 if test $ac_cv_header_stdc = yes; then
8549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8550 if test "$cross_compiling" = yes; then :
8553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8557 #if ((' ' & 0x0FF) == 0x020)
8558 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8559 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8561 # define ISLOWER(c) \
8562 (('a' <= (c) && (c) <= 'i') \
8563 || ('j' <= (c) && (c) <= 'r') \
8564 || ('s' <= (c) && (c) <= 'z'))
8565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8573 for (i = 0; i < 256; i++)
8574 if (XOR (islower (i), ISLOWER (i))
8575 || toupper (i) != TOUPPER (i))
8580 if ac_fn_cxx_try_run
"$LINENO"; then :
8583 ac_cv_header_stdc
=no
8585 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8586 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8592 $as_echo "$ac_cv_header_stdc" >&6; }
8593 if test $ac_cv_header_stdc = yes; then
8595 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8600 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8601 if test "${ac_cv_header_time+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 #include <sys/types.h>
8607 #include <sys/time.h>
8613 if ((struct tm *) 0)
8619 if ac_fn_cxx_try_compile
"$LINENO"; then :
8620 ac_cv_header_time
=yes
8622 ac_cv_header_time
=no
8624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8627 $as_echo "$ac_cv_header_time" >&6; }
8628 if test $ac_cv_header_time = yes; then
8630 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8635 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8636 if test "${gcc_cv_header_string+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8642 #include <strings.h>
8651 if ac_fn_cxx_try_compile
"$LINENO"; then :
8652 gcc_cv_header_string
=yes
8654 gcc_cv_header_string
=no
8656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8659 $as_echo "$gcc_cv_header_string" >&6; }
8660 if test $gcc_cv_header_string = yes; then
8662 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8667 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8668 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8669 $as_echo_n "(cached) " >&6
8671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 #include <sys/types.h>
8674 #include <sys/wait.h>
8676 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8679 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8687 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8692 if ac_fn_cxx_try_compile
"$LINENO"; then :
8693 ac_cv_header_sys_wait_h
=yes
8695 ac_cv_header_sys_wait_h
=no
8697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8700 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8701 if test $ac_cv_header_sys_wait_h = yes; then
8703 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8708 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8709 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #include <sys/types.h>
8715 #include <termios.h>
8721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8722 $EGREP "yes" >/dev
/null
2>&1; then :
8723 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8725 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8731 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8733 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8735 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8736 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741 #include <sys/types.h>
8742 #include <sys/ioctl.h>
8748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8749 $EGREP "yes" >/dev
/null
2>&1; then :
8750 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8752 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8758 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8760 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8762 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8767 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8768 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8769 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8770 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8772 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8773 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8774 eval as_val
=\$
$as_ac_Header
8775 if test "x$as_val" = x
""yes; then :
8776 cat >>confdefs.h
<<_ACEOF
8777 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8784 # Check for thread headers.
8785 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8786 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8792 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8793 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8800 # These tests can't be done till we know if we have limits.h.
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8802 $as_echo_n "checking for CHAR_BIT... " >&6; }
8803 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8804 $as_echo_n "(cached) " >&6
8806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 #ifdef HAVE_LIMITS_H
8815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8816 $EGREP "found" >/dev
/null
2>&1; then :
8817 gcc_cv_decl_char_bit
=yes
8819 gcc_cv_decl_char_bit
=no
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8826 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8827 if test $gcc_cv_decl_char_bit = no
; then
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8829 $as_echo_n "checking number of bits in a byte... " >&6; }
8830 if test "${gcc_cv_c_nbby+set}" = set; then :
8831 $as_echo_n "(cached) " >&6
8835 while test $i -lt 65; do
8836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8843 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8844 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8850 if ac_fn_cxx_try_compile
"$LINENO"; then :
8851 gcc_cv_c_nbby
=$i; break
8853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8856 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8860 $as_echo "$gcc_cv_c_nbby" >&6; }
8861 if test $gcc_cv_c_nbby = failed
; then
8862 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8865 cat >>confdefs.h
<<_ACEOF
8866 #define CHAR_BIT $gcc_cv_c_nbby
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8872 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8873 if test "${ac_cv_c_bigendian+set}" = set; then :
8874 $as_echo_n "(cached) " >&6
8876 ac_cv_c_bigendian
=unknown
8877 # See if we're dealing with a universal compiler.
8878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8880 #ifndef __APPLE_CC__
8881 not a universal capable compiler
8886 if ac_fn_cxx_try_compile
"$LINENO"; then :
8888 # Check for potential -arch flags. It is not universal unless
8889 # there are at least two -arch flags with different values.
8892 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8893 if test -n "$ac_prev"; then
8895 i?
86 | x86_64 | ppc | ppc64
)
8896 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8899 ac_cv_c_bigendian
=universal
8905 elif test "x$ac_word" = "x-arch"; then
8910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8911 if test $ac_cv_c_bigendian = unknown
; then
8912 # See if sys/param.h defines the BYTE_ORDER macro.
8913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 #include <sys/types.h>
8916 #include <sys/param.h>
8921 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8922 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8931 if ac_fn_cxx_try_compile
"$LINENO"; then :
8932 # It does; now see whether it defined to BIG_ENDIAN or not.
8933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 #include <sys/types.h>
8936 #include <sys/param.h>
8941 #if BYTE_ORDER != BIG_ENDIAN
8949 if ac_fn_cxx_try_compile
"$LINENO"; then :
8950 ac_cv_c_bigendian
=yes
8952 ac_cv_c_bigendian
=no
8954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8958 if test $ac_cv_c_bigendian = unknown
; then
8959 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8967 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8975 if ac_fn_cxx_try_compile
"$LINENO"; then :
8976 # It does; now see whether it defined to _BIG_ENDIAN or not.
8977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h. */
8992 if ac_fn_cxx_try_compile
"$LINENO"; then :
8993 ac_cv_c_bigendian
=yes
8995 ac_cv_c_bigendian
=no
8997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9001 if test $ac_cv_c_bigendian = unknown
; then
9002 # Compile a test program.
9003 if test "$cross_compiling" = yes; then :
9004 # Try to guess by grepping values from an object file.
9005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 short int ascii_mm[] =
9008 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9009 short int ascii_ii[] =
9010 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9011 int use_ascii (int i) {
9012 return ascii_mm[i] + ascii_ii[i];
9014 short int ebcdic_ii[] =
9015 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9016 short int ebcdic_mm[] =
9017 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9018 int use_ebcdic (int i) {
9019 return ebcdic_mm[i] + ebcdic_ii[i];
9026 return use_ascii (foo) == use_ebcdic (foo);
9031 if ac_fn_cxx_try_compile
"$LINENO"; then :
9032 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9033 ac_cv_c_bigendian
=yes
9035 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9036 if test "$ac_cv_c_bigendian" = unknown
; then
9037 ac_cv_c_bigendian
=no
9039 # finding both strings is unlikely to happen, but who knows?
9040 ac_cv_c_bigendian
=unknown
9044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 $ac_includes_default
9053 /* Are we little or big endian? From Harbison&Steele. */
9057 char c[sizeof (long int)];
9060 return u.c[sizeof (long int) - 1] == 1;
9066 if ac_fn_cxx_try_run
"$LINENO"; then :
9067 ac_cv_c_bigendian
=no
9069 ac_cv_c_bigendian
=yes
9071 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9072 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9078 $as_echo "$ac_cv_c_bigendian" >&6; }
9079 case $ac_cv_c_bigendian in #(
9081 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9087 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9091 as_fn_error
"unknown endianness
9092 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9096 # ----------------------
9097 # Checks for C++ headers
9098 # ----------------------
9101 ac_cpp
='$CXXCPP $CPPFLAGS'
9102 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9103 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9104 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9106 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9107 if test -z "$CXXCPP"; then
9108 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9111 # Double quotes because CXXCPP needs to be expanded
9112 for CXXCPP
in "$CXX -E" "/lib/cpp"
9115 for ac_cxx_preproc_warn_flag
in '' yes
9117 # Use a header file that comes with gcc, so configuring glibc
9118 # with a fresh cross-compiler works.
9119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9120 # <limits.h> exists even on freestanding compilers.
9121 # On the NeXT, cc -E runs the code through the compiler's parser,
9122 # not just through cpp. "Syntax error" is here to catch this case.
9123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9126 # include <limits.h>
9128 # include <assert.h>
9132 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9135 # Broken: fails on valid input.
9138 rm -f conftest.err conftest.
$ac_ext
9140 # OK, works on sane cases. Now check whether nonexistent headers
9141 # can be detected and how.
9142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 #include <ac_nonexistent.h>
9146 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9147 # Broken: success on invalid input.
9150 # Passes both tests.
9154 rm -f conftest.err conftest.
$ac_ext
9157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9158 rm -f conftest.err conftest.
$ac_ext
9159 if $ac_preproc_ok; then :
9164 ac_cv_prog_CXXCPP
=$CXXCPP
9167 CXXCPP
=$ac_cv_prog_CXXCPP
9169 ac_cv_prog_CXXCPP
=$CXXCPP
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9172 $as_echo "$CXXCPP" >&6; }
9174 for ac_cxx_preproc_warn_flag
in '' yes
9176 # Use a header file that comes with gcc, so configuring glibc
9177 # with a fresh cross-compiler works.
9178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9179 # <limits.h> exists even on freestanding compilers.
9180 # On the NeXT, cc -E runs the code through the compiler's parser,
9181 # not just through cpp. "Syntax error" is here to catch this case.
9182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9185 # include <limits.h>
9187 # include <assert.h>
9191 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9194 # Broken: fails on valid input.
9197 rm -f conftest.err conftest.
$ac_ext
9199 # OK, works on sane cases. Now check whether nonexistent headers
9200 # can be detected and how.
9201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 #include <ac_nonexistent.h>
9205 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9206 # Broken: success on invalid input.
9209 # Passes both tests.
9213 rm -f conftest.err conftest.
$ac_ext
9216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9217 rm -f conftest.err conftest.
$ac_ext
9218 if $ac_preproc_ok; then :
9221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9224 See \`config.log' for more details." >&5
9225 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9226 See \`config.log' for more details." >&2;}; }
9230 ac_cpp
='$CXXCPP $CPPFLAGS'
9231 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9232 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9233 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9236 for ac_header
in unordered_map
9238 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9239 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9240 cat >>confdefs.h
<<_ACEOF
9241 #define HAVE_UNORDERED_MAP 1
9247 for ac_header
in tr1/unordered_map
9249 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9250 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9251 cat >>confdefs.h
<<_ACEOF
9252 #define HAVE_TR1_UNORDERED_MAP 1
9258 for ac_header
in ext
/hash_map
9260 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9261 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9262 cat >>confdefs.h
<<_ACEOF
9263 #define HAVE_EXT_HASH_MAP 1
9271 # Dependency checking.
9274 rm -rf .tst
2>/dev
/null
9275 mkdir .tst
2>/dev
/null
9276 if test -d .tst
; then
9281 rmdir .tst
2>/dev
/null
9283 DEPDIR
="${am__leading_dot}deps"
9285 ac_config_commands
="$ac_config_commands depdir"
9288 ac_config_commands
="$ac_config_commands gccdepdir"
9291 depcc
="$CXX" am_compiler_list
=
9293 am_depcomp
=$ac_aux_dir/depcomp
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9295 $as_echo_n "checking dependency style of $depcc... " >&6; }
9296 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9299 if test -f "$am_depcomp"; then
9300 # We make a subdir and do the tests there. Otherwise we can end up
9301 # making bogus files that we don't know about and never remove. For
9302 # instance it was reported that on HP-UX the gcc test will end up
9303 # making a dummy file named `D' -- because `-MD' means `put the output
9306 # Copy depcomp to subdir because otherwise we won't find it if we're
9307 # using a relative directory.
9308 cp "$am_depcomp" conftest.dir
9310 # We will build objects and dependencies in a subdirectory because
9311 # it helps to detect inapplicable dependency modes. For instance
9312 # both Tru64's cc and ICC support -MD to output dependencies as a
9313 # side effect of compilation, but ICC will put the dependencies in
9314 # the current directory while Tru64 will put them in the object
9318 am_cv_CXX_dependencies_compiler_type
=none
9319 if test "$am_compiler_list" = ""; then
9320 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9322 for depmode
in $am_compiler_list; do
9323 if test $depmode = none
; then break; fi
9325 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9326 # Setup a source with many dependencies, because some compilers
9327 # like to wrap large dependency lists on column 80 (with \), and
9328 # we should not choose a depcomp mode which is confused by this.
9330 # We need to recreate these files for each test, as the compiler may
9331 # overwrite some of them when testing with obscure command lines.
9332 # This happens at least with the AIX C compiler.
9334 for i
in 1 2 3 4 5 6; do
9335 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9336 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9337 # Solaris 8's {/usr,}/bin/sh.
9338 touch sub
/conftst
$i.h
9340 echo "include sub/conftest.Po" > confmf
9342 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9343 # mode. It turns out that the SunPro C++ compiler does not properly
9344 # handle `-M -o', and we need to detect this.
9345 depcmd
="depmode=$depmode \
9346 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9348 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9349 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9350 if env
$depcmd > conftest.err
2>&1 &&
9351 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9352 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9353 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9354 # icc doesn't choke on unknown options, it will just issue warnings
9355 # or remarks (even with -Werror). So we grep stderr for any message
9356 # that says an option was ignored or not supported.
9357 # When given -MP, icc 7.0 and 7.1 complain thusly:
9358 # icc: Command line warning: ignoring option '-M'; no argument required
9359 # The diagnosis changed in icc 8.0:
9360 # icc: Command line remark: option '-MP' not supported
9361 if (grep 'ignoring option' conftest.err ||
9362 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9363 am_cv_CXX_dependencies_compiler_type
=$depmode
9364 $as_echo "$as_me:$LINENO: success" >&5
9368 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9369 sed -e 's/^/| /' < conftest.err
>&5
9375 am_cv_CXX_dependencies_compiler_type
=none
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9380 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9381 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9382 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9383 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9393 # These libraries may be used by collect2.
9394 # We may need a special search path to get them linked.
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9396 $as_echo_n "checking for collect2 libraries... " >&6; }
9397 if test "${gcc_cv_collect2_libs+set}" = set; then :
9398 $as_echo_n "(cached) " >&6
9401 for libs
in '' -lld -lmld \
9402 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9403 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9409 /* Override any GCC internal prototype to avoid an error.
9410 Use char because int might match the return type of a GCC
9411 builtin and then its argument prototype would still apply. */
9424 if ac_fn_cxx_try_link
"$LINENO"; then :
9425 gcc_cv_collect2_libs
="$libs"; break
9427 rm -f core conftest.err conftest.
$ac_objext \
9428 conftest
$ac_exeext conftest.
$ac_ext
9431 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9434 $as_echo "$gcc_cv_collect2_libs" >&6; }
9435 case $gcc_cv_collect2_libs in
9437 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9441 # When building Ada code on Alpha, we need exc_resume which is usually in
9442 # -lexc. So test for it.
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9446 $as_echo_n "checking for library containing exc_resume... " >&6; }
9447 if test "${ac_cv_search_exc_resume+set}" = set; then :
9448 $as_echo_n "(cached) " >&6
9450 ac_func_search_save_LIBS
=$LIBS
9451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9454 /* Override any GCC internal prototype to avoid an error.
9455 Use char because int might match the return type of a GCC
9456 builtin and then its argument prototype would still apply. */
9464 return exc_resume ();
9469 for ac_lib
in '' exc
; do
9470 if test -z "$ac_lib"; then
9471 ac_res
="none required"
9474 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9476 if ac_fn_cxx_try_link
"$LINENO"; then :
9477 ac_cv_search_exc_resume
=$ac_res
9479 rm -f core conftest.err conftest.
$ac_objext \
9481 if test "${ac_cv_search_exc_resume+set}" = set; then :
9485 if test "${ac_cv_search_exc_resume+set}" = set; then :
9488 ac_cv_search_exc_resume
=no
9491 LIBS
=$ac_func_search_save_LIBS
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9494 $as_echo "$ac_cv_search_exc_resume" >&6; }
9495 ac_res
=$ac_cv_search_exc_resume
9496 if test "$ac_res" != no
; then :
9497 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9505 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9509 $as_echo_n "checking for library containing kstat_open... " >&6; }
9510 if test "${ac_cv_search_kstat_open+set}" = set; then :
9511 $as_echo_n "(cached) " >&6
9513 ac_func_search_save_LIBS
=$LIBS
9514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9517 /* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9527 return kstat_open ();
9532 for ac_lib
in '' kstat
; do
9533 if test -z "$ac_lib"; then
9534 ac_res
="none required"
9537 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9539 if ac_fn_cxx_try_link
"$LINENO"; then :
9540 ac_cv_search_kstat_open
=$ac_res
9542 rm -f core conftest.err conftest.
$ac_objext \
9544 if test "${ac_cv_search_kstat_open+set}" = set; then :
9548 if test "${ac_cv_search_kstat_open+set}" = set; then :
9551 ac_cv_search_kstat_open
=no
9554 LIBS
=$ac_func_search_save_LIBS
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9557 $as_echo "$ac_cv_search_kstat_open" >&6; }
9558 ac_res
=$ac_cv_search_kstat_open
9559 if test "$ac_res" != no
; then :
9560 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9564 EXTRA_GCC_LIBS
="$LIBS"
9568 # Some systems put ldexp and frexp in libm instead of libc; assume
9569 # they're both in the same place. jcf-dump needs them.
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9573 $as_echo_n "checking for library containing ldexp... " >&6; }
9574 if test "${ac_cv_search_ldexp+set}" = set; then :
9575 $as_echo_n "(cached) " >&6
9577 ac_func_search_save_LIBS
=$LIBS
9578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9596 for ac_lib
in '' m
; do
9597 if test -z "$ac_lib"; then
9598 ac_res
="none required"
9601 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9603 if ac_fn_cxx_try_link
"$LINENO"; then :
9604 ac_cv_search_ldexp
=$ac_res
9606 rm -f core conftest.err conftest.
$ac_objext \
9608 if test "${ac_cv_search_ldexp+set}" = set; then :
9612 if test "${ac_cv_search_ldexp+set}" = set; then :
9615 ac_cv_search_ldexp
=no
9618 LIBS
=$ac_func_search_save_LIBS
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9621 $as_echo "$ac_cv_search_ldexp" >&6; }
9622 ac_res
=$ac_cv_search_ldexp
9623 if test "$ac_res" != no
; then :
9624 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9632 # Use <inttypes.h> only if it exists,
9633 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9636 $as_echo_n "checking for inttypes.h... " >&6; }
9637 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9642 #define __STDC_FORMAT_MACROS
9643 #include <sys/types.h>
9644 #include <inttypes.h>
9656 if ac_fn_cxx_try_compile
"$LINENO"; then :
9657 gcc_cv_header_inttypes_h
=yes
9659 gcc_cv_header_inttypes_h
=no
9661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9665 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9666 if test $gcc_cv_header_inttypes_h = yes; then
9668 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9674 for ac_func
in times clock kill getrlimit setrlimit atoq \
9675 popen sysconf strsignal getrusage nl_langinfo \
9676 gettimeofday mbstowcs wcswidth mmap setlocale \
9677 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
9679 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9680 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9681 eval as_val
=\$
$as_ac_var
9682 if test "x$as_val" = x
""yes; then :
9683 cat >>confdefs.h
<<_ACEOF
9684 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9691 if test x
$ac_cv_func_mbstowcs = xyes
; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9693 $as_echo_n "checking whether mbstowcs works... " >&6; }
9694 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9695 $as_echo_n "(cached) " >&6
9697 if test "$cross_compiling" = yes; then :
9698 gcc_cv_func_mbstowcs_works
=yes
9700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9709 if ac_fn_cxx_try_run
"$LINENO"; then :
9710 gcc_cv_func_mbstowcs_works
=yes
9712 gcc_cv_func_mbstowcs_works
=no
9714 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9715 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9720 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9721 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9723 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9728 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9729 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9733 cat >>confdefs.h
<<_ACEOF
9739 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9740 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9744 cat >>confdefs.h
<<_ACEOF
9745 #define caddr_t char *
9752 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9753 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9754 gcc_header_sys_mman_h
=yes
9756 gcc_header_sys_mman_h
=no
9759 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9760 if test "x$ac_cv_func_mmap" = x
""yes; then :
9766 if test "$gcc_header_sys_mman_h" != yes \
9767 ||
test "$gcc_func_mmap" != yes; then
9768 gcc_cv_func_mmap_file
=no
9769 gcc_cv_func_mmap_dev_zero
=no
9770 gcc_cv_func_mmap_anon
=no
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9773 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9774 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9775 $as_echo_n "(cached) " >&6
9777 # Add a system to this blacklist if
9778 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9779 # memory area containing the same data that you'd get if you applied
9780 # read() to the same fd. The only system known to have a problem here
9781 # is VMS, where text files have record structure.
9784 gcc_cv_func_mmap_file
=no
;;
9786 gcc_cv_func_mmap_file
=yes;;
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9790 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9792 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9793 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9794 $as_echo_n "(cached) " >&6
9796 # Add a system to this blacklist if it has mmap() but /dev/zero
9797 # does not exist, or if mmapping /dev/zero does not give anonymous
9798 # zeroed pages with both the following properties:
9799 # 1. If you map N consecutive pages in with one call, and then
9800 # unmap any subset of those pages, the pages that were not
9801 # explicitly unmapped remain accessible.
9802 # 2. If you map two adjacent blocks of memory and then unmap them
9803 # both at once, they must both go away.
9804 # Systems known to be in this category are Windows (all variants),
9807 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9808 gcc_cv_func_mmap_dev_zero
=no
;;
9810 gcc_cv_func_mmap_dev_zero
=yes;;
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9814 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9816 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9818 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9819 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9824 #include <sys/types.h>
9825 #include <sys/mman.h>
9828 #ifndef MAP_ANONYMOUS
9829 #define MAP_ANONYMOUS MAP_ANON
9835 int n = MAP_ANONYMOUS;
9840 if ac_fn_cxx_try_compile
"$LINENO"; then :
9841 gcc_cv_decl_map_anon
=yes
9843 gcc_cv_decl_map_anon
=no
9845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9848 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9850 if test $gcc_cv_decl_map_anon = no
; then
9851 gcc_cv_func_mmap_anon
=no
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9854 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9855 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9858 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9859 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9860 # doesn't give anonymous zeroed pages with the same properties listed
9861 # above for use of /dev/zero.
9862 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9864 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9865 gcc_cv_func_mmap_anon
=no
;;
9867 gcc_cv_func_mmap_anon
=yes;;
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9871 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9875 if test $gcc_cv_func_mmap_file = yes; then
9877 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9880 if test $gcc_cv_func_mmap_dev_zero = yes; then
9882 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9885 if test $gcc_cv_func_mmap_anon = yes; then
9887 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9894 # Under VMS, vfork works very differently than on Unix. The standard test
9895 # won't work, and it isn't easily adaptable. It makes more sense to
9897 ac_cv_func_vfork_works
=yes
9900 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9901 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9905 cat >>confdefs.h
<<_ACEOF
9911 for ac_header
in vfork.h
9913 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9914 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9915 cat >>confdefs.h
<<_ACEOF
9916 #define HAVE_VFORK_H 1
9922 for ac_func
in fork vfork
9924 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9925 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9926 eval as_val
=\$
$as_ac_var
9927 if test "x$as_val" = x
""yes; then :
9928 cat >>confdefs.h
<<_ACEOF
9929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9935 if test "x$ac_cv_func_fork" = xyes
; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9937 $as_echo_n "checking for working fork... " >&6; }
9938 if test "${ac_cv_func_fork_works+set}" = set; then :
9939 $as_echo_n "(cached) " >&6
9941 if test "$cross_compiling" = yes; then :
9942 ac_cv_func_fork_works
=cross
9944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9946 $ac_includes_default
9951 /* By Ruediger Kuhlmann. */
9958 if ac_fn_cxx_try_run
"$LINENO"; then :
9959 ac_cv_func_fork_works
=yes
9961 ac_cv_func_fork_works
=no
9963 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9964 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9969 $as_echo "$ac_cv_func_fork_works" >&6; }
9972 ac_cv_func_fork_works
=$ac_cv_func_fork
9974 if test "x$ac_cv_func_fork_works" = xcross
; then
9976 *-*-amigaos* |
*-*-msdosdjgpp*)
9977 # Override, as these systems have only a dummy fork() stub
9978 ac_cv_func_fork_works
=no
9981 ac_cv_func_fork_works
=yes
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9985 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9987 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9988 if test "x$ac_cv_func_vfork" = xyes
; then
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9990 $as_echo_n "checking for working vfork... " >&6; }
9991 if test "${ac_cv_func_vfork_works+set}" = set; then :
9992 $as_echo_n "(cached) " >&6
9994 if test "$cross_compiling" = yes; then :
9995 ac_cv_func_vfork_works
=cross
9997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
9999 /* Thanks to Paul Eggert for this test. */
10000 $ac_includes_default
10001 #include <sys/wait.h>
10002 #ifdef HAVE_VFORK_H
10003 # include <vfork.h>
10005 /* On some sparc systems, changes by the child to local and incoming
10006 argument registers are propagated back to the parent. The compiler
10007 is told about this with #include <vfork.h>, but some compilers
10008 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10009 static variable whose address is put into a register that is
10010 clobbered by the vfork. */
10013 sparc_address_test (int arg)
10015 sparc_address_test (arg) int arg;
10018 static pid_t child;
10036 pid_t parent = getpid ();
10039 sparc_address_test (0);
10044 /* Here is another test for sparc vfork register problems. This
10045 test uses lots of local variables, at least as many local
10046 variables as main has allocated so far including compiler
10047 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10048 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10049 reuse the register of parent for one of the local variables,
10050 since it will think that parent can't possibly be used any more
10051 in this routine. Assigning to the local variable will thus
10052 munge parent in the parent process. */
10054 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10055 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10056 /* Convince the compiler that p..p7 are live; otherwise, it might
10057 use the same hardware register for all 8 local variables. */
10058 if (p != p1 || p != p2 || p != p3 || p != p4
10059 || p != p5 || p != p6 || p != p7)
10062 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10063 from child file descriptors. If the child closes a descriptor
10064 before it execs or exits, this munges the parent's descriptor
10065 as well. Test for this by closing stdout in the child. */
10066 _exit(close(fileno(stdout)) != 0);
10071 while (wait(&status) != child)
10074 /* Was there some problem with vforking? */
10077 /* Did the child fail? (This shouldn't happen.) */
10080 /* Did the vfork/compiler bug occur? */
10081 || parent != getpid()
10083 /* Did the file descriptor bug occur? */
10084 || fstat(fileno(stdout), &st) != 0
10089 if ac_fn_cxx_try_run
"$LINENO"; then :
10090 ac_cv_func_vfork_works
=yes
10092 ac_cv_func_vfork_works
=no
10094 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10095 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10100 $as_echo "$ac_cv_func_vfork_works" >&6; }
10103 if test "x$ac_cv_func_fork_works" = xcross
; then
10104 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10106 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10109 if test "x$ac_cv_func_vfork_works" = xyes
; then
10111 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10115 $as_echo "#define vfork fork" >>confdefs.h
10118 if test "x$ac_cv_func_fork_works" = xyes
; then
10120 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10126 if test "X$prefix" = "XNONE"; then
10127 acl_final_prefix
="$ac_default_prefix"
10129 acl_final_prefix
="$prefix"
10131 if test "X$exec_prefix" = "XNONE"; then
10132 acl_final_exec_prefix
='${prefix}'
10134 acl_final_exec_prefix
="$exec_prefix"
10136 acl_save_prefix
="$prefix"
10137 prefix
="$acl_final_prefix"
10138 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10139 prefix
="$acl_save_prefix"
10142 # Check whether --with-gnu-ld was given.
10143 if test "${with_gnu_ld+set}" = set; then :
10144 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10149 # Prepare PATH_SEPARATOR.
10150 # The user is always right.
10151 if test "${PATH_SEPARATOR+set}" != set; then
10152 echo "#! /bin/sh" >conf$$.sh
10153 echo "exit 0" >>conf$$.sh
10155 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10163 if test "$GCC" = yes; then
10164 # Check if gcc -print-prog-name=ld gives a path.
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10166 $as_echo_n "checking for ld used by GCC... " >&6; }
10169 # gcc leaves a trailing carriage return which upsets mingw
10170 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10172 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10175 # Accept absolute paths.
10176 [\\/]* |
[A-Za-z
]:[\\/]*)
10177 re_direlt
='/[^/][^/]*/\.\./'
10178 # Canonicalize the path of ld
10179 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10180 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10181 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10183 test -z "$LD" && LD
="$ac_prog"
10186 # If it fails, then pretend we aren't using GCC.
10190 # If it is relative, then search for the first ld in PATH.
10191 with_gnu_ld
=unknown
10194 elif test "$with_gnu_ld" = yes; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10196 $as_echo_n "checking for GNU ld... " >&6; }
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10199 $as_echo_n "checking for non-GNU ld... " >&6; }
10201 if test "${acl_cv_path_LD+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10204 if test -z "$LD"; then
10205 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10206 for ac_dir
in $PATH; do
10207 test -z "$ac_dir" && ac_dir
=.
10208 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10209 acl_cv_path_LD
="$ac_dir/$ac_prog"
10210 # Check to see if the program is GNU ld. I'd rather use --version,
10211 # but apparently some GNU ld's only accept -v.
10212 # Break only if it was the GNU/non-GNU ld that we prefer.
10213 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10214 test "$with_gnu_ld" != no
&& break
10216 test "$with_gnu_ld" != yes && break
10222 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10226 LD
="$acl_cv_path_LD"
10227 if test -n "$LD"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10229 $as_echo "$LD" >&6; }
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10234 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10236 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10237 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10238 $as_echo_n "(cached) " >&6
10240 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10241 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10242 acl_cv_prog_gnu_ld
=yes
10244 acl_cv_prog_gnu_ld
=no
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10248 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10249 with_gnu_ld
=$acl_cv_prog_gnu_ld
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10254 $as_echo_n "checking for shared library run path origin... " >&6; }
10255 if test "${acl_cv_rpath+set}" = set; then :
10256 $as_echo_n "(cached) " >&6
10259 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10260 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10262 rm -f .
/conftest.sh
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10267 $as_echo "$acl_cv_rpath" >&6; }
10269 libext
="$acl_cv_libext"
10270 shlibext
="$acl_cv_shlibext"
10271 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10272 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10273 hardcode_direct
="$acl_cv_hardcode_direct"
10274 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10275 # Check whether --enable-rpath was given.
10276 if test "${enable_rpath+set}" = set; then :
10277 enableval
=$enable_rpath; :
10291 acl_save_prefix
="$prefix"
10292 prefix
="$acl_final_prefix"
10293 acl_save_exec_prefix
="$exec_prefix"
10294 exec_prefix
="$acl_final_exec_prefix"
10296 eval additional_includedir
=\"$includedir\"
10297 eval additional_libdir
=\"$libdir\"
10299 exec_prefix
="$acl_save_exec_prefix"
10300 prefix
="$acl_save_prefix"
10303 # Check whether --with-libiconv-prefix was given.
10304 if test "${with_libiconv_prefix+set}" = set; then :
10305 withval
=$with_libiconv_prefix;
10306 if test "X$withval" = "Xno"; then
10309 if test "X$withval" = "X"; then
10311 acl_save_prefix
="$prefix"
10312 prefix
="$acl_final_prefix"
10313 acl_save_exec_prefix
="$exec_prefix"
10314 exec_prefix
="$acl_final_exec_prefix"
10316 eval additional_includedir
=\"$includedir\"
10317 eval additional_libdir
=\"$libdir\"
10319 exec_prefix
="$acl_save_exec_prefix"
10320 prefix
="$acl_save_prefix"
10323 additional_includedir
="$withval/include"
10324 additional_libdir
="$withval/lib"
10335 names_already_handled
=
10336 names_next_round
='iconv '
10337 while test -n "$names_next_round"; do
10338 names_this_round
="$names_next_round"
10340 for name
in $names_this_round; do
10342 for n
in $names_already_handled; do
10343 if test "$n" = "$name"; then
10344 already_handled
=yes
10348 if test -z "$already_handled"; then
10349 names_already_handled
="$names_already_handled $name"
10350 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10351 eval value
=\"\
$HAVE_LIB$uppername\"
10352 if test -n "$value"; then
10353 if test "$value" = yes; then
10354 eval value
=\"\
$LIB$uppername\"
10355 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10356 eval value
=\"\
$LTLIB$uppername\"
10357 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10366 if test $use_additional = yes; then
10367 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10368 found_dir
="$additional_libdir"
10369 found_so
="$additional_libdir/lib$name.$shlibext"
10370 if test -f "$additional_libdir/lib$name.la"; then
10371 found_la
="$additional_libdir/lib$name.la"
10374 if test -f "$additional_libdir/lib$name.$libext"; then
10375 found_dir
="$additional_libdir"
10376 found_a
="$additional_libdir/lib$name.$libext"
10377 if test -f "$additional_libdir/lib$name.la"; then
10378 found_la
="$additional_libdir/lib$name.la"
10383 if test "X$found_dir" = "X"; then
10384 for x
in $LDFLAGS $LTLIBICONV; do
10386 acl_save_prefix
="$prefix"
10387 prefix
="$acl_final_prefix"
10388 acl_save_exec_prefix
="$exec_prefix"
10389 exec_prefix
="$acl_final_exec_prefix"
10391 exec_prefix
="$acl_save_exec_prefix"
10392 prefix
="$acl_save_prefix"
10396 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10397 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10399 found_so
="$dir/lib$name.$shlibext"
10400 if test -f "$dir/lib$name.la"; then
10401 found_la
="$dir/lib$name.la"
10404 if test -f "$dir/lib$name.$libext"; then
10406 found_a
="$dir/lib$name.$libext"
10407 if test -f "$dir/lib$name.la"; then
10408 found_la
="$dir/lib$name.la"
10414 if test "X$found_dir" != "X"; then
10419 if test "X$found_dir" != "X"; then
10420 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10421 if test "X$found_so" != "X"; then
10422 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10423 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10426 for x
in $ltrpathdirs; do
10427 if test "X$x" = "X$found_dir"; then
10432 if test -z "$haveit"; then
10433 ltrpathdirs
="$ltrpathdirs $found_dir"
10435 if test "$hardcode_direct" = yes; then
10436 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10438 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10439 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10441 for x
in $rpathdirs; do
10442 if test "X$x" = "X$found_dir"; then
10447 if test -z "$haveit"; then
10448 rpathdirs
="$rpathdirs $found_dir"
10452 for x
in $LDFLAGS $LIBICONV; do
10454 acl_save_prefix
="$prefix"
10455 prefix
="$acl_final_prefix"
10456 acl_save_exec_prefix
="$exec_prefix"
10457 exec_prefix
="$acl_final_exec_prefix"
10459 exec_prefix
="$acl_save_exec_prefix"
10460 prefix
="$acl_save_prefix"
10462 if test "X$x" = "X-L$found_dir"; then
10467 if test -z "$haveit"; then
10468 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10470 if test "$hardcode_minus_L" != no
; then
10471 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10473 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10479 if test "X$found_a" != "X"; then
10480 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10482 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10485 additional_includedir
=
10486 case "$found_dir" in
10488 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10489 additional_includedir
="$basedir/include"
10492 if test "X$additional_includedir" != "X"; then
10493 if test "X$additional_includedir" != "X/usr/include"; then
10495 if test "X$additional_includedir" = "X/usr/local/include"; then
10496 if test -n "$GCC"; then
10498 linux
*) haveit
=yes;;
10502 if test -z "$haveit"; then
10503 for x
in $CPPFLAGS $INCICONV; do
10505 acl_save_prefix
="$prefix"
10506 prefix
="$acl_final_prefix"
10507 acl_save_exec_prefix
="$exec_prefix"
10508 exec_prefix
="$acl_final_exec_prefix"
10510 exec_prefix
="$acl_save_exec_prefix"
10511 prefix
="$acl_save_prefix"
10513 if test "X$x" = "X-I$additional_includedir"; then
10518 if test -z "$haveit"; then
10519 if test -d "$additional_includedir"; then
10520 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10526 if test -n "$found_la"; then
10527 save_libdir
="$libdir"
10528 case "$found_la" in
10529 */* |
*\\*) .
"$found_la" ;;
10530 *) .
"./$found_la" ;;
10532 libdir
="$save_libdir"
10533 for dep
in $dependency_libs; do
10536 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10537 if test "X$additional_libdir" != "X/usr/lib"; then
10539 if test "X$additional_libdir" = "X/usr/local/lib"; then
10540 if test -n "$GCC"; then
10542 linux
*) haveit
=yes;;
10546 if test -z "$haveit"; then
10548 for x
in $LDFLAGS $LIBICONV; do
10550 acl_save_prefix
="$prefix"
10551 prefix
="$acl_final_prefix"
10552 acl_save_exec_prefix
="$exec_prefix"
10553 exec_prefix
="$acl_final_exec_prefix"
10555 exec_prefix
="$acl_save_exec_prefix"
10556 prefix
="$acl_save_prefix"
10558 if test "X$x" = "X-L$additional_libdir"; then
10563 if test -z "$haveit"; then
10564 if test -d "$additional_libdir"; then
10565 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10569 for x
in $LDFLAGS $LTLIBICONV; do
10571 acl_save_prefix
="$prefix"
10572 prefix
="$acl_final_prefix"
10573 acl_save_exec_prefix
="$exec_prefix"
10574 exec_prefix
="$acl_final_exec_prefix"
10576 exec_prefix
="$acl_save_exec_prefix"
10577 prefix
="$acl_save_prefix"
10579 if test "X$x" = "X-L$additional_libdir"; then
10584 if test -z "$haveit"; then
10585 if test -d "$additional_libdir"; then
10586 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10593 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10594 if test "$enable_rpath" != no
; then
10596 for x
in $rpathdirs; do
10597 if test "X$x" = "X$dir"; then
10602 if test -z "$haveit"; then
10603 rpathdirs
="$rpathdirs $dir"
10606 for x
in $ltrpathdirs; do
10607 if test "X$x" = "X$dir"; then
10612 if test -z "$haveit"; then
10613 ltrpathdirs
="$ltrpathdirs $dir"
10618 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10621 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10624 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10625 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10631 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10632 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10638 if test "X$rpathdirs" != "X"; then
10639 if test -n "$hardcode_libdir_separator"; then
10641 for found_dir
in $rpathdirs; do
10642 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10644 acl_save_libdir
="$libdir"
10646 eval flag
=\"$hardcode_libdir_flag_spec\"
10647 libdir
="$acl_save_libdir"
10648 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10650 for found_dir
in $rpathdirs; do
10651 acl_save_libdir
="$libdir"
10652 libdir
="$found_dir"
10653 eval flag
=\"$hardcode_libdir_flag_spec\"
10654 libdir
="$acl_save_libdir"
10655 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10659 if test "X$ltrpathdirs" != "X"; then
10660 for found_dir
in $ltrpathdirs; do
10661 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10672 $as_echo_n "checking for iconv... " >&6; }
10673 if test "${am_cv_func_iconv+set}" = set; then :
10674 $as_echo_n "(cached) " >&6
10677 am_cv_func_iconv
="no, consider installing GNU libiconv"
10679 am_save_CPPFLAGS
="$CPPFLAGS"
10680 CPPFLAGS
="$CPPFLAGS $INCICONV"
10681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683 #include <stdlib.h>
10688 iconv_t cd = iconv_open("","");
10689 iconv(cd,NULL,NULL,NULL,NULL);
10695 if ac_fn_cxx_try_link
"$LINENO"; then :
10696 am_cv_func_iconv
=yes
10698 rm -f core conftest.err conftest.
$ac_objext \
10699 conftest
$ac_exeext conftest.
$ac_ext
10700 CPPFLAGS
="$am_save_CPPFLAGS"
10702 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10703 for _libs
in .libs _libs
; do
10704 am_save_CPPFLAGS
="$CPPFLAGS"
10705 am_save_LIBS
="$LIBS"
10706 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10707 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710 #include <stdlib.h>
10715 iconv_t cd = iconv_open("","");
10716 iconv(cd,NULL,NULL,NULL,NULL);
10722 if ac_fn_cxx_try_link
"$LINENO"; then :
10723 INCICONV
="-I../libiconv/include"
10724 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10725 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10726 am_cv_lib_iconv
=yes
10727 am_cv_func_iconv
=yes
10729 rm -f core conftest.err conftest.
$ac_objext \
10730 conftest
$ac_exeext conftest.
$ac_ext
10731 CPPFLAGS
="$am_save_CPPFLAGS"
10732 LIBS
="$am_save_LIBS"
10733 if test "$am_cv_func_iconv" = "yes"; then
10739 if test "$am_cv_func_iconv" != yes; then
10740 am_save_CPPFLAGS
="$CPPFLAGS"
10741 am_save_LIBS
="$LIBS"
10742 CPPFLAGS
="$LIBS $INCICONV"
10743 LIBS
="$LIBS $LIBICONV"
10744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746 #include <stdlib.h>
10751 iconv_t cd = iconv_open("","");
10752 iconv(cd,NULL,NULL,NULL,NULL);
10758 if ac_fn_cxx_try_link
"$LINENO"; then :
10759 am_cv_lib_iconv
=yes
10760 am_cv_func_iconv
=yes
10762 rm -f core conftest.err conftest.
$ac_objext \
10763 conftest
$ac_exeext conftest.
$ac_ext
10764 CPPFLAGS
="$am_save_CPPFLAGS"
10765 LIBS
="$am_save_LIBS"
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10770 $as_echo "$am_cv_func_iconv" >&6; }
10771 if test "$am_cv_func_iconv" = yes; then
10773 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10776 if test "$am_cv_lib_iconv" = yes; then
10778 for element
in $INCICONV; do
10780 for x
in $CPPFLAGS; do
10782 acl_save_prefix
="$prefix"
10783 prefix
="$acl_final_prefix"
10784 acl_save_exec_prefix
="$exec_prefix"
10785 exec_prefix
="$acl_final_exec_prefix"
10787 exec_prefix
="$acl_save_exec_prefix"
10788 prefix
="$acl_save_prefix"
10790 if test "X$x" = "X$element"; then
10795 if test -z "$haveit"; then
10796 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10801 $as_echo_n "checking how to link with libiconv... " >&6; }
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10803 $as_echo "$LIBICONV" >&6; }
10811 if test "$am_cv_func_iconv" = yes; then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10813 $as_echo_n "checking for iconv declaration... " >&6; }
10814 if test "${am_cv_proto_iconv+set}" = set; then :
10815 $as_echo_n "(cached) " >&6
10818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10819 /* end confdefs.h. */
10821 #include <stdlib.h>
10827 #if defined(__STDC__) || defined(__cplusplus)
10828 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10841 if ac_fn_cxx_try_compile
"$LINENO"; then :
10842 am_cv_proto_iconv_arg1
=""
10844 am_cv_proto_iconv_arg1
="const"
10846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10847 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);"
10850 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10852 }$am_cv_proto_iconv" >&5
10854 }$am_cv_proto_iconv" >&6; }
10856 cat >>confdefs.h
<<_ACEOF
10857 #define ICONV_CONST $am_cv_proto_iconv_arg1
10863 # Until we have in-tree GNU iconv:
10865 if test -f "$LTLIBICONV"; then
10866 LIBICONV_DEP
=$LTLIBICONV
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10872 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10873 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10874 $as_echo_n "(cached) " >&6
10876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878 #include <locale.h>
10887 if ac_fn_cxx_try_link
"$LINENO"; then :
10888 am_cv_val_LC_MESSAGES
=yes
10890 am_cv_val_LC_MESSAGES
=no
10892 rm -f core conftest.err conftest.
$ac_objext \
10893 conftest
$ac_exeext conftest.
$ac_ext
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10896 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10897 if test $am_cv_val_LC_MESSAGES = yes; then
10899 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10906 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10907 if test "${am_cv_langinfo_codeset+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912 #include <langinfo.h>
10916 char* cs = nl_langinfo(CODESET);
10921 if ac_fn_cxx_try_link
"$LINENO"; then :
10922 am_cv_langinfo_codeset
=yes
10924 am_cv_langinfo_codeset
=no
10926 rm -f core conftest.err conftest.
$ac_objext \
10927 conftest
$ac_exeext conftest.
$ac_ext
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10931 $as_echo "$am_cv_langinfo_codeset" >&6; }
10932 if test $am_cv_langinfo_codeset = yes; then
10934 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10939 # We will need to find libiberty.h and ansidecl.h
10940 saved_CFLAGS
="$CFLAGS"
10941 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10942 saved_CXXFLAGS
="$CXXFLAGS"
10943 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10945 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10946 # normal autoconf function for these. But force definition of
10947 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10948 # basename handling in libiberty.h.
10949 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10950 #undef HAVE_DECL_BASENAME
10951 #define HAVE_DECL_BASENAME 1
10952 #include \"ansidecl.h\"
10953 #include \"system.h\"
10955 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10961 cat >>confdefs.h
<<_ACEOF
10962 #define HAVE_DECL_BASENAME $ac_have_decl
10964 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10965 #undef HAVE_DECL_BASENAME
10966 #define HAVE_DECL_BASENAME 1
10967 #include \"ansidecl.h\"
10968 #include \"system.h\"
10970 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10976 cat >>confdefs.h
<<_ACEOF
10977 #define HAVE_DECL_STRSTR $ac_have_decl
10981 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10982 madvise stpcpy strnlen strsignal strverscmp \
10983 strtol strtoul strtoll strtoull setenv unsetenv \
10984 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10985 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
10987 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10989 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10990 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10991 $as_echo_n "(cached) " >&6
10993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10996 #define $ac_tr_decl 1
10998 #include "ansidecl.h"
10999 #include "system.h"
11005 char *(*pfn) = (char *(*)) $ac_func ;
11011 if ac_fn_cxx_try_compile
"$LINENO"; then :
11012 eval "gcc_cv_have_decl_$ac_func=yes"
11014 eval "gcc_cv_have_decl_$ac_func=no"
11016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11019 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11021 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11022 #define $ac_tr_decl 1
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11028 #define $ac_tr_decl 0
11036 for ac_func
in getrlimit setrlimit getrusage
11038 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11040 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11041 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11042 $as_echo_n "(cached) " >&6
11044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11047 #define $ac_tr_decl 1
11049 #include "ansidecl.h"
11050 #include "system.h"
11051 #ifdef HAVE_SYS_RESOURCE_H
11052 #include <sys/resource.h>
11060 char *(*pfn) = (char *(*)) $ac_func ;
11066 if ac_fn_cxx_try_compile
"$LINENO"; then :
11067 eval "gcc_cv_have_decl_$ac_func=yes"
11069 eval "gcc_cv_have_decl_$ac_func=no"
11071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11074 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11076 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11077 #define $ac_tr_decl 1
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11083 #define $ac_tr_decl 0
11091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11094 #include "ansidecl.h"
11095 #include "system.h"
11096 #ifdef HAVE_SYS_RESOURCE_H
11097 #include <sys/resource.h>
11108 if ac_fn_cxx_try_compile
"$LINENO"; then :
11112 $as_echo "#define rlim_t long" >>confdefs.h
11115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11117 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11118 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11119 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11120 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11121 for ac_func
in ldgetname
11123 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11125 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11126 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11127 $as_echo_n "(cached) " >&6
11129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11132 #define $ac_tr_decl 1
11134 #include "ansidecl.h"
11135 #include "system.h"
11136 #ifdef HAVE_LDFCN_H
11147 char *(*pfn) = (char *(*)) $ac_func ;
11153 if ac_fn_cxx_try_compile
"$LINENO"; then :
11154 eval "gcc_cv_have_decl_$ac_func=yes"
11156 eval "gcc_cv_have_decl_$ac_func=no"
11158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11161 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11163 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11164 #define $ac_tr_decl 1
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11170 #define $ac_tr_decl 0
11178 for ac_func
in times
11180 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11182 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11183 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11184 $as_echo_n "(cached) " >&6
11186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11189 #define $ac_tr_decl 1
11191 #include "ansidecl.h"
11192 #include "system.h"
11193 #ifdef HAVE_SYS_TIMES_H
11194 #include <sys/times.h>
11202 char *(*pfn) = (char *(*)) $ac_func ;
11208 if ac_fn_cxx_try_compile
"$LINENO"; then :
11209 eval "gcc_cv_have_decl_$ac_func=yes"
11211 eval "gcc_cv_have_decl_$ac_func=no"
11213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11216 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11218 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11219 #define $ac_tr_decl 1
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11225 #define $ac_tr_decl 0
11233 for ac_func
in sigaltstack
11235 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11237 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11238 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11239 $as_echo_n "(cached) " >&6
11241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11244 #define $ac_tr_decl 1
11246 #include "ansidecl.h"
11247 #include "system.h"
11248 #include <signal.h>
11255 char *(*pfn) = (char *(*)) $ac_func ;
11261 if ac_fn_cxx_try_compile
"$LINENO"; then :
11262 eval "gcc_cv_have_decl_$ac_func=yes"
11264 eval "gcc_cv_have_decl_$ac_func=no"
11266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11269 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11271 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11272 #define $ac_tr_decl 1
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11278 #define $ac_tr_decl 0
11286 # More time-related stuff.
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11288 $as_echo_n "checking for struct tms... " >&6; }
11289 if test "${ac_cv_struct_tms+set}" = set; then :
11290 $as_echo_n "(cached) " >&6
11293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11296 #include "ansidecl.h"
11297 #include "system.h"
11298 #ifdef HAVE_SYS_TIMES_H
11299 #include <sys/times.h>
11310 if ac_fn_cxx_try_compile
"$LINENO"; then :
11311 ac_cv_struct_tms
=yes
11313 ac_cv_struct_tms
=no
11315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11318 $as_echo "$ac_cv_struct_tms" >&6; }
11319 if test $ac_cv_struct_tms = yes; then
11321 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11325 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11326 # revisit after autoconf 2.50.
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11328 $as_echo_n "checking for clock_t... " >&6; }
11329 if test "${gcc_cv_type_clock_t+set}" = set; then :
11330 $as_echo_n "(cached) " >&6
11333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h. */
11336 #include "ansidecl.h"
11337 #include "system.h"
11347 if ac_fn_cxx_try_compile
"$LINENO"; then :
11348 gcc_cv_type_clock_t
=yes
11350 gcc_cv_type_clock_t
=no
11352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11355 $as_echo "$gcc_cv_type_clock_t" >&6; }
11356 if test $gcc_cv_type_clock_t = yes; then
11358 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11362 # Check if F_SETLKW is supported by fcntl.
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11364 $as_echo_n "checking for F_SETLKW... " >&6; }
11365 if test "${ac_cv_f_setlkw+set}" = set; then :
11366 $as_echo_n "(cached) " >&6
11369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h. */
11382 return fcntl (1, F_SETLKW, &fl);
11387 if ac_fn_cxx_try_compile
"$LINENO"; then :
11392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11395 $as_echo "$ac_cv_f_setlkw" >&6; }
11396 if test $ac_cv_f_setlkw = yes; then
11398 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11402 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11403 CFLAGS
="$saved_CFLAGS"
11404 CXXFLAGS
="$saved_CXXFLAGS"
11406 # mkdir takes a single argument on some systems.
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11408 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11409 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11410 $as_echo_n "(cached) " >&6
11412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11415 #include <sys/types.h>
11416 #ifdef HAVE_SYS_STAT_H
11417 # include <sys/stat.h>
11419 #ifdef HAVE_UNISTD_H
11420 # include <unistd.h>
11422 #ifdef HAVE_DIRECT_H
11423 # include <direct.h>
11433 if ac_fn_cxx_try_compile
"$LINENO"; then :
11434 gcc_cv_mkdir_takes_one_arg
=no
11436 gcc_cv_mkdir_takes_one_arg
=yes
11438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11441 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11442 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11444 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11455 # With Setjmp/Longjmp based exception handling.
11456 # Check whether --enable-sjlj-exceptions was given.
11457 if test "${enable_sjlj_exceptions+set}" = set; then :
11458 enableval
=$enable_sjlj_exceptions; case $target in
11460 if test $enableval != yes; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11462 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11467 force_sjlj_exceptions
=yes
11471 force_sjlj_exceptions
=yes
11475 force_sjlj_exceptions
=yes
11479 force_sjlj_exceptions
=no
11484 if test $force_sjlj_exceptions = yes; then
11485 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11487 cat >>confdefs.h
<<_ACEOF
11488 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11493 # --------------------------------------------------------
11494 # Build, host, and target specific configuration fragments
11495 # --------------------------------------------------------
11497 # Collect build-machine-specific information.
11498 .
${srcdir}/config.build ||
exit 1
11500 # Collect host-machine-specific information.
11501 .
${srcdir}/config.
host ||
exit 1
11505 # Collect target-machine-specific information.
11506 .
${srcdir}/config.gcc ||
exit 1
11508 extra_objs
="${host_extra_objs} ${extra_objs}"
11509 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11511 # Default the target-machine variables that were not explicitly set.
11512 if test x
"$tm_file" = x
11513 then tm_file
=$cpu_type/$cpu_type.h
; fi
11515 if test x
"$extra_headers" = x
11516 then extra_headers
=; fi
11518 if test x
$md_file = x
11519 then md_file
=$cpu_type/$cpu_type.md
; fi
11521 if test x
$out_file = x
11522 then out_file
=$cpu_type/$cpu_type.c
; fi
11524 if test x
"$tmake_file" = x
11525 then tmake_file
=$cpu_type/t-
$cpu_type
11528 # Support --enable-initfini-array.
11529 if test x
$enable_initfini_array != xno
; then
11530 tm_file
="${tm_file} initfini-array.h"
11533 if test x
"$dwarf2" = xyes
11534 then tm_file
="$tm_file tm-dwarf2.h"
11537 # Say what files are being used for the output code and MD file.
11538 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11539 echo "Using \`$srcdir/config/$md_file' as machine description file."
11541 # If any of the xm_file variables contain nonexistent files, warn
11542 # about them and drop them.
11545 for x
in $build_xm_file; do
11546 if test -f $srcdir/config
/$x
11548 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11549 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11552 build_xm_file
="$bx"
11555 for x
in $host_xm_file; do
11556 if test -f $srcdir/config
/$x
11558 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11559 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11565 for x
in $xm_file; do
11566 if test -f $srcdir/config
/$x
11568 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11569 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11575 for f
in $tm_file; do
11578 if test $count = ax
; then
11579 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11581 echo "Using the following target machine macro files:"
11582 for f
in $tm_file; do
11583 echo " $srcdir/config/$f"
11587 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11589 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11593 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11595 cat >>confdefs.h
<<_ACEOF
11596 #define HAVE_GNU_LD $gnu_ld_bool
11600 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11602 cat >>confdefs.h
<<_ACEOF
11603 #define HAVE_GNU_AS $gnu_as_bool
11608 for f
in $host_xm_file; do
11611 if test $count = a
; then
11613 elif test $count = ax
; then
11614 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11616 echo "Using the following host machine macro files:"
11617 for f
in $host_xm_file; do
11618 echo " $srcdir/config/$f"
11621 echo "Using ${out_host_hook_obj} for host machine hooks."
11623 if test "$host_xm_file" != "$build_xm_file"; then
11625 for f
in $build_xm_file; do
11628 if test $count = a
; then
11630 elif test $count = ax
; then
11631 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11633 echo "Using the following build machine macro files:"
11634 for f
in $build_xm_file; do
11635 echo " $srcdir/config/$f"
11640 if test -n "$configured_native_system_header_dir"; then
11641 native_system_header_dir
=$configured_native_system_header_dir
11643 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11647 powerpc
*-*-darwin*)
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11649 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11650 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11651 $as_echo_n "(cached) " >&6
11653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11656 #include <sys/cdefs.h>
11657 #include <sys/signal.h>
11658 #include <ucontext.h>
11659 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11662 if ac_fn_cxx_try_compile
"$LINENO"; then :
11663 gcc_cv_mcontext_underscores
=no
11665 gcc_cv_mcontext_underscores
=yes
11667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11670 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11671 if test $gcc_cv_mcontext_underscores = yes; then
11673 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11683 # Check if a valid thread package
11684 case ${enable_threads} in
11687 target_thread_file
='single'
11691 target_thread_file
='single'
11693 aix | dce | lynx | mipssde | posix | rtems | \
11694 single | tpf | vxworks | win32
)
11695 target_thread_file
=${enable_threads}
11698 echo "${enable_threads} is an unknown thread package" 1>&2
11703 if test x
${thread_file} = x
; then
11704 # No thread file set by target-specific clauses in config.gcc,
11705 # so use file chosen by default logic above
11706 thread_file
=${target_thread_file}
11714 if test x
$enable___cxa_atexit = xyes || \
11715 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11716 if test x
$host = x
$target; then
11718 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11719 # keyed to flag_use_cxa_atexit
11727 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11728 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11731 echo "__cxa_atexit can't be enabled on this target"
11737 # We can't check for __cxa_atexit when building a cross, so assume
11741 if test x
$use_cxa_atexit = xyes
; then
11743 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11748 # Look for a file containing extra machine modes.
11749 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11750 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11753 cat >>confdefs.h
<<_ACEOF
11754 #define EXTRA_MODES_FILE "config/$extra_modes"
11759 # Convert extra_options into a form suitable for Makefile use.
11762 for f
in $extra_options; do
11763 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11764 all_opt_files
="$all_opt_files $srcdir/config/$f"
11768 # auto-host.h is the file containing items generated by autoconf and is
11769 # the first file included by config.h.
11770 # If host=build, it is correct to have bconfig include auto-host.h
11771 # as well. If host!=build, we are in error and need to do more
11772 # work to find out the build config parameters.
11773 if test x
$host = x
$build
11775 build_auto
=auto-host.h
11777 # We create a subdir, then run autoconf in the subdir.
11778 # To prevent recursion we set host and build for the new
11779 # invocation of configure to the build for this invocation
11786 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11787 *) realsrcdir
=..
/${srcdir};;
11789 # Clearing GMPINC is necessary to prevent host headers being
11790 # used by the build compiler. Defining GENERATOR_FILE stops
11791 # system.h from including gmp.h.
11792 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11793 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11794 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11795 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11796 ${realsrcdir}/configure \
11797 --enable-languages=${enable_languages-all} \
11798 --target=$target_alias --host=$build_alias --build=$build_alias
11800 # We just finished tests for the build machine, so rename
11801 # the file auto-build.h in the gcc directory.
11802 mv auto-host.h ..
/auto-build.h
11805 build_auto
=auto-build.h
11809 tm_file
="${tm_file} defaults.h"
11810 tm_p_file
="${tm_p_file} tm-preds.h"
11811 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11812 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11813 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11814 # put this back in temporarily.
11815 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11821 # Compile in configure arguments.
11822 if test -f configargs.h
; then
11823 # Being re-configured.
11824 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11825 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11827 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11830 # Double all backslashes and backslash all quotes to turn
11831 # gcc_config_arguments into a C string.
11832 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11833 $gcc_config_arguments
11835 gcc_config_arguments_str
=`cat conftest.out`
11838 cat > configargs.h
<<EOF
11839 /* Generated automatically. */
11840 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11841 static const char thread_model[] = "$thread_file";
11843 static const struct {
11844 const char *name, *value;
11845 } configure_default_options[] = $configure_default_options;
11848 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11849 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11850 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11851 if test -f $srcdir/REVISION
; then
11852 gcc_REVISION
=`cat $srcdir/REVISION`
11856 cat > plugin-version.h
<<EOF
11857 #include "configargs.h"
11859 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11860 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11861 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11862 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11864 static char basever[] = "$gcc_BASEVER";
11865 static char datestamp[] = "$gcc_DATESTAMP";
11866 static char devphase[] = "$gcc_DEVPHASE";
11867 static char revision[] = "$gcc_REVISION";
11869 /* FIXME plugins: We should make the version information more precise.
11870 One way to do is to add a checksum. */
11872 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11873 devphase, revision,
11874 configuration_arguments};
11877 # Determine what GCC version number to use in filesystem paths.
11879 get_gcc_base_ver
="cat"
11881 # Check whether --with-gcc-major-version-only was given.
11882 if test "${with_gcc_major_version_only+set}" = set; then :
11883 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
11884 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11892 # Internationalization
11893 # If we haven't got the data from the intl directory,
11894 # assume NLS is disabled.
11903 if test -f ..
/intl
/config.intl
; then
11904 . ..
/intl
/config.intl
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11907 $as_echo_n "checking whether NLS is requested... " >&6; }
11908 if test x
"$USE_NLS" != xyes
; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11913 $as_echo "yes" >&6; }
11915 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11919 $as_echo_n "checking for catalogs to be installed... " >&6; }
11920 # Look for .po and .gmo files in the source directory.
11923 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11924 # If there aren't any .gmo files the shell will give us the
11925 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11927 case "$cat" in *\
**)
11930 # The quadruple backslash is collapsed to a double backslash
11931 # by the backticks, then collapsed again by the double quotes,
11932 # leaving us with one backslash in the sed expression (right
11933 # before the dot that mustn't act as a wildcard).
11934 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11935 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11936 # The user is allowed to set LINGUAS to a list of languages to
11937 # install catalogs for. If it's empty that means "all of them."
11938 if test "x$LINGUAS" = x
; then
11939 CATALOGS
="$CATALOGS $cat"
11940 XLINGUAS
="$XLINGUAS $lang"
11942 case "$LINGUAS" in *$lang*)
11943 CATALOGS
="$CATALOGS $cat"
11944 XLINGUAS
="$XLINGUAS $lang"
11949 LINGUAS
="$XLINGUAS"
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11951 $as_echo "$LINGUAS" >&6; }
11964 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11965 # -liconv on the link line twice.
11966 case "$LIBINTL" in *$LIBICONV*)
11970 # Check whether --enable-secureplt was given.
11971 if test "${enable_secureplt+set}" = set; then :
11972 enableval
=$enable_secureplt;
11976 # Check whether --enable-mingw-wildcard was given.
11977 if test "${enable_mingw_wildcard+set}" = set; then :
11978 enableval
=$enable_mingw_wildcard;
11980 enable_mingw_wildcard
=platform
11983 if test x
"$enable_mingw_wildcard" != xplatform
; then :
11985 cat >>confdefs.h
<<_ACEOF
11986 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
11991 # Check whether --enable-leading-mingw64-underscores was given.
11992 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11993 enableval
=$enable_leading_mingw64_underscores;
11996 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11998 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12002 # Check whether --enable-cld was given.
12003 if test "${enable_cld+set}" = set; then :
12004 enableval
=$enable_cld;
12010 # Check whether --enable-frame-pointer was given.
12011 if test "${enable_frame_pointer+set}" = set; then :
12012 enableval
=$enable_frame_pointer;
12016 linux
* | darwin
[8912]*)
12017 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12019 enable_frame_pointer
=no
12022 enable_frame_pointer
=yes
12029 # Windows32 Registry support for specifying GCC installation paths.
12030 # Check whether --enable-win32-registry was given.
12031 if test "${enable_win32_registry+set}" = set; then :
12032 enableval
=$enable_win32_registry;
12037 win32 | pe | cygwin
* | mingw32
*)
12038 if test "x$enable_win32_registry" != xno
; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12040 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12041 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12044 ac_func_search_save_LIBS
=$LIBS
12045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12054 char RegOpenKeyExA ();
12058 return RegOpenKeyExA ();
12063 for ac_lib
in '' advapi32
; do
12064 if test -z "$ac_lib"; then
12065 ac_res
="none required"
12068 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12070 if ac_fn_cxx_try_link
"$LINENO"; then :
12071 ac_cv_search_RegOpenKeyExA
=$ac_res
12073 rm -f core conftest.err conftest.
$ac_objext \
12075 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12079 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12082 ac_cv_search_RegOpenKeyExA
=no
12084 rm conftest.
$ac_ext
12085 LIBS
=$ac_func_search_save_LIBS
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12088 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12089 ac_res
=$ac_cv_search_RegOpenKeyExA
12090 if test "$ac_res" != no
; then :
12091 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12094 enable_win32_registry
=no
12099 if test "x$enable_win32_registry" != xno
; then
12101 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12104 if test "x$enable_win32_registry" != xyes \
12105 && test "x$enable_win32_registry" != x
; then
12107 cat >>confdefs.h
<<_ACEOF
12108 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12116 # Get an absolute path to the GCC top-level source directory
12117 holddir
=`${PWDCMD-pwd}`
12119 topdir
=`${PWDCMD-pwd}`
12122 # Conditionalize the makefile for this host machine.
12124 for f
in ${host_xmake_file}
12126 if test -f ${srcdir}/config
/$f
12128 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12132 # Conditionalize the makefile for this target machine.
12134 for f
in ${tmake_file}
12136 if test -f ${srcdir}/config
/$f
12138 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12141 tmake_file
="${tmake_file_}"
12143 out_object_file
=`basename $out_file .c`.o
12144 common_out_object_file
=`basename $common_out_file .c`.o
12146 tm_file_list
="options.h"
12147 tm_include_list
="options.h insn-constants.h"
12148 for f
in $tm_file; do
12151 f
=`echo $f | sed 's/^..//'`
12152 tm_file_list
="${tm_file_list} $f"
12153 tm_include_list
="${tm_include_list} $f"
12156 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12157 tm_include_list
="${tm_include_list} $f"
12160 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12161 tm_include_list
="${tm_include_list} config/$f"
12168 for f
in $tm_p_file; do
12171 tm_p_file_list
="${tm_p_file_list} $f"
12172 tm_p_include_list
="${tm_p_include_list} $f"
12175 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12176 tm_p_include_list
="${tm_p_include_list} config/$f"
12182 for f
in $xm_file; do
12185 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12186 xm_include_list
="${xm_include_list} $f"
12189 xm_file_list
="${xm_file_list} $f"
12190 xm_include_list
="${xm_include_list} $f"
12193 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12194 xm_include_list
="${xm_include_list} config/$f"
12200 host_xm_include_list
=
12201 for f
in $host_xm_file; do
12204 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12205 host_xm_include_list
="${host_xm_include_list} $f"
12208 host_xm_file_list
="${host_xm_file_list} $f"
12209 host_xm_include_list
="${host_xm_include_list} $f"
12212 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12213 host_xm_include_list
="${host_xm_include_list} config/$f"
12218 build_xm_file_list
=
12219 for f
in $build_xm_file; do
12222 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12223 build_xm_include_list
="${build_xm_include_list} $f"
12225 auto-build.h | auto-host.h
)
12226 build_xm_file_list
="${build_xm_file_list} $f"
12227 build_xm_include_list
="${build_xm_include_list} $f"
12230 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12231 build_xm_include_list
="${build_xm_include_list} config/$f"
12236 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12237 # cross-compiler which does not use the native headers and libraries.
12238 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12241 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12242 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12244 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12245 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12246 if test "x$with_build_sysroot" != x
; then
12247 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12249 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12252 if test x
$host != x
$target
12254 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12256 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12257 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12258 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12261 if test "x$with_build_sysroot" != "x"; then
12262 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12263 elif test "x$with_sysroot" = x
; then
12264 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12265 elif test "x$with_sysroot" = xyes
; then
12266 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12268 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12271 target_header_dir
=${native_system_header_dir}
12274 # If this is a cross-compiler that does not
12275 # have its own set of headers then define
12278 # If this is using newlib, without having the headers available now,
12279 # then define inhibit_libc in LIBGCC2_CFLAGS.
12280 # This prevents libgcc2 from containing any code which requires libc
12282 : ${inhibit_libc=false}
12283 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12284 test x
$with_newlib = xyes
; } &&
12285 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12290 # When building gcc with a cross-compiler, we need to adjust things so
12291 # that the generator programs are still built with the native compiler.
12292 # Also, we cannot run fixincludes.
12294 # These are the normal (build=host) settings:
12295 CC_FOR_BUILD
='$(CC)'
12296 CXX_FOR_BUILD
='$(CXX)'
12297 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12298 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12299 BUILD_LDFLAGS
='$(LDFLAGS)'
12300 STMP_FIXINC
=stmp-fixinc
12302 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12303 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12305 # And these apply if build != host, or we are generating coverage data
12306 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12308 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12309 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12310 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12312 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12313 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12314 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12315 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12320 # Expand extra_headers to include complete path.
12321 # This substitutes for lots of t-* files.
12322 extra_headers_list
=
12323 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12324 for file in ${extra_headers} ; do
12325 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12328 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12329 if test x
"$use_gcc_tgmath" = xyes
12330 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12333 # Define collect2 in Makefile.
12334 case $host_can_use_collect2 in
12336 *) collect2
='collect2$(exeext)' ;;
12340 # Add a definition of USE_COLLECT2 if system wants one.
12341 case $use_collect2 in
12342 no
) use_collect2
= ;;
12345 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12346 xm_defines
="${xm_defines} USE_COLLECT2"
12347 case $host_can_use_collect2 in
12349 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12356 cat >>confdefs.h
<<_ACEOF
12357 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12361 # ---------------------------
12362 # Assembler & linker features
12363 # ---------------------------
12365 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12366 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12367 # However when ld-new is first executed from the build tree, libtool will
12368 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12369 # to the build tree. While doing this we need to use the previous-stage
12370 # linker, or we have an infinite loop. The presence of a shell script as
12371 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12372 # the gcc/collect-ld script. So we need to know how libtool works, or
12373 # exec-tool will fail.
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12379 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12384 macro_version
='2.2.7a'
12385 macro_revision
='1.3134'
12399 ltmain
="$ac_aux_dir/ltmain.sh"
12401 # Backslashify metacharacters that are still active within
12402 # double-quoted strings.
12403 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12405 # Same as above, but do not quote variable references.
12406 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12408 # Sed substitution to delay expansion of an escaped shell variable in a
12409 # double_quote_subst'ed string.
12410 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12412 # Sed substitution to delay expansion of an escaped single quote.
12413 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12415 # Sed substitution to avoid accidental globbing in evaled expressions
12416 no_glob_subst
='s/\*/\\\*/g'
12418 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12419 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12420 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12423 $as_echo_n "checking how to print strings... " >&6; }
12424 # Test print first, because it will be a builtin if present.
12425 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12426 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12428 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12431 # Use this function as a fallback that always works.
12432 func_fallback_echo ()
12434 eval 'cat <<_LTECHO_EOF
12438 ECHO='func_fallback_echo
'
12441 # func_echo_all arg...
12442 # Invoke $ECHO with all args, space-separated.
12449 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12450 $as_echo "printf" >&6; } ;;
12451 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12452 $as_echo "print -r" >&6; } ;;
12453 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12454 $as_echo "cat" >&6; } ;;
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12471 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12472 if test "${ac_cv_path_SED+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12475 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12476 for ac_i in 1 2 3 4 5 6 7; do
12477 ac_script="$ac_script$as_nl$ac_script"
12479 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12480 { ac_script=; unset ac_script;}
12481 if test -z "$SED"; then
12482 ac_path_SED_found=false
12483 # Loop through the user's path and
test for each of PROGNAME-LIST
12484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12485 for as_dir
in $PATH
12488 test -z "$as_dir" && as_dir
=.
12489 for ac_prog
in sed gsed
; do
12490 for ac_exec_ext
in '' $ac_executable_extensions; do
12491 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12492 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12493 # Check for GNU ac_path_SED and select it if it is found.
12494 # Check for GNU $ac_path_SED
12495 case `"$ac_path_SED" --version 2>&1` in
12497 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12500 $as_echo_n 0123456789 >"conftest.in"
12503 cat "conftest.in" "conftest.in" >"conftest.tmp"
12504 mv "conftest.tmp" "conftest.in"
12505 cp "conftest.in" "conftest.nl"
12506 $as_echo '' >> "conftest.nl"
12507 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12508 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12509 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12510 if test $ac_count -gt ${ac_path_SED_max-0}; then
12511 # Best one so far, save it but keep looking for a better one
12512 ac_cv_path_SED
="$ac_path_SED"
12513 ac_path_SED_max
=$ac_count
12515 # 10*(2^10) chars as input seems more than enough
12516 test $ac_count -gt 10 && break
12518 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12521 $ac_path_SED_found && break 3
12526 if test -z "$ac_cv_path_SED"; then
12527 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12530 ac_cv_path_SED
=$SED
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12535 $as_echo "$ac_cv_path_SED" >&6; }
12536 SED
="$ac_cv_path_SED"
12539 test -z "$SED" && SED
=sed
12540 Xsed
="$SED -e 1s/^X//"
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12553 $as_echo_n "checking for fgrep... " >&6; }
12554 if test "${ac_cv_path_FGREP+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
12557 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12558 then ac_cv_path_FGREP
="$GREP -F"
12560 if test -z "$FGREP"; then
12561 ac_path_FGREP_found
=false
12562 # Loop through the user's path and test for each of PROGNAME-LIST
12563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12564 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12567 test -z "$as_dir" && as_dir
=.
12568 for ac_prog
in fgrep
; do
12569 for ac_exec_ext
in '' $ac_executable_extensions; do
12570 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12571 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12572 # Check for GNU ac_path_FGREP and select it if it is found.
12573 # Check for GNU $ac_path_FGREP
12574 case `"$ac_path_FGREP" --version 2>&1` in
12576 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12579 $as_echo_n 0123456789 >"conftest.in"
12582 cat "conftest.in" "conftest.in" >"conftest.tmp"
12583 mv "conftest.tmp" "conftest.in"
12584 cp "conftest.in" "conftest.nl"
12585 $as_echo 'FGREP' >> "conftest.nl"
12586 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12587 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12588 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12589 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12590 # Best one so far, save it but keep looking for a better one
12591 ac_cv_path_FGREP
="$ac_path_FGREP"
12592 ac_path_FGREP_max
=$ac_count
12594 # 10*(2^10) chars as input seems more than enough
12595 test $ac_count -gt 10 && break
12597 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12600 $ac_path_FGREP_found && break 3
12605 if test -z "$ac_cv_path_FGREP"; then
12606 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12609 ac_cv_path_FGREP
=$FGREP
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12615 $as_echo "$ac_cv_path_FGREP" >&6; }
12616 FGREP
="$ac_cv_path_FGREP"
12619 test -z "$GREP" && GREP
=grep
12639 # Check whether --with-gnu-ld was given.
12640 if test "${with_gnu_ld+set}" = set; then :
12641 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12647 if test "$GCC" = yes; then
12648 # Check if gcc -print-prog-name=ld gives a path.
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12650 $as_echo_n "checking for ld used by $CC... " >&6; }
12653 # gcc leaves a trailing carriage return which upsets mingw
12654 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12656 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12659 # Accept absolute paths.
12661 re_direlt
='/[^/][^/]*/\.\./'
12662 # Canonicalize the pathname of ld
12663 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12664 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12665 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12667 test -z "$LD" && LD
="$ac_prog"
12670 # If it fails, then pretend we aren't using GCC.
12674 # If it is relative, then search for the first ld in PATH.
12675 with_gnu_ld
=unknown
12678 elif test "$with_gnu_ld" = yes; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12680 $as_echo_n "checking for GNU ld... " >&6; }
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12683 $as_echo_n "checking for non-GNU ld... " >&6; }
12685 if test "${lt_cv_path_LD+set}" = set; then :
12686 $as_echo_n "(cached) " >&6
12688 if test -z "$LD"; then
12689 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12690 for ac_dir
in $PATH; do
12692 test -z "$ac_dir" && ac_dir
=.
12693 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12694 lt_cv_path_LD
="$ac_dir/$ac_prog"
12695 # Check to see if the program is GNU ld. I'd rather use --version,
12696 # but apparently some variants of GNU ld only accept -v.
12697 # Break only if it was the GNU/non-GNU ld that we prefer.
12698 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12699 *GNU
* |
*'with BFD'*)
12700 test "$with_gnu_ld" != no
&& break
12703 test "$with_gnu_ld" != yes && break
12710 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12714 LD
="$lt_cv_path_LD"
12715 if test -n "$LD"; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12717 $as_echo "$LD" >&6; }
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12722 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12724 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12725 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12726 $as_echo_n "(cached) " >&6
12728 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12729 case `$LD -v 2>&1 </dev/null` in
12730 *GNU
* |
*'with BFD'*)
12731 lt_cv_prog_gnu_ld
=yes
12734 lt_cv_prog_gnu_ld
=no
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12739 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12740 with_gnu_ld
=$lt_cv_prog_gnu_ld
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12751 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12752 if test "${lt_cv_path_NM+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
12755 if test -n "$NM"; then
12756 # Let the user override the test.
12757 lt_cv_path_NM
="$NM"
12759 lt_nm_to_check
="${ac_tool_prefix}nm"
12760 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12761 lt_nm_to_check
="$lt_nm_to_check nm"
12763 for lt_tmp_nm
in $lt_nm_to_check; do
12764 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12765 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12767 test -z "$ac_dir" && ac_dir
=.
12768 tmp_nm
="$ac_dir/$lt_tmp_nm"
12769 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12770 # Check to see if the nm accepts a BSD-compat flag.
12771 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12772 # nm: unknown option "B" ignored
12773 # Tru64's nm complains that /dev/null is an invalid object file
12774 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12775 */dev
/null
* |
*'Invalid file or object type'*)
12776 lt_cv_path_NM
="$tmp_nm -B"
12780 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12782 lt_cv_path_NM
="$tmp_nm -p"
12786 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12787 continue # so that we can try to find one that supports BSD flags
12796 : ${lt_cv_path_NM=no}
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12800 $as_echo "$lt_cv_path_NM" >&6; }
12801 if test "$lt_cv_path_NM" != "no"; then
12802 NM
="$lt_cv_path_NM"
12804 # Didn't find any BSD compatible name lister, look for dumpbin.
12805 if test -n "$DUMPBIN"; then :
12806 # Let the user override the test.
12808 if test -n "$ac_tool_prefix"; then
12809 for ac_prog
in dumpbin
"link -dump"
12811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12812 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814 $as_echo_n "checking for $ac_word... " >&6; }
12815 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12818 if test -n "$DUMPBIN"; then
12819 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12822 for as_dir
in $PATH
12825 test -z "$as_dir" && as_dir
=.
12826 for ac_exec_ext
in '' $ac_executable_extensions; do
12827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12828 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12838 DUMPBIN
=$ac_cv_prog_DUMPBIN
12839 if test -n "$DUMPBIN"; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12841 $as_echo "$DUMPBIN" >&6; }
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12848 test -n "$DUMPBIN" && break
12851 if test -z "$DUMPBIN"; then
12852 ac_ct_DUMPBIN
=$DUMPBIN
12853 for ac_prog
in dumpbin
"link -dump"
12855 # Extract the first word of "$ac_prog", so it can be a program name with args.
12856 set dummy
$ac_prog; ac_word
=$2
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858 $as_echo_n "checking for $ac_word... " >&6; }
12859 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12860 $as_echo_n "(cached) " >&6
12862 if test -n "$ac_ct_DUMPBIN"; then
12863 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12866 for as_dir
in $PATH
12869 test -z "$as_dir" && as_dir
=.
12870 for ac_exec_ext
in '' $ac_executable_extensions; do
12871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12872 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12882 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12883 if test -n "$ac_ct_DUMPBIN"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12885 $as_echo "$ac_ct_DUMPBIN" >&6; }
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12892 test -n "$ac_ct_DUMPBIN" && break
12895 if test "x$ac_ct_DUMPBIN" = x
; then
12898 case $cross_compiling:$ac_tool_warned in
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12902 ac_tool_warned
=yes ;;
12904 DUMPBIN
=$ac_ct_DUMPBIN
12908 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12910 DUMPBIN
="$DUMPBIN -symbols"
12918 if test "$DUMPBIN" != ":"; then
12922 test -z "$NM" && NM
=nm
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12930 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12931 if test "${lt_cv_nm_interface+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12934 lt_cv_nm_interface
="BSD nm"
12935 echo "int some_variable = 0;" > conftest.
$ac_ext
12936 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12937 (eval "$ac_compile" 2>conftest.err
)
12938 cat conftest.err
>&5
12939 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12940 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12941 cat conftest.err
>&5
12942 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12943 cat conftest.out
>&5
12944 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12945 lt_cv_nm_interface
="MS dumpbin"
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12950 $as_echo "$lt_cv_nm_interface" >&6; }
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12953 $as_echo_n "checking whether ln -s works... " >&6; }
12955 if test "$LN_S" = "ln -s"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12957 $as_echo "yes" >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12960 $as_echo "no, using $LN_S" >&6; }
12963 # find the maximum length of command line arguments
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12965 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12966 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
12974 # On DJGPP, this test can blow up pretty badly due to problems in libc
12975 # (any single argument exceeding 2000 bytes causes a buffer overrun
12976 # during glob expansion). Even if it were fixed, the result of this
12977 # check would be larger than it should be.
12978 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12982 # Under GNU Hurd, this test is not required because there is
12983 # no limit to the length of command line arguments.
12984 # Libtool will interpret -1 as no limit whatsoever
12985 lt_cv_sys_max_cmd_len
=-1;
12988 cygwin
* | mingw
* | cegcc
*)
12989 # On Win9x/ME, this test blows up -- it succeeds, but takes
12990 # about 5 minutes as the teststring grows exponentially.
12991 # Worse, since 9x/ME are not pre-emptively multitasking,
12992 # you end up with a "frozen" computer, even though with patience
12993 # the test eventually succeeds (with a max line length of 256k).
12994 # Instead, let's just punt: use the minimum linelength reported by
12995 # all of the supported platforms: 8192 (on NT/2K/XP).
12996 lt_cv_sys_max_cmd_len
=8192;
13000 # On MiNT this can take a long time and run out of memory.
13001 lt_cv_sys_max_cmd_len
=8192;
13005 # On AmigaOS with pdksh, this test takes hours, literally.
13006 # So we just punt and use a minimum line length of 8192.
13007 lt_cv_sys_max_cmd_len
=8192;
13010 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13011 # This has been around since 386BSD, at least. Likely further.
13012 if test -x /sbin
/sysctl
; then
13013 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13014 elif test -x /usr
/sbin
/sysctl
; then
13015 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13017 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13019 # And add a safety zone
13020 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13021 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13025 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13026 lt_cv_sys_max_cmd_len
=196608
13030 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13031 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13032 # nice to cause kernel panics so lets avoid the loop below.
13033 # First set a reasonable default.
13034 lt_cv_sys_max_cmd_len
=16384
13036 if test -x /sbin
/sysconfig
; then
13037 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13038 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13043 lt_cv_sys_max_cmd_len
=102400
13045 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13046 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13047 if test -n "$kargmax"; then
13048 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13050 lt_cv_sys_max_cmd_len
=32768
13054 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13055 if test -n "$lt_cv_sys_max_cmd_len"; then
13056 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13057 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13059 # Make teststring a little bigger before we do anything with it.
13060 # a 1K string should be a reasonable start.
13061 for i
in 1 2 3 4 5 6 7 8 ; do
13062 teststring
=$teststring$teststring
13064 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13065 # If test is not a shell built-in, we'll probably end up computing a
13066 # maximum length that is only half of the actual maximum length, but
13068 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13069 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13070 test $i != 17 # 1/2 MB should be enough
13073 teststring
=$teststring$teststring
13075 # Only check the string length outside the loop.
13076 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13078 # Add a significant safety factor because C++ compilers can tack on
13079 # massive amounts of additional arguments before passing them to the
13080 # linker. It appears as though 1/2 is a usable value.
13081 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13088 if test -n $lt_cv_sys_max_cmd_len ; then
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13090 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13093 $as_echo "none" >&6; }
13095 max_cmd_len
=$lt_cv_sys_max_cmd_len
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13107 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13108 # Try some XSI features
13110 ( _lt_dummy
="a/b/c"
13111 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13113 && eval 'test $(( 1 + 1 )) -eq 2 \
13114 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13117 $as_echo "$xsi_shell" >&6; }
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13121 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13123 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13125 && lt_shell_append=yes
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13127 $as_echo "$lt_shell_append" >&6; }
13130 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13140 # test EBCDIC or ASCII
13141 case `echo X|tr X '\101'` in
13142 A) # ASCII based system
13143 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13144 lt_SP2NL='tr \040 \012'
13145 lt_NL2SP='tr \015\012 \040\040'
13147 *) # EBCDIC based system
13148 lt_SP2NL='tr \100 \n'
13149 lt_NL2SP='tr \r\n \100\100'
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13162 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13163 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13164 $as_echo_n "(cached
) " >&6
13166 lt_cv_ld_reload_flag='-r'
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13169 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13170 reload_flag=$lt_cv_ld_reload_flag
13171 case $reload_flag in
13173 *) reload_flag=" $reload_flag" ;;
13175 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13178 if test "$GCC" = yes; then
13179 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13181 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13194 if test -n "$ac_tool_prefix"; then
13195 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13196 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13198 $as_echo_n "checking
for $ac_word...
" >&6; }
13199 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13200 $as_echo_n "(cached
) " >&6
13202 if test -n "$OBJDUMP"; then
13203 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13212 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13222 OBJDUMP=$ac_cv_prog_OBJDUMP
13223 if test -n "$OBJDUMP"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13225 $as_echo "$OBJDUMP" >&6; }
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13228 $as_echo "no
" >&6; }
13233 if test -z "$ac_cv_prog_OBJDUMP"; then
13234 ac_ct_OBJDUMP=$OBJDUMP
13235 # Extract the first word of "objdump
", so it can be a program name with args.
13236 set dummy objdump; ac_word=$2
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13238 $as_echo_n "checking
for $ac_word...
" >&6; }
13239 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13240 $as_echo_n "(cached
) " >&6
13242 if test -n "$ac_ct_OBJDUMP"; then
13243 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13252 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13253 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13262 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13263 if test -n "$ac_ct_OBJDUMP"; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13265 $as_echo "$ac_ct_OBJDUMP" >&6; }
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13268 $as_echo "no
" >&6; }
13271 if test "x
$ac_ct_OBJDUMP" = x; then
13274 case $cross_compiling:$ac_tool_warned in
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13277 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13278 ac_tool_warned=yes ;;
13280 OBJDUMP=$ac_ct_OBJDUMP
13283 OBJDUMP="$ac_cv_prog_OBJDUMP"
13286 test -z "$OBJDUMP" && OBJDUMP=objdump
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13297 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13298 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13299 $as_echo_n "(cached
) " >&6
13301 lt_cv_file_magic_cmd='$MAGIC_CMD'
13302 lt_cv_file_magic_test_file=
13303 lt_cv_deplibs_check_method='unknown'
13304 # Need to set the preceding variable on all platforms that support
13305 # interlibrary dependencies.
13306 # 'none' -- dependencies not supported.
13307 # `unknown' -- same as none, but documents that we really don't know.
13308 # 'pass_all' -- all dependencies passed with no checks.
13309 # 'test_compile' -- check by making test program.
13310 # 'file_magic [[regex]]' -- check by looking for files in library path
13311 # which responds to the $file_magic_cmd with a given extended regex.
13312 # If you have `file' or equivalent on your system and you're not sure
13313 # whether `pass_all' will *always* work, you probably want this one.
13317 lt_cv_deplibs_check_method=pass_all
13321 lt_cv_deplibs_check_method=pass_all
13325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13326 lt_cv_file_magic_cmd='/usr/bin/file -L'
13327 lt_cv_file_magic_test_file=/shlib/libc.so
13331 # func_win32_libid is a shell function defined in ltmain.sh
13332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13333 lt_cv_file_magic_cmd='func_win32_libid'
13337 # Base MSYS/MinGW do not provide the 'file' command needed by
13338 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13339 # unless we find 'file', for example because we are cross-compiling.
13340 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13341 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13342 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13343 lt_cv_file_magic_cmd='func_win32_libid'
13345 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13346 lt_cv_file_magic_cmd='$OBJDUMP -f'
13351 # use the weaker test based on 'objdump'. See mingw*.
13352 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13353 lt_cv_file_magic_cmd='$OBJDUMP -f'
13356 darwin* | rhapsody*)
13357 lt_cv_deplibs_check_method=pass_all
13360 freebsd* | dragonfly*)
13361 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13364 # Not sure whether the presence of OpenBSD here was a mistake.
13365 # Let's accept both of them until this is cleared up.
13366 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13367 lt_cv_file_magic_cmd=/usr/bin/file
13368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13372 lt_cv_deplibs_check_method=pass_all
13377 lt_cv_deplibs_check_method=pass_all
13381 lt_cv_deplibs_check_method=pass_all
13384 hpux10.20* | hpux11*)
13385 lt_cv_file_magic_cmd=/usr/bin/file
13388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13389 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13392 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]'
13393 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13396 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13397 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13403 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13407 irix5* | irix6* | nonstopux*)
13409 *-32|*"-32 ") libmagic=32-bit;;
13410 *-n32|*"-n32 ") libmagic=N32;;
13411 *-64|*"-64 ") libmagic=64-bit;;
13412 *) libmagic=never-match;;
13414 lt_cv_deplibs_check_method=pass_all
13417 # This must be Linux ELF.
13418 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13419 lt_cv_deplibs_check_method=pass_all
13423 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13432 lt_cv_file_magic_cmd=/usr/bin/file
13433 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13437 lt_cv_deplibs_check_method=pass_all
13441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13448 osf3* | osf4* | osf5*)
13449 lt_cv_deplibs_check_method=pass_all
13453 lt_cv_deplibs_check_method=pass_all
13457 lt_cv_deplibs_check_method=pass_all
13460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13461 lt_cv_deplibs_check_method=pass_all
13465 case $host_vendor in
13467 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]'
13468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13471 lt_cv_deplibs_check_method=pass_all
13474 lt_cv_file_magic_cmd='/bin/file'
13475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13478 lt_cv_file_magic_cmd='/bin/file'
13479 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13480 lt_cv_file_magic_test_file=/lib/libc.so
13483 lt_cv_deplibs_check_method=pass_all
13486 lt_cv_deplibs_check_method=pass_all
13492 lt_cv_deplibs_check_method=pass_all
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13498 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13499 file_magic_cmd=$lt_cv_file_magic_cmd
13500 deplibs_check_method=$lt_cv_deplibs_check_method
13501 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13514 if test -n "$ac_tool_prefix"; then
13515 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13516 set dummy ${ac_tool_prefix}ar; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13518 $as_echo_n "checking
for $ac_word...
" >&6; }
13519 if test "${ac_cv_prog_AR+set}" = set; then :
13520 $as_echo_n "(cached
) " >&6
13522 if test -n "$AR"; then
13523 ac_cv_prog_AR="$AR" # Let the user override the test.
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13532 ac_cv_prog_AR="${ac_tool_prefix}ar"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13543 if test -n "$AR"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13545 $as_echo "$AR" >&6; }
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13548 $as_echo "no
" >&6; }
13553 if test -z "$ac_cv_prog_AR"; then
13555 # Extract the first word of "ar", so it can be a program name with args.
13556 set dummy ar; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13558 $as_echo_n "checking
for $ac_word...
" >&6; }
13559 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13560 $as_echo_n "(cached
) " >&6
13562 if test -n "$ac_ct_AR"; then
13563 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13572 ac_cv_prog_ac_ct_AR="ar"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13583 if test -n "$ac_ct_AR"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13585 $as_echo "$ac_ct_AR" >&6; }
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13588 $as_echo "no
" >&6; }
13591 if test "x
$ac_ct_AR" = x; then
13594 case $cross_compiling:$ac_tool_warned in
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13597 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13598 ac_tool_warned=yes ;;
13603 AR="$ac_cv_prog_AR"
13606 test -z "$AR" && AR=ar
13607 test -z "$AR_FLAGS" && AR_FLAGS=cru
13619 if test -n "$ac_tool_prefix"; then
13620 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13621 set dummy ${ac_tool_prefix}strip; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13623 $as_echo_n "checking
for $ac_word...
" >&6; }
13624 if test "${ac_cv_prog_STRIP+set}" = set; then :
13625 $as_echo_n "(cached
) " >&6
13627 if test -n "$STRIP"; then
13628 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13637 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13647 STRIP=$ac_cv_prog_STRIP
13648 if test -n "$STRIP"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13650 $as_echo "$STRIP" >&6; }
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13653 $as_echo "no
" >&6; }
13658 if test -z "$ac_cv_prog_STRIP"; then
13660 # Extract the first word of "strip
", so it can be a program name with args.
13661 set dummy strip; ac_word=$2
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13663 $as_echo_n "checking
for $ac_word...
" >&6; }
13664 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13665 $as_echo_n "(cached
) " >&6
13667 if test -n "$ac_ct_STRIP"; then
13668 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13671 for as_dir in $PATH
13674 test -z "$as_dir" && as_dir=.
13675 for ac_exec_ext in '' $ac_executable_extensions; do
13676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13677 ac_cv_prog_ac_ct_STRIP="strip
"
13678 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13687 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13688 if test -n "$ac_ct_STRIP"; then
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13690 $as_echo "$ac_ct_STRIP" >&6; }
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13693 $as_echo "no
" >&6; }
13696 if test "x
$ac_ct_STRIP" = x; then
13699 case $cross_compiling:$ac_tool_warned in
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13702 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13703 ac_tool_warned=yes ;;
13708 STRIP="$ac_cv_prog_STRIP"
13711 test -z "$STRIP" && STRIP=:
13718 if test -n "$ac_tool_prefix"; then
13719 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13722 $as_echo_n "checking
for $ac_word...
" >&6; }
13723 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13724 $as_echo_n "(cached
) " >&6
13726 if test -n "$RANLIB"; then
13727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730 for as_dir in $PATH
13733 test -z "$as_dir" && as_dir=.
13734 for ac_exec_ext in '' $ac_executable_extensions; do
13735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13737 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13746 RANLIB=$ac_cv_prog_RANLIB
13747 if test -n "$RANLIB"; then
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13749 $as_echo "$RANLIB" >&6; }
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13752 $as_echo "no
" >&6; }
13757 if test -z "$ac_cv_prog_RANLIB"; then
13758 ac_ct_RANLIB=$RANLIB
13759 # Extract the first word of "ranlib
", so it can be a program name with args.
13760 set dummy ranlib; ac_word=$2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13762 $as_echo_n "checking
for $ac_word...
" >&6; }
13763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13764 $as_echo_n "(cached
) " >&6
13766 if test -n "$ac_ct_RANLIB"; then
13767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770 for as_dir in $PATH
13773 test -z "$as_dir" && as_dir=.
13774 for ac_exec_ext in '' $ac_executable_extensions; do
13775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13776 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13777 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13787 if test -n "$ac_ct_RANLIB"; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13789 $as_echo "$ac_ct_RANLIB" >&6; }
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13792 $as_echo "no
" >&6; }
13795 if test "x
$ac_ct_RANLIB" = x; then
13798 case $cross_compiling:$ac_tool_warned in
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13801 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13802 ac_tool_warned=yes ;;
13804 RANLIB=$ac_ct_RANLIB
13807 RANLIB="$ac_cv_prog_RANLIB"
13810 test -z "$RANLIB" && RANLIB=:
13817 # Determine commands to create old-style static archives.
13818 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13819 old_postinstall_cmds='chmod 644 $oldlib'
13820 old_postuninstall_cmds=
13822 if test -n "$RANLIB"; then
13825 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13828 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13831 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13836 lock_old_archive_extraction=yes ;;
13838 lock_old_archive_extraction=no ;;
13879 # If no C compiler was specified, use CC.
13882 # If no C compiler flags were specified, use CFLAGS.
13883 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13885 # Allow CC to be a program name with arguments.
13889 # Check for command to grab the raw symbol name followed by C symbol from nm.
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13891 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13892 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13893 $as_echo_n "(cached
) " >&6
13896 # These are sane defaults that work on at least a few old systems.
13897 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13899 # Character class describing NM global symbol codes.
13900 symcode='[BCDEGRST]'
13902 # Regexp to match symbols that can be accessed directly from C.
13903 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13905 # Define system-specific variables.
13910 cygwin* | mingw* | pw32* | cegcc*)
13911 symcode='[ABCDGISTW]'
13914 if test "$host_cpu" = ia64; then
13915 symcode='[ABCDEGRST]'
13918 irix* | nonstopux*)
13919 symcode='[BCDEGRST]'
13922 symcode='[BCDEGQRST]'
13933 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13941 # If we're using GNU nm, then use its standard symbol codes.
13942 case `$NM -V 2>&1` in
13943 *GNU* | *'with BFD'*)
13944 symcode='[ABCDGIRSTW]' ;;
13947 # Transform an extracted symbol line into a proper C declaration.
13948 # Some systems (esp. on ia64) link data and code symbols differently,
13949 # so use this general approach.
13950 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13952 # Transform an extracted symbol line into symbol name and symbol address
13953 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13954 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'"
13956 # Handle CRLF in mingw tool chain
13960 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13964 # Try without a prefix underscore, then with it.
13965 for ac_symprfx in "" "_
"; do
13967 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13968 symxfrm="\\1 $ac_symprfx\\2 \\2"
13970 # Write the raw and C identifiers.
13971 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13972 # Fake it for dumpbin and say T for any non-static function
13973 # and D for any global variable.
13974 # Also find C++ and __fastcall symbols from MSVC++,
13975 # which start with @ or ?.
13976 lt_cv_sys_global_symbol_pipe="$AWK '"\
13977 " {last_section=section; section=\$ 3};"\
13978 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13979 " \$ 0!~/External *\|/{next};"\
13980 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13981 " {if(hide[section]) next};"\
13982 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13983 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13984 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13985 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13986 " ' prfx
=^
$ac_symprfx"
13988 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13991 # Check to see that the pipe works correctly.
13995 cat > conftest.$ac_ext <<_LT_EOF
14000 void nm_test_func(void);
14001 void nm_test_func(void){}
14005 int main(){nm_test_var='a';nm_test_func();return(0);}
14008 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14009 (eval $ac_compile) 2>&5
14011 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14012 test $ac_status = 0; }; then
14013 # Now try to grab the symbols.
14015 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14016 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14018 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14019 test $ac_status = 0; } && test -s "$nlist"; then
14020 # Try sorting and uniquifying the output.
14021 if sort "$nlist" | uniq > "$nlist"T; then
14022 mv -f "$nlist"T "$nlist"
14027 # Make sure that we snagged all the symbols we need.
14028 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14029 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14030 cat <<_LT_EOF > conftest.$ac_ext
14036 # Now generate the symbol file.
14037 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14039 cat <<_LT_EOF >> conftest.$ac_ext
14041 /* The mapping between symbol names and symbols. */
14046 lt__PROGRAM__LTX_preloaded_symbols[] =
14048 { "@PROGRAM@
", (void *) 0 },
14050 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14051 cat <<\_LT_EOF >> conftest.$ac_ext
14055 /* This works around a problem in FreeBSD linker */
14056 #ifdef FREEBSD_WORKAROUND
14057 static const void *lt_preloaded_setup() {
14058 return lt__PROGRAM__LTX_preloaded_symbols;
14066 # Now try linking the two files.
14067 mv conftest.$ac_objext conftstm.$ac_objext
14068 lt_save_LIBS="$LIBS"
14069 lt_save_CFLAGS="$CFLAGS"
14070 LIBS="conftstm.
$ac_objext"
14071 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14072 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14073 (eval $ac_link) 2>&5
14075 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14076 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14079 LIBS="$lt_save_LIBS"
14080 CFLAGS="$lt_save_CFLAGS"
14082 echo "cannot
find nm_test_func
in $nlist" >&5
14085 echo "cannot
find nm_test_var
in $nlist" >&5
14088 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14091 echo "$progname: failed program was
:" >&5
14092 cat conftest.$ac_ext >&5
14094 rm -rf conftest* conftst*
14096 # Do not use the global_symbol_pipe unless it works.
14097 if test "$pipe_works" = yes; then
14100 lt_cv_sys_global_symbol_pipe=
14106 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14107 lt_cv_sys_global_symbol_to_cdecl=
14109 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14111 $as_echo "failed
" >&6; }
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14114 $as_echo "ok
" >&6; }
14138 # Check whether --enable-libtool-lock was given.
14139 if test "${enable_libtool_lock+set}" = set; then :
14140 enableval=$enable_libtool_lock;
14143 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14145 # Some flags need to be propagated to the compiler or linker for good
14149 # Find out which ABI we are using.
14150 echo 'int i;' > conftest.$ac_ext
14151 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14152 (eval $ac_compile) 2>&5
14154 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14155 test $ac_status = 0; }; then
14156 case `/usr/bin/file conftest.$ac_objext` in
14158 HPUX_IA64_MODE="32"
14161 HPUX_IA64_MODE="64"
14168 # Find out which ABI we are using.
14169 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14170 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14171 (eval $ac_compile) 2>&5
14173 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14174 test $ac_status = 0; }; then
14175 if test "$lt_cv_prog_gnu_ld" = yes; then
14176 case `/usr/bin/file conftest.$ac_objext` in
14178 LD="${LD-ld} -melf32bsmip"
14181 LD="${LD-ld} -melf32bmipn32"
14184 LD="${LD-ld} -melf64bmip"
14188 case `/usr/bin/file conftest.$ac_objext` in
14204 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14205 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14206 # Find out which ABI we are using.
14207 echo 'int i;' > conftest.$ac_ext
14208 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14209 (eval $ac_compile) 2>&5
14211 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14212 test $ac_status = 0; }; then
14213 case `/usr/bin/file conftest.o` in
14216 x86_64-*kfreebsd*-gnu)
14217 LD="${LD-ld} -m elf_i386_fbsd
"
14220 case `/usr/bin/file conftest.o` in
14222 LD="${LD-ld} -m elf32_x86_64
"
14225 LD="${LD-ld} -m elf_i386
"
14229 powerpc64le-*linux*)
14230 LD="${LD-ld} -m elf32lppclinux
"
14233 LD="${LD-ld} -m elf32ppclinux
"
14236 LD="${LD-ld} -m elf_s390
"
14239 LD="${LD-ld} -m elf32_sparc
"
14245 x86_64-*kfreebsd*-gnu)
14246 LD="${LD-ld} -m elf_x86_64_fbsd
"
14249 LD="${LD-ld} -m elf_x86_64
"
14252 LD="${LD-ld} -m elf64lppc
"
14255 LD="${LD-ld} -m elf64ppc
"
14257 s390*-*linux*|s390*-*tpf*)
14258 LD="${LD-ld} -m elf64_s390
"
14261 LD="${LD-ld} -m elf64_sparc
"
14271 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14272 SAVE_CFLAGS="$CFLAGS"
14273 CFLAGS="$CFLAGS -belf"
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14275 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14276 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14277 $as_echo_n "(cached
) " >&6
14280 ac_cpp='$CPP $CPPFLAGS'
14281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14296 if ac_fn_c_try_link "$LINENO"; then :
14297 lt_cv_cc_needs_belf=yes
14299 lt_cv_cc_needs_belf=no
14301 rm -f core conftest.err conftest.$ac_objext \
14302 conftest$ac_exeext conftest.$ac_ext
14304 ac_cpp='$CPP $CPPFLAGS'
14305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14311 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14312 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14313 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14314 CFLAGS="$SAVE_CFLAGS"
14318 # Find out which ABI we are using.
14319 echo 'int i;' > conftest.$ac_ext
14320 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14321 (eval $ac_compile) 2>&5
14323 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14324 test $ac_status = 0; }; then
14325 case `/usr/bin/file conftest.o` in
14327 case $lt_cv_prog_gnu_ld in
14328 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14330 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14342 need_locks="$enable_libtool_lock"
14346 rhapsody* | darwin*)
14347 if test -n "$ac_tool_prefix"; then
14348 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14349 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14351 $as_echo_n "checking
for $ac_word...
" >&6; }
14352 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14353 $as_echo_n "(cached
) " >&6
14355 if test -n "$DSYMUTIL"; then
14356 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14359 for as_dir in $PATH
14362 test -z "$as_dir" && as_dir=.
14363 for ac_exec_ext in '' $ac_executable_extensions; do
14364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14365 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14366 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14375 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14376 if test -n "$DSYMUTIL"; then
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14378 $as_echo "$DSYMUTIL" >&6; }
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14381 $as_echo "no
" >&6; }
14386 if test -z "$ac_cv_prog_DSYMUTIL"; then
14387 ac_ct_DSYMUTIL=$DSYMUTIL
14388 # Extract the first word of "dsymutil
", so it can be a program name with args.
14389 set dummy dsymutil; ac_word=$2
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14391 $as_echo_n "checking
for $ac_word...
" >&6; }
14392 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14393 $as_echo_n "(cached
) " >&6
14395 if test -n "$ac_ct_DSYMUTIL"; then
14396 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14399 for as_dir in $PATH
14402 test -z "$as_dir" && as_dir=.
14403 for ac_exec_ext in '' $ac_executable_extensions; do
14404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14405 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14406 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14415 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14416 if test -n "$ac_ct_DSYMUTIL"; then
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14418 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14421 $as_echo "no
" >&6; }
14424 if test "x
$ac_ct_DSYMUTIL" = x; then
14427 case $cross_compiling:$ac_tool_warned in
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14430 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14431 ac_tool_warned=yes ;;
14433 DSYMUTIL=$ac_ct_DSYMUTIL
14436 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14439 if test -n "$ac_tool_prefix"; then
14440 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14441 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14443 $as_echo_n "checking
for $ac_word...
" >&6; }
14444 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14445 $as_echo_n "(cached
) " >&6
14447 if test -n "$NMEDIT"; then
14448 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14457 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14458 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14467 NMEDIT=$ac_cv_prog_NMEDIT
14468 if test -n "$NMEDIT"; then
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14470 $as_echo "$NMEDIT" >&6; }
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14473 $as_echo "no
" >&6; }
14478 if test -z "$ac_cv_prog_NMEDIT"; then
14479 ac_ct_NMEDIT=$NMEDIT
14480 # Extract the first word of "nmedit
", so it can be a program name with args.
14481 set dummy nmedit; ac_word=$2
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14483 $as_echo_n "checking
for $ac_word...
" >&6; }
14484 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14485 $as_echo_n "(cached
) " >&6
14487 if test -n "$ac_ct_NMEDIT"; then
14488 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491 for as_dir in $PATH
14494 test -z "$as_dir" && as_dir=.
14495 for ac_exec_ext in '' $ac_executable_extensions; do
14496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14497 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14498 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14507 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14508 if test -n "$ac_ct_NMEDIT"; then
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14510 $as_echo "$ac_ct_NMEDIT" >&6; }
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14513 $as_echo "no
" >&6; }
14516 if test "x
$ac_ct_NMEDIT" = x; then
14519 case $cross_compiling:$ac_tool_warned in
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14522 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14523 ac_tool_warned=yes ;;
14525 NMEDIT=$ac_ct_NMEDIT
14528 NMEDIT="$ac_cv_prog_NMEDIT"
14531 if test -n "$ac_tool_prefix"; then
14532 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14533 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14535 $as_echo_n "checking
for $ac_word...
" >&6; }
14536 if test "${ac_cv_prog_LIPO+set}" = set; then :
14537 $as_echo_n "(cached
) " >&6
14539 if test -n "$LIPO"; then
14540 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543 for as_dir in $PATH
14546 test -z "$as_dir" && as_dir=.
14547 for ac_exec_ext in '' $ac_executable_extensions; do
14548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14549 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14550 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14559 LIPO=$ac_cv_prog_LIPO
14560 if test -n "$LIPO"; then
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14562 $as_echo "$LIPO" >&6; }
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14565 $as_echo "no
" >&6; }
14570 if test -z "$ac_cv_prog_LIPO"; then
14572 # Extract the first word of "lipo
", so it can be a program name with args.
14573 set dummy lipo; ac_word=$2
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14575 $as_echo_n "checking
for $ac_word...
" >&6; }
14576 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14577 $as_echo_n "(cached
) " >&6
14579 if test -n "$ac_ct_LIPO"; then
14580 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14583 for as_dir in $PATH
14586 test -z "$as_dir" && as_dir=.
14587 for ac_exec_ext in '' $ac_executable_extensions; do
14588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14589 ac_cv_prog_ac_ct_LIPO="lipo
"
14590 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14599 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14600 if test -n "$ac_ct_LIPO"; then
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14602 $as_echo "$ac_ct_LIPO" >&6; }
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14605 $as_echo "no
" >&6; }
14608 if test "x
$ac_ct_LIPO" = x; then
14611 case $cross_compiling:$ac_tool_warned in
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14614 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14615 ac_tool_warned=yes ;;
14620 LIPO="$ac_cv_prog_LIPO"
14623 if test -n "$ac_tool_prefix"; then
14624 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14625 set dummy ${ac_tool_prefix}otool; ac_word=$2
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14627 $as_echo_n "checking
for $ac_word...
" >&6; }
14628 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14629 $as_echo_n "(cached
) " >&6
14631 if test -n "$OTOOL"; then
14632 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14635 for as_dir in $PATH
14638 test -z "$as_dir" && as_dir=.
14639 for ac_exec_ext in '' $ac_executable_extensions; do
14640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14641 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14642 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14651 OTOOL=$ac_cv_prog_OTOOL
14652 if test -n "$OTOOL"; then
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14654 $as_echo "$OTOOL" >&6; }
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14657 $as_echo "no
" >&6; }
14662 if test -z "$ac_cv_prog_OTOOL"; then
14664 # Extract the first word of "otool
", so it can be a program name with args.
14665 set dummy otool; ac_word=$2
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14667 $as_echo_n "checking
for $ac_word...
" >&6; }
14668 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14669 $as_echo_n "(cached
) " >&6
14671 if test -n "$ac_ct_OTOOL"; then
14672 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14675 for as_dir in $PATH
14678 test -z "$as_dir" && as_dir=.
14679 for ac_exec_ext in '' $ac_executable_extensions; do
14680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14681 ac_cv_prog_ac_ct_OTOOL="otool
"
14682 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14691 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14692 if test -n "$ac_ct_OTOOL"; then
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14694 $as_echo "$ac_ct_OTOOL" >&6; }
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14697 $as_echo "no
" >&6; }
14700 if test "x
$ac_ct_OTOOL" = x; then
14703 case $cross_compiling:$ac_tool_warned in
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14706 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14707 ac_tool_warned=yes ;;
14712 OTOOL="$ac_cv_prog_OTOOL"
14715 if test -n "$ac_tool_prefix"; then
14716 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14717 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14719 $as_echo_n "checking
for $ac_word...
" >&6; }
14720 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14721 $as_echo_n "(cached
) " >&6
14723 if test -n "$OTOOL64"; then
14724 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727 for as_dir in $PATH
14730 test -z "$as_dir" && as_dir=.
14731 for ac_exec_ext in '' $ac_executable_extensions; do
14732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14733 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14734 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14743 OTOOL64=$ac_cv_prog_OTOOL64
14744 if test -n "$OTOOL64"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14746 $as_echo "$OTOOL64" >&6; }
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14749 $as_echo "no
" >&6; }
14754 if test -z "$ac_cv_prog_OTOOL64"; then
14755 ac_ct_OTOOL64=$OTOOL64
14756 # Extract the first word of "otool64
", so it can be a program name with args.
14757 set dummy otool64; ac_word=$2
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14759 $as_echo_n "checking
for $ac_word...
" >&6; }
14760 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14761 $as_echo_n "(cached
) " >&6
14763 if test -n "$ac_ct_OTOOL64"; then
14764 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767 for as_dir in $PATH
14770 test -z "$as_dir" && as_dir=.
14771 for ac_exec_ext in '' $ac_executable_extensions; do
14772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14773 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14774 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14783 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14784 if test -n "$ac_ct_OTOOL64"; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14786 $as_echo "$ac_ct_OTOOL64" >&6; }
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14789 $as_echo "no
" >&6; }
14792 if test "x
$ac_ct_OTOOL64" = x; then
14795 case $cross_compiling:$ac_tool_warned in
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14798 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14799 ac_tool_warned=yes ;;
14801 OTOOL64=$ac_ct_OTOOL64
14804 OTOOL64="$ac_cv_prog_OTOOL64"
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14834 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14835 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14836 $as_echo_n "(cached
) " >&6
14838 lt_cv_apple_cc_single_mod=no
14839 if test -z "${LT_MULTI_MODULE}"; then
14840 # By default we will add the -single_module flag. You can override
14841 # by either setting the environment variable LT_MULTI_MODULE
14842 # non-empty at configure time, or by adding -multi_module to the
14844 rm -rf libconftest.dylib*
14845 echo "int foo
(void
){return 1;}" > conftest.c
14846 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14847 -dynamiclib -Wl,-single_module conftest.c
" >&5
14848 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14849 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14851 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14852 lt_cv_apple_cc_single_mod=yes
14854 cat conftest.err >&5
14856 rm -rf libconftest.dylib*
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14861 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14863 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14864 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14865 $as_echo_n "(cached
) " >&6
14867 lt_cv_ld_exported_symbols_list=no
14868 save_LDFLAGS=$LDFLAGS
14869 echo "_main
" > conftest.sym
14870 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14882 if ac_fn_c_try_link "$LINENO"; then :
14883 lt_cv_ld_exported_symbols_list=yes
14885 lt_cv_ld_exported_symbols_list=no
14887 rm -f core conftest.err conftest.$ac_objext \
14888 conftest$ac_exeext conftest.$ac_ext
14889 LDFLAGS="$save_LDFLAGS"
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14893 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14895 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14896 if test "${lt_cv_ld_force_load+set}" = set; then :
14897 $as_echo_n "(cached
) " >&6
14899 lt_cv_ld_force_load=no
14900 cat > conftest.c << _LT_EOF
14901 int forced_loaded() { return 2;}
14903 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14904 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14905 echo "$AR cru libconftest.a conftest.o
" >&5
14906 $AR cru libconftest.a conftest.o 2>&5
14907 cat > conftest.c << _LT_EOF
14908 int main() { return 0;}
14910 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14911 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14913 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14914 lt_cv_ld_force_load=yes
14916 cat conftest.err >&5
14918 rm -f conftest.err libconftest.a conftest conftest.c
14919 rm -rf conftest.dSYM
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14923 $as_echo "$lt_cv_ld_force_load" >&6; }
14925 rhapsody* | darwin1.[012])
14926 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14928 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14929 darwin*) # darwin 5.x on
14930 # if running on 10.5 or later, the deployment target defaults
14931 # to the OS version, if on x86, and 10.4, the deployment
14932 # target defaults to 10.4. Don't you love it?
14933 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14934 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14935 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14937 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14939 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14943 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14944 _lt_dar_single_mod='$single_module'
14946 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14947 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14949 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14951 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14952 _lt_dsymutil='~$DSYMUTIL $lib || :'
14960 for ac_header in dlfcn.h
14962 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14963 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14964 cat >>confdefs.h <<_ACEOF
14965 #define HAVE_DLFCN_H 1
14982 enable_win32_dll=no
14985 # Check whether --enable-shared was given.
14986 if test "${enable_shared+set}" = set; then :
14987 enableval=$enable_shared; p=${PACKAGE-default}
14989 yes) enable_shared=yes ;;
14990 no) enable_shared=no ;;
14993 # Look at the argument we got. We use all the common list separators.
14994 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14995 for pkg in $enableval; do
14997 if test "X
$pkg" = "X
$p"; then
15016 # Check whether --enable-static was given.
15017 if test "${enable_static+set}" = set; then :
15018 enableval=$enable_static; p=${PACKAGE-default}
15020 yes) enable_static=yes ;;
15021 no) enable_static=no ;;
15024 # Look at the argument we got. We use all the common list separators.
15025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15026 for pkg in $enableval; do
15028 if test "X
$pkg" = "X
$p"; then
15048 # Check whether --with-pic was given.
15049 if test "${with_pic+set}" = set; then :
15050 withval=$with_pic; pic_mode="$withval"
15056 test -z "$pic_mode" && pic_mode=default
15064 # Check whether --enable-fast-install was given.
15065 if test "${enable_fast_install+set}" = set; then :
15066 enableval=$enable_fast_install; p=${PACKAGE-default}
15068 yes) enable_fast_install=yes ;;
15069 no) enable_fast_install=no ;;
15071 enable_fast_install=no
15072 # Look at the argument we got. We use all the common list separators.
15073 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15074 for pkg in $enableval; do
15076 if test "X
$pkg" = "X
$p"; then
15077 enable_fast_install=yes
15084 enable_fast_install=yes
15097 # This can be used to rebuild libtool when needed
15098 LIBTOOL_DEPS="$ltmain"
15100 # Always use our own libtool.
15101 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15128 test -z "$LN_S" && LN_S="ln -s"
15143 if test -n "${ZSH_VERSION+set}" ; then
15144 setopt NO_GLOB_SUBST
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15148 $as_echo_n "checking
for objdir...
" >&6; }
15149 if test "${lt_cv_objdir+set}" = set; then :
15150 $as_echo_n "(cached
) " >&6
15152 rm -f .libs 2>/dev/null
15153 mkdir .libs 2>/dev/null
15154 if test -d .libs; then
15157 # MS-DOS does not allow filenames that begin with a dot.
15160 rmdir .libs 2>/dev/null
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15163 $as_echo "$lt_cv_objdir" >&6; }
15164 objdir=$lt_cv_objdir
15170 cat >>confdefs.h <<_ACEOF
15171 #define LT_OBJDIR "$lt_cv_objdir/"
15179 # AIX sometimes has problems with the GCC collect2 program. For some
15180 # reason, if we set the COLLECT_NAMES environment variable, the problems
15181 # vanish in a puff of smoke.
15182 if test "X
${COLLECT_NAMES+set}" != Xset; then
15184 export COLLECT_NAMES
15189 # Global variables:
15191 can_build_shared=yes
15193 # All known linkers require a `.a' archive for static linking (except MSVC,
15194 # which needs '.lib').
15197 with_gnu_ld="$lt_cv_prog_gnu_ld"
15200 old_CFLAGS="$CFLAGS"
15202 # Set sane defaults for various variables
15203 test -z "$CC" && CC=cc
15204 test -z "$LTCC" && LTCC=$CC
15205 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15206 test -z "$LD" && LD=ld
15207 test -z "$ac_objext" && ac_objext=o
15209 for cc_temp in $compiler""; do
15211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15217 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15220 # Only perform the check for file, if the check method requires it
15221 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15222 case $deplibs_check_method in
15224 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15226 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15228 $as_echo_n "(cached
) " >&6
15232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15235 lt_save_MAGIC_CMD="$MAGIC_CMD"
15236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15237 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15238 for ac_dir in $ac_dummy; do
15240 test -z "$ac_dir" && ac_dir=.
15241 if test -f $ac_dir/${ac_tool_prefix}file; then
15242 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15243 if test -n "$file_magic_test_file"; then
15244 case $deplibs_check_method in
15246 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15249 $EGREP "$file_magic_regex" > /dev/null; then
15254 *** Warning: the command libtool uses to detect shared libraries,
15255 *** $file_magic_cmd, produces output that libtool cannot recognize.
15256 *** The result is that libtool may fail to recognize shared libraries
15257 *** as such. This will affect the creation of libtool libraries that
15258 *** depend on shared libraries, but programs linked with such libtool
15259 *** libraries will work regardless of this problem. Nevertheless, you
15260 *** may want to report the problem to your system manager and/or to
15261 *** bug-libtool@gnu.org
15271 MAGIC_CMD="$lt_save_MAGIC_CMD"
15276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15277 if test -n "$MAGIC_CMD"; then
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15279 $as_echo "$MAGIC_CMD" >&6; }
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15282 $as_echo "no
" >&6; }
15289 if test -z "$lt_cv_path_MAGIC_CMD"; then
15290 if test -n "$ac_tool_prefix"; then
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15292 $as_echo_n "checking
for file...
" >&6; }
15293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15294 $as_echo_n "(cached
) " >&6
15298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15301 lt_save_MAGIC_CMD="$MAGIC_CMD"
15302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15303 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15304 for ac_dir in $ac_dummy; do
15306 test -z "$ac_dir" && ac_dir=.
15307 if test -f $ac_dir/file; then
15308 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15309 if test -n "$file_magic_test_file"; then
15310 case $deplibs_check_method in
15312 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15315 $EGREP "$file_magic_regex" > /dev/null; then
15320 *** Warning: the command libtool uses to detect shared libraries,
15321 *** $file_magic_cmd, produces output that libtool cannot recognize.
15322 *** The result is that libtool may fail to recognize shared libraries
15323 *** as such. This will affect the creation of libtool libraries that
15324 *** depend on shared libraries, but programs linked with such libtool
15325 *** libraries will work regardless of this problem. Nevertheless, you
15326 *** may want to report the problem to your system manager and/or to
15327 *** bug-libtool@gnu.org
15337 MAGIC_CMD="$lt_save_MAGIC_CMD"
15342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15343 if test -n "$MAGIC_CMD"; then
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15345 $as_echo "$MAGIC_CMD" >&6; }
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15348 $as_echo "no
" >&6; }
15361 # Use C for the default configuration in the libtool script
15365 ac_cpp='$CPP $CPPFLAGS'
15366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15371 # Source file extension for C test sources.
15374 # Object file extension for compiled C test sources.
15378 # Code to be used in simple compile tests
15379 lt_simple_compile_test_code="int some_variable
= 0;"
15381 # Code to be used in simple link tests
15382 lt_simple_link_test_code='int main(){return(0);}'
15390 # If no C compiler was specified, use CC.
15393 # If no C compiler flags were specified, use CFLAGS.
15394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15396 # Allow CC to be a program name with arguments.
15399 # Save the default compiler, since it gets overwritten when the other
15400 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15401 compiler_DEFAULT=$CC
15403 # save warnings/boilerplate of simple test code
15404 ac_outfile=conftest.$ac_objext
15405 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15406 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15407 _lt_compiler_boilerplate=`cat conftest.err`
15410 ac_outfile=conftest.$ac_objext
15411 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15412 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15413 _lt_linker_boilerplate=`cat conftest.err`
15418 ## There is no encapsulation within the following macros, do not change
15419 ## the running order or otherwise move them around unless you know exactly
15420 ## what you are doing...
15421 if test -n "$compiler"; then
15423 lt_prog_compiler_no_builtin_flag=
15425 if test "$GCC" = yes; then
15426 case $cc_basename in
15428 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15430 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15434 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15435 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15436 $as_echo_n "(cached
) " >&6
15438 lt_cv_prog_compiler_rtti_exceptions=no
15439 ac_outfile=conftest.$ac_objext
15440 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15441 lt_compiler_flag="-fno-rtti -fno-exceptions"
15442 # Insert the option either (1) after the last *FLAGS variable, or
15443 # (2) before a word containing "conftest.
", or (3) at the end.
15444 # Note that $ac_compile itself does not contain backslashes and begins
15445 # with a dollar sign (not a hyphen), so the echo should work correctly.
15446 # The option is referenced via a variable to avoid confusing sed.
15447 lt_compile=`echo "$ac_compile" | $SED \
15448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15450 -e 's:$: $lt_compiler_flag:'`
15451 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15452 (eval "$lt_compile" 2>conftest.err)
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15456 if (exit $ac_status) && test -s "$ac_outfile"; then
15457 # The compiler can only warn and ignore the option if not recognized
15458 # So say no if there are warnings other than the usual output.
15459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15461 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15462 lt_cv_prog_compiler_rtti_exceptions=yes
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15469 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15471 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15472 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15484 lt_prog_compiler_wl=
15485 lt_prog_compiler_pic=
15486 lt_prog_compiler_static=
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15489 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15491 if test "$GCC" = yes; then
15492 lt_prog_compiler_wl='-Wl,'
15493 lt_prog_compiler_static='-static'
15497 # All AIX code is PIC.
15498 if test "$host_cpu" = ia64; then
15499 # AIX 5 now supports IA64 processor
15500 lt_prog_compiler_static='-Bstatic'
15502 lt_prog_compiler_pic='-fPIC'
15508 # see comment about AmigaOS4 .so support
15509 lt_prog_compiler_pic='-fPIC'
15512 # FIXME: we need at least 68020 code to build shared libraries, but
15513 # adding the `-m68020' flag to GCC prevents building anything better,
15515 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15520 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15521 # PIC is the default for these OSes.
15524 mingw* | cygwin* | pw32* | os2* | cegcc*)
15525 # This hack is so that the source file can tell whether it is being
15526 # built for inclusion in a dll (and should export symbols for example).
15527 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15528 # (--disable-auto-import) libraries
15529 lt_prog_compiler_pic='-DDLL_EXPORT'
15532 darwin* | rhapsody*)
15533 # PIC is the default on this platform
15534 # Common symbols not allowed in MH_DYLIB files
15535 lt_prog_compiler_pic='-fno-common'
15539 # PIC is the default for Haiku.
15540 # The "-static" flag exists, but is broken.
15541 lt_prog_compiler_static=
15545 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15546 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15547 # sets the default TLS model and affects inlining.
15553 lt_prog_compiler_pic='-fPIC'
15559 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15560 # Instead, we relocate shared libraries at runtime.
15564 # Just because we use GCC doesn't mean we suddenly get shared libraries
15565 # on systems that don't support them.
15566 lt_prog_compiler_can_build_shared=no
15571 # QNX uses GNU C++, but need to define -shared option too, otherwise
15572 # it will coredump.
15573 lt_prog_compiler_pic='-fPIC -shared'
15577 if test -d /usr/nec; then
15578 lt_prog_compiler_pic=-Kconform_pic
15583 lt_prog_compiler_pic='-fPIC'
15587 case $cc_basename in
15588 nvcc*) # Cuda Compiler Driver 2.2
15589 lt_prog_compiler_wl='-Xlinker '
15590 lt_prog_compiler_pic='-Xcompiler -fPIC'
15594 # PORTME Check for flag to pass linker flags through the system compiler.
15597 lt_prog_compiler_wl='-Wl,'
15598 if test "$host_cpu" = ia64; then
15599 # AIX 5 now supports IA64 processor
15600 lt_prog_compiler_static='-Bstatic'
15602 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15606 mingw* | cygwin* | pw32* | os2* | cegcc*)
15607 # This hack is so that the source file can tell whether it is being
15608 # built for inclusion in a dll (and should export symbols for example).
15609 lt_prog_compiler_pic='-DDLL_EXPORT'
15612 hpux9* | hpux10* | hpux11*)
15613 lt_prog_compiler_wl='-Wl,'
15614 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15615 # not for PA HP-UX.
15621 lt_prog_compiler_pic='+Z'
15624 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15625 lt_prog_compiler_static='${wl}-a ${wl}archive'
15628 irix5* | irix6* | nonstopux*)
15629 lt_prog_compiler_wl='-Wl,'
15630 # PIC (with -KPIC) is the default.
15631 lt_prog_compiler_static='-non_shared'
15634 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15635 case $cc_basename in
15636 # old Intel for x86_64 which still supported -KPIC.
15638 lt_prog_compiler_wl='-Wl,'
15639 lt_prog_compiler_pic='-KPIC'
15640 lt_prog_compiler_static='-static'
15642 # icc used to be incompatible with GCC.
15643 # ICC 10 doesn't accept -KPIC any more.
15645 lt_prog_compiler_wl='-Wl,'
15646 lt_prog_compiler_pic='-fPIC'
15647 lt_prog_compiler_static='-static'
15649 # Lahey Fortran 8.1.
15651 lt_prog_compiler_wl='-Wl,'
15652 lt_prog_compiler_pic='--shared'
15653 lt_prog_compiler_static='--static'
15655 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15656 # Portland Group compilers (*not* the Pentium gcc compiler,
15657 # which looks to be a dead project)
15658 lt_prog_compiler_wl='-Wl,'
15659 lt_prog_compiler_pic='-fpic'
15660 lt_prog_compiler_static='-Bstatic'
15663 lt_prog_compiler_wl='-Wl,'
15664 # All Alpha code is PIC.
15665 lt_prog_compiler_static='-non_shared'
15667 xl* | bgxl* | bgf* | mpixl*)
15668 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15669 lt_prog_compiler_wl='-Wl,'
15670 lt_prog_compiler_pic='-qpic'
15671 lt_prog_compiler_static='-qstaticlink'
15674 case `$CC -V 2>&1 | sed 5q` in
15675 *Sun\ F* | *Sun*Fortran*)
15676 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15677 lt_prog_compiler_pic='-KPIC'
15678 lt_prog_compiler_static='-Bstatic'
15679 lt_prog_compiler_wl=''
15683 lt_prog_compiler_pic='-KPIC'
15684 lt_prog_compiler_static='-Bstatic'
15685 lt_prog_compiler_wl='-Wl,'
15693 lt_prog_compiler_pic='-KPIC'
15694 lt_prog_compiler_static='-Bstatic'
15698 # QNX uses GNU C++, but need to define -shared option too, otherwise
15699 # it will coredump.
15700 lt_prog_compiler_pic='-fPIC -shared'
15703 osf3* | osf4* | osf5*)
15704 lt_prog_compiler_wl='-Wl,'
15705 # All OSF/1 code is PIC.
15706 lt_prog_compiler_static='-non_shared'
15710 lt_prog_compiler_static='-non_shared'
15714 lt_prog_compiler_pic='-KPIC'
15715 lt_prog_compiler_static='-Bstatic'
15716 case $cc_basename in
15717 f77* | f90* | f95*)
15718 lt_prog_compiler_wl='-Qoption ld ';;
15720 lt_prog_compiler_wl='-Wl,';;
15725 lt_prog_compiler_wl='-Qoption ld '
15726 lt_prog_compiler_pic='-PIC'
15727 lt_prog_compiler_static='-Bstatic'
15730 sysv4 | sysv4.2uw2* | sysv4.3*)
15731 lt_prog_compiler_wl='-Wl,'
15732 lt_prog_compiler_pic='-KPIC'
15733 lt_prog_compiler_static='-Bstatic'
15737 if test -d /usr/nec ;then
15738 lt_prog_compiler_pic='-Kconform_pic'
15739 lt_prog_compiler_static='-Bstatic'
15743 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15744 lt_prog_compiler_wl='-Wl,'
15745 lt_prog_compiler_pic='-KPIC'
15746 lt_prog_compiler_static='-Bstatic'
15750 lt_prog_compiler_wl='-Wl,'
15751 lt_prog_compiler_can_build_shared=no
15755 lt_prog_compiler_pic='-pic'
15756 lt_prog_compiler_static='-Bstatic'
15760 lt_prog_compiler_can_build_shared=no
15766 # For platforms which do not support PIC, -DPIC is meaningless:
15768 lt_prog_compiler_pic=
15771 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15775 $as_echo "$lt_prog_compiler_pic" >&6; }
15783 # Check to make sure the PIC flag actually works.
15785 if test -n "$lt_prog_compiler_pic"; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15787 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15788 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15789 $as_echo_n "(cached
) " >&6
15791 lt_cv_prog_compiler_pic_works=no
15792 ac_outfile=conftest.$ac_objext
15793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15794 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15795 # Insert the option either (1) after the last *FLAGS variable, or
15796 # (2) before a word containing "conftest.
", or (3) at the end.
15797 # Note that $ac_compile itself does not contain backslashes and begins
15798 # with a dollar sign (not a hyphen), so the echo should work correctly.
15799 # The option is referenced via a variable to avoid confusing sed.
15800 lt_compile=`echo "$ac_compile" | $SED \
15801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15803 -e 's:$: $lt_compiler_flag:'`
15804 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15805 (eval "$lt_compile" 2>conftest.err)
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15809 if (exit $ac_status) && test -s "$ac_outfile"; then
15810 # The compiler can only warn and ignore the option if not recognized
15811 # So say no if there are warnings other than the usual output.
15812 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15815 lt_cv_prog_compiler_pic_works=yes
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15822 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15824 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15825 case $lt_prog_compiler_pic in
15827 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15830 lt_prog_compiler_pic=
15831 lt_prog_compiler_can_build_shared=no
15842 # Check to make sure the static flag actually works.
15844 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15846 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15847 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15848 $as_echo_n "(cached
) " >&6
15850 lt_cv_prog_compiler_static_works=no
15851 save_LDFLAGS="$LDFLAGS"
15852 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15853 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15854 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15855 # The linker can only warn and ignore the option if not recognized
15856 # So say no if there are warnings
15857 if test -s conftest.err; then
15858 # Append any errors to the config.log.
15859 cat conftest.err 1>&5
15860 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15862 if diff conftest.exp conftest.er2 >/dev/null; then
15863 lt_cv_prog_compiler_static_works=yes
15866 lt_cv_prog_compiler_static_works=yes
15870 LDFLAGS="$save_LDFLAGS"
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15874 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15876 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15879 lt_prog_compiler_static=
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15889 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15890 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15891 $as_echo_n "(cached
) " >&6
15893 lt_cv_prog_compiler_c_o=no
15894 $RM -r conftest 2>/dev/null
15898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15900 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15901 # Insert the option either (1) after the last *FLAGS variable, or
15902 # (2) before a word containing "conftest.
", or (3) at the end.
15903 # Note that $ac_compile itself does not contain backslashes and begins
15904 # with a dollar sign (not a hyphen), so the echo should work correctly.
15905 lt_compile=`echo "$ac_compile" | $SED \
15906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15908 -e 's:$: $lt_compiler_flag:'`
15909 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15910 (eval "$lt_compile" 2>out/conftest.err)
15912 cat out/conftest.err >&5
15913 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15916 # The compiler can only warn and ignore the option if not recognized
15917 # So say no if there are warnings
15918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15921 lt_cv_prog_compiler_c_o=yes
15926 # SGI C++ compiler will create directory out/ii_files/ for
15927 # template instantiation
15928 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15929 $RM out/* && rmdir out
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15936 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15944 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15945 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15946 $as_echo_n "(cached
) " >&6
15948 lt_cv_prog_compiler_c_o=no
15949 $RM -r conftest 2>/dev/null
15953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15955 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15956 # Insert the option either (1) after the last *FLAGS variable, or
15957 # (2) before a word containing "conftest.
", or (3) at the end.
15958 # Note that $ac_compile itself does not contain backslashes and begins
15959 # with a dollar sign (not a hyphen), so the echo should work correctly.
15960 lt_compile=`echo "$ac_compile" | $SED \
15961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15963 -e 's:$: $lt_compiler_flag:'`
15964 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15965 (eval "$lt_compile" 2>out/conftest.err)
15967 cat out/conftest.err >&5
15968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15971 # The compiler can only warn and ignore the option if not recognized
15972 # So say no if there are warnings
15973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15976 lt_cv_prog_compiler_c_o=yes
15981 # SGI C++ compiler will create directory out/ii_files/ for
15982 # template instantiation
15983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15984 $RM out/* && rmdir out
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15991 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15996 hard_links="nottested
"
15997 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15998 # do not overwrite the value of need_locks provided by the user
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16000 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16005 ln conftest.a conftest.b 2>&5 || hard_links=no
16006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16008 $as_echo "$hard_links" >&6; }
16009 if test "$hard_links" = no; then
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16011 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16024 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16027 allow_undefined_flag=
16028 always_export_symbols=no
16030 archive_expsym_cmds=
16031 compiler_needs_object=no
16032 enable_shared_with_static_runtimes=no
16033 export_dynamic_flag_spec=
16034 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16035 hardcode_automatic=no
16037 hardcode_direct_absolute=no
16038 hardcode_libdir_flag_spec=
16039 hardcode_libdir_flag_spec_ld=
16040 hardcode_libdir_separator=
16041 hardcode_minus_L=no
16042 hardcode_shlibpath_var=unsupported
16044 link_all_deplibs=unknown
16046 module_expsym_cmds=
16047 old_archive_from_new_cmds=
16048 old_archive_from_expsyms_cmds=
16049 thread_safe_flag_spec=
16050 whole_archive_flag_spec=
16051 # include_expsyms should be a list of space-separated symbols to be *always*
16052 # included in the symbol list
16054 # exclude_expsyms can be an extended regexp of symbols to exclude
16055 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16056 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16057 # as well as any symbol that contains `d'.
16058 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16059 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16060 # platforms (ab)use it in PIC code, but their linkers get confused if
16061 # the symbol is explicitly referenced. Since portable code cannot
16062 # rely on this symbol name, it's probably fine to never include it in
16063 # preloaded symbol tables.
16064 # Exclude shared library initialization/finalization symbols.
16065 extract_expsyms_cmds=
16068 cygwin* | mingw* | pw32* | cegcc*)
16069 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16070 # When not using gcc, we currently assume that we are using
16071 # Microsoft Visual C++.
16072 if test "$GCC" != yes; then
16077 # we just hope/assume this is gcc and not c89 (= MSVC++)
16087 # On some targets, GNU ld is compatible enough with the native linker
16088 # that we're better off using the native interface for both.
16089 lt_use_gnu_ld_interface=no
16090 if test "$with_gnu_ld" = yes; then
16093 # The AIX port of GNU ld has always aspired to compatibility
16094 # with the native linker. However, as the warning in the GNU ld
16095 # block says, versions before 2.19.5* couldn't really create working
16096 # shared libraries, regardless of the interface used.
16097 case `$LD -v 2>&1` in
16098 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16099 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16100 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16102 lt_use_gnu_ld_interface=yes
16107 lt_use_gnu_ld_interface=yes
16112 if test "$lt_use_gnu_ld_interface" = yes; then
16113 # If archive_cmds runs LD, not CC, wlarc should be empty
16116 # Set some defaults for GNU ld with shared library support. These
16117 # are reset later if shared libraries are not supported. Putting them
16118 # here allows them to be overridden if necessary.
16119 runpath_var=LD_RUN_PATH
16120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16121 export_dynamic_flag_spec='${wl}--export-dynamic'
16122 # ancient GNU ld didn't support --whole-archive et. al.
16123 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16124 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16126 whole_archive_flag_spec=
16128 supports_anon_versioning=no
16129 case `$LD -v 2>&1` in
16130 *GNU\ gold*) supports_anon_versioning=yes ;;
16131 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16132 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16133 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16134 *\ 2.11.*) ;; # other 2.11 versions
16135 *) supports_anon_versioning=yes ;;
16138 # See if GNU ld supports shared libraries.
16141 # On AIX/PPC, the GNU linker is very broken
16142 if test "$host_cpu" != ia64; then
16146 *** Warning: the GNU linker, at least up to release 2.19, is reported
16147 *** to be unable to reliably create shared libraries on AIX.
16148 *** Therefore, libtool is disabling shared libraries support. If you
16149 *** really care for shared libraries, you may want to install binutils
16150 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16151 *** You will then need to restart the configuration process.
16160 # see comment about AmigaOS4 .so support
16161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16162 archive_expsym_cmds=''
16165 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)'
16166 hardcode_libdir_flag_spec
='-L$libdir'
16167 hardcode_minus_L
=yes
16173 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16174 allow_undefined_flag
=unsupported
16175 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16176 # support --undefined. This deserves some investigation. FIXME
16177 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16183 cygwin
* | mingw
* | pw32
* | cegcc
*)
16184 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16185 # as there is no search path for DLLs.
16186 hardcode_libdir_flag_spec
='-L$libdir'
16187 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16188 allow_undefined_flag
=unsupported
16189 always_export_symbols
=no
16190 enable_shared_with_static_runtimes
=yes
16191 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16193 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16194 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16195 # If the export-symbols file already is a .def file (1st line
16196 # is EXPORTS), use it as is; otherwise, prepend...
16197 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16198 cp $export_symbols $output_objdir/$soname.def;
16200 echo EXPORTS > $output_objdir/$soname.def;
16201 cat $export_symbols >> $output_objdir/$soname.def;
16203 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16210 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16211 link_all_deplibs
=yes
16216 hardcode_shlibpath_var
=no
16217 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16218 export_dynamic_flag_spec
='${wl}-E'
16219 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16220 # Instead, shared libraries are loaded at an image base (0x10000000 by
16221 # default) and relocated if they conflict, which is a slow very memory
16222 # consuming and fragmenting process. To avoid this, we pick a random,
16223 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16224 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16225 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16226 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'
16229 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16231 if test "$host_os" = linux-dietlibc
; then
16232 case $cc_basename in
16233 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16236 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16237 && test "$tmp_diet" = no
16239 tmp_addflag
=' $pic_flag'
16240 tmp_sharedflag
='-shared'
16241 case $cc_basename,$host_cpu in
16242 pgcc
*) # Portland Group C compiler
16243 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'
16244 tmp_addflag
=' $pic_flag'
16246 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16247 # Portland Group f77 and f90 compilers
16248 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'
16249 tmp_addflag
=' $pic_flag -Mnomain' ;;
16250 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16251 tmp_addflag
=' -i_dynamic' ;;
16252 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16253 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16254 ifc
* | ifort
*) # Intel Fortran compiler
16255 tmp_addflag
=' -nofor_main' ;;
16256 lf95
*) # Lahey Fortran 8.1
16257 whole_archive_flag_spec
=
16258 tmp_sharedflag
='--shared' ;;
16259 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16260 tmp_sharedflag
='-qmkshrobj'
16262 nvcc
*) # Cuda Compiler Driver 2.2
16263 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'
16264 compiler_needs_object
=yes
16267 case `$CC -V 2>&1 | sed 5q` in
16268 *Sun\ C
*) # Sun C 5.9
16269 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'
16270 compiler_needs_object
=yes
16271 tmp_sharedflag
='-G' ;;
16272 *Sun\ F
*) # Sun Fortran 8.3
16273 tmp_sharedflag
='-G' ;;
16275 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16277 if test "x$supports_anon_versioning" = xyes
; then
16278 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16279 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16280 echo "local: *; };" >> $output_objdir/$libname.ver~
16281 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16284 case $cc_basename in
16285 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16286 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16287 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16288 hardcode_libdir_flag_spec
=
16289 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16290 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16291 if test "x$supports_anon_versioning" = xyes
; then
16292 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16294 echo "local: *; };" >> $output_objdir/$libname.ver~
16295 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16305 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16306 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16309 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16310 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16315 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16319 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16320 *** create shared libraries on Solaris systems. Therefore, libtool
16321 *** is disabling shared libraries support. We urge you to upgrade GNU
16322 *** binutils to release 2.9.1 or newer. Another option is to modify
16323 *** your PATH or compiler configuration so that the native linker is
16324 *** used, and then restart.
16327 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16328 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16329 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16335 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16336 case `$LD -v 2>&1` in
16337 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16341 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16342 *** reliably create shared libraries on SCO systems. Therefore, libtool
16343 *** is disabling shared libraries support. We urge you to upgrade GNU
16344 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16345 *** your PATH or compiler configuration so that the native linker is
16346 *** used, and then restart.
16351 # For security reasons, it is highly recommended that you always
16352 # use absolute paths for naming shared libraries, and exclude the
16353 # DT_RUNPATH tag from executables and libraries. But doing so
16354 # requires that you compile everything twice, which is a pain.
16355 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16356 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16357 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16358 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16367 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16369 hardcode_direct
=yes
16370 hardcode_shlibpath_var
=no
16374 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16375 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16376 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16383 if test "$ld_shlibs" = no
; then
16385 hardcode_libdir_flag_spec
=
16386 export_dynamic_flag_spec
=
16387 whole_archive_flag_spec
=
16390 # PORTME fill in a description of your system's linker (not GNU ld)
16393 allow_undefined_flag
=unsupported
16394 always_export_symbols
=yes
16395 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'
16396 # Note: this linker hardcodes the directories in LIBPATH if there
16397 # are no directories specified by -L.
16398 hardcode_minus_L
=yes
16399 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16400 # Neither direct hardcoding nor static linking is supported with a
16402 hardcode_direct
=unsupported
16407 if test "$host_cpu" = ia64
; then
16408 # On IA64, the linker does run time linking by default, so we don't
16409 # have to do anything special.
16410 aix_use_runtimelinking
=no
16411 exp_sym_flag
='-Bexport'
16414 # If we're using GNU nm, then we don't want the "-C" option.
16415 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16416 # Also, AIX nm treats weak defined symbols like other global
16417 # defined symbols, whereas GNU nm marks them as "W".
16418 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16419 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'
16421 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'
16423 aix_use_runtimelinking
=no
16425 # Test if we are trying to use run time linking or normal
16426 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16427 # need to do runtime linking.
16428 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16429 for ld_flag
in $LDFLAGS; do
16430 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16431 aix_use_runtimelinking
=yes
16438 exp_sym_flag
='-bexport'
16439 no_entry_flag
='-bnoentry'
16442 # When large executables or shared objects are built, AIX ld can
16443 # have problems creating the table of contents. If linking a library
16444 # or program results in "error TOC overflow" add -mminimal-toc to
16445 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16446 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16449 hardcode_direct
=yes
16450 hardcode_direct_absolute
=yes
16451 hardcode_libdir_separator
=':'
16452 link_all_deplibs
=yes
16453 file_list_spec
='${wl}-f,'
16455 if test "$GCC" = yes; then
16456 case $host_os in aix4.
[012]|aix4.
[012].
*)
16457 # We only want to do this on AIX 4.2 and lower, the check
16458 # below for broken collect2 doesn't work under 4.3+
16459 collect2name
=`${CC} -print-prog-name=collect2`
16460 if test -f "$collect2name" &&
16461 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16463 # We have reworked collect2
16466 # We have old collect2
16467 hardcode_direct
=unsupported
16468 # It fails to find uninstalled libraries when the uninstalled
16469 # path is not listed in the libpath. Setting hardcode_minus_L
16470 # to unsupported forces relinking
16471 hardcode_minus_L
=yes
16472 hardcode_libdir_flag_spec
='-L$libdir'
16473 hardcode_libdir_separator
=
16477 shared_flag
='-shared'
16478 if test "$aix_use_runtimelinking" = yes; then
16479 shared_flag
="$shared_flag "'${wl}-G'
16483 if test "$host_cpu" = ia64
; then
16484 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16485 # chokes on -Wl,-G. The following line is correct:
16488 if test "$aix_use_runtimelinking" = yes; then
16489 shared_flag
='${wl}-G'
16491 shared_flag
='${wl}-bM:SRE'
16496 export_dynamic_flag_spec
='${wl}-bexpall'
16497 # It seems that -bexpall does not export symbols beginning with
16498 # underscore (_), so it is better to generate a list of symbols to export.
16499 always_export_symbols
=yes
16500 if test "$aix_use_runtimelinking" = yes; then
16501 # Warning - without using the other runtime loading flags (-brtl),
16502 # -berok will link without error, but may produce a broken library.
16503 allow_undefined_flag
='-berok'
16504 # Determine the default libpath from the value encoded in an
16505 # empty executable.
16506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h. */
16517 if ac_fn_c_try_link
"$LINENO"; then :
16519 lt_aix_libpath_sed
='
16520 /Import File Strings/,/^$/ {
16526 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16527 # Check for a 64-bit object if we didn't find anything.
16528 if test -z "$aix_libpath"; then
16529 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16532 rm -f core conftest.err conftest.
$ac_objext \
16533 conftest
$ac_exeext conftest.
$ac_ext
16534 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16536 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16537 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"
16539 if test "$host_cpu" = ia64
; then
16540 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16541 allow_undefined_flag
="-z nodefs"
16542 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"
16544 # Determine the default libpath from the value encoded in an
16545 # empty executable.
16546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16547 /* end confdefs.h. */
16557 if ac_fn_c_try_link
"$LINENO"; then :
16559 lt_aix_libpath_sed
='
16560 /Import File Strings/,/^$/ {
16566 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16567 # Check for a 64-bit object if we didn't find anything.
16568 if test -z "$aix_libpath"; then
16569 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16572 rm -f core conftest.err conftest.
$ac_objext \
16573 conftest
$ac_exeext conftest.
$ac_ext
16574 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16576 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16577 # Warning - without using the other run time loading flags,
16578 # -berok will link without error, but may produce a broken library.
16579 no_undefined_flag
=' ${wl}-bernotok'
16580 allow_undefined_flag
=' ${wl}-berok'
16581 if test "$with_gnu_ld" = yes; then
16582 # We only use this code for GNU lds that support --whole-archive.
16583 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16585 # Exported symbols can be pulled into shared objects from archives
16586 whole_archive_flag_spec
='$convenience'
16588 archive_cmds_need_lc
=yes
16589 # This is similar to how AIX traditionally builds its shared libraries.
16590 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'
16598 # see comment about AmigaOS4 .so support
16599 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16600 archive_expsym_cmds
=''
16603 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)'
16604 hardcode_libdir_flag_spec
='-L$libdir'
16605 hardcode_minus_L
=yes
16611 export_dynamic_flag_spec
=-rdynamic
16614 cygwin
* | mingw
* | pw32
* | cegcc
*)
16615 # When not using gcc, we currently assume that we are using
16616 # Microsoft Visual C++.
16617 # hardcode_libdir_flag_spec is actually meaningless, as there is
16618 # no search path for DLLs.
16619 hardcode_libdir_flag_spec
=' '
16620 allow_undefined_flag
=unsupported
16621 # Tell ltmain to make .lib files, not .a files.
16623 # Tell ltmain to make .dll files, not .so files.
16625 # FIXME: Setting linknames here is a bad hack.
16626 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16627 # The linker will automatically build a .lib file if we build a DLL.
16628 old_archive_from_new_cmds
='true'
16629 # FIXME: Should let the user specify the lib program.
16630 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16631 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16632 enable_shared_with_static_runtimes
=yes
16635 darwin
* | rhapsody
*)
16638 archive_cmds_need_lc
=no
16640 hardcode_automatic
=yes
16641 hardcode_shlibpath_var
=unsupported
16642 if test "$lt_cv_ld_force_load" = "yes"; then
16643 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\"`'
16645 whole_archive_flag_spec
=''
16647 link_all_deplibs
=yes
16648 allow_undefined_flag
="$_lt_dar_allow_undefined"
16649 case $cc_basename in
16650 ifort
*) _lt_dar_can_shared
=yes ;;
16651 *) _lt_dar_can_shared
=$GCC ;;
16653 if test "$_lt_dar_can_shared" = "yes"; then
16654 output_verbose_link_cmd
=func_echo_all
16655 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16656 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16657 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}"
16658 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}"
16667 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16668 hardcode_libdir_flag_spec
='-L$libdir'
16669 hardcode_shlibpath_var
=no
16672 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16673 # support. Future versions do this automatically, but an explicit c++rt0.o
16674 # does not break anything, and helps significantly (at the cost of a little
16677 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16678 hardcode_libdir_flag_spec
='-R$libdir'
16679 hardcode_direct
=yes
16680 hardcode_shlibpath_var
=no
16683 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16685 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16686 hardcode_direct
=yes
16687 hardcode_minus_L
=yes
16688 hardcode_shlibpath_var
=no
16691 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16692 freebsd
* | dragonfly
*)
16693 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16694 hardcode_libdir_flag_spec
='-R$libdir'
16695 hardcode_direct
=yes
16696 hardcode_shlibpath_var
=no
16700 if test "$GCC" = yes; then
16701 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'
16703 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'
16705 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16706 hardcode_libdir_separator
=:
16707 hardcode_direct
=yes
16709 # hardcode_minus_L: Not really in the search PATH,
16710 # but as the default location of the library.
16711 hardcode_minus_L
=yes
16712 export_dynamic_flag_spec
='${wl}-E'
16716 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16717 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16719 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16721 if test "$with_gnu_ld" = no
; then
16722 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16723 hardcode_libdir_flag_spec_ld
='+b $libdir'
16724 hardcode_libdir_separator
=:
16725 hardcode_direct
=yes
16726 hardcode_direct_absolute
=yes
16727 export_dynamic_flag_spec
='${wl}-E'
16728 # hardcode_minus_L: Not really in the search PATH,
16729 # but as the default location of the library.
16730 hardcode_minus_L
=yes
16735 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16738 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16741 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16750 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16753 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16757 # Older versions of the 11.00 compiler do not understand -b yet
16758 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16760 $as_echo_n "checking if $CC understands -b... " >&6; }
16761 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16762 $as_echo_n "(cached) " >&6
16764 lt_cv_prog_compiler__b
=no
16765 save_LDFLAGS
="$LDFLAGS"
16766 LDFLAGS
="$LDFLAGS -b"
16767 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16768 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16769 # The linker can only warn and ignore the option if not recognized
16770 # So say no if there are warnings
16771 if test -s conftest.err
; then
16772 # Append any errors to the config.log.
16773 cat conftest.err
1>&5
16774 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16775 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16776 if diff conftest.exp conftest.er2
>/dev
/null
; then
16777 lt_cv_prog_compiler__b
=yes
16780 lt_cv_prog_compiler__b
=yes
16784 LDFLAGS
="$save_LDFLAGS"
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16788 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16790 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16791 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16793 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16799 if test "$with_gnu_ld" = no
; then
16800 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16801 hardcode_libdir_separator
=:
16806 hardcode_shlibpath_var
=no
16809 hardcode_direct
=yes
16810 hardcode_direct_absolute
=yes
16811 export_dynamic_flag_spec
='${wl}-E'
16813 # hardcode_minus_L: Not really in the search PATH,
16814 # but as the default location of the library.
16815 hardcode_minus_L
=yes
16821 irix5
* | irix6
* | nonstopux
*)
16822 if test "$GCC" = yes; then
16823 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'
16824 # Try to use the -exported_symbol ld option, if it does not
16825 # work, assume that -exports_file does not work either and
16826 # implicitly export all symbols.
16827 save_LDFLAGS
="$LDFLAGS"
16828 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16830 /* end confdefs.h. */
16833 if ac_fn_c_try_link
"$LINENO"; then :
16834 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'
16837 rm -f core conftest.err conftest.
$ac_objext \
16838 conftest
$ac_exeext conftest.
$ac_ext
16839 LDFLAGS
="$save_LDFLAGS"
16841 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'
16842 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'
16844 archive_cmds_need_lc
='no'
16845 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16846 hardcode_libdir_separator
=:
16848 link_all_deplibs
=yes
16852 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16853 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16855 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16857 hardcode_libdir_flag_spec
='-R$libdir'
16858 hardcode_direct
=yes
16859 hardcode_shlibpath_var
=no
16863 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16864 hardcode_direct
=yes
16865 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16866 hardcode_libdir_separator
=:
16867 hardcode_shlibpath_var
=no
16874 if test -f /usr
/libexec
/ld.so
; then
16875 hardcode_direct
=yes
16876 hardcode_shlibpath_var
=no
16877 hardcode_direct_absolute
=yes
16878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16879 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16880 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16881 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16882 export_dynamic_flag_spec
='${wl}-E'
16885 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16886 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16887 hardcode_libdir_flag_spec
='-R$libdir'
16890 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16891 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16901 hardcode_libdir_flag_spec
='-L$libdir'
16902 hardcode_minus_L
=yes
16903 allow_undefined_flag
=unsupported
16904 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'
16905 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16909 if test "$GCC" = yes; then
16910 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16911 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'
16913 allow_undefined_flag
=' -expect_unresolved \*'
16914 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'
16916 archive_cmds_need_lc
='no'
16917 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16918 hardcode_libdir_separator
=:
16921 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16922 if test "$GCC" = yes; then
16923 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16924 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'
16925 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16927 allow_undefined_flag
=' -expect_unresolved \*'
16928 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'
16929 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~
16930 $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'
16932 # Both c and cxx compiler support -rpath directly
16933 hardcode_libdir_flag_spec
='-rpath $libdir'
16935 archive_cmds_need_lc
='no'
16936 hardcode_libdir_separator
=:
16940 no_undefined_flag
=' -z defs'
16941 if test "$GCC" = yes; then
16943 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16945 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16947 case `$CC -V 2>&1` in
16950 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16951 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16952 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16956 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16957 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16958 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16962 hardcode_libdir_flag_spec
='-R$libdir'
16963 hardcode_shlibpath_var
=no
16965 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16967 # The compiler driver will combine and reorder linker options,
16968 # but understands `-z linker_flag'. GCC discards it without `$wl',
16969 # but is careful enough not to reorder.
16970 # Supported since Solaris 2.6 (maybe 2.5.1?)
16971 if test "$GCC" = yes; then
16972 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16974 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16978 link_all_deplibs
=yes
16982 if test "x$host_vendor" = xsequent
; then
16983 # Use $CC to link under sequent, because it throws in some extra .o
16984 # files that make .init and .fini sections work.
16985 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16987 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16989 hardcode_libdir_flag_spec
='-L$libdir'
16990 hardcode_direct
=yes
16991 hardcode_minus_L
=yes
16992 hardcode_shlibpath_var
=no
16996 case $host_vendor in
16998 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16999 hardcode_direct
=yes # is this really true???
17002 ## LD is ld it makes a PLAMLIB
17003 ## CC just makes a GrossModule.
17004 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17005 reload_cmds
='$CC -r -o $output$reload_objs'
17009 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17010 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17013 runpath_var
='LD_RUN_PATH'
17014 hardcode_shlibpath_var
=no
17018 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17019 hardcode_shlibpath_var
=no
17020 export_dynamic_flag_spec
='-Bexport'
17024 if test -d /usr
/nec
; then
17025 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026 hardcode_shlibpath_var
=no
17027 runpath_var
=LD_RUN_PATH
17028 hardcode_runpath_var
=yes
17033 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17034 no_undefined_flag
='${wl}-z,text'
17035 archive_cmds_need_lc
=no
17036 hardcode_shlibpath_var
=no
17037 runpath_var
='LD_RUN_PATH'
17039 if test "$GCC" = yes; then
17040 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17041 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17044 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17048 sysv5
* | sco3.2v5
* | sco5v6
*)
17049 # Note: We can NOT use -z defs as we might desire, because we do not
17050 # link with -lc, and that would cause any symbols used from libc to
17051 # always be unresolved, which means just about no library would
17052 # ever link correctly. If we're not using GNU ld we use -z text
17053 # though, which does catch some bad symbols but isn't as heavy-handed
17055 no_undefined_flag
='${wl}-z,text'
17056 allow_undefined_flag
='${wl}-z,nodefs'
17057 archive_cmds_need_lc
=no
17058 hardcode_shlibpath_var
=no
17059 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17060 hardcode_libdir_separator
=':'
17061 link_all_deplibs
=yes
17062 export_dynamic_flag_spec
='${wl}-Bexport'
17063 runpath_var
='LD_RUN_PATH'
17065 if test "$GCC" = yes; then
17066 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17067 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17069 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17070 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17075 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17076 hardcode_libdir_flag_spec
='-L$libdir'
17077 hardcode_shlibpath_var
=no
17085 if test x
$host_vendor = xsni
; then
17087 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17088 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17095 $as_echo "$ld_shlibs" >&6; }
17096 test "$ld_shlibs" = no
&& can_build_shared
=no
17098 with_gnu_ld
=$with_gnu_ld
17115 # Do we need to explicitly link libc?
17117 case "x$archive_cmds_need_lc" in
17119 # Assume -lc should be added
17120 archive_cmds_need_lc
=yes
17122 if test "$enable_shared" = yes && test "$GCC" = yes; then
17123 case $archive_cmds in
17125 # FIXME: we may have to deal with multi-command sequences.
17128 # Test whether the compiler implicitly links with -lc since on some
17129 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17130 # to ld, don't add -lc before -lgcc.
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17132 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17133 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17134 $as_echo_n "(cached) " >&6
17137 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17140 (eval $ac_compile) 2>&5
17142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17143 test $ac_status = 0; } 2>conftest.err
; then
17146 libobjs
=conftest.
$ac_objext
17148 wl
=$lt_prog_compiler_wl
17149 pic_flag
=$lt_prog_compiler_pic
17155 lt_save_allow_undefined_flag
=$allow_undefined_flag
17156 allow_undefined_flag
=
17157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17158 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17161 test $ac_status = 0; }
17163 lt_cv_archive_cmds_need_lc
=no
17165 lt_cv_archive_cmds_need_lc
=yes
17167 allow_undefined_flag
=$lt_save_allow_undefined_flag
17169 cat conftest.err
1>&5
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17175 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17176 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17340 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17342 if test "$GCC" = yes; then
17344 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17345 *) lt_awk_arg
="/^libraries:/" ;;
17348 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17349 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17351 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17352 case $lt_search_path_spec in
17354 # if the path contains ";" then we assume it to be the separator
17355 # otherwise default to the standard path separator (i.e. ":") - it is
17356 # assumed that no part of a normal pathname contains ";" but that should
17357 # okay in the real world where ";" in dirpaths is itself problematic.
17358 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17361 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17364 # Ok, now we have the path, separated by spaces, we can step through it
17365 # and add multilib dir if necessary.
17366 lt_tmp_lt_search_path_spec
=
17367 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17368 for lt_sys_path
in $lt_search_path_spec; do
17369 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17370 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17372 test -d "$lt_sys_path" && \
17373 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17376 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17377 BEGIN {RS=" "; FS="/|\n";} {
17380 for (lt_i = NF; lt_i > 0; lt_i--) {
17381 if ($lt_i != "" && $lt_i != ".") {
17382 if ($lt_i == "..") {
17385 if (lt_count == 0) {
17386 lt_foo="/" $lt_i lt_foo;
17393 if (lt_foo != "") { lt_freq[lt_foo]++; }
17394 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17396 # AWK program above erroneously prepends '/' to C:/dos/paths
17399 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17400 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17402 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17404 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17406 library_names_spec
=
17407 libname_spec
='lib$name'
17411 postuninstall_cmds
=
17415 shlibpath_overrides_runpath
=unknown
17417 dynamic_linker
="$host_os ld.so"
17418 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17419 need_lib_prefix
=unknown
17420 hardcode_into_libs
=no
17422 # when you set need_version to no, make sure it does not cause -set_version
17423 # flags to be left without arguments
17424 need_version
=unknown
17429 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17430 shlibpath_var
=LIBPATH
17432 # AIX 3 has no versioning support, so we append a major version to the name.
17433 soname_spec
='${libname}${release}${shared_ext}$major'
17440 hardcode_into_libs
=yes
17441 if test "$host_cpu" = ia64
; then
17442 # AIX 5 supports IA64
17443 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17444 shlibpath_var
=LD_LIBRARY_PATH
17446 # With GCC up to 2.95.x, collect2 would create an import file
17447 # for dependence libraries. The import file would start with
17448 # the line `#! .'. This would cause the generated library to
17449 # depend on `.', always an invalid library. This was fixed in
17450 # development snapshots of GCC prior to 3.0.
17452 aix4 | aix4.
[01] | aix4.
[01].
*)
17453 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17455 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17458 can_build_shared
=no
17462 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17463 # soname into executable. Probably we can add versioning support to
17464 # collect2, so additional links can be useful in future.
17465 if test "$aix_use_runtimelinking" = yes; then
17466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17467 # instead of lib<name>.a to let people know that these are not
17468 # typical AIX shared libraries.
17469 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 # We preserve .a as extension for shared libraries through AIX4.2
17472 # and later when we are not doing run time linking.
17473 library_names_spec
='${libname}${release}.a $libname.a'
17474 soname_spec
='${libname}${release}${shared_ext}$major'
17476 shlibpath_var
=LIBPATH
17483 # Since July 2007 AmigaOS4 officially supports .so libraries.
17484 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17485 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17488 library_names_spec
='$libname.ixlibrary $libname.a'
17489 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17490 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'
17496 library_names_spec
='${libname}${shared_ext}'
17497 dynamic_linker
="$host_os ld.so"
17498 shlibpath_var
=LIBRARY_PATH
17504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505 soname_spec
='${libname}${release}${shared_ext}$major'
17506 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17507 shlibpath_var
=LD_LIBRARY_PATH
17508 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17509 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17510 # the default ld.so.conf also contains /usr/contrib/lib and
17511 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17512 # libtool to hard-code these into programs
17515 cygwin
* | mingw
* | pw32
* | cegcc
*)
17516 version_type
=windows
17521 case $GCC,$host_os in
17522 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17523 library_names_spec
='$libname.dll.a'
17524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17525 postinstall_cmds
='base_file=`basename \${file}`~
17526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17527 dldir=$destdir/`dirname \$dlpath`~
17528 test -d \$dldir || mkdir -p \$dldir~
17529 $install_prog $dir/$dlname \$dldir/$dlname~
17530 chmod a+x \$dldir/$dlname~
17531 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17532 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17534 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17535 dlpath=$dir/\$dldll~
17537 shlibpath_overrides_runpath
=yes
17541 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17542 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17544 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17547 # MinGW DLLs use traditional 'lib' prefix
17548 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17551 # pw32 DLLs use 'pw' prefix rather than 'lib'
17552 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17558 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17561 dynamic_linker
='Win32 ld.exe'
17562 # FIXME: first we should search . and the directory the executable is in
17566 darwin
* | rhapsody
*)
17567 dynamic_linker
="$host_os dyld"
17568 version_type
=darwin
17571 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17572 soname_spec
='${libname}${release}${major}$shared_ext'
17573 shlibpath_overrides_runpath
=yes
17574 shlibpath_var
=DYLD_LIBRARY_PATH
17575 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17577 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17578 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17586 soname_spec
='${libname}${release}${shared_ext}$major'
17587 shlibpath_var
=LD_LIBRARY_PATH
17590 freebsd
* | dragonfly
*)
17591 # DragonFly does not have aout. When/if they implement a new
17592 # versioning mechanism, adjust this.
17593 if test -x /usr
/bin
/objformat
; then
17594 objformat
=`/usr/bin/objformat`
17597 freebsd
[23].
*) objformat
=aout
;;
17598 *) objformat
=elf
;;
17601 version_type
=freebsd-
$objformat
17602 case $version_type in
17604 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17609 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17613 shlibpath_var
=LD_LIBRARY_PATH
17616 shlibpath_overrides_runpath
=yes
17618 freebsd3.
[01]* | freebsdelf3.
[01]*)
17619 shlibpath_overrides_runpath
=yes
17620 hardcode_into_libs
=yes
17622 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17623 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17624 shlibpath_overrides_runpath
=no
17625 hardcode_into_libs
=yes
17627 *) # from 4.6 on, and DragonFly
17628 shlibpath_overrides_runpath
=yes
17629 hardcode_into_libs
=yes
17638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17639 soname_spec
='${libname}${release}${shared_ext}$major'
17640 shlibpath_var
=LD_LIBRARY_PATH
17641 hardcode_into_libs
=yes
17648 dynamic_linker
="$host_os runtime_loader"
17649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17650 soname_spec
='${libname}${release}${shared_ext}$major'
17651 shlibpath_var
=LIBRARY_PATH
17652 shlibpath_overrides_runpath
=yes
17653 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17654 hardcode_into_libs
=yes
17657 hpux9
* | hpux10
* | hpux11
*)
17658 # Give a soname corresponding to the major version so that dld.sl refuses to
17659 # link against other versions.
17666 hardcode_into_libs
=yes
17667 dynamic_linker
="$host_os dld.so"
17668 shlibpath_var
=LD_LIBRARY_PATH
17669 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17671 soname_spec
='${libname}${release}${shared_ext}$major'
17672 if test "X$HPUX_IA64_MODE" = X32
; then
17673 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17675 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17677 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17681 hardcode_into_libs
=yes
17682 dynamic_linker
="$host_os dld.sl"
17683 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17684 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686 soname_spec
='${libname}${release}${shared_ext}$major'
17687 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17688 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17692 dynamic_linker
="$host_os dld.sl"
17693 shlibpath_var
=SHLIB_PATH
17694 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17695 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17696 soname_spec
='${libname}${release}${shared_ext}$major'
17699 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17700 postinstall_cmds
='chmod 555 $lib'
17701 # or fails outright, so override atomically:
17702 install_override_mode
=555
17709 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17710 soname_spec
='${libname}${release}${shared_ext}$major'
17711 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17712 shlibpath_var
=LD_LIBRARY_PATH
17713 shlibpath_overrides_runpath
=no
17714 hardcode_into_libs
=yes
17717 irix5
* | irix6
* | nonstopux
*)
17719 nonstopux
*) version_type
=nonstopux
;;
17721 if test "$lt_cv_prog_gnu_ld" = yes; then
17729 soname_spec
='${libname}${release}${shared_ext}$major'
17730 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17732 irix5
* | nonstopux
*)
17733 libsuff
= shlibsuff
=
17736 case $LD in # libtool.m4 will add one of these switches to LD
17737 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17738 libsuff
= shlibsuff
= libmagic
=32-bit;;
17739 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17740 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17741 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17742 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17743 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17747 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17748 shlibpath_overrides_runpath
=no
17749 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17750 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17751 hardcode_into_libs
=yes
17754 # No shared lib support for Linux oldld, aout, or coff.
17755 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17759 # This must be Linux ELF.
17760 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17764 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17765 soname_spec
='${libname}${release}${shared_ext}$major'
17766 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17767 shlibpath_var
=LD_LIBRARY_PATH
17768 shlibpath_overrides_runpath
=no
17770 # Some binutils ld are patched to set DT_RUNPATH
17771 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17772 $as_echo_n "(cached) " >&6
17774 lt_cv_shlibpath_overrides_runpath
=no
17775 save_LDFLAGS
=$LDFLAGS
17776 save_libdir
=$libdir
17777 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17778 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h. */
17790 if ac_fn_c_try_link
"$LINENO"; then :
17791 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17792 lt_cv_shlibpath_overrides_runpath
=yes
17795 rm -f core conftest.err conftest.
$ac_objext \
17796 conftest
$ac_exeext conftest.
$ac_ext
17797 LDFLAGS
=$save_LDFLAGS
17798 libdir
=$save_libdir
17802 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17804 # This implies no fast_install, which is unacceptable.
17805 # Some rework will be needed to allow for fast_install
17806 # before this can be enabled.
17807 hardcode_into_libs
=yes
17809 # Append ld.so.conf contents to the search path
17810 if test -f /etc
/ld.so.conf
; then
17811 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' ' '`
17812 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17815 # We used to test for /lib/ld.so.1 and disable shared libraries on
17816 # powerpc, because MkLinux only supported shared libraries with the
17817 # GNU dynamic linker. Since this was broken with cross compilers,
17818 # most powerpc-linux boxes support dynamic linking these days and
17819 # people can always --disable-shared, the test was removed, and we
17820 # assume the GNU/Linux dynamic linker is in use.
17821 dynamic_linker
='GNU/Linux ld.so'
17828 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17830 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17831 dynamic_linker
='NetBSD (a.out) ld.so'
17833 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17834 soname_spec
='${libname}${release}${shared_ext}$major'
17835 dynamic_linker
='NetBSD ld.elf_so'
17837 shlibpath_var
=LD_LIBRARY_PATH
17838 shlibpath_overrides_runpath
=yes
17839 hardcode_into_libs
=yes
17844 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17845 shlibpath_var
=LD_LIBRARY_PATH
17846 shlibpath_overrides_runpath
=yes
17853 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17854 soname_spec
='${libname}${release}${shared_ext}$major'
17855 shlibpath_var
=LD_LIBRARY_PATH
17856 shlibpath_overrides_runpath
=no
17857 hardcode_into_libs
=yes
17858 dynamic_linker
='ldqnx.so'
17863 sys_lib_dlsearch_path_spec
="/usr/lib"
17865 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17867 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17868 *) need_version
=no
;;
17870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17871 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17872 shlibpath_var
=LD_LIBRARY_PATH
17873 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17875 openbsd2.
[89] | openbsd2.
[89].
*)
17876 shlibpath_overrides_runpath
=no
17879 shlibpath_overrides_runpath
=yes
17883 shlibpath_overrides_runpath
=yes
17888 libname_spec
='$name'
17891 library_names_spec
='$libname${shared_ext} $libname.a'
17892 dynamic_linker
='OS/2 ld.exe'
17893 shlibpath_var
=LIBPATH
17896 osf3
* | osf4
* | osf5
*)
17900 soname_spec
='${libname}${release}${shared_ext}$major'
17901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17902 shlibpath_var
=LD_LIBRARY_PATH
17903 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17904 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17915 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17916 soname_spec
='${libname}${release}${shared_ext}$major'
17917 shlibpath_var
=LD_LIBRARY_PATH
17918 shlibpath_overrides_runpath
=yes
17919 hardcode_into_libs
=yes
17920 # ldd complains unless libraries are executable
17921 postinstall_cmds
='chmod +x $lib'
17926 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17927 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17928 shlibpath_var
=LD_LIBRARY_PATH
17929 shlibpath_overrides_runpath
=yes
17930 if test "$with_gnu_ld" = yes; then
17938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17939 soname_spec
='${libname}${release}${shared_ext}$major'
17940 shlibpath_var
=LD_LIBRARY_PATH
17941 case $host_vendor in
17943 shlibpath_overrides_runpath
=no
17945 runpath_var
=LD_RUN_PATH
17953 shlibpath_overrides_runpath
=no
17954 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17960 if test -d /usr
/nec
;then
17962 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17963 soname_spec
='$libname${shared_ext}.$major'
17964 shlibpath_var
=LD_LIBRARY_PATH
17968 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17969 version_type
=freebsd-elf
17972 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17973 soname_spec
='${libname}${release}${shared_ext}$major'
17974 shlibpath_var
=LD_LIBRARY_PATH
17975 shlibpath_overrides_runpath
=yes
17976 hardcode_into_libs
=yes
17977 if test "$with_gnu_ld" = yes; then
17978 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17980 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17983 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17987 sys_lib_dlsearch_path_spec
='/usr/lib'
17991 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17996 shlibpath_var
=LD_LIBRARY_PATH
17997 shlibpath_overrides_runpath
=no
17998 hardcode_into_libs
=yes
18003 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18004 soname_spec
='${libname}${release}${shared_ext}$major'
18005 shlibpath_var
=LD_LIBRARY_PATH
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18013 $as_echo "$dynamic_linker" >&6; }
18014 test "$dynamic_linker" = no
&& can_build_shared
=no
18016 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18017 if test "$GCC" = yes; then
18018 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18021 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18022 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18024 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18025 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18120 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18122 if test -n "$hardcode_libdir_flag_spec" ||
18123 test -n "$runpath_var" ||
18124 test "X$hardcode_automatic" = "Xyes" ; then
18126 # We can hardcode non-existent directories.
18127 if test "$hardcode_direct" != no
&&
18128 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18129 # have to relink, otherwise we might link with an installed library
18130 # when we should be linking with a yet-to-be-installed one
18131 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18132 test "$hardcode_minus_L" != no
; then
18133 # Linking always hardcodes the temporary library directory.
18134 hardcode_action
=relink
18136 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18137 hardcode_action
=immediate
18140 # We cannot hardcode anything, or else we can only hardcode existing
18142 hardcode_action
=unsupported
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18145 $as_echo "$hardcode_action" >&6; }
18147 if test "$hardcode_action" = relink ||
18148 test "$inherit_rpath" = yes; then
18149 # Fast installation is not supported
18150 enable_fast_install
=no
18151 elif test "$shlibpath_overrides_runpath" = yes ||
18152 test "$enable_shared" = no
; then
18153 # Fast installation is not necessary
18154 enable_fast_install
=needless
18162 if test "x$enable_dlopen" != xyes
; then
18163 enable_dlopen
=unknown
18164 enable_dlopen_self
=unknown
18165 enable_dlopen_self_static
=unknown
18172 lt_cv_dlopen
="load_add_on"
18174 lt_cv_dlopen_self
=yes
18177 mingw
* | pw32
* | cegcc
*)
18178 lt_cv_dlopen
="LoadLibrary"
18183 lt_cv_dlopen
="dlopen"
18188 # if libdl is installed we need to link against it
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18190 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18192 $as_echo_n "(cached) " >&6
18194 ac_check_lib_save_LIBS
=$LIBS
18196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18197 /* end confdefs.h. */
18199 /* Override any GCC internal prototype to avoid an error.
18200 Use char because int might match the return type of a GCC
18201 builtin and then its argument prototype would still apply. */
18214 if ac_fn_c_try_link
"$LINENO"; then :
18215 ac_cv_lib_dl_dlopen
=yes
18217 ac_cv_lib_dl_dlopen
=no
18219 rm -f core conftest.err conftest.
$ac_objext \
18220 conftest
$ac_exeext conftest.
$ac_ext
18221 LIBS
=$ac_check_lib_save_LIBS
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18224 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18225 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18226 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18229 lt_cv_dlopen
="dyld"
18231 lt_cv_dlopen_self
=yes
18238 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18239 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18240 lt_cv_dlopen
="shl_load"
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18243 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18244 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18245 $as_echo_n "(cached) " >&6
18247 ac_check_lib_save_LIBS
=$LIBS
18249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18252 /* Override any GCC internal prototype to avoid an error.
18253 Use char because int might match the return type of a GCC
18254 builtin and then its argument prototype would still apply. */
18262 return shl_load ();
18267 if ac_fn_c_try_link
"$LINENO"; then :
18268 ac_cv_lib_dld_shl_load
=yes
18270 ac_cv_lib_dld_shl_load
=no
18272 rm -f core conftest.err conftest.
$ac_objext \
18273 conftest
$ac_exeext conftest.
$ac_ext
18274 LIBS
=$ac_check_lib_save_LIBS
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18277 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18278 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18279 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18281 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18282 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18283 lt_cv_dlopen
="dlopen"
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18286 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18287 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18288 $as_echo_n "(cached) " >&6
18290 ac_check_lib_save_LIBS
=$LIBS
18292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18295 /* Override any GCC internal prototype to avoid an error.
18296 Use char because int might match the return type of a GCC
18297 builtin and then its argument prototype would still apply. */
18310 if ac_fn_c_try_link
"$LINENO"; then :
18311 ac_cv_lib_dl_dlopen
=yes
18313 ac_cv_lib_dl_dlopen
=no
18315 rm -f core conftest.err conftest.
$ac_objext \
18316 conftest
$ac_exeext conftest.
$ac_ext
18317 LIBS
=$ac_check_lib_save_LIBS
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18320 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18321 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18322 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18325 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18326 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18327 $as_echo_n "(cached) " >&6
18329 ac_check_lib_save_LIBS
=$LIBS
18330 LIBS
="-lsvld $LIBS"
18331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18332 /* end confdefs.h. */
18334 /* Override any GCC internal prototype to avoid an error.
18335 Use char because int might match the return type of a GCC
18336 builtin and then its argument prototype would still apply. */
18349 if ac_fn_c_try_link
"$LINENO"; then :
18350 ac_cv_lib_svld_dlopen
=yes
18352 ac_cv_lib_svld_dlopen
=no
18354 rm -f core conftest.err conftest.
$ac_objext \
18355 conftest
$ac_exeext conftest.
$ac_ext
18356 LIBS
=$ac_check_lib_save_LIBS
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18359 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18360 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18361 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18364 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18365 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18366 $as_echo_n "(cached) " >&6
18368 ac_check_lib_save_LIBS
=$LIBS
18370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18373 /* Override any GCC internal prototype to avoid an error.
18374 Use char because int might match the return type of a GCC
18375 builtin and then its argument prototype would still apply. */
18383 return dld_link ();
18388 if ac_fn_c_try_link
"$LINENO"; then :
18389 ac_cv_lib_dld_dld_link
=yes
18391 ac_cv_lib_dld_dld_link
=no
18393 rm -f core conftest.err conftest.
$ac_objext \
18394 conftest
$ac_exeext conftest.
$ac_ext
18395 LIBS
=$ac_check_lib_save_LIBS
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18398 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18399 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18400 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18421 if test "x$lt_cv_dlopen" != xno
; then
18427 case $lt_cv_dlopen in
18429 save_CPPFLAGS
="$CPPFLAGS"
18430 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18432 save_LDFLAGS
="$LDFLAGS"
18433 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18436 LIBS
="$lt_cv_dlopen_libs $LIBS"
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18439 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18440 if test "${lt_cv_dlopen_self+set}" = set; then :
18441 $as_echo_n "(cached) " >&6
18443 if test "$cross_compiling" = yes; then :
18444 lt_cv_dlopen_self
=cross
18446 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18447 lt_status
=$lt_dlunknown
18448 cat > conftest.
$ac_ext <<_LT_EOF
18449 #line 18449 "configure"
18450 #include "confdefs.h"
18459 # define LT_DLGLOBAL RTLD_GLOBAL
18462 # define LT_DLGLOBAL DL_GLOBAL
18464 # define LT_DLGLOBAL 0
18468 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18469 find out it does not work in some platform. */
18470 #ifndef LT_DLLAZY_OR_NOW
18472 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18475 # define LT_DLLAZY_OR_NOW DL_LAZY
18478 # define LT_DLLAZY_OR_NOW RTLD_NOW
18481 # define LT_DLLAZY_OR_NOW DL_NOW
18483 # define LT_DLLAZY_OR_NOW 0
18490 /* When -fvisbility=hidden is used, assume the code has been annotated
18491 correspondingly for the symbols needed. */
18492 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18493 void fnord () __attribute__((visibility("default")));
18496 void fnord () { int i=42; }
18499 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18500 int status = $lt_dlunknown;
18504 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18507 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18508 else puts (dlerror ());
18510 /* dlclose (self); */
18518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18519 (eval $ac_link) 2>&5
18521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18522 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18523 (.
/conftest
; exit; ) >&5 2>/dev
/null
18525 case x
$lt_status in
18526 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18527 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18528 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18531 # compilation failed
18532 lt_cv_dlopen_self
=no
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18540 $as_echo "$lt_cv_dlopen_self" >&6; }
18542 if test "x$lt_cv_dlopen_self" = xyes
; then
18543 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18545 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18546 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18547 $as_echo_n "(cached) " >&6
18549 if test "$cross_compiling" = yes; then :
18550 lt_cv_dlopen_self_static
=cross
18552 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18553 lt_status
=$lt_dlunknown
18554 cat > conftest.
$ac_ext <<_LT_EOF
18555 #line 18555 "configure"
18556 #include "confdefs.h"
18565 # define LT_DLGLOBAL RTLD_GLOBAL
18568 # define LT_DLGLOBAL DL_GLOBAL
18570 # define LT_DLGLOBAL 0
18574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18575 find out it does not work in some platform. */
18576 #ifndef LT_DLLAZY_OR_NOW
18578 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18581 # define LT_DLLAZY_OR_NOW DL_LAZY
18584 # define LT_DLLAZY_OR_NOW RTLD_NOW
18587 # define LT_DLLAZY_OR_NOW DL_NOW
18589 # define LT_DLLAZY_OR_NOW 0
18596 /* When -fvisbility=hidden is used, assume the code has been annotated
18597 correspondingly for the symbols needed. */
18598 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18599 void fnord () __attribute__((visibility("default")));
18602 void fnord () { int i=42; }
18605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18606 int status = $lt_dlunknown;
18610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18613 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18614 else puts (dlerror ());
18616 /* dlclose (self); */
18624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18625 (eval $ac_link) 2>&5
18627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18628 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18629 (.
/conftest
; exit; ) >&5 2>/dev
/null
18631 case x
$lt_status in
18632 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18633 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18634 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18637 # compilation failed
18638 lt_cv_dlopen_self_static
=no
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18646 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18649 CPPFLAGS
="$save_CPPFLAGS"
18650 LDFLAGS
="$save_LDFLAGS"
18655 case $lt_cv_dlopen_self in
18656 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18657 *) enable_dlopen_self
=unknown
;;
18660 case $lt_cv_dlopen_self_static in
18661 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18662 *) enable_dlopen_self_static
=unknown
;;
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18685 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18686 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18687 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18688 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18690 $as_echo "yes" >&6; }
18692 # FIXME - insert some real tests, host_os isn't really good enough
18695 if test -n "$STRIP" ; then
18696 striplib
="$STRIP -x"
18697 old_striplib
="$STRIP -S"
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18699 $as_echo "yes" >&6; }
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702 $as_echo "no" >&6; }
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18707 $as_echo "no" >&6; }
18723 # Report which library types will actually be built
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18725 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18727 $as_echo "$can_build_shared" >&6; }
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18730 $as_echo_n "checking whether to build shared libraries... " >&6; }
18731 test "$can_build_shared" = "no" && enable_shared
=no
18733 # On AIX, shared libraries and static libraries use the same namespace, and
18734 # are all built from PIC.
18737 test "$enable_shared" = yes && enable_static
=no
18738 if test -n "$RANLIB"; then
18739 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18740 postinstall_cmds
='$RANLIB $lib'
18745 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18746 test "$enable_shared" = yes && enable_static
=no
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18751 $as_echo "$enable_shared" >&6; }
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18754 $as_echo_n "checking whether to build static libraries... " >&6; }
18755 # Make sure either enable_shared or enable_static is yes.
18756 test "$enable_shared" = yes || enable_static
=yes
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18758 $as_echo "$enable_static" >&6; }
18765 ac_cpp
='$CXXCPP $CPPFLAGS'
18766 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18767 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18768 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18772 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18773 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18774 (test "X$CXX" != "Xg++"))) ; then
18776 ac_cpp
='$CXXCPP $CPPFLAGS'
18777 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18778 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18779 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18781 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18782 if test -z "$CXXCPP"; then
18783 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18784 $as_echo_n "(cached) " >&6
18786 # Double quotes because CXXCPP needs to be expanded
18787 for CXXCPP
in "$CXX -E" "/lib/cpp"
18789 ac_preproc_ok
=false
18790 for ac_cxx_preproc_warn_flag
in '' yes
18792 # Use a header file that comes with gcc, so configuring glibc
18793 # with a fresh cross-compiler works.
18794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18795 # <limits.h> exists even on freestanding compilers.
18796 # On the NeXT, cc -E runs the code through the compiler's parser,
18797 # not just through cpp. "Syntax error" is here to catch this case.
18798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18799 /* end confdefs.h. */
18801 # include <limits.h>
18803 # include <assert.h>
18807 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18810 # Broken: fails on valid input.
18813 rm -f conftest.err conftest.
$ac_ext
18815 # OK, works on sane cases. Now check whether nonexistent headers
18816 # can be detected and how.
18817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18818 /* end confdefs.h. */
18819 #include <ac_nonexistent.h>
18821 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18822 # Broken: success on invalid input.
18825 # Passes both tests.
18829 rm -f conftest.err conftest.
$ac_ext
18832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18833 rm -f conftest.err conftest.
$ac_ext
18834 if $ac_preproc_ok; then :
18839 ac_cv_prog_CXXCPP
=$CXXCPP
18842 CXXCPP
=$ac_cv_prog_CXXCPP
18844 ac_cv_prog_CXXCPP
=$CXXCPP
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18847 $as_echo "$CXXCPP" >&6; }
18848 ac_preproc_ok
=false
18849 for ac_cxx_preproc_warn_flag
in '' yes
18851 # Use a header file that comes with gcc, so configuring glibc
18852 # with a fresh cross-compiler works.
18853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18854 # <limits.h> exists even on freestanding compilers.
18855 # On the NeXT, cc -E runs the code through the compiler's parser,
18856 # not just through cpp. "Syntax error" is here to catch this case.
18857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18860 # include <limits.h>
18862 # include <assert.h>
18866 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18869 # Broken: fails on valid input.
18872 rm -f conftest.err conftest.
$ac_ext
18874 # OK, works on sane cases. Now check whether nonexistent headers
18875 # can be detected and how.
18876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h. */
18878 #include <ac_nonexistent.h>
18880 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18881 # Broken: success on invalid input.
18884 # Passes both tests.
18888 rm -f conftest.err conftest.
$ac_ext
18891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18892 rm -f conftest.err conftest.
$ac_ext
18893 if $ac_preproc_ok; then :
18896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18898 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18899 See \`config.log' for more details." "$LINENO" 5; }
18903 ac_cpp
='$CXXCPP $CPPFLAGS'
18904 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18905 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18906 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18909 _lt_caught_CXX_error
=yes
18913 ac_cpp
='$CXXCPP $CPPFLAGS'
18914 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18918 archive_cmds_need_lc_CXX
=no
18919 allow_undefined_flag_CXX
=
18920 always_export_symbols_CXX
=no
18921 archive_expsym_cmds_CXX
=
18922 compiler_needs_object_CXX
=no
18923 export_dynamic_flag_spec_CXX
=
18924 hardcode_direct_CXX
=no
18925 hardcode_direct_absolute_CXX
=no
18926 hardcode_libdir_flag_spec_CXX
=
18927 hardcode_libdir_flag_spec_ld_CXX
=
18928 hardcode_libdir_separator_CXX
=
18929 hardcode_minus_L_CXX
=no
18930 hardcode_shlibpath_var_CXX
=unsupported
18931 hardcode_automatic_CXX
=no
18932 inherit_rpath_CXX
=no
18934 module_expsym_cmds_CXX
=
18935 link_all_deplibs_CXX
=unknown
18936 old_archive_cmds_CXX
=$old_archive_cmds
18937 reload_flag_CXX
=$reload_flag
18938 reload_cmds_CXX
=$reload_cmds
18939 no_undefined_flag_CXX
=
18940 whole_archive_flag_spec_CXX
=
18941 enable_shared_with_static_runtimes_CXX
=no
18943 # Source file extension for C++ test sources.
18946 # Object file extension for compiled C++ test sources.
18950 # No sense in running all these tests if we already determined that
18951 # the CXX compiler isn't working. Some variables (like enable_shared)
18952 # are currently assumed to apply to all compilers on this platform,
18953 # and will be corrupted by setting them based on a non-working compiler.
18954 if test "$_lt_caught_CXX_error" != yes; then
18955 # Code to be used in simple compile tests
18956 lt_simple_compile_test_code
="int some_variable = 0;"
18958 # Code to be used in simple link tests
18959 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18961 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18968 # If no C compiler was specified, use CC.
18971 # If no C compiler flags were specified, use CFLAGS.
18972 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18974 # Allow CC to be a program name with arguments.
18978 # save warnings/boilerplate of simple test code
18979 ac_outfile
=conftest.
$ac_objext
18980 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18981 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18982 _lt_compiler_boilerplate
=`cat conftest.err`
18985 ac_outfile
=conftest.
$ac_objext
18986 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18987 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18988 _lt_linker_boilerplate
=`cat conftest.err`
18992 # Allow CC to be a program name with arguments.
18997 lt_save_with_gnu_ld
=$with_gnu_ld
18998 lt_save_path_LD
=$lt_cv_path_LD
18999 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19000 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19002 $as_unset lt_cv_prog_gnu_ld
19004 if test -n "${lt_cv_path_LDCXX+set}"; then
19005 lt_cv_path_LD
=$lt_cv_path_LDCXX
19007 $as_unset lt_cv_path_LD
19009 test -z "${LDCXX+set}" || LD
=$LDCXX
19013 for cc_temp
in $compiler""; do
19015 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19016 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19021 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19024 if test -n "$compiler"; then
19025 # We don't want -fno-exception when compiling C++ code, so set the
19026 # no_builtin_flag separately
19027 if test "$GXX" = yes; then
19028 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19030 lt_prog_compiler_no_builtin_flag_CXX
=
19033 if test "$GXX" = yes; then
19034 # Set up default GNU C++ configuration
19038 # Check whether --with-gnu-ld was given.
19039 if test "${with_gnu_ld+set}" = set; then :
19040 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19046 if test "$GCC" = yes; then
19047 # Check if gcc -print-prog-name=ld gives a path.
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19049 $as_echo_n "checking for ld used by $CC... " >&6; }
19052 # gcc leaves a trailing carriage return which upsets mingw
19053 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19055 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19058 # Accept absolute paths.
19060 re_direlt
='/[^/][^/]*/\.\./'
19061 # Canonicalize the pathname of ld
19062 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19063 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19064 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19066 test -z "$LD" && LD
="$ac_prog"
19069 # If it fails, then pretend we aren't using GCC.
19073 # If it is relative, then search for the first ld in PATH.
19074 with_gnu_ld
=unknown
19077 elif test "$with_gnu_ld" = yes; then
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19079 $as_echo_n "checking for GNU ld... " >&6; }
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19082 $as_echo_n "checking for non-GNU ld... " >&6; }
19084 if test "${lt_cv_path_LD+set}" = set; then :
19085 $as_echo_n "(cached) " >&6
19087 if test -z "$LD"; then
19088 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19089 for ac_dir
in $PATH; do
19091 test -z "$ac_dir" && ac_dir
=.
19092 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19093 lt_cv_path_LD
="$ac_dir/$ac_prog"
19094 # Check to see if the program is GNU ld. I'd rather use --version,
19095 # but apparently some variants of GNU ld only accept -v.
19096 # Break only if it was the GNU/non-GNU ld that we prefer.
19097 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19098 *GNU
* |
*'with BFD'*)
19099 test "$with_gnu_ld" != no
&& break
19102 test "$with_gnu_ld" != yes && break
19109 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19113 LD
="$lt_cv_path_LD"
19114 if test -n "$LD"; then
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19116 $as_echo "$LD" >&6; }
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19119 $as_echo "no" >&6; }
19121 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19123 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19124 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19125 $as_echo_n "(cached) " >&6
19127 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19128 case `$LD -v 2>&1 </dev/null` in
19129 *GNU
* |
*'with BFD'*)
19130 lt_cv_prog_gnu_ld
=yes
19133 lt_cv_prog_gnu_ld
=no
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19138 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19139 with_gnu_ld
=$lt_cv_prog_gnu_ld
19147 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19148 # archiving commands below assume that GNU ld is being used.
19149 if test "$with_gnu_ld" = yes; then
19150 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19151 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'
19153 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19154 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19156 # If archive_cmds runs LD, not CC, wlarc should be empty
19157 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19158 # investigate it a little bit more. (MM)
19161 # ancient GNU ld didn't support --whole-archive et. al.
19162 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19163 $GREP 'no-whole-archive' > /dev
/null
; then
19164 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19166 whole_archive_flag_spec_CXX
=
19172 # A generic and very simple default shared library creation
19173 # command for GNU C++ for the case where it uses the native
19174 # linker, instead of GNU ld. If possible, this setting should
19175 # overridden to take advantage of the native linker features on
19176 # the platform it is being used on.
19177 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19180 # Commands to make compiler produce verbose output that lists
19181 # what "hidden" libraries, object files and flags are used when
19182 # linking a shared library.
19183 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19191 # PORTME: fill in a description of your system's C++ link characteristics
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19193 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19197 # FIXME: insert proper C++ library support
19201 if test "$host_cpu" = ia64
; then
19202 # On IA64, the linker does run time linking by default, so we don't
19203 # have to do anything special.
19204 aix_use_runtimelinking
=no
19205 exp_sym_flag
='-Bexport'
19208 aix_use_runtimelinking
=no
19210 # Test if we are trying to use run time linking or normal
19211 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19212 # need to do runtime linking.
19213 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19214 for ld_flag
in $LDFLAGS; do
19217 aix_use_runtimelinking
=yes
19225 exp_sym_flag
='-bexport'
19226 no_entry_flag
='-bnoentry'
19229 # When large executables or shared objects are built, AIX ld can
19230 # have problems creating the table of contents. If linking a library
19231 # or program results in "error TOC overflow" add -mminimal-toc to
19232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19235 archive_cmds_CXX
=''
19236 hardcode_direct_CXX
=yes
19237 hardcode_direct_absolute_CXX
=yes
19238 hardcode_libdir_separator_CXX
=':'
19239 link_all_deplibs_CXX
=yes
19240 file_list_spec_CXX
='${wl}-f,'
19242 if test "$GXX" = yes; then
19243 case $host_os in aix4.
[012]|aix4.
[012].
*)
19244 # We only want to do this on AIX 4.2 and lower, the check
19245 # below for broken collect2 doesn't work under 4.3+
19246 collect2name
=`${CC} -print-prog-name=collect2`
19247 if test -f "$collect2name" &&
19248 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19250 # We have reworked collect2
19253 # We have old collect2
19254 hardcode_direct_CXX
=unsupported
19255 # It fails to find uninstalled libraries when the uninstalled
19256 # path is not listed in the libpath. Setting hardcode_minus_L
19257 # to unsupported forces relinking
19258 hardcode_minus_L_CXX
=yes
19259 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19260 hardcode_libdir_separator_CXX
=
19263 shared_flag
='-shared'
19264 if test "$aix_use_runtimelinking" = yes; then
19265 shared_flag
="$shared_flag "'${wl}-G'
19269 if test "$host_cpu" = ia64
; then
19270 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19271 # chokes on -Wl,-G. The following line is correct:
19274 if test "$aix_use_runtimelinking" = yes; then
19275 shared_flag
='${wl}-G'
19277 shared_flag
='${wl}-bM:SRE'
19282 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19283 # It seems that -bexpall does not export symbols beginning with
19284 # underscore (_), so it is better to generate a list of symbols to
19286 always_export_symbols_CXX
=yes
19287 if test "$aix_use_runtimelinking" = yes; then
19288 # Warning - without using the other runtime loading flags (-brtl),
19289 # -berok will link without error, but may produce a broken library.
19290 allow_undefined_flag_CXX
='-berok'
19291 # Determine the default libpath from the value encoded in an empty
19293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h. */
19304 if ac_fn_cxx_try_link
"$LINENO"; then :
19306 lt_aix_libpath_sed
='
19307 /Import File Strings/,/^$/ {
19313 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19314 # Check for a 64-bit object if we didn't find anything.
19315 if test -z "$aix_libpath"; then
19316 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19319 rm -f core conftest.err conftest.
$ac_objext \
19320 conftest
$ac_exeext conftest.
$ac_ext
19321 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19323 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19325 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"
19327 if test "$host_cpu" = ia64
; then
19328 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19329 allow_undefined_flag_CXX
="-z nodefs"
19330 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"
19332 # Determine the default libpath from the value encoded in an
19333 # empty executable.
19334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h. */
19345 if ac_fn_cxx_try_link
"$LINENO"; then :
19347 lt_aix_libpath_sed
='
19348 /Import File Strings/,/^$/ {
19354 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19355 # Check for a 64-bit object if we didn't find anything.
19356 if test -z "$aix_libpath"; then
19357 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19360 rm -f core conftest.err conftest.
$ac_objext \
19361 conftest
$ac_exeext conftest.
$ac_ext
19362 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19364 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19365 # Warning - without using the other run time loading flags,
19366 # -berok will link without error, but may produce a broken library.
19367 no_undefined_flag_CXX
=' ${wl}-bernotok'
19368 allow_undefined_flag_CXX
=' ${wl}-berok'
19369 if test "$with_gnu_ld" = yes; then
19370 # We only use this code for GNU lds that support --whole-archive.
19371 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19373 # Exported symbols can be pulled into shared objects from archives
19374 whole_archive_flag_spec_CXX
='$convenience'
19376 archive_cmds_need_lc_CXX
=yes
19377 # This is similar to how AIX traditionally builds its shared
19379 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'
19385 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19386 allow_undefined_flag_CXX
=unsupported
19387 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19388 # support --undefined. This deserves some investigation. FIXME
19389 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19396 case $cc_basename in
19398 # FIXME: insert proper C++ library support
19404 cygwin
* | mingw
* | pw32
* | cegcc
*)
19405 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19406 # as there is no search path for DLLs.
19407 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19408 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19409 allow_undefined_flag_CXX
=unsupported
19410 always_export_symbols_CXX
=no
19411 enable_shared_with_static_runtimes_CXX
=yes
19413 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19414 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'
19415 # If the export-symbols file already is a .def file (1st line
19416 # is EXPORTS), use it as is; otherwise, prepend...
19417 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19418 cp $export_symbols $output_objdir/$soname.def;
19420 echo EXPORTS > $output_objdir/$soname.def;
19421 cat $export_symbols >> $output_objdir/$soname.def;
19423 $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'
19428 darwin
* | rhapsody
*)
19431 archive_cmds_need_lc_CXX
=no
19432 hardcode_direct_CXX
=no
19433 hardcode_automatic_CXX
=yes
19434 hardcode_shlibpath_var_CXX
=unsupported
19435 if test "$lt_cv_ld_force_load" = "yes"; then
19436 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\"`'
19438 whole_archive_flag_spec_CXX
=''
19440 link_all_deplibs_CXX
=yes
19441 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19442 case $cc_basename in
19443 ifort
*) _lt_dar_can_shared
=yes ;;
19444 *) _lt_dar_can_shared
=$GCC ;;
19446 if test "$_lt_dar_can_shared" = "yes"; then
19447 output_verbose_link_cmd
=func_echo_all
19448 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}"
19449 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19450 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}"
19451 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}"
19452 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19453 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}"
19454 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}"
19464 case $cc_basename in
19466 # FIXME: insert proper C++ library support
19470 # Green Hills C++ Compiler
19471 # FIXME: insert proper C++ library support
19475 # FIXME: insert proper C++ library support
19482 # C++ shared libraries reported to be fairly broken before
19488 archive_cmds_need_lc_CXX
=no
19491 freebsd
* | dragonfly
*)
19492 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19501 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19502 link_all_deplibs_CXX
=yes
19506 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19507 hardcode_libdir_separator_CXX
=:
19508 export_dynamic_flag_spec_CXX
='${wl}-E'
19509 hardcode_direct_CXX
=yes
19510 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19511 # but as the default
19512 # location of the library.
19514 case $cc_basename in
19516 # FIXME: insert proper C++ library support
19520 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'
19521 # Commands to make compiler produce verbose output that lists
19522 # what "hidden" libraries, object files and flags are used when
19523 # linking a shared library.
19525 # There doesn't appear to be a way to prevent this compiler from
19526 # explicitly linking system object files so we need to strip them
19527 # from the output so that they don't get included in the library
19529 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"'
19532 if test "$GXX" = yes; then
19533 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'
19535 # FIXME: insert proper C++ library support
19543 if test $with_gnu_ld = no
; then
19544 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19545 hardcode_libdir_separator_CXX
=:
19551 export_dynamic_flag_spec_CXX
='${wl}-E'
19557 hardcode_direct_CXX
=no
19558 hardcode_shlibpath_var_CXX
=no
19561 hardcode_direct_CXX
=yes
19562 hardcode_direct_absolute_CXX
=yes
19563 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19564 # but as the default
19565 # location of the library.
19569 case $cc_basename in
19571 # FIXME: insert proper C++ library support
19577 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19580 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19583 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19586 # Commands to make compiler produce verbose output that lists
19587 # what "hidden" libraries, object files and flags are used when
19588 # linking a shared library.
19590 # There doesn't appear to be a way to prevent this compiler from
19591 # explicitly linking system object files so we need to strip them
19592 # from the output so that they don't get included in the library
19594 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"'
19597 if test "$GXX" = yes; then
19598 if test $with_gnu_ld = no
; then
19601 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19604 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19607 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'
19612 # FIXME: insert proper C++ library support
19620 hardcode_direct_CXX
=no
19621 hardcode_shlibpath_var_CXX
=no
19622 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19623 export_dynamic_flag_spec_CXX
='${wl}-E'
19624 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19625 # Instead, shared libraries are loaded at an image base (0x10000000 by
19626 # default) and relocated if they conflict, which is a slow very memory
19627 # consuming and fragmenting process. To avoid this, we pick a random,
19628 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19629 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19630 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'
19631 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'
19634 case $cc_basename in
19637 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'
19639 # Archives containing C++ object files must be created using
19640 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19641 # necessary to make sure instantiated templates are included
19643 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19646 if test "$GXX" = yes; then
19647 if test "$with_gnu_ld" = no
; then
19648 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'
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"` -o $lib'
19653 link_all_deplibs_CXX
=yes
19656 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19657 hardcode_libdir_separator_CXX
=:
19658 inherit_rpath_CXX
=yes
19661 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19662 case $cc_basename in
19664 # Kuck and Associates, Inc. (KAI) C++ Compiler
19666 # KCC will only create a shared library if the output file
19667 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19668 # to its proper name (with version) after linking.
19669 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'
19670 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'
19671 # Commands to make compiler produce verbose output that lists
19672 # what "hidden" libraries, object files and flags are used when
19673 # linking a shared library.
19675 # There doesn't appear to be a way to prevent this compiler from
19676 # explicitly linking system object files so we need to strip them
19677 # from the output so that they don't get included in the library
19679 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"'
19681 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19682 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19684 # Archives containing C++ object files must be created using
19685 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19686 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19691 # version 8.0 and above of icpc choke on multiply defined symbols
19692 # if we add $predep_objects and $postdep_objects, however 7.1 and
19693 # earlier do not add the objects themselves.
19694 case `$CC -V 2>&1` in
19696 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19697 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'
19699 *) # Version 8.0 or newer
19702 ia64
*) tmp_idyn
=' -i_dynamic';;
19704 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19705 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'
19708 archive_cmds_need_lc_CXX
=no
19709 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19710 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19711 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19714 # Portland Group C++ compiler
19716 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19717 prelink_cmds_CXX
='tpldir=Template.dir~
19719 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19720 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19721 old_archive_cmds_CXX
='tpldir=Template.dir~
19723 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19724 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19726 archive_cmds_CXX
='tpldir=Template.dir~
19728 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19729 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19730 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19732 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19733 $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'
19735 *) # Version 6 and above use weak symbols
19736 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19737 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'
19741 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19742 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19743 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'
19747 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19748 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'
19750 runpath_var
=LD_RUN_PATH
19751 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19752 hardcode_libdir_separator_CXX
=:
19754 # Commands to make compiler produce verbose output that lists
19755 # what "hidden" libraries, object files and flags are used when
19756 # linking a shared library.
19758 # There doesn't appear to be a way to prevent this compiler from
19759 # explicitly linking system object files so we need to strip them
19760 # from the output so that they don't get included in the library
19762 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'
19764 xl
* | mpixl
* | bgxl
*)
19765 # IBM XL 8.0 on PPC, with GNU ld
19766 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19767 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19768 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19769 if test "x$supports_anon_versioning" = xyes
; then
19770 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19772 echo "local: *; };" >> $output_objdir/$libname.ver~
19773 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19777 case `$CC -V 2>&1 | sed 5q` in
19780 no_undefined_flag_CXX
=' -zdefs'
19781 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19782 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'
19783 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19784 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'
19785 compiler_needs_object_CXX
=yes
19787 # Not sure whether something based on
19788 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19790 output_verbose_link_cmd
='func_echo_all'
19792 # Archives containing C++ object files must be created using
19793 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19794 # necessary to make sure instantiated templates are included
19796 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19804 # FIXME: insert proper C++ library support
19809 # FIXME: insert proper C++ library support
19814 case $cc_basename in
19816 # FIXME: insert proper C++ library support
19820 # FIXME: insert proper C++ library support
19827 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19828 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19830 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19831 hardcode_direct_CXX
=yes
19832 hardcode_shlibpath_var_CXX
=no
19834 # Workaround some broken pre-1.5 toolchains
19835 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19843 # C++ shared libraries are fairly broken
19848 if test -f /usr
/libexec
/ld.so
; then
19849 hardcode_direct_CXX
=yes
19850 hardcode_shlibpath_var_CXX
=no
19851 hardcode_direct_absolute_CXX
=yes
19852 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19853 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19854 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19855 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19856 export_dynamic_flag_spec_CXX
='${wl}-E'
19857 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19859 output_verbose_link_cmd
=func_echo_all
19865 osf3
* | osf4
* | osf5
*)
19866 case $cc_basename in
19868 # Kuck and Associates, Inc. (KAI) C++ Compiler
19870 # KCC will only create a shared library if the output file
19871 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19872 # to its proper name (with version) after linking.
19873 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'
19875 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19876 hardcode_libdir_separator_CXX
=:
19878 # Archives containing C++ object files must be created using
19879 # the KAI C++ compiler.
19881 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19882 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19886 # Rational C++ 2.4.1
19887 # FIXME: insert proper C++ library support
19893 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19894 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'
19895 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19898 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19899 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'
19900 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19901 echo "-hidden">> $lib.exp~
19902 $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~
19904 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19908 hardcode_libdir_separator_CXX
=:
19910 # Commands to make compiler produce verbose output that lists
19911 # what "hidden" libraries, object files and flags are used when
19912 # linking a shared library.
19914 # There doesn't appear to be a way to prevent this compiler from
19915 # explicitly linking system object files so we need to strip them
19916 # from the output so that they don't get included in the library
19918 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"'
19921 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19922 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19925 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'
19928 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'
19932 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19933 hardcode_libdir_separator_CXX
=:
19935 # Commands to make compiler produce verbose output that lists
19936 # what "hidden" libraries, object files and flags are used when
19937 # linking a shared library.
19938 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19941 # FIXME: insert proper C++ library support
19949 # FIXME: insert proper C++ library support
19954 case $cc_basename in
19957 # FIXME: insert proper C++ library support
19962 # FIXME: insert proper C++ library support
19966 # FIXME: insert proper C++ library support
19973 case $cc_basename in
19975 # Sun C++ 4.2, 5.x and Centerline C++
19976 archive_cmds_need_lc_CXX
=yes
19977 no_undefined_flag_CXX
=' -zdefs'
19978 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19979 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19980 $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'
19982 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19983 hardcode_shlibpath_var_CXX
=no
19985 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19987 # The compiler driver will combine and reorder linker options,
19988 # but understands `-z linker_flag'.
19989 # Supported since Solaris 2.6 (maybe 2.5.1?)
19990 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19993 link_all_deplibs_CXX
=yes
19995 output_verbose_link_cmd
='func_echo_all'
19997 # Archives containing C++ object files must be created using
19998 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19999 # necessary to make sure instantiated templates are included
20001 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20004 # Green Hills C++ Compiler
20005 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20007 # The C++ compiler must be used to create the archive.
20008 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20011 # GNU C++ compiler with Solaris linker
20012 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20013 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20014 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20015 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20016 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20017 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20019 # Commands to make compiler produce verbose output that lists
20020 # what "hidden" libraries, object files and flags are used when
20021 # linking a shared library.
20022 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20024 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20026 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20027 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20028 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20030 # Commands to make compiler produce verbose output that lists
20031 # what "hidden" libraries, object files and flags are used when
20032 # linking a shared library.
20033 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20036 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20038 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20040 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20048 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20049 no_undefined_flag_CXX
='${wl}-z,text'
20050 archive_cmds_need_lc_CXX
=no
20051 hardcode_shlibpath_var_CXX
=no
20052 runpath_var
='LD_RUN_PATH'
20054 case $cc_basename in
20056 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20057 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20060 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20061 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20066 sysv5
* | sco3.2v5
* | sco5v6
*)
20067 # Note: We can NOT use -z defs as we might desire, because we do not
20068 # link with -lc, and that would cause any symbols used from libc to
20069 # always be unresolved, which means just about no library would
20070 # ever link correctly. If we're not using GNU ld we use -z text
20071 # though, which does catch some bad symbols but isn't as heavy-handed
20073 no_undefined_flag_CXX
='${wl}-z,text'
20074 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20075 archive_cmds_need_lc_CXX
=no
20076 hardcode_shlibpath_var_CXX
=no
20077 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20078 hardcode_libdir_separator_CXX
=':'
20079 link_all_deplibs_CXX
=yes
20080 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20081 runpath_var
='LD_RUN_PATH'
20083 case $cc_basename in
20085 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20086 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20087 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20088 '"$old_archive_cmds_CXX"
20089 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20090 '"$reload_cmds_CXX"
20093 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20094 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20100 case $cc_basename in
20102 # NonStop-UX NCC 3.20
20103 # FIXME: insert proper C++ library support
20107 # FIXME: insert proper C++ library support
20114 # FIXME: insert proper C++ library support
20119 # FIXME: insert proper C++ library support
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20125 $as_echo "$ld_shlibs_CXX" >&6; }
20126 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20132 ## There is no encapsulation within the following macros, do not change
20133 ## the running order or otherwise move them around unless you know exactly
20134 ## what you are doing...
20135 # Dependencies to place before and after the object being linked:
20136 predep_objects_CXX
=
20137 postdep_objects_CXX
=
20140 compiler_lib_search_path_CXX
=
20142 cat > conftest.
$ac_ext <<_LT_EOF
20146 Foo (void) { a = 0; }
20152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20153 (eval $ac_compile) 2>&5
20155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20156 test $ac_status = 0; }; then
20157 # Parse the compiler output and extract the necessary
20158 # objects, libraries and library flags.
20160 # Sentinel used to keep track of whether or not we are before
20161 # the conftest object file.
20162 pre_test_object_deps_done
=no
20164 for p
in `eval "$output_verbose_link_cmd"`; do
20168 # Some compilers place space between "-{L,R}" and the path.
20169 # Remove the space.
20170 if test $p = "-L" ||
20171 test $p = "-R"; then
20178 if test "$pre_test_object_deps_done" = no
; then
20181 # Internal compiler library paths should come after those
20182 # provided the user. The postdeps already come after the
20183 # user supplied libs so there is no need to process them.
20184 if test -z "$compiler_lib_search_path_CXX"; then
20185 compiler_lib_search_path_CXX
="${prev}${p}"
20187 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20190 # The "-l" case would never come before the object being
20191 # linked, so don't bother handling this case.
20194 if test -z "$postdeps_CXX"; then
20195 postdeps_CXX
="${prev}${p}"
20197 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20203 # This assumes that the test object file only shows up
20204 # once in the compiler output.
20205 if test "$p" = "conftest.$objext"; then
20206 pre_test_object_deps_done
=yes
20210 if test "$pre_test_object_deps_done" = no
; then
20211 if test -z "$predep_objects_CXX"; then
20212 predep_objects_CXX
="$p"
20214 predep_objects_CXX
="$predep_objects_CXX $p"
20217 if test -z "$postdep_objects_CXX"; then
20218 postdep_objects_CXX
="$p"
20220 postdep_objects_CXX
="$postdep_objects_CXX $p"
20225 *) ;; # Ignore the rest.
20233 echo "libtool.m4: error: problem compiling CXX test program"
20236 $RM -f confest.
$objext
20238 # PORTME: override above test on systems where it is broken
20241 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20242 # hack all around it, let's just trust "g++" to DTRT.
20243 predep_objects_CXX
=
20244 postdep_objects_CXX
=
20249 case `$CC -V 2>&1 | sed 5q` in
20253 # The more standards-conforming stlport4 library is
20254 # incompatible with the Cstd library. Avoid specifying
20255 # it if it's in CXXFLAGS. Ignore libCrun as
20256 # -library=stlport4 depends on it.
20257 case " $CXX $CXXFLAGS " in
20258 *" -library=stlport4 "*)
20259 solaris_use_stlport4
=yes
20263 if test "$solaris_use_stlport4" != yes; then
20264 postdeps_CXX
='-library=Cstd -library=Crun'
20271 case $cc_basename in
20273 # The more standards-conforming stlport4 library is
20274 # incompatible with the Cstd library. Avoid specifying
20275 # it if it's in CXXFLAGS. Ignore libCrun as
20276 # -library=stlport4 depends on it.
20277 case " $CXX $CXXFLAGS " in
20278 *" -library=stlport4 "*)
20279 solaris_use_stlport4
=yes
20283 # Adding this requires a known-good setup of shared libraries for
20284 # Sun compiler versions before 5.6, else PIC objects from an old
20285 # archive will be linked into the output, leading to subtle bugs.
20286 if test "$solaris_use_stlport4" != yes; then
20287 postdeps_CXX
='-library=Cstd -library=Crun'
20295 case " $postdeps_CXX " in
20296 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20298 compiler_lib_search_dirs_CXX
=
20299 if test -n "${compiler_lib_search_path_CXX}"; then
20300 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20333 lt_prog_compiler_wl_CXX
=
20334 lt_prog_compiler_pic_CXX
=
20335 lt_prog_compiler_static_CXX
=
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20338 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20340 # C++ specific cases for pic, static, wl, etc.
20341 if test "$GXX" = yes; then
20342 lt_prog_compiler_wl_CXX
='-Wl,'
20343 lt_prog_compiler_static_CXX
='-static'
20347 # All AIX code is PIC.
20348 if test "$host_cpu" = ia64
; then
20349 # AIX 5 now supports IA64 processor
20350 lt_prog_compiler_static_CXX
='-Bstatic'
20352 lt_prog_compiler_pic_CXX
='-fPIC'
20358 # see comment about AmigaOS4 .so support
20359 lt_prog_compiler_pic_CXX
='-fPIC'
20362 # FIXME: we need at least 68020 code to build shared libraries, but
20363 # adding the `-m68020' flag to GCC prevents building anything better,
20365 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20370 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20371 # PIC is the default for these OSes.
20373 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20374 # This hack is so that the source file can tell whether it is being
20375 # built for inclusion in a dll (and should export symbols for example).
20376 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20377 # (--disable-auto-import) libraries
20378 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20380 darwin
* | rhapsody
*)
20381 # PIC is the default on this platform
20382 # Common symbols not allowed in MH_DYLIB files
20383 lt_prog_compiler_pic_CXX
='-fno-common'
20386 # DJGPP does not support shared libraries at all
20387 lt_prog_compiler_pic_CXX
=
20390 # PIC is the default for Haiku.
20391 # The "-static" flag exists, but is broken.
20392 lt_prog_compiler_static_CXX
=
20395 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20396 # Instead, we relocate shared libraries at runtime.
20399 if test -d /usr
/nec
; then
20400 lt_prog_compiler_pic_CXX
=-Kconform_pic
20404 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20405 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20406 # sets the default TLS model and affects inlining.
20411 lt_prog_compiler_pic_CXX
='-fPIC'
20416 # QNX uses GNU C++, but need to define -shared option too, otherwise
20417 # it will coredump.
20418 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20421 lt_prog_compiler_pic_CXX
='-fPIC'
20427 # All AIX code is PIC.
20428 if test "$host_cpu" = ia64
; then
20429 # AIX 5 now supports IA64 processor
20430 lt_prog_compiler_static_CXX
='-Bstatic'
20432 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20436 case $cc_basename in
20438 # Green Hills C++ Compiler
20439 # _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"
20444 case $cc_basename in
20446 lt_prog_compiler_pic_CXX
='-KPIC'
20449 # Green Hills C++ Compiler
20450 lt_prog_compiler_pic_CXX
='-pic'
20456 freebsd
* | dragonfly
*)
20457 # FreeBSD uses GNU C++
20459 hpux9
* | hpux10
* | hpux11
*)
20460 case $cc_basename in
20462 lt_prog_compiler_wl_CXX
='-Wl,'
20463 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20464 if test "$host_cpu" != ia64
; then
20465 lt_prog_compiler_pic_CXX
='+Z'
20469 lt_prog_compiler_wl_CXX
='-Wl,'
20470 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20476 lt_prog_compiler_pic_CXX
='+Z'
20485 # This is c89, which is MS Visual C++ (no shared libs)
20486 # Anyone wants to do a port?
20488 irix5
* | irix6
* | nonstopux
*)
20489 case $cc_basename in
20491 lt_prog_compiler_wl_CXX
='-Wl,'
20492 lt_prog_compiler_static_CXX
='-non_shared'
20493 # CC pic flag -KPIC is the default.
20499 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20500 case $cc_basename in
20503 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20504 lt_prog_compiler_pic_CXX
='-fPIC'
20507 # old Intel C++ for x86_64 which still supported -KPIC.
20508 lt_prog_compiler_wl_CXX
='-Wl,'
20509 lt_prog_compiler_pic_CXX
='-KPIC'
20510 lt_prog_compiler_static_CXX
='-static'
20513 # Intel C++, used to be incompatible with GCC.
20514 # ICC 10 doesn't accept -KPIC any more.
20515 lt_prog_compiler_wl_CXX
='-Wl,'
20516 lt_prog_compiler_pic_CXX
='-fPIC'
20517 lt_prog_compiler_static_CXX
='-static'
20520 # Portland Group C++ compiler
20521 lt_prog_compiler_wl_CXX
='-Wl,'
20522 lt_prog_compiler_pic_CXX
='-fpic'
20523 lt_prog_compiler_static_CXX
='-Bstatic'
20527 # Make sure the PIC flag is empty. It appears that all Alpha
20528 # Linux and Compaq Tru64 Unix objects are PIC.
20529 lt_prog_compiler_pic_CXX
=
20530 lt_prog_compiler_static_CXX
='-non_shared'
20532 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20533 # IBM XL 8.0, 9.0 on PPC and BlueGene
20534 lt_prog_compiler_wl_CXX
='-Wl,'
20535 lt_prog_compiler_pic_CXX
='-qpic'
20536 lt_prog_compiler_static_CXX
='-qstaticlink'
20539 case `$CC -V 2>&1 | sed 5q` in
20542 lt_prog_compiler_pic_CXX
='-KPIC'
20543 lt_prog_compiler_static_CXX
='-Bstatic'
20544 lt_prog_compiler_wl_CXX
='-Qoption ld '
20555 case $cc_basename in
20557 lt_prog_compiler_pic_CXX
='-W c,exportall'
20566 # QNX uses GNU C++, but need to define -shared option too, otherwise
20567 # it will coredump.
20568 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20570 osf3
* | osf4
* | osf5
*)
20571 case $cc_basename in
20573 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20576 # Rational C++ 2.4.1
20577 lt_prog_compiler_pic_CXX
='-pic'
20580 # Digital/Compaq C++
20581 lt_prog_compiler_wl_CXX
='-Wl,'
20582 # Make sure the PIC flag is empty. It appears that all Alpha
20583 # Linux and Compaq Tru64 Unix objects are PIC.
20584 lt_prog_compiler_pic_CXX
=
20585 lt_prog_compiler_static_CXX
='-non_shared'
20594 case $cc_basename in
20596 # Sun C++ 4.2, 5.x and Centerline C++
20597 lt_prog_compiler_pic_CXX
='-KPIC'
20598 lt_prog_compiler_static_CXX
='-Bstatic'
20599 lt_prog_compiler_wl_CXX
='-Qoption ld '
20602 # Green Hills C++ Compiler
20603 lt_prog_compiler_pic_CXX
='-PIC'
20610 case $cc_basename in
20613 lt_prog_compiler_pic_CXX
='-pic'
20614 lt_prog_compiler_static_CXX
='-Bstatic'
20618 lt_prog_compiler_pic_CXX
='-pic'
20624 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20625 case $cc_basename in
20627 lt_prog_compiler_wl_CXX
='-Wl,'
20628 lt_prog_compiler_pic_CXX
='-KPIC'
20629 lt_prog_compiler_static_CXX
='-Bstatic'
20634 case $cc_basename in
20636 # NonStop-UX NCC 3.20
20637 lt_prog_compiler_pic_CXX
='-KPIC'
20646 lt_prog_compiler_can_build_shared_CXX
=no
20652 # For platforms which do not support PIC, -DPIC is meaningless:
20654 lt_prog_compiler_pic_CXX
=
20657 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20661 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20666 # Check to make sure the PIC flag actually works.
20668 if test -n "$lt_prog_compiler_pic_CXX"; then
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20670 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20671 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20672 $as_echo_n "(cached) " >&6
20674 lt_cv_prog_compiler_pic_works_CXX
=no
20675 ac_outfile
=conftest.
$ac_objext
20676 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20677 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20678 # Insert the option either (1) after the last *FLAGS variable, or
20679 # (2) before a word containing "conftest.", or (3) at the end.
20680 # Note that $ac_compile itself does not contain backslashes and begins
20681 # with a dollar sign (not a hyphen), so the echo should work correctly.
20682 # The option is referenced via a variable to avoid confusing sed.
20683 lt_compile
=`echo "$ac_compile" | $SED \
20684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20686 -e 's:$: $lt_compiler_flag:'`
20687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20688 (eval "$lt_compile" 2>conftest.err
)
20690 cat conftest.err
>&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 if (exit $ac_status) && test -s "$ac_outfile"; then
20693 # The compiler can only warn and ignore the option if not recognized
20694 # So say no if there are warnings other than the usual output.
20695 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20696 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20697 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20698 lt_cv_prog_compiler_pic_works_CXX
=yes
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20705 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20707 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20708 case $lt_prog_compiler_pic_CXX in
20710 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20713 lt_prog_compiler_pic_CXX
=
20714 lt_prog_compiler_can_build_shared_CXX
=no
20722 # Check to make sure the static flag actually works.
20724 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20726 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20727 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20728 $as_echo_n "(cached) " >&6
20730 lt_cv_prog_compiler_static_works_CXX
=no
20731 save_LDFLAGS
="$LDFLAGS"
20732 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20733 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20734 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20735 # The linker can only warn and ignore the option if not recognized
20736 # So say no if there are warnings
20737 if test -s conftest.err
; then
20738 # Append any errors to the config.log.
20739 cat conftest.err
1>&5
20740 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20741 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20742 if diff conftest.exp conftest.er2
>/dev
/null
; then
20743 lt_cv_prog_compiler_static_works_CXX
=yes
20746 lt_cv_prog_compiler_static_works_CXX
=yes
20750 LDFLAGS
="$save_LDFLAGS"
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20754 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20756 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20759 lt_prog_compiler_static_CXX
=
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20766 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20767 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20768 $as_echo_n "(cached) " >&6
20770 lt_cv_prog_compiler_c_o_CXX
=no
20771 $RM -r conftest
2>/dev
/null
20775 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20777 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20778 # Insert the option either (1) after the last *FLAGS variable, or
20779 # (2) before a word containing "conftest.", or (3) at the end.
20780 # Note that $ac_compile itself does not contain backslashes and begins
20781 # with a dollar sign (not a hyphen), so the echo should work correctly.
20782 lt_compile
=`echo "$ac_compile" | $SED \
20783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20785 -e 's:$: $lt_compiler_flag:'`
20786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20787 (eval "$lt_compile" 2>out
/conftest.err
)
20789 cat out
/conftest.err
>&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20793 # The compiler can only warn and ignore the option if not recognized
20794 # So say no if there are warnings
20795 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20796 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20797 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20798 lt_cv_prog_compiler_c_o_CXX
=yes
20803 # SGI C++ compiler will create directory out/ii_files/ for
20804 # template instantiation
20805 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20806 $RM out
/* && rmdir out
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20813 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20818 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20819 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20820 $as_echo_n "(cached) " >&6
20822 lt_cv_prog_compiler_c_o_CXX
=no
20823 $RM -r conftest
2>/dev
/null
20827 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20829 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20830 # Insert the option either (1) after the last *FLAGS variable, or
20831 # (2) before a word containing "conftest.", or (3) at the end.
20832 # Note that $ac_compile itself does not contain backslashes and begins
20833 # with a dollar sign (not a hyphen), so the echo should work correctly.
20834 lt_compile
=`echo "$ac_compile" | $SED \
20835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20837 -e 's:$: $lt_compiler_flag:'`
20838 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20839 (eval "$lt_compile" 2>out
/conftest.err
)
20841 cat out
/conftest.err
>&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20845 # The compiler can only warn and ignore the option if not recognized
20846 # So say no if there are warnings
20847 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20848 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20849 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20850 lt_cv_prog_compiler_c_o_CXX
=yes
20855 # SGI C++ compiler will create directory out/ii_files/ for
20856 # template instantiation
20857 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20858 $RM out
/* && rmdir out
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20865 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20870 hard_links
="nottested"
20871 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20872 # do not overwrite the value of need_locks provided by the user
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20874 $as_echo_n "checking if we can lock with hard links... " >&6; }
20877 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20879 ln conftest.a conftest.b
2>&5 || hard_links
=no
20880 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20882 $as_echo "$hard_links" >&6; }
20883 if test "$hard_links" = no
; then
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20885 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20895 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20897 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20900 # If we're using GNU nm, then we don't want the "-C" option.
20901 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20902 # Also, AIX nm treats weak defined symbols like other global defined
20903 # symbols, whereas GNU nm marks them as "W".
20904 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20905 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'
20907 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'
20911 export_symbols_cmds_CXX
="$ltdll_cmds"
20913 cygwin
* | mingw
* | cegcc
*)
20914 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'
20917 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20920 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20923 $as_echo "$ld_shlibs_CXX" >&6; }
20924 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20926 with_gnu_ld_CXX
=$with_gnu_ld
20934 # Do we need to explicitly link libc?
20936 case "x$archive_cmds_need_lc_CXX" in
20938 # Assume -lc should be added
20939 archive_cmds_need_lc_CXX
=yes
20941 if test "$enable_shared" = yes && test "$GCC" = yes; then
20942 case $archive_cmds_CXX in
20944 # FIXME: we may have to deal with multi-command sequences.
20947 # Test whether the compiler implicitly links with -lc since on some
20948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20949 # to ld, don't add -lc before -lgcc.
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20951 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20952 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20953 $as_echo_n "(cached) " >&6
20956 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20959 (eval $ac_compile) 2>&5
20961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20962 test $ac_status = 0; } 2>conftest.err
; then
20965 libobjs
=conftest.
$ac_objext
20967 wl
=$lt_prog_compiler_wl_CXX
20968 pic_flag
=$lt_prog_compiler_pic_CXX
20974 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20975 allow_undefined_flag_CXX
=
20976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20977 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20980 test $ac_status = 0; }
20982 lt_cv_archive_cmds_need_lc_CXX
=no
20984 lt_cv_archive_cmds_need_lc_CXX
=yes
20986 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20988 cat conftest.err
1>&5
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20994 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20995 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21066 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21068 library_names_spec
=
21069 libname_spec
='lib$name'
21073 postuninstall_cmds
=
21077 shlibpath_overrides_runpath
=unknown
21079 dynamic_linker
="$host_os ld.so"
21080 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21081 need_lib_prefix
=unknown
21082 hardcode_into_libs
=no
21084 # when you set need_version to no, make sure it does not cause -set_version
21085 # flags to be left without arguments
21086 need_version
=unknown
21091 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21092 shlibpath_var
=LIBPATH
21094 # AIX 3 has no versioning support, so we append a major version to the name.
21095 soname_spec
='${libname}${release}${shared_ext}$major'
21102 hardcode_into_libs
=yes
21103 if test "$host_cpu" = ia64
; then
21104 # AIX 5 supports IA64
21105 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21106 shlibpath_var
=LD_LIBRARY_PATH
21108 # With GCC up to 2.95.x, collect2 would create an import file
21109 # for dependence libraries. The import file would start with
21110 # the line `#! .'. This would cause the generated library to
21111 # depend on `.', always an invalid library. This was fixed in
21112 # development snapshots of GCC prior to 3.0.
21114 aix4 | aix4.
[01] | aix4.
[01].
*)
21115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21117 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21120 can_build_shared
=no
21124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21125 # soname into executable. Probably we can add versioning support to
21126 # collect2, so additional links can be useful in future.
21127 if test "$aix_use_runtimelinking" = yes; then
21128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21129 # instead of lib<name>.a to let people know that these are not
21130 # typical AIX shared libraries.
21131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21133 # We preserve .a as extension for shared libraries through AIX4.2
21134 # and later when we are not doing run time linking.
21135 library_names_spec
='${libname}${release}.a $libname.a'
21136 soname_spec
='${libname}${release}${shared_ext}$major'
21138 shlibpath_var
=LIBPATH
21145 # Since July 2007 AmigaOS4 officially supports .so libraries.
21146 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21147 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21150 library_names_spec
='$libname.ixlibrary $libname.a'
21151 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21152 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'
21158 library_names_spec
='${libname}${shared_ext}'
21159 dynamic_linker
="$host_os ld.so"
21160 shlibpath_var
=LIBRARY_PATH
21166 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21167 soname_spec
='${libname}${release}${shared_ext}$major'
21168 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21169 shlibpath_var
=LD_LIBRARY_PATH
21170 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21171 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21172 # the default ld.so.conf also contains /usr/contrib/lib and
21173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21174 # libtool to hard-code these into programs
21177 cygwin
* | mingw
* | pw32
* | cegcc
*)
21178 version_type
=windows
21183 case $GCC,$host_os in
21184 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21185 library_names_spec
='$libname.dll.a'
21186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21187 postinstall_cmds
='base_file=`basename \${file}`~
21188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21189 dldir=$destdir/`dirname \$dlpath`~
21190 test -d \$dldir || mkdir -p \$dldir~
21191 $install_prog $dir/$dlname \$dldir/$dlname~
21192 chmod a+x \$dldir/$dlname~
21193 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21194 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21196 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21197 dlpath=$dir/\$dldll~
21199 shlibpath_overrides_runpath
=yes
21203 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21204 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21208 # MinGW DLLs use traditional 'lib' prefix
21209 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21212 # pw32 DLLs use 'pw' prefix rather than 'lib'
21213 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21219 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21222 dynamic_linker
='Win32 ld.exe'
21223 # FIXME: first we should search . and the directory the executable is in
21227 darwin
* | rhapsody
*)
21228 dynamic_linker
="$host_os dyld"
21229 version_type
=darwin
21232 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21233 soname_spec
='${libname}${release}${major}$shared_ext'
21234 shlibpath_overrides_runpath
=yes
21235 shlibpath_var
=DYLD_LIBRARY_PATH
21236 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21238 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21246 soname_spec
='${libname}${release}${shared_ext}$major'
21247 shlibpath_var
=LD_LIBRARY_PATH
21250 freebsd
* | dragonfly
*)
21251 # DragonFly does not have aout. When/if they implement a new
21252 # versioning mechanism, adjust this.
21253 if test -x /usr
/bin
/objformat
; then
21254 objformat
=`/usr/bin/objformat`
21257 freebsd
[23].
*) objformat
=aout
;;
21258 *) objformat
=elf
;;
21261 version_type
=freebsd-
$objformat
21262 case $version_type in
21264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21269 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21273 shlibpath_var
=LD_LIBRARY_PATH
21276 shlibpath_overrides_runpath
=yes
21278 freebsd3.
[01]* | freebsdelf3.
[01]*)
21279 shlibpath_overrides_runpath
=yes
21280 hardcode_into_libs
=yes
21282 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21283 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21284 shlibpath_overrides_runpath
=no
21285 hardcode_into_libs
=yes
21287 *) # from 4.6 on, and DragonFly
21288 shlibpath_overrides_runpath
=yes
21289 hardcode_into_libs
=yes
21298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21299 soname_spec
='${libname}${release}${shared_ext}$major'
21300 shlibpath_var
=LD_LIBRARY_PATH
21301 hardcode_into_libs
=yes
21308 dynamic_linker
="$host_os runtime_loader"
21309 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21310 soname_spec
='${libname}${release}${shared_ext}$major'
21311 shlibpath_var
=LIBRARY_PATH
21312 shlibpath_overrides_runpath
=yes
21313 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21314 hardcode_into_libs
=yes
21317 hpux9
* | hpux10
* | hpux11
*)
21318 # Give a soname corresponding to the major version so that dld.sl refuses to
21319 # link against other versions.
21326 hardcode_into_libs
=yes
21327 dynamic_linker
="$host_os dld.so"
21328 shlibpath_var
=LD_LIBRARY_PATH
21329 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21330 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21331 soname_spec
='${libname}${release}${shared_ext}$major'
21332 if test "X$HPUX_IA64_MODE" = X32
; then
21333 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21335 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21337 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21341 hardcode_into_libs
=yes
21342 dynamic_linker
="$host_os dld.sl"
21343 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21344 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21346 soname_spec
='${libname}${release}${shared_ext}$major'
21347 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21348 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21352 dynamic_linker
="$host_os dld.sl"
21353 shlibpath_var
=SHLIB_PATH
21354 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21356 soname_spec
='${libname}${release}${shared_ext}$major'
21359 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21360 postinstall_cmds
='chmod 555 $lib'
21361 # or fails outright, so override atomically:
21362 install_override_mode
=555
21369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21370 soname_spec
='${libname}${release}${shared_ext}$major'
21371 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21372 shlibpath_var
=LD_LIBRARY_PATH
21373 shlibpath_overrides_runpath
=no
21374 hardcode_into_libs
=yes
21377 irix5
* | irix6
* | nonstopux
*)
21379 nonstopux
*) version_type
=nonstopux
;;
21381 if test "$lt_cv_prog_gnu_ld" = yes; then
21389 soname_spec
='${libname}${release}${shared_ext}$major'
21390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21392 irix5
* | nonstopux
*)
21393 libsuff
= shlibsuff
=
21396 case $LD in # libtool.m4 will add one of these switches to LD
21397 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21398 libsuff
= shlibsuff
= libmagic
=32-bit;;
21399 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21400 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21401 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21402 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21403 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21407 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21408 shlibpath_overrides_runpath
=no
21409 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21410 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21411 hardcode_into_libs
=yes
21414 # No shared lib support for Linux oldld, aout, or coff.
21415 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21419 # This must be Linux ELF.
21420 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21424 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21425 soname_spec
='${libname}${release}${shared_ext}$major'
21426 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21427 shlibpath_var
=LD_LIBRARY_PATH
21428 shlibpath_overrides_runpath
=no
21430 # Some binutils ld are patched to set DT_RUNPATH
21431 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21432 $as_echo_n "(cached) " >&6
21434 lt_cv_shlibpath_overrides_runpath
=no
21435 save_LDFLAGS
=$LDFLAGS
21436 save_libdir
=$libdir
21437 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21438 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21440 /* end confdefs.h. */
21450 if ac_fn_cxx_try_link
"$LINENO"; then :
21451 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21452 lt_cv_shlibpath_overrides_runpath
=yes
21455 rm -f core conftest.err conftest.
$ac_objext \
21456 conftest
$ac_exeext conftest.
$ac_ext
21457 LDFLAGS
=$save_LDFLAGS
21458 libdir
=$save_libdir
21462 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21464 # This implies no fast_install, which is unacceptable.
21465 # Some rework will be needed to allow for fast_install
21466 # before this can be enabled.
21467 hardcode_into_libs
=yes
21469 # Append ld.so.conf contents to the search path
21470 if test -f /etc
/ld.so.conf
; then
21471 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' ' '`
21472 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21475 # We used to test for /lib/ld.so.1 and disable shared libraries on
21476 # powerpc, because MkLinux only supported shared libraries with the
21477 # GNU dynamic linker. Since this was broken with cross compilers,
21478 # most powerpc-linux boxes support dynamic linking these days and
21479 # people can always --disable-shared, the test was removed, and we
21480 # assume the GNU/Linux dynamic linker is in use.
21481 dynamic_linker
='GNU/Linux ld.so'
21488 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21489 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21490 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21491 dynamic_linker
='NetBSD (a.out) ld.so'
21493 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21494 soname_spec
='${libname}${release}${shared_ext}$major'
21495 dynamic_linker
='NetBSD ld.elf_so'
21497 shlibpath_var
=LD_LIBRARY_PATH
21498 shlibpath_overrides_runpath
=yes
21499 hardcode_into_libs
=yes
21504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21505 shlibpath_var
=LD_LIBRARY_PATH
21506 shlibpath_overrides_runpath
=yes
21513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21514 soname_spec
='${libname}${release}${shared_ext}$major'
21515 shlibpath_var
=LD_LIBRARY_PATH
21516 shlibpath_overrides_runpath
=no
21517 hardcode_into_libs
=yes
21518 dynamic_linker
='ldqnx.so'
21523 sys_lib_dlsearch_path_spec
="/usr/lib"
21525 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21527 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21528 *) need_version
=no
;;
21530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21531 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21532 shlibpath_var
=LD_LIBRARY_PATH
21533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21535 openbsd2.
[89] | openbsd2.
[89].
*)
21536 shlibpath_overrides_runpath
=no
21539 shlibpath_overrides_runpath
=yes
21543 shlibpath_overrides_runpath
=yes
21548 libname_spec
='$name'
21551 library_names_spec
='$libname${shared_ext} $libname.a'
21552 dynamic_linker
='OS/2 ld.exe'
21553 shlibpath_var
=LIBPATH
21556 osf3
* | osf4
* | osf5
*)
21560 soname_spec
='${libname}${release}${shared_ext}$major'
21561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21562 shlibpath_var
=LD_LIBRARY_PATH
21563 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21564 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21575 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21576 soname_spec
='${libname}${release}${shared_ext}$major'
21577 shlibpath_var
=LD_LIBRARY_PATH
21578 shlibpath_overrides_runpath
=yes
21579 hardcode_into_libs
=yes
21580 # ldd complains unless libraries are executable
21581 postinstall_cmds
='chmod +x $lib'
21586 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21587 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21588 shlibpath_var
=LD_LIBRARY_PATH
21589 shlibpath_overrides_runpath
=yes
21590 if test "$with_gnu_ld" = yes; then
21598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21599 soname_spec
='${libname}${release}${shared_ext}$major'
21600 shlibpath_var
=LD_LIBRARY_PATH
21601 case $host_vendor in
21603 shlibpath_overrides_runpath
=no
21605 runpath_var
=LD_RUN_PATH
21613 shlibpath_overrides_runpath
=no
21614 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21620 if test -d /usr
/nec
;then
21622 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21623 soname_spec
='$libname${shared_ext}.$major'
21624 shlibpath_var
=LD_LIBRARY_PATH
21628 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21629 version_type
=freebsd-elf
21632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21633 soname_spec
='${libname}${release}${shared_ext}$major'
21634 shlibpath_var
=LD_LIBRARY_PATH
21635 shlibpath_overrides_runpath
=yes
21636 hardcode_into_libs
=yes
21637 if test "$with_gnu_ld" = yes; then
21638 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21640 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21643 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21647 sys_lib_dlsearch_path_spec
='/usr/lib'
21651 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21655 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21656 shlibpath_var
=LD_LIBRARY_PATH
21657 shlibpath_overrides_runpath
=no
21658 hardcode_into_libs
=yes
21663 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21664 soname_spec
='${libname}${release}${shared_ext}$major'
21665 shlibpath_var
=LD_LIBRARY_PATH
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21673 $as_echo "$dynamic_linker" >&6; }
21674 test "$dynamic_linker" = no
&& can_build_shared
=no
21676 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21677 if test "$GCC" = yes; then
21678 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21681 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21682 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21684 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21685 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21726 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21727 hardcode_action_CXX
=
21728 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21729 test -n "$runpath_var_CXX" ||
21730 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21732 # We can hardcode non-existent directories.
21733 if test "$hardcode_direct_CXX" != no
&&
21734 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21735 # have to relink, otherwise we might link with an installed library
21736 # when we should be linking with a yet-to-be-installed one
21737 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21738 test "$hardcode_minus_L_CXX" != no
; then
21739 # Linking always hardcodes the temporary library directory.
21740 hardcode_action_CXX
=relink
21742 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21743 hardcode_action_CXX
=immediate
21746 # We cannot hardcode anything, or else we can only hardcode existing
21748 hardcode_action_CXX
=unsupported
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21751 $as_echo "$hardcode_action_CXX" >&6; }
21753 if test "$hardcode_action_CXX" = relink ||
21754 test "$inherit_rpath_CXX" = yes; then
21755 # Fast installation is not supported
21756 enable_fast_install
=no
21757 elif test "$shlibpath_overrides_runpath" = yes ||
21758 test "$enable_shared" = no
; then
21759 # Fast installation is not necessary
21760 enable_fast_install
=needless
21769 fi # test -n "$compiler"
21775 with_gnu_ld
=$lt_save_with_gnu_ld
21776 lt_cv_path_LDCXX
=$lt_cv_path_LD
21777 lt_cv_path_LD
=$lt_save_path_LD
21778 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21779 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21780 fi # test "$_lt_caught_CXX_error" != yes
21783 ac_cpp
='$CXXCPP $CPPFLAGS'
21784 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21785 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21786 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21803 # Only expand once:
21809 # Identify the assembler which will work hand-in-glove with the newly
21810 # built GCC, so that we can examine its features. This is the assembler
21811 # which will be driven by the driver program.
21813 # If build != host, and we aren't building gas in-tree, we identify a
21814 # build->target assembler and hope that it will have the same features
21815 # as the host->target assembler we'll be using.
21816 gcc_cv_gas_major_version
=
21817 gcc_cv_gas_minor_version
=
21818 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21820 if test "${gcc_cv_as+set}" = set; then :
21824 if test -x "$DEFAULT_ASSEMBLER"; then
21825 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21826 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21827 && test -f ..
/gas
/Makefile \
21828 && test x
$build = x
$host; then
21829 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21830 elif test -x as
$build_exeext; then
21831 # Build using assembler in the current directory.
21832 gcc_cv_as
=.
/as
$build_exeext
21833 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21834 gcc_cv_as
="$AS_FOR_TARGET"
21836 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21837 set dummy
$AS_FOR_TARGET; ac_word
=$2
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21839 $as_echo_n "checking for $ac_word... " >&6; }
21840 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21845 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21849 for as_dir
in $PATH
21852 test -z "$as_dir" && as_dir
=.
21853 for ac_exec_ext
in '' $ac_executable_extensions; do
21854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21855 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21866 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21867 if test -n "$gcc_cv_as"; then
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21869 $as_echo "$gcc_cv_as" >&6; }
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21872 $as_echo "no" >&6; }
21879 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21881 case "$ORIGINAL_AS_FOR_TARGET" in
21882 .
/as | .
/as
$build_exeext) ;;
21883 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21888 $as_echo_n "checking what assembler to use... " >&6; }
21889 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21890 # Single tree build which includes gas. We want to prefer it
21891 # over whatever linker top-level may have detected, since
21892 # we'll use what we're building after installation anyway.
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21894 $as_echo "newly built gas" >&6; }
21896 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21897 for f
in $gcc_cv_as_bfd_srcdir/configure \
21898 $gcc_cv_as_gas_srcdir/configure \
21899 $gcc_cv_as_gas_srcdir/configure.ac \
21900 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21901 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21902 if test x
$gcc_cv_gas_version != x
; then
21906 case $gcc_cv_gas_version in
21908 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21910 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21911 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21912 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21913 case $gcc_cv_gas_patch_version in
21914 "") gcc_cv_gas_patch_version
="0" ;;
21916 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21917 + $gcc_cv_gas_minor_version \) \* 1000 \
21918 + $gcc_cv_gas_patch_version`
21920 in_tree_gas_is_elf
=no
21921 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21922 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21923 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21925 in_tree_gas_is_elf
=yes
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21929 $as_echo "$gcc_cv_as" >&6; }
21934 # Check whether --enable-ld was given.
21935 if test "${enable_ld+set}" = set; then :
21936 enableval
=$enable_ld; case "${enableval}" in
21944 install_gold_as_default
=no
21945 # Check whether --enable-gold was given.
21946 if test "${enable_gold+set}" = set; then :
21947 enableval
=$enable_gold; case "${enableval}" in
21949 install_gold_as_default
=yes
21952 if test x
${default_ld} != x
; then
21953 install_gold_as_default
=yes
21959 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21965 # Identify the linker which will work hand-in-glove with the newly
21966 # built GCC, so that we can examine its features. This is the linker
21967 # which will be driven by the driver program.
21969 # If build != host, and we aren't building gas in-tree, we identify a
21970 # build->target linker and hope that it will have the same features
21971 # as the host->target linker we'll be using.
21972 gcc_cv_gld_major_version
=
21973 gcc_cv_gld_minor_version
=
21974 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21975 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21976 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21978 if test "${gcc_cv_ld+set}" = set; then :
21982 if test -x "$DEFAULT_LINKER"; then
21983 gcc_cv_ld
="$DEFAULT_LINKER"
21984 elif test $install_gold_as_default = yes \
21985 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21986 && test -f ..
/gold
/Makefile \
21987 && test x
$build = x
$host; then
21988 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21989 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21990 && test -f ..
/ld
/Makefile \
21991 && test x
$build = x
$host; then
21992 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21993 elif test -x collect-ld
$build_exeext; then
21994 # Build using linker in the current directory.
21995 gcc_cv_ld
=.
/collect-ld
$build_exeext
21996 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21997 gcc_cv_ld
="$LD_FOR_TARGET"
21999 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22000 set dummy
$LD_FOR_TARGET; ac_word
=$2
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22002 $as_echo_n "checking for $ac_word... " >&6; }
22003 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22004 $as_echo_n "(cached) " >&6
22008 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22012 for as_dir
in $PATH
22015 test -z "$as_dir" && as_dir
=.
22016 for ac_exec_ext
in '' $ac_executable_extensions; do
22017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22018 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22029 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22030 if test -n "$gcc_cv_ld"; then
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22032 $as_echo "$gcc_cv_ld" >&6; }
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22035 $as_echo "no" >&6; }
22042 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22043 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22044 # if the PLUGIN_LD is set ld-new, just have it as ld
22045 # as that is the installed named.
22046 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22047 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22048 PLUGIN_LD_SUFFIX
=ld
22051 # Check whether --with-plugin-ld was given.
22052 if test "${with_plugin_ld+set}" = set; then :
22053 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22054 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22055 PLUGIN_LD_SUFFIX
="$withval"
22061 cat >>confdefs.h
<<_ACEOF
22062 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22066 # Check to see if we are using gold instead of ld
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22068 $as_echo_n "checking whether we are using gold... " >&6; }
22070 if test x
$gcc_cv_ld != x
; then
22071 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22072 |
grep "GNU gold" > /dev
/null
; then
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22077 $as_echo "$ld_is_gold" >&6; }
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22080 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22081 # Check to see if default ld is not gold, but gold is
22082 # available and has support for split stack. If gcc was configured
22083 # with gold then no checking is done.
22085 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22087 # For platforms other than powerpc64*, enable as appropriate.
22089 gold_non_default
=no
22090 ld_gold
=`which ${gcc_cv_ld}.gold`
22091 # Make sure this gold has minimal split stack support
22092 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22093 ld_vers
=`$ld_gold --version | sed 1q`
22094 gold_vers
=`echo $ld_vers | sed -n \
22095 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22097 # check that the gold version contains the complete split stack support
22098 # on powerpc64 big and little endian
22100 case "$gold_vers" in
22101 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22103 *) gold_non_default
=no
22109 if test $gold_non_default = yes; then
22111 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22116 $as_echo "$gold_non_default" >&6; }
22118 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22120 case "$ORIGINAL_LD_FOR_TARGET" in
22121 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22122 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22127 $as_echo_n "checking what linker to use... " >&6; }
22128 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22129 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22130 # Single tree build which includes ld. We want to prefer it
22131 # over whatever linker top-level may have detected, since
22132 # we'll use what we're building after installation anyway.
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22134 $as_echo "newly built ld" >&6; }
22136 in_tree_ld_is_elf
=no
22137 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22138 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22139 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22140 in_tree_ld_is_elf
=yes
22141 elif test "$ld_is_gold" = yes; then
22142 in_tree_ld_is_elf
=yes
22144 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
22146 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22147 if test x
$gcc_cv_gld_version != x
; then
22151 case $gcc_cv_gld_version in
22153 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22155 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22156 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22157 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22158 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22161 $as_echo "$gcc_cv_ld" >&6; }
22163 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22164 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22165 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22171 # Figure out what nm we will be using.
22172 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22173 if test "${gcc_cv_nm+set}" = set; then :
22177 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22178 && test -f ..
/binutils
/Makefile \
22179 && test x
$build = x
$host; then
22180 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22181 elif test -x nm
$build_exeext; then
22182 gcc_cv_nm
=.
/nm
$build_exeext
22183 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22184 gcc_cv_nm
="$NM_FOR_TARGET"
22186 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22187 set dummy
$NM_FOR_TARGET; ac_word
=$2
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22189 $as_echo_n "checking for $ac_word... " >&6; }
22190 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22191 $as_echo_n "(cached) " >&6
22195 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22199 for as_dir
in $PATH
22202 test -z "$as_dir" && as_dir
=.
22203 for ac_exec_ext
in '' $ac_executable_extensions; do
22204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22205 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22216 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22217 if test -n "$gcc_cv_nm"; then
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22219 $as_echo "$gcc_cv_nm" >&6; }
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22222 $as_echo "no" >&6; }
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22230 $as_echo_n "checking what nm to use... " >&6; }
22231 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22232 # Single tree build which includes binutils.
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22234 $as_echo "newly built nm" >&6; }
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22238 $as_echo "$gcc_cv_nm" >&6; }
22242 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22244 case "$ORIGINAL_NM_FOR_TARGET" in
22245 .
/nm | .
/nm
$build_exeext) ;;
22246 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22251 # Figure out what objdump we will be using.
22252 if test "${gcc_cv_objdump+set}" = set; then :
22256 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22257 && test -f ..
/binutils
/Makefile \
22258 && test x
$build = x
$host; then
22259 # Single tree build which includes binutils.
22260 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22261 elif test -x objdump
$build_exeext; then
22262 gcc_cv_objdump
=.
/objdump
$build_exeext
22263 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22264 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22266 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22267 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22269 $as_echo_n "checking for $ac_word... " >&6; }
22270 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22271 $as_echo_n "(cached) " >&6
22273 case $gcc_cv_objdump in
22275 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22279 for as_dir
in $PATH
22282 test -z "$as_dir" && as_dir
=.
22283 for ac_exec_ext
in '' $ac_executable_extensions; do
22284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22285 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22296 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22297 if test -n "$gcc_cv_objdump"; then
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22299 $as_echo "$gcc_cv_objdump" >&6; }
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22302 $as_echo "no" >&6; }
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22310 $as_echo_n "checking what objdump to use... " >&6; }
22311 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22312 # Single tree build which includes binutils.
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22314 $as_echo "newly built objdump" >&6; }
22315 elif test x
$gcc_cv_objdump = x
; then
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22317 $as_echo "not found" >&6; }
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22320 $as_echo "$gcc_cv_objdump" >&6; }
22323 # Figure out what readelf we will be using.
22324 if test "${gcc_cv_readelf+set}" = set; then :
22328 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22329 && test -f ..
/binutils
/Makefile \
22330 && test x
$build = x
$host; then
22331 # Single tree build which includes binutils.
22332 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22333 elif test -x readelf
$build_exeext; then
22334 gcc_cv_readelf
=.
/readelf
$build_exeext
22335 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22336 gcc_cv_readelf
="$READELF_FOR_TARGET"
22338 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22339 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22341 $as_echo_n "checking for $ac_word... " >&6; }
22342 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22343 $as_echo_n "(cached) " >&6
22345 case $gcc_cv_readelf in
22347 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22351 for as_dir
in $PATH
22354 test -z "$as_dir" && as_dir
=.
22355 for ac_exec_ext
in '' $ac_executable_extensions; do
22356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22357 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22368 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22369 if test -n "$gcc_cv_readelf"; then
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22371 $as_echo "$gcc_cv_readelf" >&6; }
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22374 $as_echo "no" >&6; }
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22382 $as_echo_n "checking what readelf to use... " >&6; }
22383 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22384 # Single tree build which includes binutils.
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22386 $as_echo "newly built readelf" >&6; }
22387 elif test x
$gcc_cv_readelf = x
; then
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22389 $as_echo "not found" >&6; }
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22392 $as_echo "$gcc_cv_readelf" >&6; }
22395 # Figure out what assembler alignment features are present.
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22397 $as_echo_n "checking assembler flags... " >&6; }
22398 if test "${gcc_cv_as_flags+set}" = set; then :
22399 $as_echo_n "(cached) " >&6
22402 i
[34567]86-*-linux*)
22403 gcc_cv_as_flags
=--32
22405 x86_64-
*-linux-gnux32)
22406 gcc_cv_as_flags
=--x32
22409 gcc_cv_as_flags
=--64
22411 powerpc
*-*-darwin*)
22412 gcc_cv_as_flags
="-arch ppc"
22415 gcc_cv_as_flags
=" "
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22420 $as_echo "$gcc_cv_as_flags" >&6; }
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22423 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22424 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22425 $as_echo_n "(cached) " >&6
22427 gcc_cv_as_balign_and_p2align
=no
22428 if test $in_tree_gas = yes; then
22429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22430 then gcc_cv_as_balign_and_p2align
=yes
22432 elif test x
$gcc_cv_as != x
; then
22433 $as_echo '.balign 4
22434 .p2align 2' > conftest.s
22435 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22437 (eval $ac_try) 2>&5
22439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22440 test $ac_status = 0; }; }
22442 gcc_cv_as_balign_and_p2align
=yes
22444 echo "configure: failed program was" >&5
22447 rm -f conftest.o conftest.s
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22451 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22452 if test $gcc_cv_as_balign_and_p2align = yes; then
22454 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22460 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22461 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22462 $as_echo_n "(cached) " >&6
22464 gcc_cv_as_max_skip_p2align
=no
22465 if test $in_tree_gas = yes; then
22466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22467 then gcc_cv_as_max_skip_p2align
=yes
22469 elif test x
$gcc_cv_as != x
; then
22470 $as_echo '.p2align 4,,7' > conftest.s
22471 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22473 (eval $ac_try) 2>&5
22475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22476 test $ac_status = 0; }; }
22478 gcc_cv_as_max_skip_p2align
=yes
22480 echo "configure: failed program was" >&5
22483 rm -f conftest.o conftest.s
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22487 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22488 if test $gcc_cv_as_max_skip_p2align = yes; then
22490 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22496 $as_echo_n "checking assembler for .literal16... " >&6; }
22497 if test "${gcc_cv_as_literal16+set}" = set; then :
22498 $as_echo_n "(cached) " >&6
22500 gcc_cv_as_literal16
=no
22501 if test $in_tree_gas = yes; then
22502 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22503 then gcc_cv_as_literal16
=yes
22505 elif test x
$gcc_cv_as != x
; then
22506 $as_echo '.literal16' > conftest.s
22507 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22509 (eval $ac_try) 2>&5
22511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22512 test $ac_status = 0; }; }
22514 gcc_cv_as_literal16
=yes
22516 echo "configure: failed program was" >&5
22519 rm -f conftest.o conftest.s
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22523 $as_echo "$gcc_cv_as_literal16" >&6; }
22524 if test $gcc_cv_as_literal16 = yes; then
22526 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22532 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22533 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22534 $as_echo_n "(cached) " >&6
22536 gcc_cv_as_subsection_m1
=no
22537 if test $in_tree_gas = yes; then
22538 if test $in_tree_gas_is_elf = yes \
22539 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22540 then gcc_cv_as_subsection_m1
=yes
22542 elif test x
$gcc_cv_as != x
; then
22543 $as_echo 'conftest_label1: .word 0
22545 conftest_label2: .word 0
22546 .previous' > conftest.s
22547 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22549 (eval $ac_try) 2>&5
22551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22552 test $ac_status = 0; }; }
22554 if test x
$gcc_cv_nm != x
; then
22555 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22556 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22557 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22559 else gcc_cv_as_subsection_m1
=yes
22561 rm -f conftest.nm1 conftest.nm2
22564 echo "configure: failed program was" >&5
22567 rm -f conftest.o conftest.s
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22571 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22572 if test $gcc_cv_as_subsection_m1 = yes; then
22574 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22580 $as_echo_n "checking assembler for .weak... " >&6; }
22581 if test "${gcc_cv_as_weak+set}" = set; then :
22582 $as_echo_n "(cached) " >&6
22585 if test $in_tree_gas = yes; then
22586 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22587 then gcc_cv_as_weak
=yes
22589 elif test x
$gcc_cv_as != x
; then
22590 $as_echo ' .weak foobar' > conftest.s
22591 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22593 (eval $ac_try) 2>&5
22595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22596 test $ac_status = 0; }; }
22600 echo "configure: failed program was" >&5
22603 rm -f conftest.o conftest.s
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22607 $as_echo "$gcc_cv_as_weak" >&6; }
22608 if test $gcc_cv_as_weak = yes; then
22610 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22616 $as_echo_n "checking assembler for .weakref... " >&6; }
22617 if test "${gcc_cv_as_weakref+set}" = set; then :
22618 $as_echo_n "(cached) " >&6
22620 gcc_cv_as_weakref
=no
22621 if test $in_tree_gas = yes; then
22622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22623 then gcc_cv_as_weakref
=yes
22625 elif test x
$gcc_cv_as != x
; then
22626 $as_echo ' .weakref foobar, barfnot' > conftest.s
22627 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22629 (eval $ac_try) 2>&5
22631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22632 test $ac_status = 0; }; }
22634 gcc_cv_as_weakref
=yes
22636 echo "configure: failed program was" >&5
22639 rm -f conftest.o conftest.s
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22643 $as_echo "$gcc_cv_as_weakref" >&6; }
22644 if test $gcc_cv_as_weakref = yes; then
22646 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22652 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22653 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22654 $as_echo_n "(cached) " >&6
22656 gcc_cv_as_nsubspa_comdat
=no
22657 if test $in_tree_gas = yes; then
22658 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22659 then gcc_cv_as_nsubspa_comdat
=yes
22661 elif test x
$gcc_cv_as != x
; then
22662 $as_echo ' .SPACE $TEXT$
22663 .NSUBSPA $CODE$,COMDAT' > conftest.s
22664 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22666 (eval $ac_try) 2>&5
22668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22669 test $ac_status = 0; }; }
22671 gcc_cv_as_nsubspa_comdat
=yes
22673 echo "configure: failed program was" >&5
22676 rm -f conftest.o conftest.s
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22680 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22681 if test $gcc_cv_as_nsubspa_comdat = yes; then
22683 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22688 # .hidden needs to be supported in both the assembler and the linker,
22689 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22690 # This is irritatingly difficult to feature test for; we have to check the
22691 # date string after the version number. If we've got an in-tree
22692 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22694 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22695 case "${target}" in
22697 conftest_s
=' .globl foobar,hidden'
22700 conftest_s
=' .hidden foobar
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22705 $as_echo_n "checking assembler for .hidden... " >&6; }
22706 if test "${gcc_cv_as_hidden+set}" = set; then :
22707 $as_echo_n "(cached) " >&6
22709 gcc_cv_as_hidden
=no
22710 if test $in_tree_gas = yes; then
22711 if test $in_tree_gas_is_elf = yes \
22712 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22713 then gcc_cv_as_hidden
=yes
22715 elif test x
$gcc_cv_as != x
; then
22716 $as_echo "$conftest_s" > conftest.s
22717 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22719 (eval $ac_try) 2>&5
22721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22722 test $ac_status = 0; }; }
22724 gcc_cv_as_hidden
=yes
22726 echo "configure: failed program was" >&5
22729 rm -f conftest.o conftest.s
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22733 $as_echo "$gcc_cv_as_hidden" >&6; }
22736 case "${target}" in
22738 # Darwin as has some visibility support, though with a different syntax.
22739 gcc_cv_as_hidden
=yes
22743 # gnu_indirect_function type is an extension proposed at
22744 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22745 # selection of function implementation
22746 # Check whether --enable-gnu-indirect-function was given.
22747 if test "${enable_gnu_indirect_function+set}" = set; then :
22748 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22750 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22751 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22754 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22758 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22760 cat >>confdefs.h
<<_ACEOF
22761 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22766 if test $in_tree_ld != yes ; then
22767 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22768 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22769 if test x
"$ld_is_gold" = xyes
; then
22770 # GNU gold --version looks like this:
22772 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22774 # We extract the binutils version which is more familiar and specific
22775 # than the gold version.
22776 ld_vers
=`echo $ld_ver | sed -n \
22777 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22779 # GNU ld --version looks like this:
22781 # GNU ld (GNU Binutils) 2.21.51.20110225
22782 ld_vers
=`echo $ld_ver | sed -n \
22783 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22785 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'`
22786 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22787 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22788 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22790 case "${target}" in
22792 # Solaris 2 ld -V output looks like this for a regular version:
22794 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22796 # but test versions add stuff at the end:
22798 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22800 # In Solaris 11.4, this was changed to
22802 # ld: Solaris ELF Utilities: 11.4-1.3123
22804 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22805 # numbers can be used in ld.so.1 feature checks even if a different
22806 # linker is configured.
22807 ld_ver
=`$gcc_cv_ld -V 2>&1`
22808 if echo "$ld_ver" |
$EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev
/null
; then
22809 ld_vers
=`echo $ld_ver | sed -n \
22810 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22811 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22812 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22820 $as_echo_n "checking linker for .hidden support... " >&6; }
22821 if test "${gcc_cv_ld_hidden+set}" = set; then :
22822 $as_echo_n "(cached) " >&6
22824 if test $in_tree_ld = yes ; then
22825 gcc_cv_ld_hidden
=no
22826 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 \
22827 && test $in_tree_ld_is_elf = yes; then
22828 gcc_cv_ld_hidden
=yes
22831 gcc_cv_ld_hidden
=yes
22832 if test x
"$ld_is_gold" = xyes
; then
22834 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22835 case "${target}" in
22836 mmix-knuth-mmixware
)
22837 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22838 gcc_cv_ld_hidden
=no
22841 if test 0"$ld_date" -lt 20020404; then
22842 if test -n "$ld_date"; then
22843 # If there was date string, but was earlier than 2002-04-04, fail
22844 gcc_cv_ld_hidden
=no
22845 elif test -z "$ld_vers"; then
22846 # If there was no date string nor ld version number, something is wrong
22847 gcc_cv_ld_hidden
=no
22849 test -z "$ld_vers_patch" && ld_vers_patch
=0
22850 if test "$ld_vers_major" -lt 2; then
22851 gcc_cv_ld_hidden
=no
22852 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22853 gcc_cv_ld_hidden
="no"
22854 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22855 gcc_cv_ld_hidden
=no
22860 case "${target}" in
22862 gcc_cv_ld_hidden
=yes
22865 # Darwin ld has some visibility support.
22866 gcc_cv_ld_hidden
=yes
22868 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22869 gcc_cv_ld_hidden
=yes
22871 *-*-solaris2.1
[0-9]*)
22872 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22873 # .symbolic was only added in Solaris 9 12/02.
22874 gcc_cv_ld_hidden
=yes
22877 gcc_cv_ld_hidden
=no
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22884 $as_echo "$gcc_cv_ld_hidden" >&6; }
22885 libgcc_visibility
=no
22888 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22889 libgcc_visibility
=yes
22891 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22896 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22897 gcc_cv_ld_ro_rw_mix
=unknown
22898 if test $in_tree_ld = yes ; then
22899 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 \
22900 && test $in_tree_ld_is_elf = yes; then
22901 gcc_cv_ld_ro_rw_mix
=read-write
22903 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22904 echo '.section myfoosect, "a"' > conftest1.s
22905 echo '.section myfoosect, "aw"' > conftest2.s
22906 echo '.byte 1' >> conftest2.s
22907 echo '.section myfoosect, "a"' > conftest3.s
22908 echo '.byte 0' >> conftest3.s
22909 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22910 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22911 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22912 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22913 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22914 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22915 | sed -e '/myfoosect/!d' -e N`
22916 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22917 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22918 gcc_cv_ld_ro_rw_mix
=read-only
22920 gcc_cv_ld_ro_rw_mix
=read-write
22924 rm -f conftest.
* conftest
[123].
*
22926 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22928 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22932 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22934 # Check whether --enable-initfini-array was given.
22935 if test "${enable_initfini_array+set}" = set; then :
22936 enableval
=$enable_initfini_array;
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22940 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22941 if test "${gcc_cv_initfini_array+set}" = set; then :
22942 $as_echo_n "(cached) " >&6
22944 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22945 case "${target}" in
22947 if test "$cross_compiling" = yes; then :
22948 gcc_cv_initfini_array
=no
22950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22951 /* end confdefs.h. */
22954 #error Not an ELF OS
22956 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22957 if it can be used. */
22959 int main (void) { return x; }
22960 int foo (void) { x = 0; }
22961 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22964 if ac_fn_cxx_try_run
"$LINENO"; then :
22965 gcc_cv_initfini_array
=yes
22967 gcc_cv_initfini_array
=no
22969 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22970 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22974 gcc_cv_initfini_array
=no
22975 if test $in_tree_ld = yes ; then
22976 if test "$gcc_cv_gld_major_version" -eq 2 \
22977 -a "$gcc_cv_gld_minor_version" -ge 22 \
22978 -o "$gcc_cv_gld_major_version" -gt 2 \
22979 && test $in_tree_ld_is_elf = yes; then
22980 gcc_cv_initfini_array
=yes
22982 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22983 case $target:$gas in
22986 sh_type
='%progbits'
22988 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
22990 sh_type
='@progbits'
22992 sparc
*-*-solaris2*:no
)
22994 sh_type
='#progbits'
22998 case "$target:$gnu_ld" in
23000 cat > conftest.s
<<EOF
23001 .section .dtors,$sh_flags,$sh_type
23003 .byte 'A', 'A', 'A', 'A'
23004 .section .ctors,$sh_flags,$sh_type
23006 .byte 'B', 'B', 'B', 'B'
23007 .section .fini_array.65530,$sh_flags,$sh_type
23009 .byte 'C', 'C', 'C', 'C'
23010 .section .init_array.65530,$sh_flags,$sh_type
23012 .byte 'D', 'D', 'D', 'D'
23013 .section .dtors.64528,$sh_flags,$sh_type
23015 .byte 'E', 'E', 'E', 'E'
23016 .section .ctors.64528,$sh_flags,$sh_type
23018 .byte 'F', 'F', 'F', 'F'
23019 .section .fini_array.01005,$sh_flags,$sh_type
23021 .byte 'G', 'G', 'G', 'G'
23022 .section .init_array.01005,$sh_flags,$sh_type
23024 .byte 'H', 'H', 'H', 'H'
23029 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23030 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23031 && $gcc_cv_objdump -s -j .init_array conftest \
23032 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23033 && $gcc_cv_objdump -s -j .fini_array conftest \
23034 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23035 gcc_cv_initfini_array
=yes
23039 # When Solaris ld added constructor priority support, it was
23040 # decided to only handle .init_array.N/.fini_array.N since
23041 # there was no need for backwards compatibility with
23042 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23043 # sections with correct execution order resp. to
23044 # .init_array/.fini_array, while gld merges them into
23045 # .init_array/.fini_array.
23046 cat > conftest.s
<<EOF
23047 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23049 .byte 'C', 'C', 'C', 'C'
23050 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23052 .byte 'D', 'D', 'D', 'D'
23053 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23055 .byte 'G', 'G', 'G', 'G'
23056 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23058 .byte 'H', 'H', 'H', 'H'
23063 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23064 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23065 && $gcc_cv_objdump -s -j .init_array conftest \
23066 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23067 && $gcc_cv_objdump -s -j .fini_array conftest \
23068 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23069 gcc_cv_initfini_array
=yes
23073 rm -f conftest conftest.
*
23075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23076 /* end confdefs.h. */
23079 # error Not an ELF OS
23081 #include <stdlib.h>
23082 #if defined __GLIBC_PREREQ
23083 # if __GLIBC_PREREQ (2, 4)
23085 # error GLIBC 2.4 required
23088 # if defined __sun__ && defined __svr4__
23089 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23091 # error The C library not known to support .init_array/.fini_array
23096 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23099 gcc_cv_initfini_array
=no
23101 rm -f conftest.err conftest.
$ac_ext;;
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23105 $as_echo_n "checking cross compile... guessing... " >&6; }
23106 gcc_cv_initfini_array
=no
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23110 $as_echo "$gcc_cv_initfini_array" >&6; }
23111 enable_initfini_array
=$gcc_cv_initfini_array
23116 cat >>confdefs.h
<<_ACEOF
23117 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23122 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23124 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23125 if test "${gcc_cv_as_leb128+set}" = set; then :
23126 $as_echo_n "(cached) " >&6
23128 gcc_cv_as_leb128
=no
23129 if test $in_tree_gas = yes; then
23130 if test $in_tree_gas_is_elf = yes \
23131 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23132 then gcc_cv_as_leb128
=yes
23134 elif test x
$gcc_cv_as != x
; then
23141 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23143 (eval $ac_try) 2>&5
23145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23146 test $ac_status = 0; }; }
23148 # GAS versions before 2.11 do not support uleb128,
23149 # despite appearing to.
23150 # ??? There exists an elf-specific test that will crash
23151 # the assembler. Perhaps it's better to figure out whether
23152 # arbitrary sections are supported and try the test.
23153 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23154 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23155 as_vers
=`echo $as_ver | sed -n \
23156 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23157 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23158 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23159 if test $as_major -eq 2 && test $as_minor -lt 11
23161 else gcc_cv_as_leb128
=yes
23165 echo "configure: failed program was" >&5
23168 rm -f conftest.o conftest.s
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23172 $as_echo "$gcc_cv_as_leb128" >&6; }
23173 if test $gcc_cv_as_leb128 = yes; then
23175 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23178 if test $gcc_cv_as_leb128 != yes; then
23180 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23184 # Check if we have assembler support for unwind directives.
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23186 $as_echo_n "checking assembler for cfi directives... " >&6; }
23187 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23188 $as_echo_n "(cached) " >&6
23190 gcc_cv_as_cfi_directive
=no
23191 if test x
$gcc_cv_as != x
; then
23197 .cfi_escape 1, 2, 3, 4, 5
23198 .cfi_endproc' > conftest.s
23199 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23201 (eval $ac_try) 2>&5
23203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23204 test $ac_status = 0; }; }
23208 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23209 # read-only and read-write sections, we need to make sure that the
23210 # assembler used emits read-write .eh_frame sections.
23211 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23212 if test "x$gcc_cv_objdump" != x
; then
23213 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23214 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23215 gcc_cv_as_cfi_directive
=no
23218 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23219 # On Solaris/x86, make sure that GCC and assembler agree on using
23220 # read-only .eh_frame sections for 64-bit.
23221 if test x
$gas = xyes
; then
23222 as_ix86_64_opt
="--64"
23224 as_ix86_64_opt
="-xarch=amd64"
23226 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23227 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23228 sed -e /.eh_frame
/!d
-e N | \
23229 grep READONLY
> /dev
/null
; then
23230 gcc_cv_as_cfi_directive
=yes
23232 gcc_cv_as_cfi_directive
=no
23236 gcc_cv_as_cfi_directive
=yes
23241 # no objdump, err on the side of caution
23242 gcc_cv_as_cfi_directive
=no
23245 gcc_cv_as_cfi_directive
=yes
23249 gcc_cv_as_cfi_directive
=yes
23253 echo "configure: failed program was" >&5
23256 rm -f conftest.o conftest.s
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23260 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23263 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23265 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23266 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23267 $as_echo_n "(cached) " >&6
23269 gcc_cv_as_cfi_advance_working
=no
23270 if test x
$gcc_cv_as != x
; then
23273 .cfi_adjust_cfa_offset 64
23275 .cfi_adjust_cfa_offset 128
23276 .cfi_endproc' > conftest.s
23277 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23279 (eval $ac_try) 2>&5
23281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23282 test $ac_status = 0; }; }
23285 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23286 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23287 gcc_cv_as_cfi_advance_working
=yes
23291 echo "configure: failed program was" >&5
23294 rm -f conftest.o conftest.s
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23298 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23302 # no objdump, err on the side of caution
23303 gcc_cv_as_cfi_advance_working
=no
23307 cat >>confdefs.h
<<_ACEOF
23308 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23309 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23315 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23316 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23317 $as_echo_n "(cached) " >&6
23319 gcc_cv_as_cfi_personality_directive
=no
23320 if test x
$gcc_cv_as != x
; then
23323 .cfi_personality 0, symbol
23324 .cfi_endproc' > conftest.s
23325 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23327 (eval $ac_try) 2>&5
23329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23330 test $ac_status = 0; }; }
23332 gcc_cv_as_cfi_personality_directive
=yes
23334 echo "configure: failed program was" >&5
23337 rm -f conftest.o conftest.s
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23341 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23345 cat >>confdefs.h
<<_ACEOF
23346 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23347 then echo 1; else echo 0; fi`
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23352 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23353 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23354 $as_echo_n "(cached) " >&6
23356 gcc_cv_as_cfi_sections_directive
=no
23357 if test x
$gcc_cv_as != x
; then
23359 .cfi_sections .debug_frame, .eh_frame
23361 .cfi_endproc' > conftest.s
23362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23364 (eval $ac_try) 2>&5
23366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23367 test $ac_status = 0; }; }
23370 win32 | pe | cygwin
* | mingw32
*)
23371 # Need to check that we generated the correct relocation for the
23372 # .debug_frame section. This was fixed for binutils 2.21.
23373 gcc_cv_as_cfi_sections_directive
=no
23374 if test "x$gcc_cv_objdump" != x
; then
23375 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23376 grep secrel
> /dev
/null
; then
23377 gcc_cv_as_cfi_sections_directive
=yes
23382 gcc_cv_as_cfi_sections_directive
=yes
23386 echo "configure: failed program was" >&5
23389 rm -f conftest.o conftest.s
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23393 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23398 cat >>confdefs.h
<<_ACEOF
23399 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23400 then echo 1; else echo 0; fi`
23404 # GAS versions up to and including 2.11.0 may mis-optimize
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23407 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23408 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23409 $as_echo_n "(cached) " >&6
23411 gcc_cv_as_eh_frame
=no
23412 if test $in_tree_gas = yes; then
23413 if test $in_tree_gas_is_elf = yes \
23414 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23415 then gcc_cv_as_eh_frame
=yes
23417 elif test x
$gcc_cv_as != x
; then
23424 .section .eh_frame,"aw",@progbits
23426 .4byte .LECIE1-.LSCIE1
23440 .4byte .LEFDE1-.LASFDE1
23442 .4byte .LASFDE1-__FRAME_BEGIN__
23449 .LEFDE1:' > conftest.s
23450 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23452 (eval $ac_try) 2>&5
23454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23455 test $ac_status = 0; }; }
23457 cat > conftest.lit
<<EOF
23458 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23459 0010 01000000 12000000 18000000 00000000 ................
23460 0020 08000000 04080000 0044 .........D
23462 cat > conftest.big
<<EOF
23463 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23464 0010 00000001 00000012 00000018 00000000 ................
23465 0020 00000008 04000000 0844 .........D
23467 # If the assembler didn't choke, and we can objdump,
23468 # and we got the correct data, then succeed.
23469 # The text in the here-document typically retains its unix-style line
23470 # endings, while the output of objdump will use host line endings.
23471 # Therefore, use diff -b for the comparisons.
23472 if test x
$gcc_cv_objdump != x \
23473 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23474 |
tail -3 > conftest.got \
23475 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23476 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23478 gcc_cv_as_eh_frame
=yes
23479 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23481 (eval $ac_try) 2>&5
23483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23484 test $ac_status = 0; }; }; then
23485 gcc_cv_as_eh_frame
=buggy
23487 # Uh oh, what do we do now?
23488 gcc_cv_as_eh_frame
=no
23491 echo "configure: failed program was" >&5
23494 rm -f conftest.o conftest.s
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23498 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23502 if test $gcc_cv_as_eh_frame = buggy
; then
23504 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23509 $as_echo_n "checking assembler for section merging support... " >&6; }
23510 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23511 $as_echo_n "(cached) " >&6
23513 gcc_cv_as_shf_merge
=no
23514 if test $in_tree_gas = yes; then
23515 if test $in_tree_gas_is_elf = yes \
23516 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23517 then gcc_cv_as_shf_merge
=yes
23519 elif test x
$gcc_cv_as != x
; then
23520 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23521 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23523 (eval $ac_try) 2>&5
23525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23526 test $ac_status = 0; }; }
23528 gcc_cv_as_shf_merge
=yes
23530 echo "configure: failed program was" >&5
23533 rm -f conftest.o conftest.s
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23537 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23540 if test $gcc_cv_as_shf_merge = no
; then
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23542 $as_echo_n "checking assembler for section merging support... " >&6; }
23543 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23544 $as_echo_n "(cached) " >&6
23546 gcc_cv_as_shf_merge
=no
23547 if test $in_tree_gas = yes; then
23548 if test $in_tree_gas_is_elf = yes \
23549 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23550 then gcc_cv_as_shf_merge
=yes
23552 elif test x
$gcc_cv_as != x
; then
23553 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23554 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23556 (eval $ac_try) 2>&5
23558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23559 test $ac_status = 0; }; }
23561 gcc_cv_as_shf_merge
=yes
23563 echo "configure: failed program was" >&5
23566 rm -f conftest.o conftest.s
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23570 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23575 i?
86-*-solaris2.10
* | x86_64-
*-solaris2.10
*)
23576 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23577 if test x
"$gnu_ld" = xno
; then
23578 gcc_cv_as_shf_merge
=no
23583 cat >>confdefs.h
<<_ACEOF
23584 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23589 $as_echo_n "checking assembler for stabs directive... " >&6; }
23590 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23591 $as_echo_n "(cached) " >&6
23593 gcc_cv_as_stabs_directive
=no
23594 if test x
$gcc_cv_as != x
; then
23595 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23596 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23598 (eval $ac_try) 2>&5
23600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23601 test $ac_status = 0; }; }
23603 gcc_cv_as_stabs_directive
=yes
23605 echo "configure: failed program was" >&5
23608 rm -f conftest.o conftest.s
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23612 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23613 if test $gcc_cv_as_stabs_directive = yes; then
23615 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23621 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23622 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23623 $as_echo_n "(cached) " >&6
23625 gcc_cv_as_comdat_group
=no
23626 if test $in_tree_gas = yes; then
23627 if test $in_tree_gas_is_elf = yes \
23628 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23629 then gcc_cv_as_comdat_group
=yes
23631 elif test x
$gcc_cv_as != x
; then
23632 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23633 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23635 (eval $ac_try) 2>&5
23637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23638 test $ac_status = 0; }; }
23640 gcc_cv_as_comdat_group
=yes
23642 echo "configure: failed program was" >&5
23645 rm -f conftest.o conftest.s
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23649 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23652 if test $gcc_cv_as_comdat_group = yes; then
23653 gcc_cv_as_comdat_group_percent
=no
23654 gcc_cv_as_comdat_group_group
=no
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23657 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23658 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23659 $as_echo_n "(cached) " >&6
23661 gcc_cv_as_comdat_group_percent
=no
23662 if test $in_tree_gas = yes; then
23663 if test $in_tree_gas_is_elf = yes \
23664 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23665 then gcc_cv_as_comdat_group_percent
=yes
23667 elif test x
$gcc_cv_as != x
; then
23668 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23669 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23671 (eval $ac_try) 2>&5
23673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23674 test $ac_status = 0; }; }
23676 gcc_cv_as_comdat_group_percent
=yes
23678 echo "configure: failed program was" >&5
23681 rm -f conftest.o conftest.s
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23685 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23688 if test $gcc_cv_as_comdat_group_percent = yes; then
23689 gcc_cv_as_comdat_group_group
=no
23691 case "${target}" in
23692 # Sun as uses a completely different syntax.
23694 case "${target}" in
23695 sparc
*-*-solaris2*)
23697 .group foo,".text%foo",#comdat
23698 .section ".text%foo", #alloc,#execinstr,#progbits
23703 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23705 .group foo,.text%foo,#comdat
23706 .section .text%foo, "ax", @progbits
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23713 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23714 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23715 $as_echo_n "(cached) " >&6
23717 gcc_cv_as_comdat_group_group
=no
23718 if test x
$gcc_cv_as != x
; then
23719 $as_echo "$conftest_s" > conftest.s
23720 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23722 (eval $ac_try) 2>&5
23724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23725 test $ac_status = 0; }; }
23727 gcc_cv_as_comdat_group_group
=yes
23729 echo "configure: failed program was" >&5
23732 rm -f conftest.o conftest.s
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23736 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23741 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23742 gcc_cv_as_comdat_group_group
=no
23746 if test x
"$ld_is_gold" = xyes
; then
23748 elif test $in_tree_ld = yes ; then
23750 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 \
23751 && test $in_tree_ld_is_elf = yes; then
23754 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23756 if test 0"$ld_date" -lt 20050308; then
23757 if test -n "$ld_date"; then
23758 # If there was date string, but was earlier than 2005-03-08, fail
23760 elif test "$ld_vers_major" -lt 2; then
23762 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23767 case "${target}" in
23768 *-*-solaris2.1
[1-9]*)
23770 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23771 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23774 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23775 # least ld version 1.2267.
23776 if test "$ld_vers_major" -gt 1; then
23778 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23780 elif test "$ld_vers_minor" -ge 2267; then
23785 # Assume linkers other than GNU ld don't support COMDAT group.
23790 # Allow overriding the automatic COMDAT group tests above.
23791 # Check whether --enable-comdat was given.
23792 if test "${enable_comdat+set}" = set; then :
23793 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23796 if test $comdat_group = no
; then
23797 gcc_cv_as_comdat_group
=no
23798 gcc_cv_as_comdat_group_percent
=no
23799 gcc_cv_as_comdat_group_group
=no
23802 cat >>confdefs.h
<<_ACEOF
23803 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23804 || test $gcc_cv_as_comdat_group_percent = yes \
23805 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23809 # Restrict this test to Solaris/x86: other targets define this statically.
23810 case "${target}" in
23811 i?
86-*-solaris2* | x86_64-
*-solaris2*)
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
23813 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
23814 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23815 hidden_linkonce
=yes
23817 case "${target}" in
23818 # Full support for hidden thunks in linkonce sections only appeared in
23819 # Solaris 11/OpenSolaris.
23820 *-*-solaris2.1
[1-9]*)
23821 hidden_linkonce
=yes
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
23829 $as_echo "$hidden_linkonce" >&6; }
23831 cat >>confdefs.h
<<_ACEOF
23832 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23839 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23840 if test "${gcc_cv_as_discriminator+set}" = set; then :
23841 $as_echo_n "(cached) " >&6
23843 gcc_cv_as_discriminator
=no
23844 if test $in_tree_gas = yes; then
23845 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23846 then gcc_cv_as_discriminator
=yes
23848 elif test x
$gcc_cv_as != x
; then
23851 .loc 1 1 0 discriminator 1' > conftest.s
23852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23854 (eval $ac_try) 2>&5
23856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23857 test $ac_status = 0; }; }
23859 gcc_cv_as_discriminator
=yes
23861 echo "configure: failed program was" >&5
23864 rm -f conftest.o conftest.s
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23868 $as_echo "$gcc_cv_as_discriminator" >&6; }
23869 if test $gcc_cv_as_discriminator = yes; then
23871 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23876 # Thread-local storage - the check is heavily parameterized.
23884 .section ".tdata","awT",@progbits
23887 ldq $27,__tls_get_addr($29) !literal!1
23888 lda $16,foo($29) !tlsgd!1
23889 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23890 ldq $27,__tls_get_addr($29) !literal!2
23891 lda $16,foo($29) !tlsldm!2
23892 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23893 ldq $1,foo($29) !gotdtprel
23894 ldah $2,foo($29) !dtprelhi
23895 lda $3,foo($2) !dtprello
23896 lda $4,foo($29) !dtprel
23897 ldq $1,foo($29) !gottprel
23898 ldah $2,foo($29) !tprelhi
23899 lda $3,foo($2) !tprello
23900 lda $4,foo($29) !tprel'
23903 tls_as_opt
=--fatal-warnings
23907 add_s r0,r0, @foo@tpoff'
23911 cris-
*-*|crisv32-
*-*)
23913 .section ".tdata","awT",@progbits
23920 tls_as_opt
=--fatal-warnings
23924 .section ".tdata","awT",@progbits
23927 call #gettlsoff(x)'
23936 .section ".tdata","awT",@progbits
23940 addil LT%foo-$tls_gdidx$,gp
23941 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23944 addil LT%foo-$tls_ldidx$,gp
23946 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23947 addil LR%foo-$tls_dtpoff$,%ret0
23948 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23950 addil LT%foo-$tls_ieoff$,gp
23951 ldw RT%foo-$tls_ieoff$(%r1),%t2
23954 addil LR%foo-$tls_leoff$,%t1
23955 ldo RR%foo-$tls_leoff$(%r1),%t2'
23958 tls_as_opt
=--fatal-warnings
23962 .section ".tdata","awT",%progbits
23965 .word foo(gottpoff)
23973 i
[34567]86-*-* | x86_64-
*-*)
23975 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23982 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23984 .section .tdata,"awt",@progbits'
23989 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23993 .section ".tdata","awT",@progbits'
23997 tls_as_opt
="--fatal-warnings"
24001 conftest_s
="$conftest_s
24005 leal foo@tlsgd(,%ebx,1), %eax
24006 leal foo@tlsldm(%ebx), %eax
24007 leal foo@dtpoff(%eax), %edx
24008 movl foo@gottpoff(%ebx), %eax
24009 subl foo@gottpoff(%ebx), %eax
24010 addl foo@gotntpoff(%ebx), %eax
24011 movl foo@indntpoff, %eax
24012 movl \$foo@tpoff, %eax
24013 subl \$foo@tpoff, %eax
24014 leal foo@ntpoff(%ecx), %eax"
24017 if test x
$on_solaris = xyes
; then
24019 yes) tls_as_opt
="$tls_as_opt --64" ;;
24020 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24023 conftest_s
="$conftest_s
24027 leaq foo@tlsgd(%rip), %rdi
24028 leaq foo@tlsld(%rip), %rdi
24029 leaq foo@dtpoff(%rax), %rdx
24030 movq foo@gottpoff(%rip), %rax
24031 movq \$foo@tpoff, %rax"
24037 .section ".tdata","awT",@progbits
24040 addl r16 = @ltoff(@dtpmod(foo#)), gp
24041 addl r17 = @ltoff(@dtprel(foo#)), gp
24042 addl r18 = @ltoff(@tprel(foo#)), gp
24043 addl r19 = @dtprel(foo#), gp
24044 adds r21 = @dtprel(foo#), r13
24045 movl r23 = @dtprel(foo#)
24046 addl r20 = @tprel(foo#), gp
24047 adds r22 = @tprel(foo#), r13
24048 movl r24 = @tprel(foo#)'
24051 tls_as_opt
=--fatal-warnings
24055 .section .tdata,"awT",@progbits
24059 addik r5,r20,x@TLSGD
24060 addik r5,r20,x@TLSLDM'
24063 tls_as_opt
='--fatal-warnings'
24067 .section .tdata,"awT",@progbits
24071 addiu $4, $28, %tlsgd(x)
24072 addiu $4, $28, %tlsldm(x)
24073 lui $4, %dtprel_hi(x)
24074 addiu $4, $4, %dtprel_lo(x)
24075 lw $4, %gottprel(x)($28)
24076 lui $4, %tprel_hi(x)
24077 addiu $4, $4, %tprel_lo(x)'
24080 tls_as_opt
='-32 --fatal-warnings'
24084 .section .tdata,"awT",@progbits
24089 move.l x@TLSGD(%a5),%a0
24090 move.l x@TLSLDM(%a5),%a0
24091 move.l x@TLSLDO(%a5),%a0
24092 move.l x@TLSIE(%a5),%a0
24093 move.l x@TLSLE(%a5),%a0'
24096 tls_as_opt
='--fatal-warnings'
24100 .section ".tdata","awT",@progbits'
24103 tls_as_opt
="--fatal-warnings"
24107 .section ".tdata","awT",%progbits
24111 add x0, x0, #:tlsgd_lo12:x
24116 tls_as_opt
='--fatal-warnings'
24120 .extern __get_tpointer
24138 .section ".tdata","awT",@progbits
24146 addi 3,2,ld0@got@tlsgd
24152 addi 3,2,x1@got@tlsld
24158 addis 9,3,x2@dtprel@ha
24159 addi 9,9,x2@dtprel@l
24162 ld 9,x3@got@dtprel(2)
24168 tls_as_opt
="-a64 --fatal-warnings"
24172 .section ".tdata","awT",@progbits
24180 addi 3,31,ld0@got@tlsgd
24182 addi 3,31,x1@got@tlsld
24185 addis 9,3,x2@dtprel@ha
24186 addi 9,9,x2@dtprel@l
24187 lwz 9,x3@got@tprel(31)
24190 addis 9,2,x2@tprel@ha
24191 addi 9,9,x2@tprel@l'
24194 tls_as_opt
="-a32 --fatal-warnings"
24198 .section .tdata,"awT",@progbits
24202 call __tls_get_addr'
24205 tls_as_opt
='--fatal-warnings'
24209 .section ".tdata","awT",@progbits
24216 .long foo@GOTNTPOFF
24217 .long foo@INDNTPOFF
24218 l %r1,foo@GOTNTPOFF(%r12)
24219 l %r1,0(%r1):tls_load:foo
24220 bas %r14,0(%r1,%r13):tls_gdcall:foo
24221 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24224 tls_as_opt
="-m31 --fatal-warnings"
24228 .section ".tdata","awT",@progbits
24235 .quad foo@GOTNTPOFF
24236 lg %r1,foo@GOTNTPOFF(%r12)
24237 larl %r1,foo@INDNTPOFF
24238 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24239 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24242 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24244 sh-
*-* | sh
[123456789lbe
]*-*-*)
24246 .section ".tdata","awT",@progbits
24256 tls_as_opt
=--fatal-warnings
24260 sparc
*-sun-solaris2.
*)
24267 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24269 .section ".tdata",#alloc,#write,#tls'
24274 .section ".tdata","awT",@progbits'
24277 tls_as_opt
="-32 --fatal-warnings"
24279 conftest_s
="$conftest_s
24282 sethi %tgd_hi22(foo), %o0
24283 add %o0, %tgd_lo10(foo), %o1
24284 add %l7, %o1, %o0, %tgd_add(foo)
24285 call __tls_get_addr, %tgd_call(foo)
24286 sethi %tldm_hi22(foo), %l1
24287 add %l1, %tldm_lo10(foo), %l2
24288 add %l7, %l2, %o0, %tldm_add(foo)
24289 call __tls_get_addr, %tldm_call(foo)
24290 sethi %tldo_hix22(foo), %l3
24291 xor %l3, %tldo_lox10(foo), %l4
24292 add %o0, %l4, %l5, %tldo_add(foo)
24293 sethi %tie_hi22(foo), %o3
24294 add %o3, %tie_lo10(foo), %o3
24295 ld [%l7 + %o3], %o2, %tie_ld(foo)
24296 add %g7, %o2, %o4, %tie_add(foo)
24297 sethi %tle_hix22(foo), %l1
24298 xor %l1, %tle_lox10(foo), %o5
24299 ld [%g7 + %o5], %o1"
24303 .section ".tdata","awT",@progbits
24306 addli r0, zero, tls_gd(foo)
24307 auli r0, zero, tls_gd_ha16(foo)
24308 addli r0, r0, tls_gd_lo16(foo)
24310 addli r0, zero, tls_ie(foo)
24311 auli r0, r0, tls_ie_ha16(foo)
24312 addli r0, r0, tls_ie_lo16(foo)'
24315 tls_as_opt
="--fatal-warnings"
24319 .section ".tdata","awT",@progbits
24322 shl16insli r0, zero, hw0_last_tls_gd(foo)
24323 shl16insli r0, zero, hw1_last_tls_gd(foo)
24324 shl16insli r0, r0, hw0_tls_gd(foo)
24326 shl16insli r0, zero, hw1_last_tls_ie(foo)
24327 shl16insli r0, r0, hw0_tls_ie(foo)'
24330 tls_as_opt
="--fatal-warnings"
24334 .section ".tdata","awT",@progbits
24337 movi a8, foo@TLSFUNC
24338 movi a10, foo@TLSARG
24339 callx8.tls a8, foo@TLSCALL'
24345 if test "x$enable_tls" = xno
; then
24346 : # TLS explicitly disabled.
24347 elif test "x$enable_tls" = xyes
; then
24348 set_have_as_tls
=yes # TLS explicitly enabled.
24349 elif test -z "$tls_first_major"; then
24350 : # If we don't have a check, assume no support.
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24353 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24354 if test "${gcc_cv_as_tls+set}" = set; then :
24355 $as_echo_n "(cached) " >&6
24358 if test $in_tree_gas = yes; then
24359 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24360 then gcc_cv_as_tls
=yes
24362 elif test x
$gcc_cv_as != x
; then
24363 $as_echo "$conftest_s" > conftest.s
24364 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24366 (eval $ac_try) 2>&5
24368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24369 test $ac_status = 0; }; }
24373 echo "configure: failed program was" >&5
24376 rm -f conftest.o conftest.s
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24380 $as_echo "$gcc_cv_as_tls" >&6; }
24381 if test $gcc_cv_as_tls = yes; then
24382 set_have_as_tls
=yes
24386 if test $set_have_as_tls = yes ; then
24388 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24392 # Target-specific assembler checks.
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24395 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24396 gcc_cv_ld_static_dynamic
=no
24397 gcc_cv_ld_static_option
='-Bstatic'
24398 gcc_cv_ld_dynamic_option
='-Bdynamic'
24399 if test $in_tree_ld = yes ; then
24400 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
24401 gcc_cv_ld_static_dynamic
=yes
24403 elif test x
$gcc_cv_ld != x
; then
24404 # Check if linker supports -Bstatic/-Bdynamic option
24405 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
24406 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
24407 gcc_cv_ld_static_dynamic
=yes
24410 # AIX ld uses -b flags
24411 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24412 gcc_cv_ld_static_dynamic
=yes
24413 gcc_cv_ld_static_option
="-bstatic"
24414 gcc_cv_ld_dynamic_option
="-bdynamic"
24416 # HP-UX ld uses -a flags to select between shared and archive.
24418 if test x
"$gnu_ld" = xno
; then
24419 gcc_cv_ld_static_dynamic
=yes
24420 gcc_cv_ld_static_option
="-aarchive_shared"
24421 gcc_cv_ld_dynamic_option
="-adefault"
24424 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24426 gcc_cv_ld_static_dynamic
=yes
24431 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24433 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24436 cat >>confdefs.h
<<_ACEOF
24437 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24441 cat >>confdefs.h
<<_ACEOF
24442 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24447 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24449 if test x
"$demangler_in_ld" = xyes
; then
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24451 $as_echo_n "checking linker --demangle support... " >&6; }
24452 gcc_cv_ld_demangle
=no
24453 if test $in_tree_ld = yes; then
24454 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 \
24455 gcc_cv_ld_demangle
=yes
24457 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24458 # Check if the GNU linker supports --demangle option
24459 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
24460 gcc_cv_ld_demangle
=yes
24463 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24465 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24469 $as_echo "$gcc_cv_ld_demangle" >&6; }
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24473 $as_echo_n "checking linker plugin support... " >&6; }
24474 gcc_cv_lto_plugin
=0
24475 if test -f liblto_plugin.la
; then
24476 save_ld_ver
="$ld_ver"
24477 save_ld_vers_major
="$ld_vers_major"
24478 save_ld_vers_minor
="$ld_vers_minor"
24479 save_ld_is_gold
="$ld_is_gold"
24483 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24485 # FIXME: ld_is_gold?
24486 ld_vers_major
="$gcc_cv_gld_major_version"
24487 ld_vers_minor
="$gcc_cv_gld_minor_version"
24489 # Determine plugin linker version.
24490 # FIXME: Partial duplicate from above, generalize.
24491 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24492 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24493 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24495 ld_vers
=`echo $ld_ver | sed -n \
24496 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24498 ld_vers
=`echo $ld_ver | sed -n \
24499 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24501 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24502 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24506 # Determine plugin support.
24507 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24508 # Require GNU ld or gold 2.21+ for plugin support by default.
24509 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24510 gcc_cv_lto_plugin
=2
24511 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24512 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24513 gcc_cv_lto_plugin
=1
24517 ld_ver
="$save_ld_ver"
24518 ld_vers_major
="$save_ld_vers_major"
24519 ld_vers_minor
="$save_ld_vers_minor"
24520 ld_is_gold
="$save_ld_is_gold"
24523 cat >>confdefs.h
<<_ACEOF
24524 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24528 $as_echo "$gcc_cv_lto_plugin" >&6; }
24530 # Target OS-specific assembler checks.
24532 case "$target_os" in
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24535 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24536 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24537 $as_echo_n "(cached) " >&6
24539 gcc_cv_as_mmacosx_version_min
=no
24540 if test x
$gcc_cv_as != x
; then
24541 $as_echo '.text' > conftest.s
24542 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24544 (eval $ac_try) 2>&5
24546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24547 test $ac_status = 0; }; }
24549 gcc_cv_as_mmacosx_version_min
=yes
24551 echo "configure: failed program was" >&5
24554 rm -f conftest.o conftest.s
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24558 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24559 if test $gcc_cv_as_mmacosx_version_min = yes; then
24561 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24568 # Target CPU-specific assembler checks.
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24573 $as_echo_n "checking assembler for -mabi option... " >&6; }
24574 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24575 $as_echo_n "(cached) " >&6
24577 gcc_cv_as_aarch64_mabi
=no
24578 if test x
$gcc_cv_as != x
; then
24579 $as_echo '.text' > conftest.s
24580 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24582 (eval $ac_try) 2>&5
24584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585 test $ac_status = 0; }; }
24587 gcc_cv_as_aarch64_mabi
=yes
24589 echo "configure: failed program was" >&5
24592 rm -f conftest.o conftest.s
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24596 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24599 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24601 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24604 if test x
$with_abi = xilp32
; then
24605 as_fn_error
"Assembler does not support -mabi=ilp32.\
24606 Upgrade the Assembler." "$LINENO" 5
24608 if test x
"$with_multilib_list" = xdefault
; then
24609 TM_MULTILIB_CONFIG
=lp64
24611 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24612 for aarch64_multilib
in ${aarch64_multilibs}; do
24613 case ${aarch64_multilib} in
24615 as_fn_error
"Assembler does not support -mabi=ilp32.\
24616 Upgrade the Assembler." "$LINENO" 5
24624 # Check if we have binutils support for relocations types needed by -fpic
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24626 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24627 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24628 $as_echo_n "(cached) " >&6
24630 gcc_cv_as_aarch64_picreloc
=no
24631 if test x
$gcc_cv_as != x
; then
24634 ldr x0, [x2, #:gotpage_lo15:globalsym]
24636 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24638 (eval $ac_try) 2>&5
24640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24641 test $ac_status = 0; }; }
24643 gcc_cv_as_aarch64_picreloc
=yes
24645 echo "configure: failed program was" >&5
24648 rm -f conftest.o conftest.s
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24652 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24653 if test $gcc_cv_as_aarch64_picreloc = yes; then
24655 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24659 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24660 # Check whether --enable-fix-cortex-a53-835769 was given.
24661 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24662 enableval
=$enable_fix_cortex_a53_835769;
24665 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24670 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24671 Valid choices are 'yes' and 'no'." "$LINENO" 5
24678 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24679 # Check whether --enable-fix-cortex-a53-843419 was given.
24680 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24681 enableval
=$enable_fix_cortex_a53_843419;
24684 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24689 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24690 Valid choices are 'yes' and 'no'." "$LINENO" 5
24699 # All TARGET_ABI_OSF targets.
24700 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24702 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24703 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24704 $as_echo_n "(cached) " >&6
24706 gcc_cv_as_alpha_explicit_relocs
=no
24707 if test $in_tree_gas = yes; then
24708 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24709 then gcc_cv_as_alpha_explicit_relocs
=yes
24711 elif test x
$gcc_cv_as != x
; then
24712 $as_echo ' .set nomacro
24714 extbl $3, $2, $3 !lituse_bytoff!1
24715 ldq $2, a($29) !literal!1
24716 ldq $4, b($29) !literal!2
24717 ldq_u $3, 0($2) !lituse_base!1
24718 ldq $27, f($29) !literal!5
24719 jsr $26, ($27), f !lituse_jsr!5
24720 ldah $29, 0($26) !gpdisp!3
24721 lda $0, c($29) !gprel
24722 ldah $1, d($29) !gprelhigh
24723 lda $1, d($1) !gprellow
24724 lda $29, 0($29) !gpdisp!3' > conftest.s
24725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24727 (eval $ac_try) 2>&5
24729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24730 test $ac_status = 0; }; }
24732 gcc_cv_as_alpha_explicit_relocs
=yes
24734 echo "configure: failed program was" >&5
24737 rm -f conftest.o conftest.s
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24741 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24742 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24744 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24749 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24750 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24751 $as_echo_n "(cached) " >&6
24753 gcc_cv_as_alpha_jsrdirect_relocs
=no
24754 if test $in_tree_gas = yes; then
24755 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24756 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24758 elif test x
$gcc_cv_as != x
; then
24759 $as_echo ' .set nomacro
24761 ldq $27, a($29) !literal!1
24762 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24765 (eval $ac_try) 2>&5
24767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24768 test $ac_status = 0; }; }
24770 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24772 echo "configure: failed program was" >&5
24775 rm -f conftest.o conftest.s
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24779 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24780 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24782 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24790 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24791 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24792 $as_echo_n "(cached) " >&6
24794 gcc_cv_as_avr_mlink_relax
=no
24795 if test x
$gcc_cv_as != x
; then
24796 $as_echo '.text' > conftest.s
24797 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24799 (eval $ac_try) 2>&5
24801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24802 test $ac_status = 0; }; }
24804 gcc_cv_as_avr_mlink_relax
=yes
24806 echo "configure: failed program was" >&5
24809 rm -f conftest.o conftest.s
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24813 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24814 if test $gcc_cv_as_avr_mlink_relax = yes; then
24816 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24822 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24823 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24824 $as_echo_n "(cached) " >&6
24826 gcc_cv_as_avr_mrmw
=no
24827 if test x
$gcc_cv_as != x
; then
24828 $as_echo '.text' > conftest.s
24829 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24831 (eval $ac_try) 2>&5
24833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24834 test $ac_status = 0; }; }
24836 gcc_cv_as_avr_mrmw
=yes
24838 echo "configure: failed program was" >&5
24841 rm -f conftest.o conftest.s
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24845 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24846 if test $gcc_cv_as_avr_mrmw = yes; then
24848 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
24854 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
24855 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
24856 $as_echo_n "(cached) " >&6
24858 gcc_cv_as_avr_mgccisr
=no
24859 if test x
$gcc_cv_as != x
; then
24865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -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_avr_mgccisr
=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_avr_mgccisr" >&5
24881 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
24882 if test $gcc_cv_as_avr_mgccisr = yes; then
24884 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
24889 # Check how default linker description file implements .rodata for
24890 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
24891 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
24893 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
24894 cat > conftest.s
<<EOF
24895 .section .rodata,"a",@progbits
24897 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
24902 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
24903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24904 (eval $ac_try) 2>&5
24906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24907 test $ac_status = 0; }; }
24908 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
24909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24910 (eval $ac_try) 2>&5
24912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24913 test $ac_status = 0; }; }
24914 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
24915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24916 (eval $ac_try) 2>&5
24918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24919 test $ac_status = 0; }; }
24920 if test -s conftest.nm
24922 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24924 $as_echo "yes" >&6; }
24926 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
24930 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
24931 echo "$as_me: nm output was" >&5
24932 cat conftest.nm
>&5
24933 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
24934 { $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
24935 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
24939 $as_echo "test failed" >&6; }
24940 echo "$as_me: failed program was" >&5
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
24943 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
24945 rm -f conftest.s conftest.o conftest.elf conftest.nm
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24950 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24951 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24952 $as_echo_n "(cached) " >&6
24954 gcc_cv_as_cris_no_mul_bug
=no
24955 if test $in_tree_gas = yes; then
24956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24957 then gcc_cv_as_cris_no_mul_bug
=yes
24959 elif test x
$gcc_cv_as != x
; then
24960 $as_echo '.text' > conftest.s
24961 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24963 (eval $ac_try) 2>&5
24965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24966 test $ac_status = 0; }; }
24968 gcc_cv_as_cris_no_mul_bug
=yes
24970 echo "configure: failed program was" >&5
24973 rm -f conftest.o conftest.s
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24977 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24978 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24980 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24988 $as_echo_n "checking assembler for .register... " >&6; }
24989 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24990 $as_echo_n "(cached) " >&6
24992 gcc_cv_as_sparc_register_op
=no
24993 if test x
$gcc_cv_as != x
; then
24994 $as_echo '.register %g2, #scratch' > conftest.s
24995 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24997 (eval $ac_try) 2>&5
24999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000 test $ac_status = 0; }; }
25002 gcc_cv_as_sparc_register_op
=yes
25004 echo "configure: failed program was" >&5
25007 rm -f conftest.o conftest.s
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25011 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25012 if test $gcc_cv_as_sparc_register_op = yes; then
25014 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25020 $as_echo_n "checking assembler for -relax option... " >&6; }
25021 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25022 $as_echo_n "(cached) " >&6
25024 gcc_cv_as_sparc_relax
=no
25025 if test x
$gcc_cv_as != x
; then
25026 $as_echo '.text' > conftest.s
25027 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25029 (eval $ac_try) 2>&5
25031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25032 test $ac_status = 0; }; }
25034 gcc_cv_as_sparc_relax
=yes
25036 echo "configure: failed program was" >&5
25039 rm -f conftest.o conftest.s
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25043 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25044 if test $gcc_cv_as_sparc_relax = yes; then
25046 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25052 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25053 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25054 $as_echo_n "(cached) " >&6
25056 gcc_cv_as_sparc_gotdata_op
=no
25057 if test x
$gcc_cv_as != x
; then
25063 sethi %gdop_hix22(foo), %g1
25064 xor %g1, %gdop_lox10(foo), %g1
25065 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25066 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25068 (eval $ac_try) 2>&5
25070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25071 test $ac_status = 0; }; }
25073 if test x
$gcc_cv_ld != x \
25074 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25075 if test x
$gcc_cv_objdump != x
; then
25076 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25077 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25078 gcc_cv_as_sparc_gotdata_op
=no
25080 gcc_cv_as_sparc_gotdata_op
=yes
25086 echo "configure: failed program was" >&5
25089 rm -f conftest.o conftest.s
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25093 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25094 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25096 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25102 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25103 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25104 $as_echo_n "(cached) " >&6
25106 gcc_cv_as_sparc_ua_pcrel
=no
25107 if test x
$gcc_cv_as != x
; then
25114 .uaword %r_disp32(foo)' > conftest.s
25115 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25117 (eval $ac_try) 2>&5
25119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25120 test $ac_status = 0; }; }
25122 if test x
$gcc_cv_ld != x \
25123 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25124 gcc_cv_as_sparc_ua_pcrel
=yes
25128 echo "configure: failed program was" >&5
25131 rm -f conftest.o conftest.s
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25135 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25136 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25138 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25142 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25143 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25144 $as_echo_n "(cached) " >&6
25146 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25147 if test x
$gcc_cv_as != x
; then
25151 .uaword %r_disp32(foo)
25152 .byte 0x32, 0x33, 0x34
25156 .skip 4' > conftest.s
25157 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25159 (eval $ac_try) 2>&5
25161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25162 test $ac_status = 0; }; }
25164 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25165 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25166 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25167 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25168 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25169 |
grep 'DISP32' > /dev
/null
2>&1; then
25172 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25177 echo "configure: failed program was" >&5
25180 rm -f conftest.o conftest.s
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25184 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25185 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25187 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25193 # unaligned pcrel relocs
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25196 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25197 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25198 $as_echo_n "(cached) " >&6
25200 gcc_cv_as_sparc_offsetable_lo10
=no
25201 if test x
$gcc_cv_as != x
; then
25203 or %g1, %lo(ab) + 12, %g1
25204 or %g1, %lo(ab + 12), %g1' > conftest.s
25205 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25207 (eval $ac_try) 2>&5
25209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25210 test $ac_status = 0; }; }
25212 if test x
$gcc_cv_objdump != x \
25213 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25214 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25215 gcc_cv_as_sparc_offsetable_lo10
=yes
25218 echo "configure: failed program was" >&5
25221 rm -f conftest.o conftest.s
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25225 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25226 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25228 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25234 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25235 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25236 $as_echo_n "(cached) " >&6
25238 gcc_cv_as_sparc_fmaf
=no
25239 if test x
$gcc_cv_as != x
; then
25241 .register %g2, #scratch
25242 .register %g3, #scratch
25244 fmaddd %f0, %f2, %f4, %f6
25245 addxccc %g1, %g2, %g3
25246 fsrl32 %f2, %f4, %f8
25247 fnaddd %f10, %f12, %f14' > conftest.s
25248 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25250 (eval $ac_try) 2>&5
25252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25253 test $ac_status = 0; }; }
25255 gcc_cv_as_sparc_fmaf
=yes
25257 echo "configure: failed program was" >&5
25260 rm -f conftest.o conftest.s
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25264 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25265 if test $gcc_cv_as_sparc_fmaf = yes; then
25267 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25273 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25274 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25275 $as_echo_n "(cached) " >&6
25277 gcc_cv_as_sparc_sparc4
=no
25278 if test x
$gcc_cv_as != x
; then
25280 .register %g2, #scratch
25281 .register %g3, #scratch
25284 1: cwbneg %g2, %g3, 1f
25287 aes_kexpand0 %f4, %f6, %f8
25288 des_round %f38, %f40, %f42, %f44
25289 camellia_f %f54, %f56, %f58, %f60
25290 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25293 (eval $ac_try) 2>&5
25295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25296 test $ac_status = 0; }; }
25298 gcc_cv_as_sparc_sparc4
=yes
25300 echo "configure: failed program was" >&5
25303 rm -f conftest.o conftest.s
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25307 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25308 if test $gcc_cv_as_sparc_sparc4 = yes; then
25310 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25316 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25317 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25318 $as_echo_n "(cached) " >&6
25320 gcc_cv_as_sparc_sparc5
=no
25321 if test x
$gcc_cv_as != x
; then
25323 .register %g2, #scratch
25324 .register %g3, #scratch
25326 subxc %g1, %g2, %g3
25327 fpadd8 %f0, %f2, %f4' > conftest.s
25328 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25330 (eval $ac_try) 2>&5
25332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25333 test $ac_status = 0; }; }
25335 gcc_cv_as_sparc_sparc5
=yes
25337 echo "configure: failed program was" >&5
25340 rm -f conftest.o conftest.s
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25344 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25345 if test $gcc_cv_as_sparc_sparc5 = yes; then
25347 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25353 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25354 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25355 $as_echo_n "(cached) " >&6
25357 gcc_cv_as_sparc_sparc6
=no
25358 if test x
$gcc_cv_as != x
; then
25360 .register %g2, #scratch
25361 .register %g3, #scratch
25364 fpsll64x %f0, %f2, %f4' > conftest.s
25365 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25367 (eval $ac_try) 2>&5
25369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25370 test $ac_status = 0; }; }
25372 gcc_cv_as_sparc_sparc6
=yes
25374 echo "configure: failed program was" >&5
25377 rm -f conftest.o conftest.s
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25381 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25382 if test $gcc_cv_as_sparc_sparc6 = yes; then
25384 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25390 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25391 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25392 $as_echo_n "(cached) " >&6
25394 gcc_cv_as_sparc_leon
=no
25395 if test x
$gcc_cv_as != x
; then
25397 .register %g2, #scratch
25398 .register %g3, #scratch
25402 casa [%g2] 0xb, %g3, %g1' > conftest.s
25403 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25405 (eval $ac_try) 2>&5
25407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25408 test $ac_status = 0; }; }
25410 gcc_cv_as_sparc_leon
=yes
25412 echo "configure: failed program was" >&5
25415 rm -f conftest.o conftest.s
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25419 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25420 if test $gcc_cv_as_sparc_leon = yes; then
25422 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25428 i
[34567]86-*-* | x86_64-
*-*)
25431 # Full C++ conformance when using a shared libstdc++-v3 requires some
25432 # support from the Cygwin DLL, which in more recent versions exports
25433 # wrappers to aid in interposing and redirecting operators new, delete,
25434 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25435 # are configuring for a version of Cygwin that exports the wrappers.
25436 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25437 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25438 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25439 gcc_ac_cygwin_dll_wrappers
=yes
25441 gcc_ac_cygwin_dll_wrappers
=no
25445 # Can't check presence of libc functions during cross-compile, so
25446 # we just have to assume we're building for an up-to-date target.
25447 gcc_ac_cygwin_dll_wrappers
=yes
25450 cat >>confdefs.h
<<_ACEOF
25451 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25456 cygwin
* | pe | mingw32
*)
25457 # Recent binutils allows the three-operand form of ".comm" on PE. This
25458 # definition is used unconditionally to initialise the default state of
25459 # the target option variable that governs usage of the feature.
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25461 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25462 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25463 $as_echo_n "(cached) " >&6
25465 gcc_cv_as_comm_has_align
=no
25466 if test $in_tree_gas = yes; then
25467 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25468 then gcc_cv_as_comm_has_align
=yes
25470 elif test x
$gcc_cv_as != x
; then
25471 $as_echo '.comm foo,1,32' > conftest.s
25472 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25474 (eval $ac_try) 2>&5
25476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25477 test $ac_status = 0; }; }
25479 gcc_cv_as_comm_has_align
=yes
25481 echo "configure: failed program was" >&5
25484 rm -f conftest.o conftest.s
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25488 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25492 cat >>confdefs.h
<<_ACEOF
25493 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25496 # Used for DWARF 2 in PE
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25498 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25499 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25500 $as_echo_n "(cached) " >&6
25502 gcc_cv_as_ix86_pe_secrel32
=no
25503 if test $in_tree_gas = yes; then
25504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25505 then gcc_cv_as_ix86_pe_secrel32
=yes
25507 elif test x
$gcc_cv_as != x
; then
25511 .secrel32 foo' > conftest.s
25512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25514 (eval $ac_try) 2>&5
25516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25517 test $ac_status = 0; }; }
25519 if test x
$gcc_cv_ld != x \
25520 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25521 gcc_cv_as_ix86_pe_secrel32
=yes
25525 echo "configure: failed program was" >&5
25528 rm -f conftest.o conftest.s
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25532 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25533 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25535 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25539 # Test if the assembler supports the extended form of the .section
25540 # directive that specifies section alignment. LTO support uses this,
25541 # but normally only after installation, so we warn but don't fail the
25542 # configure if LTO is enabled but the assembler does not support it.
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25544 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25545 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25546 $as_echo_n "(cached) " >&6
25548 gcc_cv_as_section_has_align
=no
25549 if test $in_tree_gas = yes; then
25550 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25551 then gcc_cv_as_section_has_align
=yes
25553 elif test x
$gcc_cv_as != x
; then
25554 $as_echo '.section lto_test,"dr0"' > conftest.s
25555 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25557 (eval $ac_try) 2>&5
25559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560 test $ac_status = 0; }; }
25562 gcc_cv_as_section_has_align
=yes
25564 echo "configure: failed program was" >&5
25567 rm -f conftest.o conftest.s
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25571 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25574 if test x
$gcc_cv_as_section_has_align != xyes
; then
25575 case ",$enable_languages," in
25577 { $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
25578 $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;}
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25586 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25587 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25588 $as_echo_n "(cached) " >&6
25590 gcc_cv_as_ix86_xbrace_comment
=no
25591 if test x
$gcc_cv_as != x
; then
25592 $as_echo '.text' > conftest.s
25593 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25595 (eval $ac_try) 2>&5
25597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25598 test $ac_status = 0; }; }
25600 gcc_cv_as_ix86_xbrace_comment
=yes
25602 echo "configure: failed program was" >&5
25605 rm -f conftest.o conftest.s
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25609 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25610 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25612 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25617 # Test if the assembler supports the section flag 'e' for specifying
25618 # an excluded section.
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25620 $as_echo_n "checking assembler for .section with e... " >&6; }
25621 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25622 $as_echo_n "(cached) " >&6
25624 gcc_cv_as_section_has_e
=no
25625 if test $in_tree_gas = yes; then
25626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25627 then gcc_cv_as_section_has_e
=yes
25629 elif test x
$gcc_cv_as != x
; then
25630 $as_echo '.section foo1,"e"
25631 .byte 0,0,0,0' > conftest.s
25632 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25634 (eval $ac_try) 2>&5
25636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25637 test $ac_status = 0; }; }
25639 gcc_cv_as_section_has_e
=yes
25641 echo "configure: failed program was" >&5
25644 rm -f conftest.o conftest.s
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25648 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25652 cat >>confdefs.h
<<_ACEOF
25653 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25658 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25659 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25660 $as_echo_n "(cached) " >&6
25662 gcc_cv_as_ix86_filds
=no
25663 if test x
$gcc_cv_as != x
; then
25664 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25665 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25667 (eval $ac_try) 2>&5
25669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25670 test $ac_status = 0; }; }
25672 gcc_cv_as_ix86_filds
=yes
25674 echo "configure: failed program was" >&5
25677 rm -f conftest.o conftest.s
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25681 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25682 if test $gcc_cv_as_ix86_filds = yes; then
25684 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25690 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25691 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25692 $as_echo_n "(cached) " >&6
25694 gcc_cv_as_ix86_fildq
=no
25695 if test x
$gcc_cv_as != x
; then
25696 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25699 (eval $ac_try) 2>&5
25701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25702 test $ac_status = 0; }; }
25704 gcc_cv_as_ix86_fildq
=yes
25706 echo "configure: failed program was" >&5
25709 rm -f conftest.o conftest.s
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25713 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25714 if test $gcc_cv_as_ix86_fildq = yes; then
25716 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25722 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25723 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25724 $as_echo_n "(cached) " >&6
25726 gcc_cv_as_ix86_cmov_sun_syntax
=no
25727 if test x
$gcc_cv_as != x
; then
25728 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25729 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25731 (eval $ac_try) 2>&5
25733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25734 test $ac_status = 0; }; }
25736 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25738 echo "configure: failed program was" >&5
25741 rm -f conftest.o conftest.s
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25745 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25746 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25748 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25754 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25755 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25756 $as_echo_n "(cached) " >&6
25758 gcc_cv_as_ix86_ffreep
=no
25759 if test x
$gcc_cv_as != x
; then
25760 $as_echo 'ffreep %st(1)' > conftest.s
25761 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25763 (eval $ac_try) 2>&5
25765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25766 test $ac_status = 0; }; }
25768 gcc_cv_as_ix86_ffreep
=yes
25770 echo "configure: failed program was" >&5
25773 rm -f conftest.o conftest.s
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25777 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25778 if test $gcc_cv_as_ix86_ffreep = yes; then
25780 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25786 $as_echo_n "checking assembler for .quad directive... " >&6; }
25787 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25788 $as_echo_n "(cached) " >&6
25790 gcc_cv_as_ix86_quad
=no
25791 if test x
$gcc_cv_as != x
; then
25792 $as_echo '.quad 0' > conftest.s
25793 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25795 (eval $ac_try) 2>&5
25797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25798 test $ac_status = 0; }; }
25800 gcc_cv_as_ix86_quad
=yes
25802 echo "configure: failed program was" >&5
25805 rm -f conftest.o conftest.s
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25809 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25810 if test $gcc_cv_as_ix86_quad = yes; then
25812 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25818 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25819 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25820 $as_echo_n "(cached) " >&6
25822 gcc_cv_as_ix86_sahf
=no
25823 if test x
$gcc_cv_as != x
; then
25826 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25828 (eval $ac_try) 2>&5
25830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25831 test $ac_status = 0; }; }
25833 gcc_cv_as_ix86_sahf
=yes
25835 echo "configure: failed program was" >&5
25838 rm -f conftest.o conftest.s
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25842 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25843 if test $gcc_cv_as_ix86_sahf = yes; then
25845 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25851 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25852 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25853 $as_echo_n "(cached) " >&6
25855 gcc_cv_as_ix86_interunit_movq
=no
25856 if test x
$gcc_cv_as != x
; then
25859 movq %rax, %xmm0' > conftest.s
25860 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25862 (eval $ac_try) 2>&5
25864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25865 test $ac_status = 0; }; }
25867 gcc_cv_as_ix86_interunit_movq
=yes
25869 echo "configure: failed program was" >&5
25872 rm -f conftest.o conftest.s
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25876 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25880 cat >>confdefs.h
<<_ACEOF
25881 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25886 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25887 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25888 $as_echo_n "(cached) " >&6
25890 gcc_cv_as_ix86_hle
=no
25891 if test x
$gcc_cv_as != x
; then
25892 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > 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_hle
=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_hle" >&5
25909 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25910 if test $gcc_cv_as_ix86_hle = yes; then
25912 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25918 $as_echo_n "checking assembler for swap suffix... " >&6; }
25919 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25920 $as_echo_n "(cached) " >&6
25922 gcc_cv_as_ix86_swap
=no
25923 if test x
$gcc_cv_as != x
; then
25924 $as_echo 'movl.s %esp, %ebp' > conftest.s
25925 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25927 (eval $ac_try) 2>&5
25929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25930 test $ac_status = 0; }; }
25932 gcc_cv_as_ix86_swap
=yes
25934 echo "configure: failed program was" >&5
25937 rm -f conftest.o conftest.s
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25941 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25942 if test $gcc_cv_as_ix86_swap = yes; then
25944 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25950 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25951 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25952 $as_echo_n "(cached) " >&6
25954 gcc_cv_as_ix86_diff_sect_delta
=no
25955 if test x
$gcc_cv_as != x
; then
25956 $as_echo '.section .rodata
25962 .L2: nop' > conftest.s
25963 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25965 (eval $ac_try) 2>&5
25967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25968 test $ac_status = 0; }; }
25970 gcc_cv_as_ix86_diff_sect_delta
=yes
25972 echo "configure: failed program was" >&5
25975 rm -f conftest.o conftest.s
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25979 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25980 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25982 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25988 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25989 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25990 $as_echo_n "(cached) " >&6
25992 gcc_cv_as_ix86_rep_lock_prefix
=no
25993 if test x
$gcc_cv_as != x
; then
25994 $as_echo 'rep movsl
25999 lock addl %edi, (%eax,%esi)
26000 lock orl $0, (%esp)' > conftest.s
26001 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26003 (eval $ac_try) 2>&5
26005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26006 test $ac_status = 0; }; }
26008 gcc_cv_as_ix86_rep_lock_prefix
=yes
26010 echo "configure: failed program was" >&5
26013 rm -f conftest.o conftest.s
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26017 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26018 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26020 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26026 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26027 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26028 $as_echo_n "(cached) " >&6
26030 gcc_cv_as_ix86_ud2
=no
26031 if test x
$gcc_cv_as != x
; then
26032 $as_echo 'ud2' > conftest.s
26033 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26035 (eval $ac_try) 2>&5
26037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26038 test $ac_status = 0; }; }
26040 gcc_cv_as_ix86_ud2
=yes
26042 echo "configure: failed program was" >&5
26045 rm -f conftest.o conftest.s
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26049 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26050 if test $gcc_cv_as_ix86_ud2 = yes; then
26052 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26057 # Enforce 32-bit output with gas and gld.
26058 if test x
$gas = xyes
; then
26059 as_ix86_gas_32_opt
="--32"
26061 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26062 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26063 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26065 ld_ix86_gld_32_opt
="-melf_i386"
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26070 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26071 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26072 $as_echo_n "(cached) " >&6
26074 gcc_cv_as_ix86_tlsgdplt
=no
26075 if test x
$gcc_cv_as != x
; then
26076 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26079 (eval $ac_try) 2>&5
26081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26082 test $ac_status = 0; }; }
26084 if test x
$gcc_cv_ld != x \
26085 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26086 gcc_cv_as_ix86_tlsgdplt
=yes
26090 echo "configure: failed program was" >&5
26093 rm -f conftest.o conftest.s
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26097 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26098 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26100 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26106 .section .tdata,"aw'$tls_section_flag'",@progbits
26108 .section .text,"ax",@progbits
26109 call tls_ld@tlsldmplt'
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26112 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26113 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26114 $as_echo_n "(cached) " >&6
26116 gcc_cv_as_ix86_tlsldmplt
=no
26117 if test x
$gcc_cv_as != x
; then
26118 $as_echo "$conftest_s" > conftest.s
26119 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26121 (eval $ac_try) 2>&5
26123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26124 test $ac_status = 0; }; }
26126 if test x
$gcc_cv_ld != x \
26127 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26128 gcc_cv_as_ix86_tlsldmplt
=yes
26132 echo "configure: failed program was" >&5
26135 rm -f conftest.o conftest.s
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26139 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26143 cat >>confdefs.h
<<_ACEOF
26144 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26149 .section .text,"ax",@progbits
26151 .type _start, @function
26153 leal value@tlsldm(%ebx), %eax
26154 call ___tls_get_addr@plt
26156 .section .tdata,"aw'$tls_section_flag'",@progbits
26157 .type value, @object
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26160 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26161 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26162 $as_echo_n "(cached) " >&6
26164 gcc_cv_as_ix86_tlsldm
=no
26165 if test x
$gcc_cv_as != x
; then
26166 $as_echo "$conftest_s" > conftest.s
26167 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26169 (eval $ac_try) 2>&5
26171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26172 test $ac_status = 0; }; }
26174 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26175 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26176 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26177 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26178 gcc_cv_as_ix86_tlsldm
=yes
26183 echo "configure: failed program was" >&5
26186 rm -f conftest.o conftest.s
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26190 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26194 cat >>confdefs.h
<<_ACEOF
26195 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26209 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26210 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26211 $as_echo_n "(cached) " >&6
26213 gcc_cv_as_ix86_got32x
=no
26214 if test x
$gcc_cv_as != x
; then
26215 $as_echo "$conftest_s" > conftest.s
26216 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26218 (eval $ac_try) 2>&5
26220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26221 test $ac_status = 0; }; }
26223 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26224 && test x
$gcc_cv_readelf != x \
26225 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26226 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26227 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26228 if $gcc_cv_objdump -dw conftest
2>&1 \
26229 |
grep 0xffffff > /dev
/null
2>&1; then
26230 gcc_cv_as_ix86_got32x
=no
26232 gcc_cv_as_ix86_got32x
=yes
26237 echo "configure: failed program was" >&5
26240 rm -f conftest.o conftest.s
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26244 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26248 cat >>confdefs.h
<<_ACEOF
26249 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26254 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26255 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26256 $as_echo_n "(cached) " >&6
26258 gcc_cv_as_ix86_gotoff_in_data
=no
26259 if test $in_tree_gas = yes; then
26260 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26261 then gcc_cv_as_ix86_gotoff_in_data
=yes
26263 elif test x
$gcc_cv_as != x
; then
26268 .long .L0@GOTOFF' > conftest.s
26269 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26271 (eval $ac_try) 2>&5
26273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26274 test $ac_status = 0; }; }
26276 gcc_cv_as_ix86_gotoff_in_data
=yes
26278 echo "configure: failed program was" >&5
26281 rm -f conftest.o conftest.s
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26285 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26289 cat >>confdefs.h
<<_ACEOF
26290 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26295 .section .text,"ax",@progbits
26297 .type _start, @function
26299 leal ld@tlsldm(%ecx), %eax
26300 call *___tls_get_addr@GOT(%ecx)
26301 leal gd@tlsgd(%ecx), %eax
26302 call *___tls_get_addr@GOT(%ecx)
26304 .section .tdata,"aw'$tls_section_flag'",@progbits
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26313 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26314 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26315 $as_echo_n "(cached) " >&6
26317 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26318 if test x
$gcc_cv_as != x
; then
26319 $as_echo "$conftest_s" > conftest.s
26320 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26322 (eval $ac_try) 2>&5
26324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26325 test $ac_status = 0; }; }
26327 if test x
$gcc_cv_ld != x \
26328 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26329 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26333 echo "configure: failed program was" >&5
26336 rm -f conftest.o conftest.s
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26340 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26344 cat >>confdefs.h
<<_ACEOF
26345 #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`
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26352 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26353 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26354 $as_echo_n "(cached) " >&6
26356 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26357 if test $in_tree_gas = yes; then
26358 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26359 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26361 elif test x
$gcc_cv_as != x
; then
26363 addl r15 = @ltoffx(x#), gp
26365 ld8.mov r16 = [r15], x#' > conftest.s
26366 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26368 (eval $ac_try) 2>&5
26370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26371 test $ac_status = 0; }; }
26373 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26375 echo "configure: failed program was" >&5
26378 rm -f conftest.o conftest.s
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26382 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26383 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26385 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26397 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26398 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26399 $as_echo_n "(cached) " >&6
26401 gcc_cv_as_machine_directive
=no
26402 if test x
$gcc_cv_as != x
; then
26403 $as_echo ' .machine ppc7400' > conftest.s
26404 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26406 (eval $ac_try) 2>&5
26408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26409 test $ac_status = 0; }; }
26411 gcc_cv_as_machine_directive
=yes
26413 echo "configure: failed program was" >&5
26416 rm -f conftest.o conftest.s
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26420 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26423 if test x
$gcc_cv_as_machine_directive != xyes
; then
26424 echo "*** This target requires an assembler supporting \".machine\"" >&2
26425 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26426 test x
$build = x
$target && exit 1
26432 *-*-aix*) conftest_s
=' .machine "pwr5"
26435 *-*-darwin*) conftest_s
=' .text
26437 *) conftest_s
=' .machine power4
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26443 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26444 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26445 $as_echo_n "(cached) " >&6
26447 gcc_cv_as_powerpc_mfcrf
=no
26448 if test $in_tree_gas = yes; then
26449 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26450 then gcc_cv_as_powerpc_mfcrf
=yes
26452 elif test x
$gcc_cv_as != x
; then
26453 $as_echo "$conftest_s" > conftest.s
26454 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26456 (eval $ac_try) 2>&5
26458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26459 test $ac_status = 0; }; }
26461 gcc_cv_as_powerpc_mfcrf
=yes
26463 echo "configure: failed program was" >&5
26466 rm -f conftest.o conftest.s
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26470 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26471 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26473 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26479 *-*-aix*) conftest_s
=' .machine "pwr5"
26482 *) conftest_s
=' .machine power5
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26488 $as_echo_n "checking assembler for popcntb support... " >&6; }
26489 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26490 $as_echo_n "(cached) " >&6
26492 gcc_cv_as_powerpc_popcntb
=no
26493 if test $in_tree_gas = yes; then
26494 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26495 then gcc_cv_as_powerpc_popcntb
=yes
26497 elif test x
$gcc_cv_as != x
; then
26498 $as_echo "$conftest_s" > conftest.s
26499 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26501 (eval $ac_try) 2>&5
26503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26504 test $ac_status = 0; }; }
26506 gcc_cv_as_powerpc_popcntb
=yes
26508 echo "configure: failed program was" >&5
26511 rm -f conftest.o conftest.s
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26515 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26516 if test $gcc_cv_as_powerpc_popcntb = yes; then
26518 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26524 *-*-aix*) conftest_s
=' .machine "pwr5x"
26527 *) conftest_s
=' .machine power5
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26533 $as_echo_n "checking assembler for fp round support... " >&6; }
26534 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26535 $as_echo_n "(cached) " >&6
26537 gcc_cv_as_powerpc_fprnd
=no
26538 if test $in_tree_gas = yes; then
26539 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26540 then gcc_cv_as_powerpc_fprnd
=yes
26542 elif test x
$gcc_cv_as != x
; then
26543 $as_echo "$conftest_s" > conftest.s
26544 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26546 (eval $ac_try) 2>&5
26548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26549 test $ac_status = 0; }; }
26551 gcc_cv_as_powerpc_fprnd
=yes
26553 echo "configure: failed program was" >&5
26556 rm -f conftest.o conftest.s
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26560 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26561 if test $gcc_cv_as_powerpc_fprnd = yes; then
26563 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26569 *-*-aix*) conftest_s
=' .machine "pwr6"
26572 *) conftest_s
=' .machine power6
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26578 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26579 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26580 $as_echo_n "(cached) " >&6
26582 gcc_cv_as_powerpc_mfpgpr
=no
26583 if test $in_tree_gas = yes; then
26584 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26585 then gcc_cv_as_powerpc_mfpgpr
=yes
26587 elif test x
$gcc_cv_as != x
; then
26588 $as_echo "$conftest_s" > conftest.s
26589 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26591 (eval $ac_try) 2>&5
26593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26594 test $ac_status = 0; }; }
26596 gcc_cv_as_powerpc_mfpgpr
=yes
26598 echo "configure: failed program was" >&5
26601 rm -f conftest.o conftest.s
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26605 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26606 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26608 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26614 *-*-aix*) conftest_s
=' .csect .text[PR]
26616 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26620 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26621 *) conftest_s
=' .text
26623 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26627 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26628 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26629 $as_echo_n "(cached) " >&6
26631 gcc_cv_as_powerpc_rel16
=no
26632 if test $in_tree_gas = yes; then
26633 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26634 then gcc_cv_as_powerpc_rel16
=yes
26636 elif test x
$gcc_cv_as != x
; then
26637 $as_echo "$conftest_s" > conftest.s
26638 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26640 (eval $ac_try) 2>&5
26642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26643 test $ac_status = 0; }; }
26645 gcc_cv_as_powerpc_rel16
=yes
26647 echo "configure: failed program was" >&5
26650 rm -f conftest.o conftest.s
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26654 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26655 if test $gcc_cv_as_powerpc_rel16 = yes; then
26657 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26663 *-*-aix*) conftest_s
=' .machine "pwr6"
26666 *) conftest_s
=' .machine power6
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26672 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26673 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26674 $as_echo_n "(cached) " >&6
26676 gcc_cv_as_powerpc_cmpb
=no
26677 if test $in_tree_gas = yes; then
26678 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26679 then gcc_cv_as_powerpc_cmpb
=yes
26681 elif test x
$gcc_cv_as != x
; then
26682 $as_echo "$conftest_s" > conftest.s
26683 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26685 (eval $ac_try) 2>&5
26687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26688 test $ac_status = 0; }; }
26690 gcc_cv_as_powerpc_cmpb
=yes
26692 echo "configure: failed program was" >&5
26695 rm -f conftest.o conftest.s
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26699 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26700 if test $gcc_cv_as_powerpc_cmpb = yes; then
26702 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26708 *-*-aix*) conftest_s
=' .machine "pwr6"
26711 *) conftest_s
=' .machine power6
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26717 $as_echo_n "checking assembler for decimal float support... " >&6; }
26718 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26719 $as_echo_n "(cached) " >&6
26721 gcc_cv_as_powerpc_dfp
=no
26722 if test $in_tree_gas = yes; then
26723 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26724 then gcc_cv_as_powerpc_dfp
=yes
26726 elif test x
$gcc_cv_as != x
; then
26727 $as_echo "$conftest_s" > conftest.s
26728 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26730 (eval $ac_try) 2>&5
26732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26733 test $ac_status = 0; }; }
26735 gcc_cv_as_powerpc_dfp
=yes
26737 echo "configure: failed program was" >&5
26740 rm -f conftest.o conftest.s
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26744 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26745 if test $gcc_cv_as_powerpc_dfp = yes; then
26747 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26753 *-*-aix*) conftest_s
=' .machine "pwr7"
26756 *) conftest_s
=' .machine power7
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26762 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26763 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26764 $as_echo_n "(cached) " >&6
26766 gcc_cv_as_powerpc_vsx
=no
26767 if test $in_tree_gas = yes; then
26768 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26769 then gcc_cv_as_powerpc_vsx
=yes
26771 elif test x
$gcc_cv_as != x
; then
26772 $as_echo "$conftest_s" > conftest.s
26773 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26775 (eval $ac_try) 2>&5
26777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26778 test $ac_status = 0; }; }
26780 gcc_cv_as_powerpc_vsx
=yes
26782 echo "configure: failed program was" >&5
26785 rm -f conftest.o conftest.s
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26789 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26790 if test $gcc_cv_as_powerpc_vsx = yes; then
26792 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26798 *-*-aix*) conftest_s
=' .machine "pwr7"
26801 *) conftest_s
=' .machine power7
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26807 $as_echo_n "checking assembler for popcntd support... " >&6; }
26808 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26809 $as_echo_n "(cached) " >&6
26811 gcc_cv_as_powerpc_popcntd
=no
26812 if test $in_tree_gas = yes; then
26813 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26814 then gcc_cv_as_powerpc_popcntd
=yes
26816 elif test x
$gcc_cv_as != x
; then
26817 $as_echo "$conftest_s" > conftest.s
26818 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26820 (eval $ac_try) 2>&5
26822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26823 test $ac_status = 0; }; }
26825 gcc_cv_as_powerpc_popcntd
=yes
26827 echo "configure: failed program was" >&5
26830 rm -f conftest.o conftest.s
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26834 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26835 if test $gcc_cv_as_powerpc_popcntd = yes; then
26837 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26843 *-*-aix*) conftest_s
=' .machine "pwr8"
26844 .csect .text[PR]';;
26845 *) conftest_s
=' .machine power8
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26850 $as_echo_n "checking assembler for power8 support... " >&6; }
26851 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26852 $as_echo_n "(cached) " >&6
26854 gcc_cv_as_powerpc_power8
=no
26855 if test $in_tree_gas = yes; then
26856 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26857 then gcc_cv_as_powerpc_power8
=yes
26859 elif test x
$gcc_cv_as != x
; then
26860 $as_echo "$conftest_s" > conftest.s
26861 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26863 (eval $ac_try) 2>&5
26865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26866 test $ac_status = 0; }; }
26868 gcc_cv_as_powerpc_power8
=yes
26870 echo "configure: failed program was" >&5
26873 rm -f conftest.o conftest.s
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26877 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26878 if test $gcc_cv_as_powerpc_power8 = yes; then
26880 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26886 *-*-aix*) conftest_s
=' .machine "pwr9"
26887 .csect .text[PR]';;
26888 *) conftest_s
=' .machine power9
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26893 $as_echo_n "checking assembler for power9 support... " >&6; }
26894 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26895 $as_echo_n "(cached) " >&6
26897 gcc_cv_as_powerpc_power9
=no
26898 if test $in_tree_gas = yes; then
26899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26900 then gcc_cv_as_powerpc_power9
=yes
26902 elif test x
$gcc_cv_as != x
; then
26903 $as_echo "$conftest_s" > conftest.s
26904 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26906 (eval $ac_try) 2>&5
26908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26909 test $ac_status = 0; }; }
26911 gcc_cv_as_powerpc_power9
=yes
26913 echo "configure: failed program was" >&5
26916 rm -f conftest.o conftest.s
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26920 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26921 if test $gcc_cv_as_powerpc_power9 = yes; then
26923 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26929 *-*-aix*) conftest_s
=' .csect .text[PR]
26931 *) conftest_s
=' .text
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26936 $as_echo_n "checking assembler for lwsync support... " >&6; }
26937 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26938 $as_echo_n "(cached) " >&6
26940 gcc_cv_as_powerpc_lwsync
=no
26941 if test $in_tree_gas = yes; then
26942 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26943 then gcc_cv_as_powerpc_lwsync
=yes
26945 elif test x
$gcc_cv_as != x
; then
26946 $as_echo "$conftest_s" > conftest.s
26947 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26949 (eval $ac_try) 2>&5
26951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26952 test $ac_status = 0; }; }
26954 gcc_cv_as_powerpc_lwsync
=yes
26956 echo "configure: failed program was" >&5
26959 rm -f conftest.o conftest.s
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26963 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26964 if test $gcc_cv_as_powerpc_lwsync = yes; then
26966 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26972 *-*-aix*) conftest_s
=' .machine "476"
26975 *) conftest_s
=' .machine "476"
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26981 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26982 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26983 $as_echo_n "(cached) " >&6
26985 gcc_cv_as_powerpc_dci
=no
26986 if test $in_tree_gas = yes; then
26987 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26988 then gcc_cv_as_powerpc_dci
=yes
26990 elif test x
$gcc_cv_as != x
; then
26991 $as_echo "$conftest_s" > conftest.s
26992 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26994 (eval $ac_try) 2>&5
26996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26997 test $ac_status = 0; }; }
26999 gcc_cv_as_powerpc_dci
=yes
27001 echo "configure: failed program was" >&5
27004 rm -f conftest.o conftest.s
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
27008 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
27009 if test $gcc_cv_as_powerpc_dci = yes; then
27011 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27017 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27018 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
27019 $as_echo_n "(cached) " >&6
27021 gcc_cv_as_powerpc_gnu_attribute
=no
27022 if test $in_tree_gas = yes; then
27023 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27024 then gcc_cv_as_powerpc_gnu_attribute
=yes
27026 elif test x
$gcc_cv_as != x
; then
27027 $as_echo '.gnu_attribute 4,1' > conftest.s
27028 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27030 (eval $ac_try) 2>&5
27032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27033 test $ac_status = 0; }; }
27035 gcc_cv_as_powerpc_gnu_attribute
=yes
27037 echo "configure: failed program was" >&5
27040 rm -f conftest.o conftest.s
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27044 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27045 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27047 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27053 $as_echo_n "checking assembler for tls marker support... " >&6; }
27054 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
27055 $as_echo_n "(cached) " >&6
27057 gcc_cv_as_powerpc_tls_markers
=no
27058 if test $in_tree_gas = yes; then
27059 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27060 then gcc_cv_as_powerpc_tls_markers
=yes
27062 elif test x
$gcc_cv_as != x
; then
27063 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27064 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27066 (eval $ac_try) 2>&5
27068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27069 test $ac_status = 0; }; }
27071 gcc_cv_as_powerpc_tls_markers
=yes
27073 echo "configure: failed program was" >&5
27076 rm -f conftest.o conftest.s
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27080 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27081 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27083 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27089 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27090 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
27091 $as_echo_n "(cached) " >&6
27093 gcc_cv_as_powerpc_entry_markers
=no
27094 if test $in_tree_gas = yes; then
27095 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27096 then gcc_cv_as_powerpc_entry_markers
=yes
27098 elif test x
$gcc_cv_as != x
; then
27099 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27100 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27102 (eval $ac_try) 2>&5
27104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27105 test $ac_status = 0; }; }
27107 gcc_cv_as_powerpc_entry_markers
=yes
27109 echo "configure: failed program was" >&5
27112 rm -f conftest.o conftest.s
27115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27116 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27117 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27119 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27127 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27128 if test "${gcc_cv_as_aix_ref+set}" = set; then :
27129 $as_echo_n "(cached) " >&6
27131 gcc_cv_as_aix_ref
=no
27132 if test $in_tree_gas = yes; then
27133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27134 then gcc_cv_as_aix_ref
=yes
27136 elif test x
$gcc_cv_as != x
; then
27137 $as_echo ' .csect stuff[rw]
27143 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27145 (eval $ac_try) 2>&5
27147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27148 test $ac_status = 0; }; }
27150 gcc_cv_as_aix_ref
=yes
27152 echo "configure: failed program was" >&5
27155 rm -f conftest.o conftest.s
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27159 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27160 if test $gcc_cv_as_aix_ref = yes; then
27162 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27168 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27169 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
27170 $as_echo_n "(cached) " >&6
27172 gcc_cv_as_aix_dwloc
=no
27173 if test $in_tree_gas = yes; then
27174 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27175 then gcc_cv_as_aix_dwloc
=yes
27177 elif test x
$gcc_cv_as != x
; then
27178 $as_echo ' .dwsect 0xA0000
27182 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27184 (eval $ac_try) 2>&5
27186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27187 test $ac_status = 0; }; }
27189 gcc_cv_as_aix_dwloc
=yes
27191 echo "configure: failed program was" >&5
27194 rm -f conftest.o conftest.s
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27198 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27199 if test $gcc_cv_as_aix_dwloc = yes; then
27201 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27211 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27212 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27213 $as_echo_n "(cached) " >&6
27215 gcc_cv_as_mips_explicit_relocs
=no
27216 if test $in_tree_gas = yes; then
27217 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27218 then gcc_cv_as_mips_explicit_relocs
=yes
27220 elif test x
$gcc_cv_as != x
; then
27221 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27222 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27224 (eval $ac_try) 2>&5
27226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27227 test $ac_status = 0; }; }
27229 gcc_cv_as_mips_explicit_relocs
=yes
27231 echo "configure: failed program was" >&5
27234 rm -f conftest.o conftest.s
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27238 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27239 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27240 if test x
$target_cpu_default = x
27241 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27242 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27248 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27249 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27250 $as_echo_n "(cached) " >&6
27252 gcc_cv_as_mips_no_shared
=no
27253 if test $in_tree_gas = yes; then
27254 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27255 then gcc_cv_as_mips_no_shared
=yes
27257 elif test x
$gcc_cv_as != x
; then
27258 $as_echo 'nop' > conftest.s
27259 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27261 (eval $ac_try) 2>&5
27263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27264 test $ac_status = 0; }; }
27266 gcc_cv_as_mips_no_shared
=yes
27268 echo "configure: failed program was" >&5
27271 rm -f conftest.o conftest.s
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27275 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27276 if test $gcc_cv_as_mips_no_shared = yes; then
27278 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27284 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27285 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27286 $as_echo_n "(cached) " >&6
27288 gcc_cv_as_mips_gnu_attribute
=no
27289 if test $in_tree_gas = yes; then
27290 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27291 then gcc_cv_as_mips_gnu_attribute
=yes
27293 elif test x
$gcc_cv_as != x
; then
27294 $as_echo '.gnu_attribute 4,1' > conftest.s
27295 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27297 (eval $ac_try) 2>&5
27299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27300 test $ac_status = 0; }; }
27302 gcc_cv_as_mips_gnu_attribute
=yes
27304 echo "configure: failed program was" >&5
27307 rm -f conftest.o conftest.s
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27311 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27312 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27314 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27320 $as_echo_n "checking assembler for .module support... " >&6; }
27321 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27322 $as_echo_n "(cached) " >&6
27324 gcc_cv_as_mips_dot_module
=no
27325 if test x
$gcc_cv_as != x
; then
27326 $as_echo '.module mips2
27327 .module fp=xx' > conftest.s
27328 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27330 (eval $ac_try) 2>&5
27332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27333 test $ac_status = 0; }; }
27335 gcc_cv_as_mips_dot_module
=yes
27337 echo "configure: failed program was" >&5
27340 rm -f conftest.o conftest.s
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27344 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27345 if test $gcc_cv_as_mips_dot_module = yes; then
27347 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27351 if test x
$gcc_cv_as_mips_dot_module = xno \
27352 && test x
$with_fp_32 != x
; then
27353 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27357 $as_echo_n "checking assembler for .micromips support... " >&6; }
27358 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27359 $as_echo_n "(cached) " >&6
27361 gcc_cv_as_micromips_support
=no
27362 if test x
$gcc_cv_as != x
; then
27363 $as_echo '.set micromips' > conftest.s
27364 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27366 (eval $ac_try) 2>&5
27368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27369 test $ac_status = 0; }; }
27371 gcc_cv_as_micromips_support
=yes
27373 echo "configure: failed program was" >&5
27376 rm -f conftest.o conftest.s
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27380 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27381 if test $gcc_cv_as_micromips_support = yes; then
27383 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27389 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27390 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27391 $as_echo_n "(cached) " >&6
27393 gcc_cv_as_mips_dtprelword
=no
27394 if test $in_tree_gas = yes; then
27395 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27396 then gcc_cv_as_mips_dtprelword
=yes
27398 elif test x
$gcc_cv_as != x
; then
27399 $as_echo '.section .tdata,"awT",@progbits
27403 .dtprelword x+0x8000' > conftest.s
27404 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27406 (eval $ac_try) 2>&5
27408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27409 test $ac_status = 0; }; }
27411 gcc_cv_as_mips_dtprelword
=yes
27413 echo "configure: failed program was" >&5
27416 rm -f conftest.o conftest.s
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27420 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27421 if test $gcc_cv_as_mips_dtprelword = yes; then
27423 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27429 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27430 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27431 $as_echo_n "(cached) " >&6
27433 gcc_cv_as_mips_dspr1_mult
=no
27434 if test x
$gcc_cv_as != x
; then
27435 $as_echo ' .set mips32r2
27443 multu $ac3,$4,$5' > conftest.s
27444 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27446 (eval $ac_try) 2>&5
27448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27449 test $ac_status = 0; }; }
27451 gcc_cv_as_mips_dspr1_mult
=yes
27453 echo "configure: failed program was" >&5
27456 rm -f conftest.o conftest.s
27459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27460 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27461 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27463 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27469 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27470 gcc_cv_as_ld_jalr_reloc
=no
27471 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27472 if test $in_tree_ld = yes ; then
27473 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 \
27474 && test $in_tree_ld_is_elf = yes; then
27475 gcc_cv_as_ld_jalr_reloc
=yes
27477 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27478 echo ' .ent x' > conftest.s
27479 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27480 echo ' lw $25,%call16(y)($28)' >> conftest.s
27481 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27482 echo '1: jalr $25' >> conftest.s
27483 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27484 echo '1: jalr $25' >> conftest.s
27485 echo ' .end x' >> conftest.s
27486 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27487 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27488 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27489 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27490 gcc_cv_as_ld_jalr_reloc
=yes
27496 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27497 if test x
$target_cpu_default = x
; then
27498 target_cpu_default
=MASK_RELAX_PIC_CALLS
27500 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27504 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27507 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27508 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27509 $as_echo_n "(cached) " >&6
27511 gcc_cv_ld_mips_personality_relaxation
=no
27512 if test $in_tree_ld = yes ; then
27513 if test "$gcc_cv_gld_major_version" -eq 2 \
27514 -a "$gcc_cv_gld_minor_version" -ge 21 \
27515 -o "$gcc_cv_gld_major_version" -gt 2; then
27516 gcc_cv_ld_mips_personality_relaxation
=yes
27518 elif test x
$gcc_cv_as != x \
27519 -a x
$gcc_cv_ld != x \
27520 -a x
$gcc_cv_readelf != x
; then
27521 cat > conftest.s
<<EOF
27523 .cfi_personality 0x80,indirect_ptr
27530 .section .data,"aw",@progbits
27534 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27535 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27536 if $gcc_cv_readelf -d conftest
2>&1 \
27537 |
grep TEXTREL
> /dev
/null
2>&1; then
27539 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27540 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27543 gcc_cv_ld_mips_personality_relaxation
=yes
27547 rm -f conftest.s conftest.o conftest
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27550 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27551 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27553 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27558 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27559 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27560 $as_echo_n "(cached) " >&6
27562 gcc_cv_as_mips_nan
=no
27563 if test x
$gcc_cv_as != x
; then
27564 $as_echo '' > conftest.s
27565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27567 (eval $ac_try) 2>&5
27569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27570 test $ac_status = 0; }; }
27572 gcc_cv_as_mips_nan
=yes
27574 echo "configure: failed program was" >&5
27577 rm -f conftest.o conftest.s
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27581 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27582 if test $gcc_cv_as_mips_nan = yes; then
27584 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27588 if test x
$gcc_cv_as_mips_nan = xno \
27589 && test x
$with_nan != x
; then
27590 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27595 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27596 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27597 $as_echo_n "(cached) " >&6
27599 gcc_cv_as_s390_gnu_attribute
=no
27600 if test $in_tree_gas = yes; then
27601 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27602 then gcc_cv_as_s390_gnu_attribute
=yes
27604 elif test x
$gcc_cv_as != x
; then
27605 $as_echo '.gnu_attribute 8,1' > conftest.s
27606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27608 (eval $ac_try) 2>&5
27610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27611 test $ac_status = 0; }; }
27613 gcc_cv_as_s390_gnu_attribute
=yes
27615 echo "configure: failed program was" >&5
27618 rm -f conftest.o conftest.s
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27622 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27623 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27625 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27630 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27631 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27632 $as_echo_n "(cached) " >&6
27634 gcc_cv_as_s390_machine_machinemode
=no
27635 if test $in_tree_gas = yes; then
27636 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27637 then gcc_cv_as_s390_machine_machinemode
=yes
27639 elif test x
$gcc_cv_as != x
; then
27640 $as_echo ' .machinemode push
27643 .machine pop' > conftest.s
27644 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27646 (eval $ac_try) 2>&5
27648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27649 test $ac_status = 0; }; }
27651 gcc_cv_as_s390_machine_machinemode
=yes
27653 echo "configure: failed program was" >&5
27656 rm -f conftest.o conftest.s
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27660 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27661 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27663 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27668 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27669 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27670 $as_echo_n "(cached) " >&6
27672 gcc_cv_as_s390_architecture_modifiers
=no
27673 if test $in_tree_gas = yes; then
27674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27675 then gcc_cv_as_s390_architecture_modifiers
=yes
27677 elif test x
$gcc_cv_as != x
; then
27678 $as_echo ' .machine z13+vx ' > conftest.s
27679 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27681 (eval $ac_try) 2>&5
27683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27684 test $ac_status = 0; }; }
27686 gcc_cv_as_s390_architecture_modifiers
=yes
27688 echo "configure: failed program was" >&5
27691 rm -f conftest.o conftest.s
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27695 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27696 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27698 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27705 # Mips and HP-UX need the GNU assembler.
27706 # Linux on IA64 might be able to use the Intel assembler.
27709 mips
*-*-* |
*-*-hpux* )
27710 if test x
$gas_flag = xyes \
27711 ||
test x
"$host" != x
"$build" \
27712 ||
test ! -x "$gcc_cv_as" \
27713 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27716 echo "*** This configuration requires the GNU assembler" >&2
27722 # ??? Not all targets support dwarf2 debug_line, even within a version
27723 # of gas. Moreover, we need to emit a valid instruction to trigger any
27724 # info to the output file. So, as supported targets are added to gas 2.11,
27725 # add some instruction here to (also) show we expect this might work.
27726 # ??? Once 2.11 is released, probably need to add first known working
27727 # version to the per-target configury.
27728 case "$cpu_type" in
27729 aarch64 | alpha | arc | arm | avr | bfin | cris | i386 | m32c | m68k \
27730 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27731 | tilegx | tilepro | visium | xstormy16 | xtensa
)
27741 if test x
"$insn" != x
; then
27743 .file 1 \"conftest.s\"
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27747 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27748 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27749 $as_echo_n "(cached) " >&6
27751 gcc_cv_as_dwarf2_debug_line
=no
27752 if test $in_tree_gas = yes; then
27753 if test $in_tree_gas_is_elf = yes \
27754 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27755 then gcc_cv_as_dwarf2_debug_line
=yes
27757 elif test x
$gcc_cv_as != x
; then
27758 $as_echo "$conftest_s" > conftest.s
27759 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27761 (eval $ac_try) 2>&5
27763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27764 test $ac_status = 0; }; }
27766 if test x
$gcc_cv_objdump != x \
27767 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27768 |
grep debug_line
> /dev
/null
2>&1; then
27769 gcc_cv_as_dwarf2_debug_line
=yes
27772 echo "configure: failed program was" >&5
27775 rm -f conftest.o conftest.s
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27779 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27783 # The .debug_line file table must be in the exact order that
27784 # we specified the files, since these indices are also used
27785 # by DW_AT_decl_file. Approximate this test by testing if
27786 # the assembler bitches if the same index is assigned twice.
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27788 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27789 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27790 $as_echo_n "(cached) " >&6
27792 gcc_cv_as_dwarf2_file_buggy
=no
27793 if test x
$gcc_cv_as != x
; then
27794 $as_echo ' .file 1 "foo.s"
27795 .file 1 "bar.s"' > conftest.s
27796 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27798 (eval $ac_try) 2>&5
27800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27801 test $ac_status = 0; }; }
27803 gcc_cv_as_dwarf2_file_buggy
=yes
27805 echo "configure: failed program was" >&5
27808 rm -f conftest.o conftest.s
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27812 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27816 if test $gcc_cv_as_dwarf2_debug_line = yes \
27817 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27819 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27824 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27825 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27826 $as_echo_n "(cached) " >&6
27828 gcc_cv_as_gdwarf2_flag
=no
27829 if test $in_tree_gas = yes; then
27830 if test $in_tree_gas_is_elf = yes \
27831 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27832 then gcc_cv_as_gdwarf2_flag
=yes
27834 elif test x
$gcc_cv_as != x
; then
27835 $as_echo "$insn" > conftest.s
27836 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27838 (eval $ac_try) 2>&5
27840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27841 test $ac_status = 0; }; }
27843 gcc_cv_as_gdwarf2_flag
=yes
27845 echo "configure: failed program was" >&5
27848 rm -f conftest.o conftest.s
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27852 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27853 if test $gcc_cv_as_gdwarf2_flag = yes; then
27855 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27861 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27862 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27863 $as_echo_n "(cached) " >&6
27865 gcc_cv_as_gstabs_flag
=no
27866 if test $in_tree_gas = yes; then
27867 if test $in_tree_gas_is_elf = yes \
27868 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27869 then gcc_cv_as_gstabs_flag
=yes
27871 elif test x
$gcc_cv_as != x
; then
27872 $as_echo "$insn" > conftest.s
27873 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27875 (eval $ac_try) 2>&5
27877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27878 test $ac_status = 0; }; }
27880 gcc_cv_as_gstabs_flag
=yes
27882 echo "configure: failed program was" >&5
27885 rm -f conftest.o conftest.s
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27889 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27890 if test $gcc_cv_as_gstabs_flag = yes; then
27892 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27898 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27899 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27900 $as_echo_n "(cached) " >&6
27902 gcc_cv_as_debug_prefix_map_flag
=no
27903 if test $in_tree_gas = yes; then
27904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27905 then gcc_cv_as_debug_prefix_map_flag
=yes
27907 elif test x
$gcc_cv_as != x
; then
27908 $as_echo "$insn" > conftest.s
27909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27911 (eval $ac_try) 2>&5
27913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27914 test $ac_status = 0; }; }
27916 gcc_cv_as_debug_prefix_map_flag
=yes
27918 echo "configure: failed program was" >&5
27921 rm -f conftest.o conftest.s
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27925 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27926 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27928 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27935 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27936 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27937 $as_echo_n "(cached) " >&6
27939 gcc_cv_as_compress_debug
=no
27940 if test x
$gcc_cv_as != x
; then
27941 $as_echo '' > conftest.s
27942 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27944 (eval $ac_try) 2>&5
27946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27947 test $ac_status = 0; }; }
27949 # gas compiled without zlib cannot compress debug sections and warns
27950 # about it, but still exits successfully. So check for this, too.
27951 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27953 gcc_cv_as_compress_debug
=0
27954 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27955 # defaulting to the ELF gABI format.
27956 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
27958 gcc_cv_as_compress_debug
=2
27959 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27960 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27961 # Before binutils 2.26, gas only supported --compress-debug-options and
27962 # emitted the traditional GNU format.
27963 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27965 gcc_cv_as_compress_debug
=1
27966 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27967 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27969 gcc_cv_as_compress_debug
=0
27972 echo "configure: failed program was" >&5
27975 rm -f conftest.o conftest.s
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27979 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27983 cat >>confdefs.h
<<_ACEOF
27984 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27988 cat >>confdefs.h
<<_ACEOF
27989 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27993 cat >>confdefs.h
<<_ACEOF
27994 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27999 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28000 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
28001 $as_echo_n "(cached) " >&6
28003 gcc_cv_as_lcomm_with_alignment
=no
28004 if test x
$gcc_cv_as != x
; then
28005 $as_echo '.lcomm bar,4,16' > conftest.s
28006 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28008 (eval $ac_try) 2>&5
28010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28011 test $ac_status = 0; }; }
28013 gcc_cv_as_lcomm_with_alignment
=yes
28015 echo "configure: failed program was" >&5
28018 rm -f conftest.o conftest.s
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28022 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28023 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28025 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28030 if test x
$with_sysroot = x
&& test x
$host = x
$target \
28031 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28032 && test "$prefix" != "NONE"; then
28034 cat >>confdefs.h
<<_ACEOF
28035 #define PREFIX_INCLUDE_DIR "$prefix/include"
28040 # Determine the version of glibc, if any, used on the target.
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28042 $as_echo_n "checking for target glibc version... " >&6; }
28044 # Check whether --with-glibc-version was given.
28045 if test "${with_glibc_version+set}" = set; then :
28046 withval
=$with_glibc_version;
28047 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28048 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28049 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28051 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
28055 glibc_version_major
=0
28056 glibc_version_minor
=0
28057 if test -f $target_header_dir/features.h \
28058 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28059 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28060 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28061 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28066 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28068 cat >>confdefs.h
<<_ACEOF
28069 #define TARGET_GLIBC_MAJOR $glibc_version_major
28073 cat >>confdefs.h
<<_ACEOF
28074 #define TARGET_GLIBC_MINOR $glibc_version_minor
28078 # Check whether --enable-gnu-unique-object was given.
28079 if test "${enable_gnu_unique_object+set}" = set; then :
28080 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28082 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28083 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28087 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28088 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
28089 $as_echo_n "(cached) " >&6
28091 gcc_cv_as_gnu_unique_object
=no
28092 if test $in_tree_gas = yes; then
28093 if test $in_tree_gas_is_elf = yes \
28094 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28095 then gcc_cv_as_gnu_unique_object
=yes
28097 elif test x
$gcc_cv_as != x
; then
28098 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28099 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28101 (eval $ac_try) 2>&5
28103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28104 test $ac_status = 0; }; }
28106 gcc_cv_as_gnu_unique_object
=yes
28108 echo "configure: failed program was" >&5
28111 rm -f conftest.o conftest.s
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28115 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28116 if test $gcc_cv_as_gnu_unique_object = yes; then
28117 # We need to unquote above to to use the definition from config.gcc.
28118 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28120 if test $glibc_version_major -gt 2 \
28121 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28122 enable_gnu_unique_object
=yes
28129 if test x
$enable_gnu_unique_object = xyes
; then
28131 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28136 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28137 if test "${gcc_cv_as_line_zero+set}" = set; then :
28138 $as_echo_n "(cached) " >&6
28140 gcc_cv_as_line_zero
=no
28141 if test $in_tree_gas = yes; then
28142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28143 then gcc_cv_as_line_zero
=yes
28145 elif test "x$gcc_cv_as" != x
; then
28146 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28147 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28149 (eval $ac_try) 2>&5
28151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28152 test $ac_status = 0; }; } &&
28153 test "x`cat conftest.out`" = x
28155 gcc_cv_as_line_zero
=yes
28157 echo "configure: failed program was" >&5
28159 echo "configure: error output was" >&5
28160 cat conftest.out
>&5
28162 rm -f conftest.o conftest.s conftest.out
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28166 $as_echo "$gcc_cv_as_line_zero" >&6; }
28167 if test "x$gcc_cv_as_line_zero" = xyes
; then
28169 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28174 $as_echo_n "checking support for thin archives... " >&6; }
28175 thin_archive_support
=no
28176 echo 'int main (void) { return 0; }' > conftest.c
28177 if ($AR --version |
sed 1q |
grep "GNU ar" \
28178 && $CC $CFLAGS -c conftest.c \
28179 && $AR rcT conftest.a conftest.o \
28180 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
28181 thin_archive_support
=yes
28183 rm -f conftest.c conftest.o conftest.a conftest
28184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28185 $as_echo "$thin_archive_support" >&6; }
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28189 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28190 gcc_cv_ld_eh_frame_hdr
=no
28191 if test $in_tree_ld = yes ; then
28192 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 \
28193 && test $in_tree_ld_is_elf = yes; then
28194 gcc_cv_ld_eh_frame_hdr
=yes
28196 elif test x
$gcc_cv_ld != x
; then
28197 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28198 # Check if linker supports --eh-frame-hdr option
28199 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
28200 gcc_cv_ld_eh_frame_hdr
=yes
28205 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28206 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28207 gcc_cv_ld_eh_frame_hdr
=yes
28214 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28216 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28220 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28223 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28224 gcc_cv_ld_eh_frame_ciev3
=no
28225 if test $in_tree_ld = yes ; then
28226 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 \
28227 && test $in_tree_ld_is_elf = yes; then
28228 gcc_cv_ld_eh_frame_ciev3
=yes
28230 elif test x
$gcc_cv_ld != x
; then
28231 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28232 gcc_cv_ld_eh_frame_ciev3
=yes
28233 if test 0"$ld_date" -lt 20040513; then
28234 if test -n "$ld_date"; then
28235 # If there was date string, but was earlier than 2004-05-13, fail
28236 gcc_cv_ld_eh_frame_ciev3
=no
28237 elif test "$ld_vers_major" -lt 2; then
28238 gcc_cv_ld_eh_frame_ciev3
=no
28239 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28240 gcc_cv_ld_eh_frame_ciev3
=no
28246 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28247 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28248 gcc_cv_ld_eh_frame_ciev3
=yes
28255 cat >>confdefs.h
<<_ACEOF
28256 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28260 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28263 $as_echo_n "checking linker position independent executable support... " >&6; }
28265 if test $in_tree_ld = yes ; then
28267 # Full PIE support on Solaris was only introduced in gld 2.26.
28268 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28269 *) gcc_gld_pie_min_version
=15 ;;
28271 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 \
28272 && test $in_tree_ld_is_elf = yes; then
28275 elif test x
$gcc_cv_ld != x
; then
28276 # Check if linker supports -pie option
28277 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28281 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28282 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28289 *-*-solaris2.1
[1-9]*)
28290 # Solaris 11.3 added PIE support.
28291 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28298 if test x
"$gcc_cv_ld_pie" = xyes
; then
28300 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28304 $as_echo "$gcc_cv_ld_pie" >&6; }
28306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28307 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28308 gcc_cv_ld_pie_copyreloc
=no
28309 if test $gcc_cv_ld_pie = yes ; then
28310 if test $in_tree_ld = yes ; then
28311 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
28312 gcc_cv_ld_pie_copyreloc
=yes
28314 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28315 # Check if linker supports -pie option with copy reloc
28317 i?
86-*-linux* | x86_64-
*-linux*)
28318 cat > conftest1.s
<<EOF
28321 .type a_glob, @object
28326 cat > conftest2.s
<<EOF
28329 .type main, @function
28331 movl %eax, a_glob(%rip)
28334 .section .data.rel,"aw",@progbits
28339 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28340 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28341 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28342 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28343 gcc_cv_ld_pie_copyreloc
=yes
28345 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28351 cat >>confdefs.h
<<_ACEOF
28352 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28356 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28359 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28360 gcc_cv_ld_eh_gc_sections
=no
28361 if test $in_tree_ld = yes ; then
28362 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 \
28363 && test $in_tree_ld_is_elf = yes; then
28364 gcc_cv_ld_eh_gc_sections
=yes
28366 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28367 cat > conftest.s
<<EOF
28370 .type _start, @function
28373 .size _start, .-_start
28374 .section .text.foo,"ax",@progbits
28375 .type foo, @function
28379 .section .gcc_except_table.foo,"a",@progbits
28382 .section .eh_frame,"a",@progbits
28385 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28386 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28387 |
grep "gc-sections option ignored" > /dev
/null
; then
28388 gcc_cv_ld_eh_gc_sections
=no
28389 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28390 |
grep gcc_except_table
> /dev
/null
; then
28391 gcc_cv_ld_eh_gc_sections
=yes
28392 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28393 if test x
$gcc_cv_as_comdat_group != xyes
; then
28394 gcc_cv_ld_eh_gc_sections
=no
28395 cat > conftest.s
<<EOF
28398 .type _start, @function
28401 .size _start, .-_start
28402 .section .gnu.linkonce.t.foo,"ax",@progbits
28403 .type foo, @function
28407 .section .gcc_except_table.foo,"a",@progbits
28410 .section .eh_frame,"a",@progbits
28413 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28414 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28415 |
grep "gc-sections option ignored" > /dev
/null
; then
28416 gcc_cv_ld_eh_gc_sections
=no
28417 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28418 |
grep gcc_except_table
> /dev
/null
; then
28419 gcc_cv_ld_eh_gc_sections
=yes
28425 rm -f conftest.s conftest.o conftest
28429 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28430 gcc_cv_ld_eh_gc_sections
=no
28433 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28435 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28439 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28442 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28443 gcc_cv_ld_eh_gc_sections_bug
=no
28444 if test $in_tree_ld = yes ; then
28445 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 \
28446 && test $in_tree_ld_is_elf = yes; then
28447 gcc_cv_ld_eh_gc_sections_bug
=yes
28449 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
28450 gcc_cv_ld_eh_gc_sections_bug
=yes
28451 cat > conftest.s
<<EOF
28454 .type _start, @function
28457 .size _start, .-_start
28458 .section .text.startup.foo,"ax",@progbits
28459 .type foo, @function
28463 .section .gcc_except_table.foo,"a",@progbits
28466 .section .eh_frame,"a",@progbits
28469 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28470 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28471 |
grep "gc-sections option ignored" > /dev
/null
; then
28473 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28474 |
grep gcc_except_table
> /dev
/null
; then
28475 gcc_cv_ld_eh_gc_sections_bug
=no
28478 rm -f conftest.s conftest.o conftest
28480 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28482 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28486 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28489 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28490 # gold/gld support compressed debug sections since binutils 2.19/2.21
28491 # In binutils 2.26, gld gained support for the ELF gABI format.
28492 if test $in_tree_ld = yes ; then
28493 gcc_cv_ld_compress_debug
=0
28494 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 \
28495 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28496 gcc_cv_ld_compress_debug
=2
28497 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28498 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 \
28499 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28500 gcc_cv_ld_compress_debug
=3
28501 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28502 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 \
28503 && test $in_tree_ld_is_elf = yes; then
28504 gcc_cv_ld_compress_debug
=1
28506 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28507 if test "$ld_vers_major" -lt 2 \
28508 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28509 gcc_cv_ld_compress_debug
=0
28510 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28511 gcc_cv_ld_compress_debug
=1
28513 gcc_cv_ld_compress_debug
=3
28514 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28516 if test $ld_is_gold = yes; then
28517 gcc_cv_ld_compress_debug
=2
28518 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28521 case "${target}" in
28523 # Introduced in Solaris 11.2.
28524 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28525 gcc_cv_ld_compress_debug
=3
28526 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28528 gcc_cv_ld_compress_debug
=0
28532 # Assume linkers other than GNU ld don't support compessed debug
28534 gcc_cv_ld_compress_debug
=0
28539 cat >>confdefs.h
<<_ACEOF
28540 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28544 cat >>confdefs.h
<<_ACEOF
28545 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28549 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28551 if test x
"$ld64_flag" = x
"yes"; then
28553 # Set defaults for possibly untestable items.
28554 gcc_cv_ld64_export_dynamic
=0
28556 if test "$build" = "$host"; then
28562 # On Darwin, because of FAT library support, it is often possible to execute
28563 # exes from compatible archs even when the host differs from the build system.
28564 case "$build","$host" in
28565 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28566 darwin_try_test
=1;;
28570 # If the configurer specified a minimum ld64 version to be supported, then use
28571 # that to determine feature support.
28572 if test x
"${gcc_cv_ld64_version}" != x
; then
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28574 $as_echo_n "checking ld64 specified version... " >&6; }
28575 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28577 $as_echo "$gcc_cv_ld64_major" >&6; }
28578 if test "$gcc_cv_ld64_major" -ge 236; then
28579 gcc_cv_ld64_export_dynamic
=1
28581 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28582 # If the version was not specified, try to find it.
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28584 $as_echo_n "checking linker version... " >&6; }
28585 if test x
"${gcc_cv_ld64_version}" = x
; then
28586 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28589 $as_echo "$gcc_cv_ld64_version" >&6; }
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28592 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28593 gcc_cv_ld64_export_dynamic
=1
28594 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28595 gcc_cv_ld64_export_dynamic
=0
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28598 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28601 if test x
"${gcc_cv_ld64_version}" != x
; then
28603 cat >>confdefs.h
<<_ACEOF
28604 #define LD64_VERSION "${gcc_cv_ld64_version}"
28610 cat >>confdefs.h
<<_ACEOF
28611 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28621 $as_echo_n "checking linker --as-needed support... " >&6; }
28622 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28623 $as_echo_n "(cached) " >&6
28625 gcc_cv_ld_as_needed
=no
28626 gcc_cv_ld_as_needed_option
='--as-needed'
28627 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28628 if test $in_tree_ld = yes ; then
28629 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 \
28630 && test $in_tree_ld_is_elf = yes; then
28631 gcc_cv_ld_as_needed
=yes
28633 elif test x
$gcc_cv_ld != x
; then
28634 # Check if linker supports --as-needed and --no-as-needed options
28635 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
28636 gcc_cv_ld_as_needed
=yes
28638 case "$target:$gnu_ld" in
28640 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28642 gcc_cv_ld_as_needed
=yes
28643 gcc_cv_ld_as_needed_option
="-z ignore"
28644 gcc_cv_ld_no_as_needed_option
="-z record"
28648 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28649 # dl_iterate_phdr, i.e. since Solaris 11.
28651 *-*-solaris2.1
[1-9]*)
28653 i?
86-*-* | x86_64-
*-*)
28654 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28655 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28656 gcc_cv_ld_as_needed
=no
28662 gcc_cv_ld_as_needed
=no
28667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28668 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28669 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28671 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28674 cat >>confdefs.h
<<_ACEOF
28675 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28679 cat >>confdefs.h
<<_ACEOF
28680 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28686 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28687 saved_LDFLAGS
="$LDFLAGS"
28688 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28689 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28691 /* end confdefs.h. */
28692 int main(void) {return 0;}
28694 if ac_fn_cxx_try_link
"$LINENO"; then :
28695 gcc_cv_ld_clearcap
=yes; break
28697 gcc_cv_ld_clearcap
=no
28699 rm -f core conftest.err conftest.
$ac_objext \
28700 conftest
$ac_exeext conftest.
$ac_ext
28702 LDFLAGS
="$saved_LDFLAGS"
28703 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28705 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28707 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28711 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28717 emul_name
="-melf32lppc"
28720 emul_name
="-melf32ppc"
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28724 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28725 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28726 $as_echo_n "(cached) " >&6
28728 gcc_cv_ld_ppc_attr
=no
28729 if test x
"$ld_is_gold" = xyes
; then
28730 gcc_cv_ld_ppc_attr
=yes
28731 elif test $in_tree_ld = yes ; then
28732 if test "$gcc_cv_gld_major_version" -eq 2 \
28733 -a "$gcc_cv_gld_minor_version" -ge 28 \
28734 -o "$gcc_cv_gld_major_version" -gt 2; then
28735 gcc_cv_ld_ppc_attr
=yes
28737 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28738 # check that merging the long double .gnu_attribute doesn't warn
28739 cat > conftest1.s
<<EOF
28742 cat > conftest2.s
<<EOF
28745 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28746 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28747 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
28748 && test ! -s conftest.err
; then
28749 gcc_cv_ld_ppc_attr
=yes
28751 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28756 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28757 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
28759 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28765 case "$target:$tm_file" in
28766 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28769 emul_name
="-melf64lppc"
28772 emul_name
="-melf64ppc"
28775 emul_name
="-melf64ppc_fbsd"
28778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28779 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28780 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28781 $as_echo_n "(cached) " >&6
28783 gcc_cv_ld_no_dot_syms
=no
28784 if test x
"$ld_is_gold" = xyes
; then
28785 gcc_cv_ld_no_dot_syms
=yes
28786 elif test $in_tree_ld = yes ; then
28787 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
28788 gcc_cv_ld_no_dot_syms
=yes
28790 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28791 cat > conftest1.s
<<EOF
28795 cat > conftest2.s
<<EOF
28796 .section ".opd","aw"
28799 .type foo,@function
28801 .quad .LEfoo,.TOC.@tocbase,0
28807 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28808 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28809 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28810 gcc_cv_ld_no_dot_syms
=yes
28812 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28817 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28818 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28820 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28825 $as_echo_n "checking linker large toc support... " >&6; }
28826 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28827 $as_echo_n "(cached) " >&6
28829 gcc_cv_ld_large_toc
=no
28830 if test x
"$ld_is_gold" = xyes
; then
28831 gcc_cv_ld_large_toc
=yes
28832 elif test $in_tree_ld = yes ; then
28833 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
28834 gcc_cv_ld_large_toc
=yes
28836 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28837 cat > conftest.s
<<EOF
28838 .section ".tbss","awT",@nobits
28844 addis 9,13,ie0@got@tprel@ha
28845 ld 9,ie0@got@tprel@l(9)
28847 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28848 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28849 gcc_cv_ld_large_toc
=yes
28851 rm -f conftest conftest.o conftest.s
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28856 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28857 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28859 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28864 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28865 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28866 $as_echo_n "(cached) " >&6
28868 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28869 cat > conftest.s
<<EOF
28874 .section .data.rel.ro,"aw",@progbits
28879 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28880 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28881 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)) }'`
28883 rm -f conftest conftest.o conftest.s
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28888 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28889 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28891 cat >>confdefs.h
<<_ACEOF
28892 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28902 $as_echo_n "checking linker large toc support... " >&6; }
28903 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28904 $as_echo_n "(cached) " >&6
28906 gcc_cv_ld_large_toc
=no
28907 if test x
$gcc_cv_as != x
; then
28908 cat > conftest.s
<<EOF
28918 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28919 gcc_cv_ld_large_toc
=yes
28921 rm -f conftest conftest.o conftest.s
28925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28926 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28927 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28929 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28936 $as_echo_n "checking linker --build-id support... " >&6; }
28937 if test "${gcc_cv_ld_buildid+set}" = set; then :
28938 $as_echo_n "(cached) " >&6
28940 gcc_cv_ld_buildid
=no
28941 if test $in_tree_ld = yes ; then
28942 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28943 "$gcc_cv_gld_minor_version" -ge 18 -o \
28944 "$gcc_cv_gld_major_version" -gt 2 \
28945 && test $in_tree_ld_is_elf = yes; then
28946 gcc_cv_ld_buildid
=yes
28948 elif test x
$gcc_cv_ld != x
; then
28949 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
28950 gcc_cv_ld_buildid
=yes
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28955 $as_echo "$gcc_cv_ld_buildid" >&6; }
28956 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28958 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28962 # Check whether --enable-linker-build-id was given.
28963 if test "${enable_linker_build_id+set}" = set; then :
28964 enableval
=$enable_linker_build_id;
28966 enable_linker_build_id
=no
28970 if test x
"$enable_linker_build_id" = xyes
; then
28971 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28973 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28977 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28981 # In binutils 2.21, GNU ld gained support for new emulations fully
28982 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28984 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28985 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28986 $as_echo_n "(cached) " >&6
28988 gcc_cv_ld_sol2_emulation
=no
28989 if test $in_tree_ld = yes ; then
28990 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28991 "$gcc_cv_gld_minor_version" -ge 21 -o \
28992 "$gcc_cv_gld_major_version" -gt 2 \
28993 && test $in_tree_ld_is_elf = yes; then
28994 gcc_cv_ld_sol2_emulation
=yes
28996 elif test x
$gcc_cv_ld != x
; then
28997 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28998 grep _sol2
> /dev
/null
; then
28999 gcc_cv_ld_sol2_emulation
=yes
29003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29004 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29005 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
29007 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29012 $as_echo_n "checking linker --sysroot support... " >&6; }
29013 if test "${gcc_cv_ld_sysroot+set}" = set; then :
29014 $as_echo_n "(cached) " >&6
29016 gcc_cv_ld_sysroot
=no
29017 if test $in_tree_ld = yes ; then
29018 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
29019 gcc_cv_ld_sysroot
=yes
29021 elif test x
$gcc_cv_ld != x
; then
29022 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
29023 gcc_cv_ld_sysroot
=yes
29027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29028 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29029 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
29031 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29037 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29039 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29040 if test "${gcc_cv_solaris_crts+set}" = set; then :
29041 $as_echo_n "(cached) " >&6
29043 gcc_cv_solaris_crts
=no
29044 if test x
$host != x
$target; then
29045 if test "x$with_sysroot" = xyes
; then
29046 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
29048 target_sysroot
="${with_sysroot}"
29051 target_libdir
="$target_sysroot/usr/lib"
29052 # At the time they were added, gcrt1.o became a symlink for backwards
29053 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29055 i?
86-*-solaris2* | x86_64-
*-solaris2*)
29056 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
29058 sparc
*-*-solaris2*)
29059 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29064 $as_echo "$gcc_cv_solaris_crts" >&6; }
29067 if test x
$gcc_cv_solaris_crts = xyes
; then
29069 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29073 # Check whether --enable-libssp was given.
29074 if test "${enable_libssp+set}" = set; then :
29075 enableval
=$enable_libssp; case "${enableval}" in
29079 as_fn_error
"unknown libssp setting $enableval" "$LINENO" 5
29085 # Test for stack protector support in target C library.
29086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29087 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29088 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
29089 $as_echo_n "(cached) " >&6
29091 gcc_cv_libc_provides_ssp
=no
29092 if test "x$enable_libssp" = "xno"; then
29093 gcc_cv_libc_provides_ssp
=yes
29094 elif test "x$enable_libssp" = "xyes"; then
29095 gcc_cv_libc_provides_ssp
=no
29099 # All versions of musl provide stack protector
29100 gcc_cv_libc_provides_ssp
=yes;;
29101 *-*-linux* |
*-*-kfreebsd*-gnu)
29102 # glibc 2.4 and later provides __stack_chk_fail and
29103 # either __stack_chk_guard, or TLS access to stack guard canary.
29105 if test $glibc_version_major -gt 2 \
29106 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29107 gcc_cv_libc_provides_ssp
=yes
29110 if test -f $target_header_dir/features.h \
29111 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29112 $target_header_dir/features.h
> /dev
/null
; then
29113 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29114 $target_header_dir/features.h
> /dev
/null
&& \
29115 test -f $target_header_dir/bits
/uClibc_config.h
&& \
29116 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29117 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
29118 gcc_cv_libc_provides_ssp
=yes
29120 # all versions of Bionic support stack protector
29121 elif test -f $target_header_dir/sys
/cdefs.h \
29122 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29123 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
29124 gcc_cv_libc_provides_ssp
=yes
29129 # Avoid complicated tests (see
29130 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29131 # simply assert that glibc does provide this, which is true for all
29132 # realistically usable GNU/Hurd configurations.
29133 # All supported versions of musl provide it as well
29134 gcc_cv_libc_provides_ssp
=yes;;
29135 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
29136 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29137 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
29138 gcc_cv_libc_provides_ssp
=yes
29140 echo "no __stack_chk_fail on this target"
29144 *) gcc_cv_libc_provides_ssp
=no
;;
29148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29149 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29151 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29153 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29157 # Check whether --enable-default-ssp was given.
29158 # Check whether --enable-default-ssp was given.
29159 if test "${enable_default_ssp+set}" = set; then :
29160 enableval
=$enable_default_ssp;
29161 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29163 ia64
*-*-*) enable_default_ssp
=no
;;
29164 *) enable_default_ssp
=$enableval ;;
29167 enable_default_ssp
=no
29170 enable_default_ssp
=no
29173 if test x
$enable_default_ssp = xyes
; then
29175 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29180 # Test for <sys/sdt.h> on the target.
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29183 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29185 if test -f $target_header_dir/sys
/sdt.h
; then
29188 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29192 $as_echo "$have_sys_sdt_h" >&6; }
29194 # Check if TFmode long double should be used by default or not.
29195 # Some glibc targets used DFmode long double, but with glibc 2.4
29196 # and later they can use TFmode.
29198 powerpc
*-*-linux* | \
29199 sparc
*-*-linux* | \
29203 # Check whether --with-long-double-128 was given.
29204 if test "${with_long_double_128+set}" = set; then :
29205 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29208 if test $glibc_version_major -gt 2 \
29209 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29210 gcc_cv_target_ldbl128
=yes
29213 gcc_cv_target_ldbl128
=no
29214 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29215 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29216 && gcc_cv_target_ldbl128
=yes
29223 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29225 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29229 # Check if TFmode long double target should use the IBM extended double or IEEE
29230 # 128-bit floating point formats if long doubles are 128-bits long. The long
29231 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29232 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29235 # Check whether --with-long-double-format was given.
29236 if test "${with_long_double_format+set}" = set; then :
29237 withval
=$with_long_double_format;
29238 case "$target:$with_long_double_format" in
29239 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
29242 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
29243 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29244 case "$with_cpu" in
29245 power7 | power8 | power9 | power1
*)
29249 as_fn_error
"Configuration option --with-long-double-format is only \
29250 supported if the default cpu is power7 or newer" "$LINENO" 5
29251 with_long_double_format
=""
29255 xpowerpc64
*-*-linux*:*)
29256 as_fn_error
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29257 with_long_double_format
=""
29260 as_fn_error
"Configure option --with-long-double-format is only supported \
29261 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29262 with_long_double_format
=""
29268 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29269 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29270 gcc_cv_libc_provides_hwcap_in_tcb
=no
29274 if test $glibc_version_major -gt 2 \
29275 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29276 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29280 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29282 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29287 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29288 gcc_cv_target_dl_iterate_phdr
=unknown
29290 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29291 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29292 # libdl there, both complicating its use and breaking compatibility
29293 # between Solaris 10 updates.
29294 *-*-solaris2.1
[1-9]*)
29295 # <link.h> needs both a dl_iterate_phdr declaration and support for
29296 # compilation with largefile support.
29297 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29298 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29299 gcc_cv_target_dl_iterate_phdr
=yes
29301 gcc_cv_target_dl_iterate_phdr
=no
29304 *-*-dragonfly* |
*-*-freebsd*)
29305 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29306 gcc_cv_target_dl_iterate_phdr
=yes
29308 gcc_cv_target_dl_iterate_phdr
=no
29312 gcc_cv_target_dl_iterate_phdr
=yes
29316 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29318 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29322 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29324 # We no longer support different GC mechanisms. Emit an error if
29325 # the user configures with --with-gc.
29327 # Check whether --with-gc was given.
29328 if test "${with_gc+set}" = set; then :
29329 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29333 # Libraries to use on the host. This will normally be set by the top
29334 # level Makefile. Here we simply capture the value for our Makefile.
29335 if test -z "${HOST_LIBS+set}"; then
29340 # Use the system's zlib library.
29342 # Use the system's zlib library.
29343 zlibdir
="-L\$(top_builddir)/../zlib"
29344 zlibinc
="-I\$(top_srcdir)/../zlib"
29346 # Check whether --with-system-zlib was given.
29347 if test "${with_system_zlib+set}" = set; then :
29348 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29361 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29362 # Check whether --enable-maintainer-mode was given.
29363 if test "${enable_maintainer_mode+set}" = set; then :
29364 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29371 $as_echo "$maintainer_mode" >&6; }
29373 if test "$maintainer_mode" = "yes"; then
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29381 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29382 # Check whether --enable-link-mutex was given.
29383 if test "${enable_link_mutex+set}" = set; then :
29384 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29390 $as_echo "$do_link_mutex" >&6; }
29392 if test "$do_link_mutex" = "yes"; then
29395 DO_LINK_MUTEX
=false
29403 # Make empty files to contain the specs and options for each language.
29404 # Then add #include lines to for a compiler that has specs and/or options.
29410 # These (without "all_") are set in each config-lang.in.
29411 # `language' must be a single word so is spelled singularly.
29414 all_outputs
='Makefile'
29415 # List of language makefile fragments.
29416 all_lang_makefrags
=
29417 # Additional files for gengtype
29418 all_gtfiles
="$target_gtfiles"
29420 # These are the languages that are set in --enable-languages,
29421 # and are available in the GCC tree.
29422 all_selected_languages
=
29424 # Add the language fragments.
29425 # Languages are added via two mechanisms. Some information must be
29426 # recorded in makefile variables, these are defined in config-lang.in.
29427 # We accumulate them and plug them into the main Makefile.
29428 # The other mechanism is a set of hooks for each of the main targets
29429 # like `clean', `install', etc.
29431 language_hooks
="Make-hooks"
29433 for lang
in ${srcdir}/*/config-lang.
in
29435 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29437 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29438 if test "x$lang_alias" = x
29440 echo "$lang doesn't set \$language." 1>&2
29443 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29444 subdirs
="$subdirs $subdir"
29446 # $gcc_subdir is where the gcc integration files are to be found
29447 # for a language, both for internal compiler purposes (compiler
29448 # sources implementing front-end to GCC tree converters), and for
29449 # build infrastructure purposes (Make-lang.in, etc.)
29451 # This will be <subdir> (relative to $srcdir) if a line like
29452 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29453 # is found in <langdir>/config-lang.in, and will remain <langdir>
29456 # Except for the language alias (fetched above), the regular
29457 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29458 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29459 # only this and the language alias.
29461 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29462 if [ "$gcc_subdir" = "" ]; then
29463 gcc_subdir
="$subdir"
29466 case ",$enable_languages," in
29468 all_selected_languages
="$all_selected_languages $lang_alias"
29469 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29470 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29481 .
${srcdir}/$gcc_subdir/config-lang.
in
29482 if test "x$language" = x
29484 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29489 case ",$enable_languages," in
29490 *,$lang_alias,*) ;;
29492 for i
in $subdir_requires; do
29493 test -f "${srcdir}/$i/config-lang.in" && continue
29501 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29502 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29503 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29504 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29506 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29507 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29509 all_languages
="$all_languages $language"
29510 all_compilers
="$all_compilers $compilers"
29511 all_outputs
="$all_outputs $outputs"
29512 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29513 case ",$enable_languages," in
29516 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29526 for language
in $all_selected_languages
29528 check_languages
="$check_languages check-$language"
29531 # We link each language in with a set of hooks, reached indirectly via
29532 # lang.${target}. Only do so for selected languages.
29536 target_list
="all.cross start.encap rest.encap tags \
29537 install-common install-man install-info install-pdf install-html dvi \
29538 pdf html uninstall info man srcextra srcman srcinfo \
29539 mostlyclean clean distclean maintainer-clean install-plugin"
29541 for t
in $target_list
29544 for lang
in $all_selected_languages
29548 echo "lang.$t: $x" >> Make-hooks
29552 # Option include files
29555 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29556 option_includes
="option-includes.mk"
29565 echo "dir ." > .gdbinit
29566 echo "dir ${srcdir}" >> .gdbinit
29567 if test x
$gdb_needs_out_file_path = xyes
29569 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29571 if test "x$subdirs" != x
; then
29574 echo "dir ${srcdir}/$s" >> .gdbinit
29577 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29578 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29580 # Put a breakpoint on __asan_report_error to help with debugging buffer
29583 *-fsanitize=address
*)
29584 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29588 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29592 # Find a directory in which to install a shared libgcc.
29594 # Check whether --enable-version-specific-runtime-libs was given.
29595 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29596 enableval
=$enable_version_specific_runtime_libs;
29600 # Substitute configuration variables
29664 if test x
${build} = x
${host} ; then
29665 if test x
${host} = x
${target} ; then
29666 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29668 echo "Links are now set up to build a cross-compiler" 1>&2
29669 echo " from ${host} to ${target}." 1>&2
29672 if test x
${host} = x
${target} ; then
29673 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29674 echo " for ${target}." 1>&2
29676 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29677 echo " from ${host} to ${target}." 1>&2
29686 if test "x${ISLLIBS}" != "x" ; then
29688 $as_echo "#define HAVE_isl 1" >>confdefs.h
29692 # Check for plugin support
29693 # Check whether --enable-plugin was given.
29694 if test "${enable_plugin+set}" = set; then :
29695 enableval
=$enable_plugin; enable_plugin
=$enableval
29697 enable_plugin
=yes; default_plugin
=yes
29706 # Since plugin support under MinGW is not as straightforward as on
29707 # other platforms (e.g., we have to link import library, etc), we
29708 # only enable it if explicitly requested.
29709 if test x
"$default_plugin" = x
"yes"; then
29711 elif test x
"$enable_plugin" = x
"yes"; then
29712 # Use make's target variable to derive import library name.
29713 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29718 if test x
$build = x
$host; then
29719 export_sym_check
="nm${exeext} -g"
29720 elif test x
$host = x
$target; then
29721 export_sym_check
="$gcc_cv_nm -g"
29727 if test x
$build = x
$host; then
29728 export_sym_check
="objdump${exeext} -T"
29729 elif test x
$host = x
$target; then
29730 export_sym_check
="$gcc_cv_objdump -T"
29737 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29740 $as_echo_n "checking for exported symbols... " >&6; }
29741 if test "x$export_sym_check" != x
; then
29742 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29743 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29744 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29745 : # No need to use a flag
29746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29747 $as_echo "yes" >&6; }
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29750 $as_echo "yes" >&6; }
29751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29752 $as_echo_n "checking for -rdynamic... " >&6; }
29753 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29754 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29755 plugin_rdynamic
=yes
29756 pluginlibs
="-rdynamic"
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29762 $as_echo "$plugin_rdynamic" >&6; }
29765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29766 $as_echo "unable to check" >&6; }
29771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29772 $as_echo_n "checking for library containing dlopen... " >&6; }
29773 if test "${ac_cv_search_dlopen+set}" = set; then :
29774 $as_echo_n "(cached) " >&6
29776 ac_func_search_save_LIBS
=$LIBS
29777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29778 /* end confdefs.h. */
29780 /* Override any GCC internal prototype to avoid an error.
29781 Use char because int might match the return type of a GCC
29782 builtin and then its argument prototype would still apply. */
29795 for ac_lib
in '' dl
; do
29796 if test -z "$ac_lib"; then
29797 ac_res
="none required"
29800 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29802 if ac_fn_cxx_try_link
"$LINENO"; then :
29803 ac_cv_search_dlopen
=$ac_res
29805 rm -f core conftest.err conftest.
$ac_objext \
29807 if test "${ac_cv_search_dlopen+set}" = set; then :
29811 if test "${ac_cv_search_dlopen+set}" = set; then :
29814 ac_cv_search_dlopen
=no
29816 rm conftest.
$ac_ext
29817 LIBS
=$ac_func_search_save_LIBS
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29820 $as_echo "$ac_cv_search_dlopen" >&6; }
29821 ac_res
=$ac_cv_search_dlopen
29822 if test "$ac_res" != no
; then :
29823 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29827 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29828 pluginlibs
="$pluginlibs -ldl"
29832 # Check that we can build shared objects with -fPIC -shared
29833 saved_LDFLAGS
="$LDFLAGS"
29834 saved_CFLAGS
="$CFLAGS"
29837 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29838 CFLAGS
="$CFLAGS -fPIC"
29839 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29842 CFLAGS
="$CFLAGS -fPIC"
29843 LDFLAGS
="$LDFLAGS -fPIC -shared"
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29847 $as_echo_n "checking for -fPIC -shared... " >&6; }
29848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29849 /* end confdefs.h. */
29859 if ac_fn_cxx_try_link
"$LINENO"; then :
29860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29861 $as_echo "yes" >&6; }; have_pic_shared
=yes
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29864 $as_echo "no" >&6; }; have_pic_shared
=no
29866 rm -f core conftest.err conftest.
$ac_objext \
29867 conftest
$ac_exeext conftest.
$ac_ext
29868 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29872 LDFLAGS
="$saved_LDFLAGS"
29873 CFLAGS
="$saved_CFLAGS"
29875 # If plugin support had been requested but not available, fail.
29876 if test x
"$enable_plugin" = x
"no" ; then
29877 if test x
"$default_plugin" != x
"yes"; then
29879 Building GCC with plugin support requires a host that supports
29880 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29887 if test x
"$enable_plugin" = x
"yes"; then
29889 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29894 # Enable --enable-host-shared
29895 # Check whether --enable-host-shared was given.
29896 if test "${enable_host_shared+set}" = set; then :
29897 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29906 # Check whether --enable-libquadmath-support was given.
29907 if test "${enable_libquadmath_support+set}" = set; then :
29908 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29910 ENABLE_LIBQUADMATH_SUPPORT
=yes
29913 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29915 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29920 # Specify what hash style to use by default.
29922 # Check whether --with-linker-hash-style was given.
29923 if test "${with_linker_hash_style+set}" = set; then :
29924 withval
=$with_linker_hash_style; case x
"$withval" in
29926 LINKER_HASH_STYLE
=sysv
29929 LINKER_HASH_STYLE
=gnu
29932 LINKER_HASH_STYLE
=both
29935 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29939 LINKER_HASH_STYLE
=''
29942 if test x
"${LINKER_HASH_STYLE}" != x
; then
29944 cat >>confdefs.h
<<_ACEOF
29945 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29950 # Specify what should be the default of -fdiagnostics-color option.
29952 # Check whether --with-diagnostics-color was given.
29953 if test "${with_diagnostics_color+set}" = set; then :
29954 withval
=$with_diagnostics_color; case x
"$withval" in
29956 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29959 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29962 DIAGNOSTICS_COLOR_DEFAULT
=-1
29965 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29968 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29972 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29976 cat >>confdefs.h
<<_ACEOF
29977 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29981 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29982 # of jit/jit-playback.c.
29983 cat > gcc-driver-name.h
<<EOF
29984 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29987 # Check whether --enable-default-pie was given.
29988 # Check whether --enable-default-pie was given.
29989 if test "${enable_default_pie+set}" = set; then :
29990 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29992 enable_default_pie
=no
29995 if test x
$enable_default_pie = xyes
; then
29997 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30002 # Check if -fno-PIE works.
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30004 $as_echo_n "checking for -fno-PIE option... " >&6; }
30005 if test "${gcc_cv_c_no_fpie+set}" = set; then :
30006 $as_echo_n "(cached) " >&6
30008 saved_CXXFLAGS
="$CXXFLAGS"
30009 CXXFLAGS
="$CXXFLAGS -fno-PIE"
30010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30011 /* end confdefs.h. */
30012 int main(void) {return 0;}
30014 if ac_fn_cxx_try_compile
"$LINENO"; then :
30015 gcc_cv_c_no_fpie
=yes
30017 gcc_cv_c_no_fpie
=no
30019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30020 CXXFLAGS
="$saved_CXXFLAGS"
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30023 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30024 if test "$gcc_cv_c_no_fpie" = "yes"; then
30025 NO_PIE_CFLAGS
="-fno-PIE"
30029 # Check if -no-pie works.
30030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30031 $as_echo_n "checking for -no-pie option... " >&6; }
30032 if test "${gcc_cv_no_pie+set}" = set; then :
30033 $as_echo_n "(cached) " >&6
30035 saved_LDFLAGS
="$LDFLAGS"
30036 LDFLAGS
="$LDFLAGS -no-pie"
30037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30038 /* end confdefs.h. */
30039 int main(void) {return 0;}
30041 if ac_fn_cxx_try_link
"$LINENO"; then :
30046 rm -f core conftest.err conftest.
$ac_objext \
30047 conftest
$ac_exeext conftest.
$ac_ext
30048 LDFLAGS
="$saved_LDFLAGS"
30050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30051 $as_echo "$gcc_cv_no_pie" >&6; }
30052 if test "$gcc_cv_no_pie" = "yes"; then
30053 NO_PIE_FLAG
="-no-pie"
30057 # Check linker supports '-z bndplt'
30058 ld_bndplt_support
=no
30059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30060 $as_echo_n "checking linker -z bndplt option... " >&6; }
30061 if test x
"$ld_is_gold" = xno
; then
30062 if test $in_tree_ld = yes ; then
30063 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
30064 ld_bndplt_support
=yes
30066 elif test x
$gcc_cv_ld != x
; then
30067 # Check if linker supports -a bndplt option
30068 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
30069 ld_bndplt_support
=yes
30073 if test x
"$ld_bndplt_support" = xyes
; then
30075 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30079 $as_echo "$ld_bndplt_support" >&6; }
30081 # Check linker supports '--push-state'/'--pop-state'
30082 ld_pushpopstate_support
=no
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30084 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30085 if test x
"$ld_is_gold" = xno
; then
30086 if test $in_tree_ld = yes ; then
30087 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
30088 ld_pushpopstate_support
=yes
30090 elif test x
$gcc_cv_ld != x
; then
30091 # Check if linker supports --push-state/--pop-state options
30092 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
30093 ld_pushpopstate_support
=yes
30097 if test x
"$ld_pushpopstate_support" = xyes
; then
30099 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30103 $as_echo "$ld_pushpopstate_support" >&6; }
30105 # Configure the subdirectories
30106 # AC_CONFIG_SUBDIRS($subdirs)
30108 # Create the Makefile
30109 # and configure language subdirectories
30110 ac_config_files
="$ac_config_files $all_outputs"
30113 ac_config_commands
="$ac_config_commands default"
30115 cat >confcache
<<\_ACEOF
30116 # This file is a shell script that caches the results of configure
30117 # tests run on this system so they can be shared between configure
30118 # scripts and configure runs, see configure's option --config-cache.
30119 # It is not useful on other systems. If it contains results you don't
30120 # want to keep, you may remove or edit it.
30122 # config.status only pays attention to the cache file if you give it
30123 # the --recheck option to rerun configure.
30125 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30126 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30127 # following values.
30131 # The following way of writing the cache mishandles newlines in values,
30132 # but we know of no workaround that is simple, portable, and efficient.
30133 # So, we kill variables containing newlines.
30134 # Ultrix sh set writes to stderr and can't be redirected directly,
30135 # and sets the high bit in the cache file unless we assign to the vars.
30137 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30138 eval ac_val
=\$
$ac_var
30142 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30146 _ | IFS | as_nl
) ;; #(
30147 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30148 *) { eval $ac_var=; unset $ac_var;} ;;
30154 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30155 *${as_nl}ac_space
=\
*)
30156 # `set' does not quote correctly, so add quotes: double-quote
30157 # substitution turns \\\\ into \\, and sed turns \\ into \.
30160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30163 # `set' quotes correctly as required by POSIX, so do not add quotes.
30164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30173 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30175 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30177 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30178 if test -w "$cache_file"; then
30179 test "x$cache_file" != "x/dev/null" &&
30180 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30181 $as_echo "$as_me: updating cache $cache_file" >&6;}
30182 cat confcache
>$cache_file
30184 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30185 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30190 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30191 # Let make expand exec_prefix.
30192 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30194 DEFS
=-DHAVE_CONFIG_H
30198 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30199 # 1. Remove the extension, and $U if already installed.
30200 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30201 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30203 # will be set to the directory where LIBOBJS objects are built.
30204 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30205 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30207 LIBOBJS
=$ac_libobjs
30209 LTLIBOBJS
=$ac_ltlibobjs
30214 : ${CONFIG_STATUS=./config.status}
30216 ac_clean_files_save
=$ac_clean_files
30217 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30219 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30221 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30223 # Generated by $as_me.
30224 # Run this file to recreate the current configuration.
30225 # Compiler output produced by configure, useful for debugging
30226 # configure, is in config.log if it exists.
30229 ac_cs_recheck=false
30232 SHELL=\${CONFIG_SHELL-$SHELL}
30235 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30236 ## -------------------- ##
30237 ## M4sh Initialization. ##
30238 ## -------------------- ##
30240 # Be more Bourne compatible
30241 DUALCASE
=1; export DUALCASE
# for MKS sh
30242 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30245 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30246 # is contrary to our usage. Disable this feature.
30247 alias -g '${1+"$@"}'='"$@"'
30248 setopt NO_GLOB_SUBST
30250 case `(set -o) 2>/dev/null` in #(
30262 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30263 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30264 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30265 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30266 # Prefer a ksh shell builtin over an external printf program on Solaris,
30267 # but without wasting forks for bash or zsh.
30268 if test -z "$BASH_VERSION$ZSH_VERSION" \
30269 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30270 as_echo='print
-r --'
30271 as_echo_n='print
-rn --'
30272 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30273 as_echo='printf %s
\n'
30274 as_echo_n='printf %s
'
30276 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30277 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30278 as_echo_n='/usr
/ucb
/echo -n'
30280 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30281 as_echo_n_body='eval
30285 expr "X$arg" : "X\\(.*\\)$as_nl";
30286 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30288 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30290 export as_echo_n_body
30291 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30293 export as_echo_body
30294 as_echo='sh
-c $as_echo_body as_echo
'
30297 # The user is always right.
30298 if test "${PATH_SEPARATOR+set}" != set; then
30300 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30301 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30308 # We need space, tab and new line, in precisely that order. Quoting is
30309 # there to prevent editors from complaining about space-tab.
30310 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30311 # splitting by setting IFS to empty value.)
30314 # Find who we are. Look in the path if we contain no directory separator.
30316 *[\\/]* ) as_myself=$0 ;;
30317 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30318 for as_dir in $PATH
30321 test -z "$as_dir" && as_dir=.
30322 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30328 # We did not find ourselves, most probably we were run as `sh COMMAND'
30329 # in which case we are not to be found in the path.
30330 if test "x$as_myself" = x
; then
30333 if test ! -f "$as_myself"; then
30334 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30338 # Unset variables that we do not need and which cause bugs (e.g. in
30339 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30340 # suppresses any "Segmentation fault" message there. '((' could
30341 # trigger a bug in pdksh 5.2.14.
30342 for as_var
in BASH_ENV ENV MAIL MAILPATH
30343 do eval test x\
${$as_var+set} = xset \
30344 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30357 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30360 # as_fn_error ERROR [LINENO LOG_FD]
30361 # ---------------------------------
30362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30364 # script with status $?, using 1 if that was 0.
30367 as_status
=$?
; test $as_status -eq 0 && as_status
=1
30369 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30372 $as_echo "$as_me: error: $1" >&2
30373 as_fn_exit
$as_status
30377 # as_fn_set_status STATUS
30378 # -----------------------
30379 # Set $? to STATUS, without forking.
30380 as_fn_set_status
()
30383 } # as_fn_set_status
30385 # as_fn_exit STATUS
30386 # -----------------
30387 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30391 as_fn_set_status
$1
30397 # Portably unset VAR.
30400 { eval $1=; unset $1;}
30402 as_unset
=as_fn_unset
30403 # as_fn_append VAR VALUE
30404 # ----------------------
30405 # Append the text in VALUE to the end of the definition contained in VAR. Take
30406 # advantage of any shell optimizations that allow amortized linear growth over
30407 # repeated appends, instead of the typical quadratic growth present in naive
30409 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30410 eval 'as_fn_append ()
30421 # as_fn_arith ARG...
30422 # ------------------
30423 # Perform arithmetic evaluation on the ARGs, and store the result in the
30424 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30425 # must be portable across $(()) and expr.
30426 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30427 eval 'as_fn_arith ()
30434 as_val
=`expr "$@" || test $? -eq 1`
30439 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30440 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30446 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30447 as_basename
=basename
30452 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30458 as_me
=`$as_basename -- "$0" ||
30459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30460 X"$0" : 'X\(//\)$' \| \
30461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30463 sed '/^.*\/\([^/][^/]*\)\/*$/{
30477 # Avoid depending upon Character Ranges.
30478 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30479 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30480 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30481 as_cr_digits
='0123456789'
30482 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30484 ECHO_C
= ECHO_N
= ECHO_T
=
30485 case `echo -n x` in #(((((
30487 case `echo 'xy\c'` in
30488 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30490 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30497 rm -f conf$$ conf$$.exe conf$$.
file
30498 if test -d conf$$.dir
; then
30499 rm -f conf$$.dir
/conf$$.
file
30502 mkdir conf$$.dir
2>/dev
/null
30504 if (echo >conf$$.
file) 2>/dev
/null
; then
30505 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30507 # ... but there are two gotchas:
30508 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30509 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30510 # In both cases, we have to default to `cp -p'.
30511 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30513 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30521 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30522 rmdir conf$$.dir
2>/dev
/null
30527 # Create "$as_dir" as a directory, including parents if necessary.
30532 -*) as_dir
=.
/$as_dir;;
30534 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30538 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30539 *) as_qdir
=$as_dir;;
30541 as_dirs
="'$as_qdir' $as_dirs"
30542 as_dir
=`$as_dirname -- "$as_dir" ||
30543 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30544 X"$as_dir" : 'X\(//\)[^/]' \| \
30545 X"$as_dir" : 'X\(//\)$' \| \
30546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30547 $as_echo X"$as_dir" |
30548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30552 /^X\(\/\/\)[^/].*/{
30565 test -d "$as_dir" && break
30567 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30568 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30572 if mkdir
-p .
2>/dev
/null
; then
30573 as_mkdir_p
='mkdir -p "$as_dir"'
30575 test -d .
/-p && rmdir .
/-p
30579 if test -x / >/dev
/null
2>&1; then
30580 as_test_x
='test -x'
30582 if ls -dL / >/dev
/null
2>&1; then
30589 if test -d "$1"; then
30595 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30596 ???[sx]*):;;*)false;;esac;fi
30600 as_executable_p
=$as_test_x
30602 # Sed expression to map a string onto a valid CPP name.
30603 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30605 # Sed expression to map a string onto a valid variable name.
30606 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30610 ## ----------------------------------- ##
30611 ## Main body of $CONFIG_STATUS script. ##
30612 ## ----------------------------------- ##
30614 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30617 # Save the log message, to keep $0 and so on meaningful, and to
30618 # report actual input values of CONFIG_FILES etc. instead of their
30619 # values after options handling.
30621 This file was extended by $as_me, which was
30622 generated by GNU Autoconf 2.64. Invocation command line was
30624 CONFIG_FILES = $CONFIG_FILES
30625 CONFIG_HEADERS = $CONFIG_HEADERS
30626 CONFIG_LINKS = $CONFIG_LINKS
30627 CONFIG_COMMANDS = $CONFIG_COMMANDS
30630 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30635 case $ac_config_files in *"
30636 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30639 case $ac_config_headers in *"
30640 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30645 # Files that config.status was made for.
30646 config_files="$ac_config_files"
30647 config_headers="$ac_config_headers"
30648 config_links="$ac_config_links"
30649 config_commands="$ac_config_commands"
30653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30655 \`$as_me' instantiates files and other configuration actions
30656 from templates according to the current configuration. Unless the files
30657 and actions are specified as TAGs, all are instantiated by default.
30659 Usage: $0 [OPTION]... [TAG]...
30661 -h, --help print this help, then exit
30662 -V, --version print version number and configuration settings, then exit
30663 -q, --quiet, --silent
30664 do not print progress messages
30665 -d, --debug don't remove temporary files
30666 --recheck update $as_me by reconfiguring in the same conditions
30667 --file=FILE[:TEMPLATE]
30668 instantiate the configuration file FILE
30669 --header=FILE[:TEMPLATE]
30670 instantiate the configuration header FILE
30672 Configuration files:
30675 Configuration headers:
30678 Configuration links:
30681 Configuration commands:
30684 Report bugs to the package provider."
30687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30690 configured by $0, generated by GNU Autoconf 2.64,
30691 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30693 Copyright (C) 2009 Free Software Foundation, Inc.
30694 This config.status script is free software; the Free Software Foundation
30695 gives unlimited permission to copy, distribute and modify it."
30700 test -n "\$AWK" || AWK=awk
30703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30704 # The default lists apply if the user does not specify any file.
30710 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30711 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30722 # Handling of the options.
30723 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30725 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30726 $as_echo "$ac_cs_version"; exit ;;
30727 --debug |
--debu |
--deb |
--de |
--d |
-d )
30729 --file |
--fil |
--fi |
--f )
30732 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30734 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30735 ac_need_defaults
=false
;;
30736 --header |
--heade |
--head |
--hea )
30739 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30741 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30742 ac_need_defaults
=false
;;
30744 # Conflict between --help and --header
30745 as_fn_error
"ambiguous option: \`$1'
30746 Try \`$0 --help' for more information.";;
30747 --help |
--hel |
-h )
30748 $as_echo "$ac_cs_usage"; exit ;;
30749 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30750 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30753 # This is an error.
30754 -*) as_fn_error
"unrecognized option: \`$1'
30755 Try \`$0 --help' for more information." ;;
30757 *) as_fn_append ac_config_targets
" $1"
30758 ac_need_defaults
=false
;;
30764 ac_configure_extra_args
=
30766 if $ac_cs_silent; then
30768 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30773 if \$ac_cs_recheck; then
30774 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30776 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30777 CONFIG_SHELL='$SHELL'
30778 export CONFIG_SHELL
30783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30787 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30788 ## Running $as_me. ##
30794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30798 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30799 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30806 # Handling of arguments.
30807 for ac_config_target
in $ac_config_targets
30809 case $ac_config_target in
30810 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30811 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30812 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30813 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30814 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30815 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30816 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30817 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30818 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30820 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30825 # If the user did not use the arguments to specify the items to instantiate,
30826 # then the envvar interface is used. Set only those that are not.
30827 # We use the long form for the default assignment because of an extremely
30828 # bizarre bug on SunOS 4.1.3.
30829 if $ac_need_defaults; then
30830 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30831 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30832 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30833 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30836 # Have a temporary directory for convenience. Make it in the build tree
30837 # simply because there is no reason against having it here, and in addition,
30838 # creating and moving files from /tmp can sometimes cause problems.
30839 # Hook for its removal unless debugging.
30840 # Note that there is a small window in which the directory will not be cleaned:
30841 # after its creation but before its name has been assigned to `$tmp'.
30845 trap 'exit_status=$?
30846 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30848 trap 'as_fn_exit 1' 1 2 13 15
30850 # Create a (secure) tmp directory for tmp files.
30853 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30854 test -n "$tmp" && test -d "$tmp"
30857 tmp
=.
/conf$$
-$RANDOM
30858 (umask 077 && mkdir
"$tmp")
30859 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30861 # Set up the scripts for CONFIG_FILES section.
30862 # No need to generate them if there are no CONFIG_FILES.
30863 # This happens for instance with `./config.status config.h'.
30864 if test -n "$CONFIG_FILES"; then
30866 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30867 ac_cs_awk_getline
=:
30868 ac_cs_awk_pipe_init
=
30869 ac_cs_awk_read_file
='
30870 while ((getline aline < (F[key])) > 0)
30873 ac_cs_awk_pipe_fini
=
30875 ac_cs_awk_getline
=false
30876 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30877 ac_cs_awk_read_file
='
30879 print "cat " F[key] " &&"
30880 '$ac_cs_awk_pipe_init
30881 # The final `:' finishes the AND list.
30882 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30884 ac_cr
=`echo X | tr X '\015'`
30885 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30886 # But we know of no other shell where ac_cr would be empty at this
30887 # point, so we can use a bashism as a fallback.
30888 if test "x$ac_cr" = x
; then
30889 eval ac_cr
=\$
\'\\r
\'
30891 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30892 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30895 ac_cs_awk_cr
=$ac_cr
30898 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30901 # Create commands to substitute file output variables.
30903 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30904 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30905 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30908 } >conf$
$files.sh
&&
30909 . .
/conf$
$files.sh ||
30910 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30911 rm -f conf$
$files.sh
30914 echo "cat >conf$$subs.awk <<_ACEOF" &&
30915 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30917 } >conf$$subs.sh ||
30918 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30919 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30921 for ac_last_try in false false false false false :; do
30922 . ./conf$$subs.sh ||
30923 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30925 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30926 if test $ac_delim_n = $ac_delim_num; then
30928 elif $ac_last_try; then
30929 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30931 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30934 rm -f conf$$subs.sh
30936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30937 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30941 s/^/S["/; s
/!.
*/"]=/
30951 s/\(.\{148\}\).*/\1/
30953 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30958 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30965 s/\(.\{148\}\).*/\1/
30967 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30971 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30976 ' <conf$$subs.awk | sed '
30981 ' >>$CONFIG_STATUS || ac_write_fail=1
30982 rm -f conf$$subs.awk
30983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30985 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30986 for (key in S) S_is_set[key] = 1
30988 \$ac_cs_awk_pipe_init
30992 nfields = split(line, field, "@
")
30994 len = length(field[1])
30995 for (i = 2; i < nfields; i++) {
30997 keylen = length(key)
30998 if (S_is_set[key]) {
31000 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31001 len += length(value) + length(field[++i])
31006 if (nfields == 3 && !substed) {
31008 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31009 \$ac_cs_awk_read_file
31015 \$ac_cs_awk_pipe_fini
31018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31019 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31020 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31023 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
31024 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
31027 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31028 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
31029 # trailing colons and then remove the whole line if VPATH becomes empty
31030 # (actually we leave an empty line to preserve line numbers).
31031 if test "x
$srcdir" = x.; then
31032 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31033 s/:*\$(srcdir):*/:/
31034 s/:*\${srcdir}:*/:/
31036 s/^\([^=]*=[ ]*\):*/\1/
31042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31043 fi # test -n "$CONFIG_FILES"
31045 # Set up the scripts for CONFIG_HEADERS section.
31046 # No need to generate them if there are no CONFIG_HEADERS.
31047 # This happens for instance with `./config.status Makefile'.
31048 if test -n "$CONFIG_HEADERS"; then
31049 cat >"$tmp/defines.
awk" <<\_ACAWK ||
31053 # Transform confdefs.h into an awk script `defines.awk', embedded as
31054 # here-document in config.status, that substitutes the proper values into
31055 # config.h.in to produce config.h.
31057 # Create a delimiter string that does not exist in confdefs.h, to ease
31058 # handling of long lines.
31060 for ac_last_try in false false :; do
31061 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
31062 if test -z "$ac_t"; then
31064 elif $ac_last_try; then
31065 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
31067 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31071 # For the awk script, D is an array of macro values keyed by name,
31072 # likewise P contains macro parameters if any. Preserve backslash
31073 # newline sequences.
31075 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31077 s/.\{148\}/&'"$ac_delim"'/g
31080 s/^[ ]*#[ ]*define[ ][ ]*/ /
31087 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31089 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31093 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31094 D["\
1"]=" \
3\\\\\\n
"\\/p
31096 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31101 s/.\{148\}/&'"$ac_delim"'/g
31106 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31109 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31111 ' <confdefs.h | sed '
31112 s/'"$ac_delim"'/"\\\
31113 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31116 for (key in D) D_is_set[key] = 1
31119 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31121 split(line, arg, " ")
31122 if (arg[1] == "#") {
31126 defundef
= substr
(arg
[1], 2)
31129 split(mac1
, mac2
, "(") #)
31131 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31132 if (D_is_set
[macro
]) {
31133 # Preserve the white space surrounding the "#".
31134 print prefix
"define", macro P
[macro
] D
[macro
]
31137 # Replace #undef with comments. This is necessary, for example,
31138 # in the case of _POSIX_SOURCE, which is predefined and required
31139 # on some systems where configure will not decide to define it.
31140 if (defundef
== "undef") {
31141 print
"/*", prefix defundef
, macro
, "*/"
31149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31150 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
31151 fi # test -n "$CONFIG_HEADERS"
31154 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31159 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31161 case $ac_mode$ac_tag in
31163 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31164 :[FH
]-) ac_tag
=-:-;;
31165 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31182 -) ac_f
="$tmp/stdin";;
31183 *) # Look for the file first in the build tree, then in the source tree
31184 # (if the path is not absolute). The absolute path cannot be DOS-style,
31185 # because $ac_f cannot contain `:'.
31189 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31191 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
31193 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31194 as_fn_append ac_file_inputs
" '$ac_f'"
31197 # Let's still pretend it is `configure' which instantiates (i.e., don't
31198 # use $as_me), people would be surprised to read:
31199 # /* config.h. Generated by config.status. */
31200 configure_input
='Generated from '`
31201 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31203 if test x
"$ac_file" != x-
; then
31204 configure_input
="$ac_file. $configure_input"
31205 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31206 $as_echo "$as_me: creating $ac_file" >&6;}
31208 # Neutralize special characters interpreted by sed in replacement strings.
31209 case $configure_input in #(
31210 *\
&* |
*\|
* |
*\\* )
31211 ac_sed_conf_input
=`$as_echo "$configure_input" |
31212 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31213 *) ac_sed_conf_input
=$configure_input;;
31217 *:-:* |
*:-) cat >"$tmp/stdin" \
31218 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
31223 ac_dir
=`$as_dirname -- "$ac_file" ||
31224 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31225 X"$ac_file" : 'X\(//\)[^/]' \| \
31226 X"$ac_file" : 'X\(//\)$' \| \
31227 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31228 $as_echo X"$ac_file" |
31229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31233 /^X\(\/\/\)[^/].*/{
31246 as_dir
="$ac_dir"; as_fn_mkdir_p
31250 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31252 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31253 # A ".." for each directory in $ac_dir_suffix.
31254 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31255 case $ac_top_builddir_sub in
31256 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31257 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31260 ac_abs_top_builddir
=$ac_pwd
31261 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31262 # for backward compatibility:
31263 ac_top_builddir
=$ac_top_build_prefix
31266 .
) # We are building in place.
31268 ac_top_srcdir
=$ac_top_builddir_sub
31269 ac_abs_top_srcdir
=$ac_pwd ;;
31270 [\\/]* | ?
:[\\/]* ) # Absolute name.
31271 ac_srcdir
=$srcdir$ac_dir_suffix;
31272 ac_top_srcdir
=$srcdir
31273 ac_abs_top_srcdir
=$srcdir ;;
31274 *) # Relative name.
31275 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31276 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31277 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31279 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31291 # If the template does not know about datarootdir, expand it.
31292 # FIXME: This hack should be removed a few years after 2.60.
31293 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31304 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31305 *datarootdir
*) ac_datarootdir_seen
=yes;;
31306 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31308 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31311 ac_datarootdir_hack='
31312 s&@datadir@&$datadir&g
31313 s&@docdir@&$docdir&g
31314 s&@infodir@&$infodir&g
31315 s&@localedir@&$localedir&g
31316 s&@mandir@&$mandir&g
31317 s&\\\${datarootdir}&$datarootdir&g' ;;
31321 # Neutralize VPATH when `$srcdir' = `.'.
31322 # Shell code in configure.ac might set extrasub.
31323 # FIXME: do we really want to maintain this feature?
31324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31325 ac_sed_extra="$ac_vpsub
31328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31330 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31331 s|@configure_input@|
$ac_sed_conf_input|
;t t
31332 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31333 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31334 s
&@srcdir@
&$ac_srcdir&;t t
31335 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31336 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31337 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31338 s
&@builddir@
&$ac_builddir&;t t
31339 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31340 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31341 $ac_datarootdir_hack
31343 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31344 if $ac_cs_awk_getline; then
31345 $AWK -f "$tmp/subs.
awk"
31347 $AWK -f "$tmp/subs.
awk" | $SHELL
31349 || as_fn_error "could not create
$ac_file" "$LINENO" 5
31351 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31352 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
31353 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31355 which seems to be undefined. Please make sure it is defined." >&5
31356 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31357 which seems to be undefined. Please make sure it is defined." >&2;}
31361 -) cat "$tmp/out" && rm -f "$tmp/out";;
31362 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31364 || as_fn_error "could not create $ac_file" "$LINENO" 5
31370 if test x"$ac_file" != x-; then
31372 $as_echo "/* $configure_input */" \
31373 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31374 } >"$tmp/config.h" \
31375 || as_fn_error "could not create $ac_file" "$LINENO" 5
31376 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31377 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31378 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31381 mv "$tmp/config.h" "$ac_file" \
31382 || as_fn_error "could not create $ac_file" "$LINENO" 5
31385 $as_echo "/* $configure_input */" \
31386 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31387 || as_fn_error "could not create -" "$LINENO" 5
31395 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31398 # Prefer the file from the source tree if names are identical.
31399 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31400 ac_source=$srcdir/$ac_source
31403 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31404 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31406 if test ! -r "$ac_source"; then
31407 as_fn_error "$ac_source: file not found" "$LINENO" 5
31411 # Try a relative symlink, then a hard link, then a copy.
31413 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31414 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31416 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31417 ln "$ac_source" "$ac_file" 2>/dev/null ||
31418 cp -p "$ac_source" "$ac_file" ||
31419 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31422 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31423 $as_echo "$as_me: executing $ac_file commands" >&6;}
31428 case $ac_file$ac_mode in
31429 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31431 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31432 for lang in $subdirs c-family common
31434 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31436 "as":F) chmod +x as ;;
31437 "collect-ld":F) chmod +x collect-ld ;;
31438 "nm":F) chmod +x nm ;;
31440 case ${CONFIG_HEADERS} in
31441 *auto-host.h:config.in*)
31444 # Make sure all the subdirs exist.
31445 for d in $subdirs doc build common c-family
31447 test -d $d || mkdir $d
31457 ac_clean_files=$ac_clean_files_save
31459 test $ac_write_fail = 0 ||
31460 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31463 # configure is writing to config.log, and then calls config.status.
31464 # config.status does its own redirection, appending to config.log.
31465 # Unfortunately, on DOS this fails, as config.log is still kept open
31466 # by configure, so config.status won't be able to
write to it
; its
31467 # output is simply discarded. So we exec the FD to /dev/null,
31468 # effectively closing config.log, so it can be properly (re)opened and
31469 # appended to by config.status. When coming back to configure, we
31470 # need to make the FD available again.
31471 if test "$no_create" != yes; then
31473 ac_config_status_args
=
31474 test "$silent" = yes &&
31475 ac_config_status_args
="$ac_config_status_args --quiet"
31477 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31479 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31480 # would make configure fail if this is the last instruction.
31481 $ac_cs_success || as_fn_exit $?
31483 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31485 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}