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
739 NATIVE_SYSTEM_HEADER_DIR
772 real_target_noncanonical
773 enable_as_accelerator
787 valgrind_path_defines
817 CROSS_SYSTEM_HEADER_DIR
818 TARGET_SYSTEM_ROOT_DEFINE
820 SYSROOT_CFLAGS_FOR_TARGET
866 program_transform_name
877 ac_subst_files
='option_includes
880 enable_option_checking
883 with_native_system_header_dir
888 enable_generated_files_in_srcdir
895 enable_build_format_warnings
899 enable_gather_detailed_mem_stats
900 enable_valgrind_annotations
920 enable_sjlj_exceptions
922 enable_leading_mingw64_underscores
925 enable_win32_registry
933 enable_gnu_indirect_function
934 enable_initfini_array
936 enable_fix_cortex_a53_835769
937 enable_fix_cortex_a53_843419
939 enable_gnu_unique_object
940 enable_linker_build_id
945 enable_maintainer_mode
947 enable_version_specific_runtime_libs
950 enable_libquadmath_support
951 with_linker_hash_style
952 with_diagnostics_color
955 ac_precious_vars
='build_alias
974 # Initialize some variables set by options.
976 ac_init_version
=false
977 ac_unrecognized_opts
=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
988 program_transform_name
=s
,x
,x
,
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir
='${exec_prefix}/bin'
1003 sbindir
='${exec_prefix}/sbin'
1004 libexecdir
='${exec_prefix}/libexec'
1005 datarootdir
='${prefix}/share'
1006 datadir
='${datarootdir}'
1007 sysconfdir
='${prefix}/etc'
1008 sharedstatedir
='${prefix}/com'
1009 localstatedir
='${prefix}/var'
1010 includedir
='${prefix}/include'
1011 oldincludedir
='/usr/include'
1012 docdir
='${datarootdir}/doc/${PACKAGE}'
1013 infodir
='${datarootdir}/info'
1018 libdir
='${exec_prefix}/lib'
1019 localedir
='${datarootdir}/locale'
1020 mandir
='${datarootdir}/man'
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\
$ac_option
1034 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1044 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1046 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1047 bindir
=$ac_optarg ;;
1049 -build |
--build |
--buil |
--bui |
--bu)
1050 ac_prev
=build_alias
;;
1051 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1052 build_alias
=$ac_optarg ;;
1054 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1055 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1056 ac_prev
=cache_file
;;
1057 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1058 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1059 cache_file
=$ac_optarg ;;
1061 --config-cache |
-C)
1062 cache_file
=config.cache
;;
1064 -datadir |
--datadir |
--datadi |
--datad)
1066 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1067 datadir
=$ac_optarg ;;
1069 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1070 |
--dataroo |
--dataro |
--datar)
1071 ac_prev
=datarootdir
;;
1072 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1073 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1074 datarootdir
=$ac_optarg ;;
1076 -disable-* |
--disable-*)
1077 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1080 as_fn_error
"invalid feature name: $ac_useropt"
1081 ac_useropt_orig
=$ac_useropt
1082 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_
$ac_useropt"
1087 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep
=', ';;
1090 eval enable_
$ac_useropt=no
;;
1092 -docdir |
--docdir |
--docdi |
--doc |
--do)
1094 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1095 docdir
=$ac_optarg ;;
1097 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1099 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1100 dvidir
=$ac_optarg ;;
1102 -enable-* |
--enable-*)
1103 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1106 as_fn_error
"invalid feature name: $ac_useropt"
1107 ac_useropt_orig
=$ac_useropt
1108 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_
$ac_useropt"
1113 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114 ac_unrecognized_sep
=', ';;
1116 eval enable_
$ac_useropt=\
$ac_optarg ;;
1118 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1119 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1120 |
--exec |
--exe |
--ex)
1121 ac_prev
=exec_prefix
;;
1122 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1123 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1124 |
--exec=* |
--exe=* |
--ex=*)
1125 exec_prefix
=$ac_optarg ;;
1127 -gas |
--gas |
--ga |
--g)
1128 # Obsolete; use --with-gas.
1131 -help |
--help |
--hel |
--he |
-h)
1132 ac_init_help
=long
;;
1133 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1134 ac_init_help
=recursive
;;
1135 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1136 ac_init_help
=short
;;
1138 -host |
--host |
--hos |
--ho)
1139 ac_prev
=host_alias
;;
1140 -host=* |
--host=* |
--hos=* |
--ho=*)
1141 host_alias
=$ac_optarg ;;
1143 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1145 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1147 htmldir
=$ac_optarg ;;
1149 -includedir |
--includedir |
--includedi |
--included |
--include \
1150 |
--includ |
--inclu |
--incl |
--inc)
1151 ac_prev
=includedir
;;
1152 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1153 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1154 includedir
=$ac_optarg ;;
1156 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1158 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1159 infodir
=$ac_optarg ;;
1161 -libdir |
--libdir |
--libdi |
--libd)
1163 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1164 libdir
=$ac_optarg ;;
1166 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1167 |
--libexe |
--libex |
--libe)
1168 ac_prev
=libexecdir
;;
1169 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1170 |
--libexe=* |
--libex=* |
--libe=*)
1171 libexecdir
=$ac_optarg ;;
1173 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1174 ac_prev
=localedir
;;
1175 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1176 localedir
=$ac_optarg ;;
1178 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1179 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1180 ac_prev
=localstatedir
;;
1181 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1182 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1183 localstatedir
=$ac_optarg ;;
1185 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1187 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1188 mandir
=$ac_optarg ;;
1190 -nfp |
--nfp |
--nf)
1191 # Obsolete; use --without-fp.
1194 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1195 |
--no-cr |
--no-c |
-n)
1198 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1199 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1202 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1203 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1204 |
--oldin |
--oldi |
--old |
--ol |
--o)
1205 ac_prev
=oldincludedir
;;
1206 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1207 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1208 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1209 oldincludedir
=$ac_optarg ;;
1211 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1213 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1214 prefix
=$ac_optarg ;;
1216 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1217 |
--program-pre |
--program-pr |
--program-p)
1218 ac_prev
=program_prefix
;;
1219 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1220 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1221 program_prefix
=$ac_optarg ;;
1223 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1224 |
--program-suf |
--program-su |
--program-s)
1225 ac_prev
=program_suffix
;;
1226 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1227 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1228 program_suffix
=$ac_optarg ;;
1230 -program-transform-name |
--program-transform-name \
1231 |
--program-transform-nam |
--program-transform-na \
1232 |
--program-transform-n |
--program-transform- \
1233 |
--program-transform |
--program-transfor \
1234 |
--program-transfo |
--program-transf \
1235 |
--program-trans |
--program-tran \
1236 |
--progr-tra |
--program-tr |
--program-t)
1237 ac_prev
=program_transform_name
;;
1238 -program-transform-name=* |
--program-transform-name=* \
1239 |
--program-transform-nam=* |
--program-transform-na=* \
1240 |
--program-transform-n=* |
--program-transform-=* \
1241 |
--program-transform=* |
--program-transfor=* \
1242 |
--program-transfo=* |
--program-transf=* \
1243 |
--program-trans=* |
--program-tran=* \
1244 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1245 program_transform_name
=$ac_optarg ;;
1247 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1249 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1250 pdfdir
=$ac_optarg ;;
1252 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1254 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1257 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1258 |
-silent |
--silent |
--silen |
--sile |
--sil)
1261 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1263 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1265 sbindir
=$ac_optarg ;;
1267 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1268 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1269 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1271 ac_prev
=sharedstatedir
;;
1272 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1273 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1274 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1276 sharedstatedir
=$ac_optarg ;;
1278 -site |
--site |
--sit)
1280 -site=* |
--site=* |
--sit=*)
1283 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1285 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1286 srcdir
=$ac_optarg ;;
1288 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1289 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1290 ac_prev
=sysconfdir
;;
1291 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1292 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1293 sysconfdir
=$ac_optarg ;;
1295 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1296 ac_prev
=target_alias
;;
1297 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1298 target_alias
=$ac_optarg ;;
1300 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1303 -version |
--version |
--versio |
--versi |
--vers |
-V)
1304 ac_init_version
=: ;;
1307 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1310 as_fn_error
"invalid package name: $ac_useropt"
1311 ac_useropt_orig
=$ac_useropt
1312 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1317 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318 ac_unrecognized_sep
=', ';;
1320 eval with_
$ac_useropt=\
$ac_optarg ;;
1322 -without-* |
--without-*)
1323 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1326 as_fn_error
"invalid package name: $ac_useropt"
1327 ac_useropt_orig
=$ac_useropt
1328 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1333 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep
=', ';;
1336 eval with_
$ac_useropt=no
;;
1339 # Obsolete; use --with-x.
1342 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1343 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1344 ac_prev
=x_includes
;;
1345 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1346 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1347 x_includes
=$ac_optarg ;;
1349 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1350 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1351 ac_prev
=x_libraries
;;
1352 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1353 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1354 x_libraries
=$ac_optarg ;;
1356 -*) as_fn_error
"unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information."
1361 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 case $ac_envvar in #(
1364 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1365 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1367 eval $ac_envvar=\
$ac_optarg
1368 export $ac_envvar ;;
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1381 if test -n "$ac_prev"; then
1382 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1383 as_fn_error
"missing argument to $ac_option"
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1389 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394 # Check all directory arguments for consistency.
1395 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396 datadir sysconfdir sharedstatedir localstatedir includedir \
1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398 libdir localedir mandir
1400 eval ac_val
=\$
$ac_var
1401 # Remove trailing slashes.
1404 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405 eval $ac_var=\
$ac_val;;
1407 # Be sure to have absolute directory names.
1409 [\\/$
]* | ?
:[\\/]* ) continue;;
1410 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1412 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1420 target
=$target_alias
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x
; then
1424 if test "x$build_alias" = x
; then
1425 cross_compiling
=maybe
1426 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1427 If a cross compiler is detected then cross compile mode will be used." >&2
1428 elif test "x$build_alias" != "x$host_alias"; then
1434 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1436 test "$silent" = yes && exec 6>/dev
/null
1439 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di
=`ls -di .` &&
1441 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1442 as_fn_error
"working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444 as_fn_error
"pwd does not report name of working directory"
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted
=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir
=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1479 ac_srcdir_defaulted
=no
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1483 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1485 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1497 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499 for ac_var
in $ac_precious_vars; do
1500 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1502 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1507 # Report the --help message.
1509 if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1513 \`configure' configures this package to adapt to many kinds of systems.
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE. See below for descriptions of some of the useful variables.
1520 Defaults for the options are specified in brackets.
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
1527 -q, --quiet, --silent do not print \`checking...' messages
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533 Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
1535 [$ac_default_prefix]
1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1544 For better control, use the options below.
1546 Fine tuning of the installation directories:
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1576 --build=BUILD configure
for building on BUILD
[guessed
]
1577 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1578 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1582 if test -n "$ac_init_help"; then
1587 --disable-option-checking ignore unrecognized
--enable/--with options
1588 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1589 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1590 --enable-generated-files-in-srcdir
1591 put copies of generated files
in source dir intended
1592 for creating
source tarballs
for users without
1593 texinfo bison or flex
1594 --disable-largefile omit support
for large files
1595 --disable-build-format-warnings
1596 don
't use -Wformat while building GCC
1597 --enable-werror-always enable -Werror despite compiler version
1598 --enable-checking[=LIST]
1599 enable expensive run-time checks. With LIST, enable
1600 only specific categories of checks. Categories are:
1601 yes,no,all,none,release. Flags are:
1602 assert,df,extra,fold,gc,gcac,gimple,misc,
1603 rtlflag,rtl,runtime,tree,valgrind,types
1604 --enable-coverage[=LEVEL]
1605 enable compiler's code coverage collection. Use to
1606 measure compiler performance and
locate unused parts
1607 of the compiler. With LEVEL
, specify optimization.
1608 Values are opt
, noopt
, default is noopt
1609 --enable-gather-detailed-mem-stats
1610 enable detailed memory allocation stats gathering
1611 --enable-valgrind-annotations
1612 enable valgrind runtime interaction
1613 --enable-multilib enable library support
for multiple ABIs
1614 --enable-multiarch enable support
for multiarch paths
1615 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1616 --enable-decimal-float={no
,yes,bid
,dpd
}
1617 enable decimal float extension to C. Selecting
'bid'
1618 or
'dpd' choses
which decimal floating point format
1620 --enable-fixed-point enable fixed-point arithmetic extension to C
1621 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1623 --enable-tls enable or disable generation of tls code overriding
1624 the assembler check
for tls support
1625 --enable-vtable-verify enable vtable verification feature
1626 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1627 GNU Objective-C runtime
1628 --disable-shared don't provide a shared libgcc
1629 --enable-languages=LIST specify
which front-ends to build
1630 --disable-rpath do not hardcode runtime library paths
1631 --enable-sjlj-exceptions
1632 arrange to use setjmp
/longjmp exception handling
1633 --enable-secureplt enable -msecure-plt by default
for PowerPC
1634 --enable-leading-mingw64-underscores
1635 enable leading underscores on
64 bit mingw targets
1636 --enable-cld enable -mcld by default
for 32bit x86
1637 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1639 --disable-win32-registry
1640 disable lookup of installation paths
in the Registry
1642 --enable-win32-registry enable registry lookup
(default
)
1643 --enable-win32-registry=KEY
1644 use KEY instead of GCC version as the last portion
1646 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1647 --enable-static[=PKGS
] build static libraries
[default
=yes]
1648 --enable-fast-install[=PKGS
]
1649 optimize
for fast installation
[default
=yes]
1650 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1651 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1652 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1653 --enable-gnu-indirect-function
1654 enable the use of the @gnu_indirect_function to
1656 --enable-initfini-array use .init_array
/.fini_array sections
1657 --enable-comdat enable COMDAT group support
1659 --enable-fix-cortex-a53-835769
1660 enable workaround
for AArch64 Cortex-A53 erratum
1662 --disable-fix-cortex-a53-835769
1663 disable workaround
for AArch64 Cortex-A53 erratum
1667 --enable-fix-cortex-a53-843419
1668 enable workaround
for AArch64 Cortex-A53 erratum
1670 --disable-fix-cortex-a53-843419
1671 disable workaround
for AArch64 Cortex-A53 erratum
1674 --enable-gnu-unique-object
1675 enable the use of the @gnu_unique_object ELF
1676 extension on glibc systems
1677 --enable-linker-build-id
1678 compiler will always pass
--build-id to linker
1679 --enable-default-ssp enable Stack Smashing Protection as default
1680 --enable-maintainer-mode
1681 enable make rules and dependencies not useful
(and
1682 sometimes confusing
) to the casual installer
1683 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1684 thrashing on the build machine
1685 --enable-version-specific-runtime-libs
1686 specify that runtime libraries should be installed
1687 in a compiler-specific directory
1688 --enable-plugin enable plugin support
1689 --enable-host-shared build
host code as shared libraries
1690 --disable-libquadmath-support
1691 disable libquadmath support
for Fortran
1692 --enable-default-pie enable Position Independent Executable as default
1695 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1696 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1697 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1698 --with-local-prefix=DIR specifies directory to put
local include
1699 --with-native-system-header-dir=dir
1700 use dir as the directory to
look for standard
1701 system header files
in. Defaults to
/usr
/include.
1702 --with-build-sysroot=sysroot
1703 use sysroot as the system root during the build
1704 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1705 --with-gxx-include-dir=DIR
1706 specifies directory to put g
++ header files
1707 --with-cpp-install-dir=DIR
1708 install the user visible C preprocessor
in DIR
1709 (relative to PREFIX
) as well as PREFIX
/bin
1710 --with-gnu-ld arrange to work with GNU ld
1711 --with-ld arrange to use the specified ld
(full pathname
)
1712 --with-demangler-in-ld try to use demangler
in GNU ld
1713 --with-gnu-as arrange to work with GNU as
1714 --with-as arrange to use the specified as
(full pathname
)
1715 --with-stabs arrange to use stabs instead of
host debug format
1716 --with-dwarf2 force the default debug format to be DWARF
2
1717 --with-specs=SPECS add SPECS to driver command-line processing
1718 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1719 --with-bugurl=URL Direct users to URL to report a bug
1720 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1721 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1722 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1723 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1724 --with-pic try to use only PIC/non-PIC objects [default=use
1726 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1727 --with-plugin-ld=[ARG] specify the plugin linker
1728 --with-glibc-version=M.N
1729 assume GCC used with glibc version M.N or later
1730 --with-long-double-128 use 128-bit long double by default
1731 --with-gc={page,zone} this option is not supported anymore. It used to
1732 choose the garbage collection mechanism to use with
1734 --with-system-zlib use installed libz
1735 --with-linker-hash-style={sysv,gnu,both}
1736 specify the linker hash style
1737 --with-diagnostics-color={never,auto,auto-if-env,always}
1738 specify the default of -fdiagnostics-color option
1739 auto-if-env stands for -fdiagnostics-color=auto if
1740 GCC_COLOR environment variable is present and
1741 -fdiagnostics-color=never otherwise
1743 Some influential environment variables:
1744 CC C compiler command
1745 CFLAGS C compiler flags
1746 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1747 nonstandard directory <lib dir>
1748 LIBS libraries to pass to the linker, e.g. -l<library>
1749 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1750 you have headers in a nonstandard directory <include dir>
1751 CXX C++ compiler command
1752 CXXFLAGS C++ compiler flags
1753 CXXCPP C++ preprocessor
1755 GMPLIBS How to link GMP
1756 GMPINC How to find GMP include files
1757 ISLLIBS How to link isl
1758 ISLINC How to find isl include files
1760 Use these variables to override the choices made by `configure' or to
help
1761 it to
find libraries and programs with nonstandard names
/locations.
1763 Report bugs to the package provider.
1768 if test "$ac_init_help" = "recursive"; then
1769 # If there are subdirs, report their specific --help.
1770 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1771 test -d "$ac_dir" ||
1772 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1777 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1779 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1784 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1787 ac_abs_top_builddir
=$ac_pwd
1788 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir
=$ac_top_build_prefix
1793 .
) # We are building in place.
1795 ac_top_srcdir
=$ac_top_builddir_sub
1796 ac_abs_top_srcdir
=$ac_pwd ;;
1797 [\\/]* | ?
:[\\/]* ) # Absolute name.
1798 ac_srcdir
=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir
=$srcdir
1800 ac_abs_top_srcdir
=$srcdir ;;
1802 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1806 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1808 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1817 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1819 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1827 generated by GNU Autoconf
2.64
1829 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1830 This configure
script is free software
; the Free Software Foundation
1831 gives unlimited permission to copy
, distribute and modify it.
1836 ## ------------------------ ##
1837 ## Autoconf initialization. ##
1838 ## ------------------------ ##
1840 # ac_fn_c_try_compile LINENO
1841 # --------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_compile
()
1845 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1846 rm -f conftest.
$ac_objext
1847 if { { ac_try
="$ac_compile"
1849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 } # ac_fn_c_try_compile
1878 # ac_fn_cxx_try_compile LINENO
1879 # ----------------------------
1880 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_cxx_try_compile ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext
1885 if { { ac_try="$ac_compile"
1887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1888 *) ac_try_echo
=$ac_try;;
1890 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_compile") 2>conftest.err
1894 if test -s conftest.err
; then
1895 grep -v '^ *+' conftest.err
>conftest.er1
1896 cat conftest.er1
>&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_cxx_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest.
$ac_objext; then :
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.
$ac_ext >&5
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1914 } # ac_fn_cxx_try_compile
1916 # ac_fn_cxx_try_cpp LINENO
1917 # ------------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_cpp
()
1921 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1922 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } >/dev/null && {
1938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1939 test ! -s conftest.err
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 } # ac_fn_cxx_try_cpp
1953 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1954 # ---------------------------------------------------------
1955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956 # the include files in INCLUDES and setting the cache variable VAR
1958 ac_fn_cxx_check_header_mongrel ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1971 # Is the header compilable?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973 $as_echo_n "checking $2 usability... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1979 if ac_fn_cxx_try_compile "$LINENO"; then :
1980 ac_header_compiler=yes
1982 ac_header_compiler=no
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986 $as_echo "$ac_header_compiler" >&6; }
1988 # Is the header present?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990 $as_echo_n "checking $2 presence... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1995 if ac_fn_cxx_try_cpp "$LINENO"; then :
1996 ac_header_preproc=yes
1998 ac_header_preproc=no
2000 rm -f conftest.err conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002 $as_echo "$ac_header_preproc" >&6; }
2004 # So? What about this header?
2005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2016 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2020 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2030 eval "$3=\$ac_header_compiler"
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 } # ac_fn_cxx_check_header_mongrel
2040 # ac_fn_cxx_try_run LINENO
2041 # ------------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2044 ac_fn_cxx_try_run ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_link"
2049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2050 *) ac_try_echo
=$ac_try;;
2052 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>&5
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2058 { { case "(($ac_try" in
2059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_try") 2>&5
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; }; }; then :
2070 $as_echo "$as_me: program exited with status $ac_status" >&5
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 ac_retval=$ac_status
2076 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2080 } # ac_fn_cxx_try_run
2082 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2083 # ---------------------------------------------------------
2084 # Tests whether HEADER exists and can be compiled using the include files in
2085 # INCLUDES, setting the cache variable VAR accordingly.
2086 ac_fn_cxx_check_header_compile ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2092 $as_echo_n "(cached) " >&6
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2099 if ac_fn_cxx_try_compile "$LINENO"; then :
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111 } # ac_fn_cxx_check_header_compile
2113 # ac_fn_c_try_cpp LINENO
2114 # ----------------------
2115 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if { { ac_try="$ac_cpp conftest.$ac_ext"
2121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2122 *) ac_try_echo
=$ac_try;;
2124 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2128 if test -s conftest.err
; then
2129 grep -v '^ *+' conftest.err
>conftest.er1
2130 cat conftest.er1
>&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } >/dev
/null
&& {
2135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2136 test ! -s conftest.err
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.
$ac_ext >&5
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2150 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2151 # ----------------------------------------------
2152 # Tries to find the compile-time value of EXPR in a program that includes
2153 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2155 ac_fn_cxx_compute_int
()
2157 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2158 if test "$cross_compiling" = yes; then
2159 # Depending upon the size, compute the lo and hi bounds.
2160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2166 static int test_array [1 - 2 * !(($2) >= 0)];
2173 if ac_fn_cxx_try_compile
"$LINENO"; then :
2176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2182 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189 if ac_fn_cxx_try_compile
"$LINENO"; then :
2190 ac_hi
=$ac_mid; break
2192 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2193 if test $ac_lo -le $ac_mid; then
2197 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2208 static int test_array [1 - 2 * !(($2) < 0)];
2215 if ac_fn_cxx_try_compile
"$LINENO"; then :
2218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2231 if ac_fn_cxx_try_compile
"$LINENO"; then :
2232 ac_lo
=$ac_mid; break
2234 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2235 if test $ac_mid -le $ac_hi; then
2239 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2249 # Binary search between lo and hi bounds.
2250 while test "x$ac_lo" != "x$ac_hi"; do
2251 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2258 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2265 if ac_fn_cxx_try_compile
"$LINENO"; then :
2268 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2273 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2280 static long int longval () { return $2; }
2281 static unsigned long int ulongval () { return $2; }
2288 FILE *f = fopen ("conftest.val", "w");
2293 long int i = longval ();
2296 fprintf (f, "%ld", i);
2300 unsigned long int i = ulongval ();
2303 fprintf (f, "%lu", i);
2305 /* Do not output a trailing newline, as this causes \r\n confusion
2306 on some platforms. */
2307 return ferror (f) || fclose (f) != 0;
2313 if ac_fn_cxx_try_run
"$LINENO"; then :
2314 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2318 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2319 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2326 } # ac_fn_cxx_compute_int
2328 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2329 # ---------------------------------------------
2330 # Tests whether TYPE exists after having included INCLUDES, setting cache
2331 # variable VAR accordingly.
2332 ac_fn_cxx_check_type
()
2334 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336 $as_echo_n "checking for $2... " >&6; }
2337 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2338 $as_echo_n "(cached) " >&6
2341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2353 if ac_fn_cxx_try_compile
"$LINENO"; then :
2354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2366 if ac_fn_cxx_try_compile
"$LINENO"; then :
2371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2380 } # ac_fn_cxx_check_type
2382 # ac_fn_c_find_intX_t LINENO BITS VAR
2383 # -----------------------------------
2384 # Finds a signed integer type with width BITS, setting cache variable VAR
2386 ac_fn_c_find_intX_t
()
2388 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2390 $as_echo_n "checking for int$2_t... " >&6; }
2391 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2392 $as_echo_n "(cached) " >&6
2395 for ac_type
in int
$2_t 'int' 'long int' \
2396 'long long int' 'short int' 'signed char'; do
2397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $ac_includes_default
2403 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2410 if ac_fn_cxx_try_compile
"$LINENO"; then :
2411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2417 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2418 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2425 if ac_fn_cxx_try_compile
"$LINENO"; then :
2432 eval "$3=\$ac_type" ;;
2435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2439 if test "x$as_val" = x
""no
; then :
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2451 } # ac_fn_c_find_intX_t
2453 # ac_fn_cxx_try_link LINENO
2454 # -------------------------
2455 # Try to link conftest.$ac_ext, and return whether this succeeded.
2456 ac_fn_cxx_try_link
()
2458 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2459 rm -f conftest.
$ac_objext conftest
$ac_exeext
2460 if { { ac_try
="$ac_link"
2462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2466 $as_echo "$ac_try_echo"; } >&5
2467 (eval "$ac_link") 2>conftest.err
2469 if test -s conftest.err; then
2470 grep -v '^ *+' conftest.err >conftest.er1
2471 cat conftest.er1 >&5
2472 mv -f conftest.er1 conftest.err
2474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475 test $ac_status = 0; } && {
2476 test -z "$ac_cxx_werror_flag" ||
2477 test ! -s conftest.err
2478 } && test -s conftest$ac_exeext && {
2479 test "$cross_compiling" = yes ||
2480 $as_test_x conftest$ac_exeext
2484 $as_echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2489 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2490 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2491 # interfere with the next link command; also delete a directory that is
2492 # left behind by Apple's compiler. We do this before executing the actions.
2493 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2497 } # ac_fn_cxx_try_link
2499 # ac_fn_c_find_uintX_t LINENO BITS VAR
2500 # ------------------------------------
2501 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2503 ac_fn_c_find_uintX_t ()
2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2507 $as_echo_n "checking for uint$2_t... " >&6; }
2508 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2509 $as_echo_n "(cached) " >&6
2512 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2513 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2516 $ac_includes_default
2520 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2527 if ac_fn_cxx_try_compile "$LINENO"; then :
2532 eval "$3=\$ac_type" ;;
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537 if test "x$as_val" = x""no; then :
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549 } # ac_fn_c_find_uintX_t
2551 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2552 # ------------------------------------------------
2553 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2554 ac_fn_cxx_check_header_preproc ()
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2566 if ac_fn_cxx_try_cpp "$LINENO"; then :
2571 rm -f conftest.err conftest.$ac_ext
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578 } # ac_fn_cxx_check_header_preproc
2580 # ac_fn_cxx_check_func LINENO FUNC VAR
2581 # ------------------------------------
2582 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2583 ac_fn_cxx_check_func ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2587 $as_echo_n "checking for $2... " >&6; }
2588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2589 $as_echo_n "(cached) " >&6
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2595 #define $2 innocuous_$2
2597 /* System header to define __stub macros and hopefully few prototypes,
2598 which can conflict with char $2 (); below.
2599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2600 <limits.h> exists even on freestanding compilers. */
2603 # include <limits.h>
2605 # include <assert.h>
2610 /* Override any GCC internal prototype to avoid an error.
2611 Use char because int might match the return type of a GCC
2612 builtin and then its argument prototype would still apply. */
2617 /* The GNU C library defines this for functions which it implements
2618 to always fail with ENOSYS. Some functions are actually named
2619 something starting with __ and the normal name is an alias. */
2620 #if defined __stub_$2 || defined __stub___$2
2632 if ac_fn_cxx_try_link "$LINENO"; then :
2637 rm -f core conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2645 } # ac_fn_cxx_check_func
2647 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2648 # --------------------------------------
2649 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2650 ac_fn_cxx_check_decl ()
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2654 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2656 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2658 $as_echo_n "(cached) " >&6
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2666 #ifndef $as_decl_name
2668 (void) $as_decl_use;
2670 (void) $as_decl_name;
2678 if ac_fn_cxx_try_compile "$LINENO"; then :
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2690 } # ac_fn_cxx_check_decl
2692 # ac_fn_c_try_link LINENO
2693 # -----------------------
2694 # Try to link conftest.$ac_ext, and return whether this succeeded.
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 rm -f conftest.$ac_objext conftest$ac_exeext
2699 if { { ac_try="$ac_link"
2701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2702 *) ac_try_echo
=$ac_try;;
2704 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705 $as_echo "$ac_try_echo"; } >&5
2706 (eval "$ac_link") 2>conftest.err
2708 if test -s conftest.err
; then
2709 grep -v '^ *+' conftest.err
>conftest.er1
2710 cat conftest.er1
>&5
2711 mv -f conftest.er1 conftest.err
2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714 test $ac_status = 0; } && {
2715 test -z "$ac_c_werror_flag" ||
2716 test ! -s conftest.err
2717 } && test -s conftest
$ac_exeext && {
2718 test "$cross_compiling" = yes ||
2719 $as_test_x conftest
$ac_exeext
2723 $as_echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.
$ac_ext >&5
2728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2730 # interfere with the next link command; also delete a directory that is
2731 # left behind by Apple's compiler. We do this before executing the actions.
2732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2736 } # ac_fn_c_try_link
2738 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2739 # ----------------------------------------------
2740 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2741 ac_fn_c_check_header_preproc
()
2743 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2745 $as_echo_n "checking for $2... " >&6; }
2746 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2747 $as_echo_n "(cached) " >&6
2749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2753 if ac_fn_c_try_cpp
"$LINENO"; then :
2758 rm -f conftest.err conftest.
$ac_ext
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762 $as_echo "$ac_res" >&6; }
2763 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2765 } # ac_fn_c_check_header_preproc
2767 # ac_fn_c_check_func LINENO FUNC VAR
2768 # ----------------------------------
2769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2770 ac_fn_c_check_func
()
2772 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2774 $as_echo_n "checking for $2... " >&6; }
2775 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2776 $as_echo_n "(cached) " >&6
2778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2782 #define $2 innocuous_$2
2784 /* System header to define __stub macros and hopefully few prototypes,
2785 which can conflict with char $2 (); below.
2786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2787 <limits.h> exists even on freestanding compilers. */
2790 # include <limits.h>
2792 # include <assert.h>
2797 /* Override any GCC internal prototype to avoid an error.
2798 Use char because int might match the return type of a GCC
2799 builtin and then its argument prototype would still apply. */
2804 /* The GNU C library defines this for functions which it implements
2805 to always fail with ENOSYS. Some functions are actually named
2806 something starting with __ and the normal name is an alias. */
2807 #if defined __stub_$2 || defined __stub___$2
2819 if ac_fn_c_try_link
"$LINENO"; then :
2824 rm -f core conftest.err conftest.
$ac_objext \
2825 conftest
$ac_exeext conftest.
$ac_ext
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829 $as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2832 } # ac_fn_c_check_func
2833 cat >config.log
<<_ACEOF
2834 This file contains any messages produced by compilers while
2835 running configure, to aid debugging if configure makes a mistake.
2837 It was created by $as_me, which was
2838 generated by GNU Autoconf 2.64. Invocation command line was
2850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir
=.
2874 $as_echo "PATH: $as_dir"
2890 # Keep a trace of the command line.
2891 # Strip out --no-create and --no-recursion so they do not pile up.
2892 # Strip out --silent because we don't want to record it for future runs.
2893 # Also quote any args containing shell meta-characters.
2894 # Make two passes to allow for proper duplicate-argument suppression.
2898 ac_must_keep_next
=false
2904 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2905 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2906 |
-silent |
--silent |
--silen |
--sile |
--sil)
2909 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2912 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2914 as_fn_append ac_configure_args1
" '$ac_arg'"
2915 if test $ac_must_keep_next = true
; then
2916 ac_must_keep_next
=false
# Got value, back to normal.
2919 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2920 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2921 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2922 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2923 case "$ac_configure_args0 " in
2924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2927 -* ) ac_must_keep_next
=true
;;
2930 as_fn_append ac_configure_args
" '$ac_arg'"
2935 { ac_configure_args0
=; unset ac_configure_args0
;}
2936 { ac_configure_args1
=; unset ac_configure_args1
;}
2938 # When interrupted or exit'd, cleanup temporary files, and complete
2939 # config.log. We remove comments because anyway the quotes in there
2940 # would cause problems or look ugly.
2941 # WARNING: Use '\'' to represent an apostrophe within the trap.
2942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2943 trap 'exit_status=$?
2944 # Save into config.log some information that might help in debugging.
2949 ## ---------------- ##
2950 ## Cache variables. ##
2951 ## ---------------- ##
2954 # The following way of writing the cache mishandles newlines in values,
2956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2957 eval ac_val=\$$ac_var
2961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2965 _ | IFS | as_nl) ;; #(
2966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2967 *) { eval $ac_var=; unset $ac_var;} ;;
2972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2973 *${as_nl}ac_space=\ *)
2975 "s/'\''/'\''\\\\'\'''\''/g;
2976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2987 ## ----------------- ##
2988 ## Output variables. ##
2989 ## ----------------- ##
2992 for ac_var in $ac_subst_vars
2994 eval ac_val=\$$ac_var
2996 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2998 $as_echo "$ac_var='\''$ac_val'\''"
3002 if test -n "$ac_subst_files"; then
3004 ## ------------------- ##
3005 ## File substitutions. ##
3006 ## ------------------- ##
3009 for ac_var
in $ac_subst_files
3011 eval ac_val
=\$
$ac_var
3013 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3015 $as_echo "$ac_var='\''$ac_val'\''"
3020 if test -s confdefs.h; then
3030 test "$ac_signal" != 0 &&
3031 $as_echo "$as_me: caught signal $ac_signal"
3032 $as_echo "$as_me: exit $exit_status"
3034 rm -f core *.core core.conftest.* &&
3035 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3038 for ac_signal
in 1 2 13 15; do
3039 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3043 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3044 rm -f -r conftest
* confdefs.h
3046 $as_echo "/* confdefs.h */" > confdefs.h
3048 # Predefined preprocessor variables.
3050 cat >>confdefs.h
<<_ACEOF
3051 #define PACKAGE_NAME "$PACKAGE_NAME"
3054 cat >>confdefs.h
<<_ACEOF
3055 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3058 cat >>confdefs.h
<<_ACEOF
3059 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3062 cat >>confdefs.h
<<_ACEOF
3063 #define PACKAGE_STRING "$PACKAGE_STRING"
3066 cat >>confdefs.h
<<_ACEOF
3067 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3070 cat >>confdefs.h
<<_ACEOF
3071 #define PACKAGE_URL "$PACKAGE_URL"
3075 # Let the site file select an alternate cache file if it wants to.
3076 # Prefer an explicitly selected file to automatically selected ones.
3079 if test -n "$CONFIG_SITE"; then
3080 ac_site_file1
=$CONFIG_SITE
3081 elif test "x$prefix" != xNONE
; then
3082 ac_site_file1
=$prefix/share
/config.site
3083 ac_site_file2
=$prefix/etc
/config.site
3085 ac_site_file1
=$ac_default_prefix/share
/config.site
3086 ac_site_file2
=$ac_default_prefix/etc
/config.site
3088 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3090 test "x$ac_site_file" = xNONE
&& continue
3091 if test -r "$ac_site_file"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3093 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3094 sed 's/^/| /' "$ac_site_file" >&5
3099 if test -r "$cache_file"; then
3100 # Some versions of bash will fail to source /dev/null (special
3101 # files actually), so we avoid doing that.
3102 if test -f "$cache_file"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3104 $as_echo "$as_me: loading cache $cache_file" >&6;}
3106 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3107 *) .
"./$cache_file";;
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3112 $as_echo "$as_me: creating cache $cache_file" >&6;}
3116 # Check that the precious variables saved in the cache have kept the same
3118 ac_cache_corrupted
=false
3119 for ac_var
in $ac_precious_vars; do
3120 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3121 eval ac_new_set
=\
$ac_env_${ac_var}_set
3122 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3123 eval ac_new_val
=\
$ac_env_${ac_var}_value
3124 case $ac_old_set,$ac_new_set in
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3128 ac_cache_corrupted
=: ;;
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3131 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3132 ac_cache_corrupted
=: ;;
3135 if test "x$ac_old_val" != "x$ac_new_val"; then
3136 # differences in whitespace do not lead to failure.
3137 ac_old_val_w
=`echo x $ac_old_val`
3138 ac_new_val_w
=`echo x $ac_new_val`
3139 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3141 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3142 ac_cache_corrupted
=:
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3145 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3146 eval $ac_var=\
$ac_old_val
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3149 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3151 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3154 # Pass precious variables to config.status.
3155 if test "$ac_new_set" = set; then
3157 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3158 *) ac_arg
=$ac_var=$ac_new_val ;;
3160 case " $ac_configure_args " in
3161 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3162 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3166 if $ac_cache_corrupted; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3170 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3171 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3173 ## -------------------- ##
3174 ## Main body of script. ##
3175 ## -------------------- ##
3178 ac_cpp
='$CPP $CPPFLAGS'
3179 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3188 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3191 gcc_version
=`cat $srcdir/BASE-VER`
3193 # Determine the host, build, and target systems
3195 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3196 for ac_t
in install-sh
install.sh shtool
; do
3197 if test -f "$ac_dir/$ac_t"; then
3199 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3204 if test -z "$ac_aux_dir"; then
3205 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3208 # These three variables are undocumented and unsupported,
3209 # and are intended to be withdrawn in a future Autoconf release.
3210 # They can cause serious problems if a builder's source tree is in a directory
3211 # whose full name contains unusual characters.
3212 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3213 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3214 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3217 # Make sure we can run config.sub.
3218 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3219 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3222 $as_echo_n "checking build system type... " >&6; }
3223 if test "${ac_cv_build+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3226 ac_build_alias
=$build_alias
3227 test "x$ac_build_alias" = x
&&
3228 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3229 test "x$ac_build_alias" = x
&&
3230 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3231 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3232 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3236 $as_echo "$ac_cv_build" >&6; }
3237 case $ac_cv_build in
3239 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3242 ac_save_IFS
=$IFS; IFS
='-'
3248 # Remember, the first character of IFS is used to create $*,
3249 # except with old shells:
3252 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3256 $as_echo_n "checking host system type... " >&6; }
3257 if test "${ac_cv_host+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3260 if test "x$host_alias" = x
; then
3261 ac_cv_host
=$ac_cv_build
3263 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3264 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3269 $as_echo "$ac_cv_host" >&6; }
3272 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3275 ac_save_IFS
=$IFS; IFS
='-'
3281 # Remember, the first character of IFS is used to create $*,
3282 # except with old shells:
3285 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3289 $as_echo_n "checking target system type... " >&6; }
3290 if test "${ac_cv_target+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3293 if test "x$target_alias" = x
; then
3294 ac_cv_target
=$ac_cv_host
3296 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3297 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3302 $as_echo "$ac_cv_target" >&6; }
3303 case $ac_cv_target in
3305 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3307 target
=$ac_cv_target
3308 ac_save_IFS
=$IFS; IFS
='-'
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3318 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3321 # The aliases save the names the user supplied, while $host etc.
3322 # will get canonicalized.
3323 test -n "$target_alias" &&
3324 test "$program_prefix$program_suffix$program_transform_name" = \
3326 program_prefix
=${target_alias}-
3328 # Determine the noncanonical host name, for Ada.
3329 case ${build_alias} in
3330 "") build_noncanonical
=${build} ;;
3331 *) build_noncanonical
=${build_alias} ;;
3334 case ${host_alias} in
3335 "") host_noncanonical
=${build_noncanonical} ;;
3336 *) host_noncanonical
=${host_alias} ;;
3342 # Determine the noncanonical target name, for directory use.
3343 case ${target_alias} in
3344 "") target_noncanonical
=${host_noncanonical} ;;
3345 *) target_noncanonical
=${target_alias} ;;
3351 # Used for constructing correct paths for offload compilers.
3352 real_target_noncanonical
=${target_noncanonical}
3355 # Determine the target- and build-specific subdirectories
3357 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3358 # have matching libraries, they should use host libraries: Makefile.tpl
3359 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3360 # However, they still use the build modules, because the corresponding
3361 # host modules (e.g. bison) are only built for the host when bootstrap
3363 # - build_subdir is where we find build modules, and never changes.
3364 # - build_libsubdir is where we find build libraries, and can be overridden.
3366 # Prefix 'build-' so this never conflicts with target_subdir.
3367 build_subdir
="build-${build_noncanonical}"
3369 # Check whether --with-build-libsubdir was given.
3370 if test "${with_build_libsubdir+set}" = set; then :
3371 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3373 build_libsubdir
="$build_subdir"
3376 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3377 if ( test $srcdir = .
&& test -d gcc
) \
3378 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3379 host_subdir
="host-${host_noncanonical}"
3384 target_subdir
=${target_noncanonical}
3387 # Set program_transform_name
3388 test "$program_prefix" != NONE
&&
3389 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3390 # Use a double $ so make ignores it.
3391 test "$program_suffix" != NONE
&&
3392 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3393 # Double any \ or $.
3394 # By default was `s,x,x', remove it if useless.
3395 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3396 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3399 # Check for bogus environment variables.
3400 # Test if LIBRARY_PATH contains the notation for the current directory
3401 # since this would lead to problems installing/building glibc.
3402 # LIBRARY_PATH contains the current directory if one of the following
3404 # - one of the terminals (":" and ";") is the first or last sign
3405 # - two terminals occur directly after each other
3406 # - the path contains an element with a dot in it
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3408 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3409 case ${LIBRARY_PATH} in
3410 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3411 library_path_setting
="contains current directory"
3414 library_path_setting
="ok"
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3418 $as_echo "$library_path_setting" >&6; }
3419 if test "$library_path_setting" != "ok"; then
3421 *** LIBRARY_PATH shouldn't contain the current directory when
3422 *** building gcc. Please change the environment variable
3423 *** and run configure again." "$LINENO" 5
3426 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3427 # since this would lead to problems installing/building glibc.
3428 # GCC_EXEC_PREFIX contains the current directory if one of the following
3430 # - one of the terminals (":" and ";") is the first or last sign
3431 # - two terminals occur directly after each other
3432 # - the path contains an element with a dot in it
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3434 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3435 case ${GCC_EXEC_PREFIX} in
3436 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3437 gcc_exec_prefix_setting
="contains current directory"
3440 gcc_exec_prefix_setting
="ok"
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3444 $as_echo "$gcc_exec_prefix_setting" >&6; }
3445 if test "$gcc_exec_prefix_setting" != "ok"; then
3447 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3448 *** building gcc. Please change the environment variable
3449 *** and run configure again." "$LINENO" 5
3456 # Specify the local prefix
3459 # Check whether --with-local-prefix was given.
3460 if test "${with_local_prefix+set}" = set; then :
3461 withval
=$with_local_prefix; case "${withval}" in
3462 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3464 *) local_prefix
=$with_local_prefix ;;
3469 # Default local prefix if it is empty
3470 if test x
$local_prefix = x
; then
3471 local_prefix
=/usr
/local
3475 # Check whether --with-native-system-header-dir was given.
3476 if test "${with_native_system_header_dir+set}" = set; then :
3477 withval
=$with_native_system_header_dir;
3478 case ${with_native_system_header_dir} in
3479 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3480 /* |
[A-Za-z
]:[\\/]*) ;;
3481 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3483 configured_native_system_header_dir
="${withval}"
3486 configured_native_system_header_dir
=
3491 # Check whether --with-build-sysroot was given.
3492 if test "${with_build_sysroot+set}" = set; then :
3493 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3494 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3497 SYSROOT_CFLAGS_FOR_TARGET
=
3502 if test "x$prefix" = xNONE
; then
3503 test_prefix
=/usr
/local
3507 if test "x$exec_prefix" = xNONE
; then
3508 test_exec_prefix
=$test_prefix
3510 test_exec_prefix
=$exec_prefix
3514 # Check whether --with-sysroot was given.
3515 if test "${with_sysroot+set}" = set; then :
3516 withval
=$with_sysroot;
3517 case ${with_sysroot} in
3519 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3521 case ${with_sysroot} in
3522 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3523 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3526 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3527 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3529 case ${TARGET_SYSTEM_ROOT} in
3530 "${test_prefix}"|
"${test_prefix}/"*|\
3531 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3532 '${prefix}'|
'${prefix}/'*|\
3533 '${exec_prefix}'|
'${exec_prefix}/'*)
3534 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3535 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3542 TARGET_SYSTEM_ROOT_DEFINE
=
3543 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3551 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3552 # passed in by the toplevel make and thus we'd get different behavior
3553 # depending on where we built the sources.
3554 gcc_gxx_include_dir
=
3555 # Specify the g++ header file directory
3557 # Check whether --with-gxx-include-dir was given.
3558 if test "${with_gxx_include_dir+set}" = set; then :
3559 withval
=$with_gxx_include_dir; case "${withval}" in
3560 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3562 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3567 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3568 if test x
${gcc_gxx_include_dir} = x
; then
3569 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3570 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3572 libstdcxx_incdir
='include/c++/$(version)'
3573 if test x
$host != x
$target; then
3574 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3576 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3580 gcc_gxx_include_dir_add_sysroot
=0
3581 if test "${with_sysroot+set}" = set; then
3582 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3583 if test "${gcc_gxx_without_sysroot}"; then
3584 if test x
${with_sysroot} != x
/; then
3585 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3587 gcc_gxx_include_dir_add_sysroot
=1
3592 # Check whether --with-cpp_install_dir was given.
3593 if test "${with_cpp_install_dir+set}" = set; then :
3594 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3595 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3596 elif test x
$withval != xno
; then
3597 cpp_install_dir
=$withval
3602 # We would like to our source tree to be readonly. However when releases or
3603 # pre-releases are generated, the flex/bison generated files as well as the
3604 # various formats of manuals need to be included along with the rest of the
3605 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3609 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3610 # Check whether --enable-generated-files-in-srcdir was given.
3611 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3612 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3614 generated_files_in_srcdir
=no
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3619 $as_echo "$generated_files_in_srcdir" >&6; }
3621 if test "$generated_files_in_srcdir" = "yes"; then
3628 # -------------------
3629 # Find default linker
3630 # -------------------
3634 # Check whether --with-gnu-ld was given.
3635 if test "${with_gnu_ld+set}" = set; then :
3636 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3643 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3647 # With pre-defined ld
3649 # Check whether --with-ld was given.
3650 if test "${with_ld+set}" = set; then :
3651 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3654 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3655 if test ! -x "$DEFAULT_LINKER"; then
3656 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3657 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3659 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3663 cat >>confdefs.h
<<_ACEOF
3664 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3670 $as_echo_n "checking whether a default linker was specified... " >&6; }
3671 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3672 if test x
"$gnu_ld_flag" = x
"no"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3674 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3677 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3684 # With demangler in GNU ld
3686 # Check whether --with-demangler-in-ld was given.
3687 if test "${with_demangler_in_ld+set}" = set; then :
3688 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3694 # ----------------------
3695 # Find default assembler
3696 # ----------------------
3700 # Check whether --with-gnu-as was given.
3701 if test "${with_gnu_as+set}" = set; then :
3702 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3709 # Check whether --with-as was given.
3710 if test "${with_as+set}" = set; then :
3711 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3714 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3715 if test ! -x "$DEFAULT_ASSEMBLER"; then
3716 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3717 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3721 cat >>confdefs.h
<<_ACEOF
3722 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3728 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3729 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3730 if test x
"$gas_flag" = x
"no"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3732 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3735 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3746 # If a non-executable a.out is present (e.g. created by GNU as above even if
3747 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3748 # file, even when creating an executable, so an execution test fails.
3749 # Remove possible default executable files to avoid this.
3751 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3752 # Autoconf includes it.
3753 rm -f a.out a.exe b.out
3755 # Find the native compiler
3757 ac_cpp
='$CPP $CPPFLAGS'
3758 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3761 if test -n "$ac_tool_prefix"; then
3762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3763 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 $as_echo_n "checking for $ac_word... " >&6; }
3766 if test "${ac_cv_prog_CC+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3769 if test -n "$CC"; then
3770 ac_cv_prog_CC
="$CC" # Let the user override the test.
3772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir
=.
3777 for ac_exec_ext
in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 if test -n "$CC"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3792 $as_echo "$CC" >&6; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3800 if test -z "$ac_cv_prog_CC"; then
3802 # Extract the first word of "gcc", so it can be a program name with args.
3803 set dummy gcc
; ac_word
=$2
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 $as_echo_n "checking for $ac_word... " >&6; }
3806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3807 $as_echo_n "(cached) " >&6
3809 if test -n "$ac_ct_CC"; then
3810 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3816 test -z "$as_dir" && as_dir
=.
3817 for ac_exec_ext
in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 ac_cv_prog_ac_ct_CC
="gcc"
3820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3830 if test -n "$ac_ct_CC"; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3832 $as_echo "$ac_ct_CC" >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3838 if test "x$ac_ct_CC" = x
; then
3841 case $cross_compiling:$ac_tool_warned in
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845 ac_tool_warned
=yes ;;
3853 if test -z "$CC"; then
3854 if test -n "$ac_tool_prefix"; then
3855 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3856 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 $as_echo_n "checking for $ac_word... " >&6; }
3859 if test "${ac_cv_prog_CC+set}" = set; then :
3860 $as_echo_n "(cached) " >&6
3862 if test -n "$CC"; then
3863 ac_cv_prog_CC
="$CC" # Let the user override the test.
3865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3869 test -z "$as_dir" && as_dir
=.
3870 for ac_exec_ext
in '' $ac_executable_extensions; do
3871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3872 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 if test -n "$CC"; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3885 $as_echo "$CC" >&6; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 $as_echo "no" >&6; }
3894 if test -z "$CC"; then
3895 # Extract the first word of "cc", so it can be a program name with args.
3896 set dummy cc
; ac_word
=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if test "${ac_cv_prog_CC+set}" = set; then :
3900 $as_echo_n "(cached) " >&6
3902 if test -n "$CC"; then
3903 ac_cv_prog_CC
="$CC" # Let the user override the test.
3906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir
=.
3911 for ac_exec_ext
in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3914 ac_prog_rejected
=yes
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 if test $ac_prog_rejected = yes; then
3926 # We found a bogon in the path, so make sure we never use it.
3927 set dummy
$ac_cv_prog_CC
3929 if test $# != 0; then
3930 # We chose a different compiler from the bogus one.
3931 # However, it has the same basename, so the bogon will be chosen
3932 # first if we set CC to just the basename; use the full file name.
3934 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3940 if test -n "$CC"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3942 $as_echo "$CC" >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3950 if test -z "$CC"; then
3951 if test -n "$ac_tool_prefix"; then
3952 for ac_prog
in cl.exe
3954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3955 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if test "${ac_cv_prog_CC+set}" = set; then :
3959 $as_echo_n "(cached) " >&6
3961 if test -n "$CC"; then
3962 ac_cv_prog_CC
="$CC" # Let the user override the test.
3964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3968 test -z "$as_dir" && as_dir
=.
3969 for ac_exec_ext
in '' $ac_executable_extensions; do
3970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3971 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 if test -n "$CC"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3984 $as_echo "$CC" >&6; }
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3991 test -n "$CC" && break
3994 if test -z "$CC"; then
3996 for ac_prog
in cl.exe
3998 # Extract the first word of "$ac_prog", so it can be a program name with args.
3999 set dummy
$ac_prog; ac_word
=$2
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001 $as_echo_n "checking for $ac_word... " >&6; }
4002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4005 if test -n "$ac_ct_CC"; then
4006 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4012 test -z "$as_dir" && as_dir
=.
4013 for ac_exec_ext
in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015 ac_cv_prog_ac_ct_CC
="$ac_prog"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4026 if test -n "$ac_ct_CC"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4028 $as_echo "$ac_ct_CC" >&6; }
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4035 test -n "$ac_ct_CC" && break
4038 if test "x$ac_ct_CC" = x
; then
4041 case $cross_compiling:$ac_tool_warned in
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4045 ac_tool_warned
=yes ;;
4054 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error
"no acceptable C compiler found in \$PATH
4057 See \`config.log' for more details." "$LINENO" 5; }
4059 # Provide some information about the compiler.
4060 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4063 for ac_option
in --version -v -V -qversion; do
4064 { { ac_try
="$ac_compiler $ac_option >&5"
4066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070 $as_echo "$ac_try_echo"; } >&5
4071 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4073 if test -s conftest.err; then
4075 ... rest of stderr output deleted ...
4076 10q' conftest.err >conftest.er1
4077 cat conftest.er1 >&5
4078 rm -f conftest.er1 conftest.err
4080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081 test $ac_status = 0; }
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4095 ac_clean_files_save=$ac_clean_files
4096 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4097 # Try to create an executable without -o first, disregard a.out.
4098 # It will help us diagnose broken compilers, and finding out an intuition
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4101 $as_echo_n "checking for C compiler default output file name... " >&6; }
4102 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4104 # The possible output files:
4105 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4108 for ac_file in $ac_files
4111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4112 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4117 if { { ac_try="$ac_link_default"
4119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4120 *) ac_try_echo
=$ac_try;;
4122 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4123 $as_echo "$ac_try_echo"; } >&5
4124 (eval "$ac_link_default") 2>&5
4126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4127 test $ac_status = 0; }; then :
4128 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4129 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4130 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4131 # so that the user can short-circuit this test for compilers unknown to
4133 for ac_file
in $ac_files ''
4135 test -f "$ac_file" ||
continue
4137 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4140 # We found the default executable, but exeext='' is most
4144 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4146 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4148 # We set ac_cv_exeext here because the later test for it is not
4149 # safe: cross compilers may not add the suffix if given an `-o'
4150 # argument, so we may need to know it at that point already.
4151 # Even if this section looks crufty: it has the advantage of
4158 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4164 $as_echo "$ac_file" >&6; }
4165 if test -z "$ac_file"; then :
4166 $as_echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.
$ac_ext >&5
4169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171 { as_fn_set_status
77
4172 as_fn_error
"C compiler cannot create executables
4173 See \`config.log' for more details." "$LINENO" 5; }; }
4175 ac_exeext
=$ac_cv_exeext
4177 # Check that the compiler produces executables we can run. If not, either
4178 # the compiler is broken, or we cross compile.
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4180 $as_echo_n "checking whether the C compiler works... " >&6; }
4181 # If not cross compiling, check that we can run a simple program.
4182 if test "$cross_compiling" != yes; then
4183 if { ac_try
='./$ac_file'
4184 { { case "(($ac_try" in
4185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4189 $as_echo "$ac_try_echo"; } >&5
4190 (eval "$ac_try") 2>&5
4192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193 test $ac_status = 0; }; }; then
4196 if test "$cross_compiling" = maybe; then
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error "cannot run C compiled programs.
4202 If you meant to cross compile
, use \
`--host'.
4203 See \`config.log
' for more details." "$LINENO" 5; }
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4208 $as_echo "yes" >&6; }
4210 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4211 ac_clean_files=$ac_clean_files_save
4212 # Check that the compiler produces executables we can run. If not, either
4213 # the compiler is broken, or we cross compile.
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4215 $as_echo_n "checking whether we are cross compiling... " >&6; }
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4217 $as_echo "$cross_compiling" >&6; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4220 $as_echo_n "checking for suffix of executables... " >&6; }
4221 if { { ac_try="$ac_link"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_link") 2>&5
4230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; }; then :
4232 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4233 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4234 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4236 for ac_file
in conftest.exe conftest conftest.
*; do
4237 test -f "$ac_file" ||
continue
4239 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4240 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4248 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4249 See \`config.log' for more details." "$LINENO" 5; }
4251 rm -f conftest
$ac_cv_exeext
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4253 $as_echo "$ac_cv_exeext" >&6; }
4255 rm -f conftest.
$ac_ext
4256 EXEEXT
=$ac_cv_exeext
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4259 $as_echo_n "checking for suffix of object files... " >&6; }
4260 if test "${ac_cv_objext+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4274 rm -f conftest.o conftest.obj
4275 if { { ac_try
="$ac_compile"
4277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 $as_echo "$ac_try_echo"; } >&5
4282 (eval "$ac_compile") 2>&5
4284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; }; then :
4286 for ac_file in conftest.o conftest.obj conftest.*; do
4287 test -f "$ac_file" || continue;
4289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4290 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4295 $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300 as_fn_error "cannot compute suffix of object files
: cannot compile
4301 See \
`config.log' for more details." "$LINENO" 5; }
4303 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4306 $as_echo "$ac_cv_objext" >&6; }
4307 OBJEXT=$ac_cv_objext
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4310 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4311 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4312 $as_echo_n "(cached) " >&6
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4328 if ac_fn_c_try_compile "$LINENO"; then :
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4338 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4339 if test $ac_compiler_gnu = yes; then
4344 ac_test_CFLAGS=${CFLAGS+set}
4345 ac_save_CFLAGS=$CFLAGS
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4347 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4348 if test "${ac_cv_prog_cc_g+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4351 ac_save_c_werror_flag=$ac_c_werror_flag
4352 ac_c_werror_flag=yes
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4366 if ac_fn_c_try_compile "$LINENO"; then :
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4381 if ac_fn_c_try_compile "$LINENO"; then :
4384 ac_c_werror_flag=$ac_save_c_werror_flag
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4397 if ac_fn_c_try_compile "$LINENO"; then :
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 ac_c_werror_flag=$ac_save_c_werror_flag
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4408 $as_echo "$ac_cv_prog_cc_g" >&6; }
4409 if test "$ac_test_CFLAGS" = set; then
4410 CFLAGS=$ac_save_CFLAGS
4411 elif test $ac_cv_prog_cc_g = yes; then
4412 if test "$GCC" = yes; then
4418 if test "$GCC" = yes; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4425 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4426 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4429 ac_cv_prog_cc_c89=no
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4435 #include <sys/types.h>
4436 #include <sys/stat.h>
4437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4438 struct buf { int x; };
4439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4440 static char *e (p, i)
4446 static char *f (char * (*g) (char **, int), char **p, ...)
4451 s = g (p, va_arg (v,int));
4456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4457 function prototypes and stuff, but not '\xHH' hex character constants.
4458 These don't provoke an error unfortunately, instead are silently treated
4459 as 'x'. The following induces an error, until -std is added to get
4460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4461 array size at least. It's necessary to write '\x00'==0 to get something
4462 that's true only with -std. */
4463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4466 inside strings and character constants. */
4468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4470 int test (int i, double x);
4471 struct s1 {int (*f) (int a);};
4472 struct s2 {int (*f) (double a);};
4473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4487 CC="$ac_save_CC $ac_arg"
4488 if ac_fn_c_try_compile "$LINENO"; then :
4489 ac_cv_prog_cc_c89=$ac_arg
4491 rm -f core conftest.err conftest.$ac_objext
4492 test "x$ac_cv_prog_cc_c89" != "xno" && break
4494 rm -f conftest.$ac_ext
4499 case "x$ac_cv_prog_cc_c89" in
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4502 $as_echo "none needed" >&6; } ;;
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4505 $as_echo "unsupported" >&6; } ;;
4507 CC="$CC $ac_cv_prog_cc_c89"
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4509 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4511 if test "x$ac_cv_prog_cc_c89" != xno; then :
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522 ac_cpp='$CXXCPP $CPPFLAGS'
4523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4526 if test -z "$CXX"; then
4527 if test -n "$CCC"; then
4530 if test -n "$ac_tool_prefix"; then
4531 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if test "${ac_cv_prog_CXX+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4540 if test -n "$CXX"; then
4541 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 if test -n "$CXX"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4563 $as_echo "$CXX" >&6; }
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4570 test -n "$CXX" && break
4573 if test -z "$CXX"; then
4575 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4577 # Extract the first word of "$ac_prog", so it can be a program name with args.
4578 set dummy $ac_prog; ac_word=$2
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580 $as_echo_n "checking for $ac_word... " >&6; }
4581 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4584 if test -n "$ac_ct_CXX"; then
4585 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_ac_ct_CXX="$ac_prog"
4595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4605 if test -n "$ac_ct_CXX"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4607 $as_echo "$ac_ct_CXX" >&6; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4614 test -n "$ac_ct_CXX" && break
4617 if test "x$ac_ct_CXX" = x; then
4620 case $cross_compiling:$ac_tool_warned in
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4624 ac_tool_warned=yes ;;
4632 # Provide some information about the compiler.
4633 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4636 for ac_option in --version -v -V -qversion; do
4637 { { ac_try="$ac_compiler $ac_option >&5"
4639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4640 *) ac_try_echo
=$ac_try;;
4642 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643 $as_echo "$ac_try_echo"; } >&5
4644 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4646 if test -s conftest.err
; then
4648 ... rest of stderr output deleted ...
4649 10q' conftest.err
>conftest.er1
4650 cat conftest.er1
>&5
4651 rm -f conftest.er1 conftest.err
4653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4654 test $ac_status = 0; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4658 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4659 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4676 if ac_fn_cxx_try_compile
"$LINENO"; then :
4681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4682 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4686 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4687 if test $ac_compiler_gnu = yes; then
4692 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4693 ac_save_CXXFLAGS
=$CXXFLAGS
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4695 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4696 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4699 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4700 ac_cxx_werror_flag
=yes
4703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4714 if ac_fn_cxx_try_compile
"$LINENO"; then :
4715 ac_cv_prog_cxx_g
=yes
4718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4729 if ac_fn_cxx_try_compile
"$LINENO"; then :
4732 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4745 if ac_fn_cxx_try_compile
"$LINENO"; then :
4746 ac_cv_prog_cxx_g
=yes
4748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4753 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4756 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4757 if test "$ac_test_CXXFLAGS" = set; then
4758 CXXFLAGS
=$ac_save_CXXFLAGS
4759 elif test $ac_cv_prog_cxx_g = yes; then
4760 if test "$GXX" = yes; then
4766 if test "$GXX" = yes; then
4773 ac_cpp
='$CPP $CPPFLAGS'
4774 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4781 if test -n "$ac_tool_prefix"; then
4782 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4783 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4789 if test -n "$GNATBIND"; then
4790 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir
=.
4797 for ac_exec_ext
in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 GNATBIND
=$ac_cv_prog_GNATBIND
4810 if test -n "$GNATBIND"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4812 $as_echo "$GNATBIND" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4820 if test -z "$ac_cv_prog_GNATBIND"; then
4821 ac_ct_GNATBIND
=$GNATBIND
4822 # Extract the first word of "gnatbind", so it can be a program name with args.
4823 set dummy gnatbind
; ac_word
=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4829 if test -n "$ac_ct_GNATBIND"; then
4830 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir
=.
4837 for ac_exec_ext
in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4850 if test -n "$ac_ct_GNATBIND"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4852 $as_echo "$ac_ct_GNATBIND" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4858 if test "x$ac_ct_GNATBIND" = x
; then
4861 case $cross_compiling:$ac_tool_warned in
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4865 ac_tool_warned
=yes ;;
4867 GNATBIND
=$ac_ct_GNATBIND
4870 GNATBIND
="$ac_cv_prog_GNATBIND"
4873 if test -n "$ac_tool_prefix"; then
4874 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4875 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4881 if test -n "$GNATMAKE"; then
4882 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4888 test -z "$as_dir" && as_dir
=.
4889 for ac_exec_ext
in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 GNATMAKE
=$ac_cv_prog_GNATMAKE
4902 if test -n "$GNATMAKE"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4904 $as_echo "$GNATMAKE" >&6; }
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4912 if test -z "$ac_cv_prog_GNATMAKE"; then
4913 ac_ct_GNATMAKE
=$GNATMAKE
4914 # Extract the first word of "gnatmake", so it can be a program name with args.
4915 set dummy gnatmake
; ac_word
=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4921 if test -n "$ac_ct_GNATMAKE"; then
4922 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4928 test -z "$as_dir" && as_dir
=.
4929 for ac_exec_ext
in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4942 if test -n "$ac_ct_GNATMAKE"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4944 $as_echo "$ac_ct_GNATMAKE" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4950 if test "x$ac_ct_GNATMAKE" = x
; then
4953 case $cross_compiling:$ac_tool_warned in
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957 ac_tool_warned
=yes ;;
4959 GNATMAKE
=$ac_ct_GNATMAKE
4962 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4966 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4967 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4970 cat >conftest.adb
<<EOF
4971 procedure conftest is begin null; end conftest;
4973 acx_cv_cc_gcc_supports_ada
=no
4974 # There is a bug in old released versions of GCC which causes the
4975 # driver to exit successfully when the appropriate language module
4976 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4977 # Therefore we must check for the error message as well as an
4978 # unsuccessful exit.
4979 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4980 # given a .adb file, but produce no object file. So we must check
4981 # if an object file was really produced to guard against this.
4982 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4983 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4984 acx_cv_cc_gcc_supports_ada
=yes
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4989 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4991 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4998 # Do configure tests with the C++ compiler, since that's what we build with.
5000 ac_cpp
='$CXXCPP $CPPFLAGS'
5001 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5006 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5007 # optimizations to be activated explicitly by the toplevel.
5009 */prev-gcc
/xgcc
*) ;;
5010 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5011 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5016 # Determine PICFLAG for target gnatlib.
5022 # PIC is the default on some targets or must not be used.
5024 # For darwin, common symbols are not allowed in MH_DYLIB files
5026 # If we are using a compiler supporting mdynamic-no-pic
5027 # and the option has been tested as safe to add, then cancel
5028 # it here, since the code generated is incompatible with shared
5030 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5031 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5035 # PIC is the default.
5038 # PIC is the default for 64-bit PA HP-UX.
5040 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5042 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5044 i
[34567]86-*-nto-qnx*)
5045 # QNX uses GNU C++, but need to define -shared option too, otherwise
5047 PICFLAG_FOR_TARGET
='-fPIC -shared'
5049 i
[34567]86-pc-msdosdjgpp*)
5050 # DJGPP does not support shared libraries at all.
5053 # On IA64 HP-UX, PIC is the default but the pic flag
5054 # sets the default TLS model and affects inlining.
5055 PICFLAG_FOR_TARGET
=-fPIC
5058 # PIC is the default.
5060 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5061 # All AIX code is PIC.
5064 # Some targets support both -fPIC and -fpic, but prefer the latter.
5066 i
[34567]86-*-* | x86_64-
*-*)
5067 PICFLAG_FOR_TARGET
=-fpic
5069 # FIXME: Override -fPIC default in libgcc only?
5070 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5071 PICFLAG_FOR_TARGET
=-fpic
5073 # FIXME: Simplify to sh*-*-netbsd*?
5074 sh-
*-netbsdelf* | shl
*-*-netbsdelf*)
5075 PICFLAG_FOR_TARGET
=-fpic
5077 # Default to -fPIC unless specified otherwise.
5079 PICFLAG_FOR_TARGET
=-fPIC
5083 # If the user explicitly uses -fpic/-fPIC, keep that.
5084 case "${CFLAGS_FOR_TARGET}" in
5086 PICFLAG_FOR_TARGET
=-fpic
5089 PICFLAG_FOR_TARGET
=-fPIC
5095 # -------------------------
5096 # Check C compiler features
5097 # -------------------------
5101 ac_cpp
='$CXXCPP $CPPFLAGS'
5102 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5106 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5107 if test -z "$CXXCPP"; then
5108 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5111 # Double quotes because CXXCPP needs to be expanded
5112 for CXXCPP
in "$CXX -E" "/lib/cpp"
5115 for ac_cxx_preproc_warn_flag
in '' yes
5117 # Use a header file that comes with gcc, so configuring glibc
5118 # with a fresh cross-compiler works.
5119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5120 # <limits.h> exists even on freestanding compilers.
5121 # On the NeXT, cc -E runs the code through the compiler's parser,
5122 # not just through cpp. "Syntax error" is here to catch this case.
5123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5126 # include <limits.h>
5128 # include <assert.h>
5132 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5135 # Broken: fails on valid input.
5138 rm -f conftest.err conftest.
$ac_ext
5140 # OK, works on sane cases. Now check whether nonexistent headers
5141 # can be detected and how.
5142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #include <ac_nonexistent.h>
5146 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5147 # Broken: success on invalid input.
5150 # Passes both tests.
5154 rm -f conftest.err conftest.
$ac_ext
5157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5158 rm -f conftest.err conftest.
$ac_ext
5159 if $ac_preproc_ok; then :
5164 ac_cv_prog_CXXCPP
=$CXXCPP
5167 CXXCPP
=$ac_cv_prog_CXXCPP
5169 ac_cv_prog_CXXCPP
=$CXXCPP
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5172 $as_echo "$CXXCPP" >&6; }
5174 for ac_cxx_preproc_warn_flag
in '' yes
5176 # Use a header file that comes with gcc, so configuring glibc
5177 # with a fresh cross-compiler works.
5178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5179 # <limits.h> exists even on freestanding compilers.
5180 # On the NeXT, cc -E runs the code through the compiler's parser,
5181 # not just through cpp. "Syntax error" is here to catch this case.
5182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5185 # include <limits.h>
5187 # include <assert.h>
5191 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5194 # Broken: fails on valid input.
5197 rm -f conftest.err conftest.
$ac_ext
5199 # OK, works on sane cases. Now check whether nonexistent headers
5200 # can be detected and how.
5201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 #include <ac_nonexistent.h>
5205 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5206 # Broken: success on invalid input.
5209 # Passes both tests.
5213 rm -f conftest.err conftest.
$ac_ext
5216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5217 rm -f conftest.err conftest.
$ac_ext
5218 if $ac_preproc_ok; then :
5221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5223 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5224 See \`config.log' for more details." "$LINENO" 5; }
5228 ac_cpp
='$CXXCPP $CPPFLAGS'
5229 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5230 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5235 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5236 if test "${ac_cv_path_GREP+set}" = set; then :
5237 $as_echo_n "(cached) " >&6
5239 if test -z "$GREP"; then
5240 ac_path_GREP_found
=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5243 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5246 test -z "$as_dir" && as_dir
=.
5247 for ac_prog
in grep ggrep
; do
5248 for ac_exec_ext
in '' $ac_executable_extensions; do
5249 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5250 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5251 # Check for GNU ac_path_GREP and select it if it is found.
5252 # Check for GNU $ac_path_GREP
5253 case `"$ac_path_GREP" --version 2>&1` in
5255 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5258 $as_echo_n 0123456789 >"conftest.in"
5261 cat "conftest.in" "conftest.in" >"conftest.tmp"
5262 mv "conftest.tmp" "conftest.in"
5263 cp "conftest.in" "conftest.nl"
5264 $as_echo 'GREP' >> "conftest.nl"
5265 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5266 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5267 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5268 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5269 # Best one so far, save it but keep looking for a better one
5270 ac_cv_path_GREP
="$ac_path_GREP"
5271 ac_path_GREP_max
=$ac_count
5273 # 10*(2^10) chars as input seems more than enough
5274 test $ac_count -gt 10 && break
5276 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5279 $ac_path_GREP_found && break 3
5284 if test -z "$ac_cv_path_GREP"; then
5285 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5288 ac_cv_path_GREP
=$GREP
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5293 $as_echo "$ac_cv_path_GREP" >&6; }
5294 GREP
="$ac_cv_path_GREP"
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5298 $as_echo_n "checking for egrep... " >&6; }
5299 if test "${ac_cv_path_EGREP+set}" = set; then :
5300 $as_echo_n "(cached) " >&6
5302 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5303 then ac_cv_path_EGREP
="$GREP -E"
5305 if test -z "$EGREP"; then
5306 ac_path_EGREP_found
=false
5307 # Loop through the user's path and test for each of PROGNAME-LIST
5308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5309 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5312 test -z "$as_dir" && as_dir
=.
5313 for ac_prog
in egrep; do
5314 for ac_exec_ext
in '' $ac_executable_extensions; do
5315 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5316 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5317 # Check for GNU ac_path_EGREP and select it if it is found.
5318 # Check for GNU $ac_path_EGREP
5319 case `"$ac_path_EGREP" --version 2>&1` in
5321 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5324 $as_echo_n 0123456789 >"conftest.in"
5327 cat "conftest.in" "conftest.in" >"conftest.tmp"
5328 mv "conftest.tmp" "conftest.in"
5329 cp "conftest.in" "conftest.nl"
5330 $as_echo 'EGREP' >> "conftest.nl"
5331 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5332 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5333 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5334 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5335 # Best one so far, save it but keep looking for a better one
5336 ac_cv_path_EGREP
="$ac_path_EGREP"
5337 ac_path_EGREP_max
=$ac_count
5339 # 10*(2^10) chars as input seems more than enough
5340 test $ac_count -gt 10 && break
5342 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5345 $ac_path_EGREP_found && break 3
5350 if test -z "$ac_cv_path_EGREP"; then
5351 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5354 ac_cv_path_EGREP
=$EGREP
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5360 $as_echo "$ac_cv_path_EGREP" >&6; }
5361 EGREP
="$ac_cv_path_EGREP"
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5365 $as_echo_n "checking for ANSI C header files... " >&6; }
5366 if test "${ac_cv_header_stdc+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5384 if ac_fn_cxx_try_compile
"$LINENO"; then :
5385 ac_cv_header_stdc
=yes
5387 ac_cv_header_stdc
=no
5389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5391 if test $ac_cv_header_stdc = yes; then
5392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "memchr" >/dev
/null
2>&1; then :
5402 ac_cv_header_stdc
=no
5408 if test $ac_cv_header_stdc = yes; then
5409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5416 $EGREP "free" >/dev
/null
2>&1; then :
5419 ac_cv_header_stdc
=no
5425 if test $ac_cv_header_stdc = yes; then
5426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5427 if test "$cross_compiling" = yes; then :
5430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5434 #if ((' ' & 0x0FF) == 0x020)
5435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5438 # define ISLOWER(c) \
5439 (('a' <= (c) && (c) <= 'i') \
5440 || ('j' <= (c) && (c) <= 'r') \
5441 || ('s' <= (c) && (c) <= 'z'))
5442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5450 for (i = 0; i < 256; i++)
5451 if (XOR (islower (i), ISLOWER (i))
5452 || toupper (i) != TOUPPER (i))
5457 if ac_fn_cxx_try_run
"$LINENO"; then :
5460 ac_cv_header_stdc
=no
5462 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5463 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5469 $as_echo "$ac_cv_header_stdc" >&6; }
5470 if test $ac_cv_header_stdc = yes; then
5472 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5476 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5477 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5478 inttypes.h stdint.h unistd.h
5480 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5481 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5483 eval as_val
=\$
$as_ac_Header
5484 if test "x$as_val" = x
""yes; then :
5485 cat >>confdefs.h
<<_ACEOF
5486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5495 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5496 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5503 if test "$MINIX" = yes; then
5505 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5508 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5511 $as_echo "#define _MINIX 1" >>confdefs.h
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5517 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5518 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5524 # define __EXTENSIONS__ 1
5525 $ac_includes_default
5534 if ac_fn_cxx_try_compile
"$LINENO"; then :
5535 ac_cv_safe_to_define___extensions__
=yes
5537 ac_cv_safe_to_define___extensions__
=no
5539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5542 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5543 test $ac_cv_safe_to_define___extensions__ = yes &&
5544 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5546 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5548 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5550 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5552 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5556 ac_cpp
='$CPP $CPPFLAGS'
5557 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5561 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5562 # On Suns, sometimes $CPP names a directory.
5563 if test -n "$CPP" && test -d "$CPP"; then
5566 if test -z "$CPP"; then
5567 if test "${ac_cv_prog_CPP+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5570 # Double quotes because CPP needs to be expanded
5571 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5574 for ac_c_preproc_warn_flag
in '' yes
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error" is here to catch this case.
5582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5585 # include <limits.h>
5587 # include <assert.h>
5591 if ac_fn_c_try_cpp
"$LINENO"; then :
5594 # Broken: fails on valid input.
5597 rm -f conftest.err conftest.
$ac_ext
5599 # OK, works on sane cases. Now check whether nonexistent headers
5600 # can be detected and how.
5601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 #include <ac_nonexistent.h>
5605 if ac_fn_c_try_cpp
"$LINENO"; then :
5606 # Broken: success on invalid input.
5609 # Passes both tests.
5613 rm -f conftest.err conftest.
$ac_ext
5616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5617 rm -f conftest.err conftest.
$ac_ext
5618 if $ac_preproc_ok; then :
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5631 $as_echo "$CPP" >&6; }
5633 for ac_c_preproc_warn_flag
in '' yes
5635 # Use a header file that comes with gcc, so configuring glibc
5636 # with a fresh cross-compiler works.
5637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5638 # <limits.h> exists even on freestanding compilers.
5639 # On the NeXT, cc -E runs the code through the compiler's parser,
5640 # not just through cpp. "Syntax error" is here to catch this case.
5641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5644 # include <limits.h>
5646 # include <assert.h>
5650 if ac_fn_c_try_cpp
"$LINENO"; then :
5653 # Broken: fails on valid input.
5656 rm -f conftest.err conftest.
$ac_ext
5658 # OK, works on sane cases. Now check whether nonexistent headers
5659 # can be detected and how.
5660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 #include <ac_nonexistent.h>
5664 if ac_fn_c_try_cpp
"$LINENO"; then :
5665 # Broken: success on invalid input.
5668 # Passes both tests.
5672 rm -f conftest.err conftest.
$ac_ext
5675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5676 rm -f conftest.err conftest.
$ac_ext
5677 if $ac_preproc_ok; then :
5680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5682 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5683 See \`config.log' for more details." "$LINENO" 5; }
5687 ac_cpp
='$CXXCPP $CPPFLAGS'
5688 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5693 $as_echo_n "checking for inline... " >&6; }
5694 if test "${ac_cv_c_inline+set}" = set; then :
5695 $as_echo_n "(cached) " >&6
5698 for ac_kw
in inline __inline__ __inline
; do
5699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5703 static $ac_kw foo_t static_foo () {return 0; }
5704 $ac_kw foo_t foo () {return 0; }
5708 if ac_fn_cxx_try_compile
"$LINENO"; then :
5709 ac_cv_c_inline
=$ac_kw
5711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5712 test "$ac_cv_c_inline" != no
&& break
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5717 $as_echo "$ac_cv_c_inline" >&6; }
5719 case $ac_cv_c_inline in
5722 case $ac_cv_c_inline in
5724 *) ac_val
=$ac_cv_c_inline;;
5726 cat >>confdefs.h
<<_ACEOF
5728 #define inline $ac_val
5735 # Check whether --enable-largefile was given.
5736 if test "${enable_largefile+set}" = set; then :
5737 enableval
=$enable_largefile;
5740 if test "$enable_largefile" != no
; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5743 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5744 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5747 ac_cv_sys_largefile_CC
=no
5748 if test "$GCC" != yes; then
5751 # IRIX 6.2 and later do not support large files by default,
5752 # so use the C compiler's -n32 option if that helps.
5753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755 #include <sys/types.h>
5756 /* Check that off_t can represent 2**63 - 1 correctly.
5757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5758 since some C++ compilers masquerading as C compilers
5759 incorrectly reject 9223372036854775807. */
5760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5762 && LARGE_OFF_T % 2147483647 == 1)
5772 if ac_fn_cxx_try_compile
"$LINENO"; then :
5775 rm -f core conftest.err conftest.
$ac_objext
5777 if ac_fn_cxx_try_compile
"$LINENO"; then :
5778 ac_cv_sys_largefile_CC
=' -n32'; break
5780 rm -f core conftest.err conftest.
$ac_objext
5784 rm -f conftest.
$ac_ext
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5788 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5789 if test "$ac_cv_sys_largefile_CC" != no
; then
5790 CC
=$CC$ac_cv_sys_largefile_CC
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5794 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5795 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5796 $as_echo_n "(cached) " >&6
5799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 #include <sys/types.h>
5802 /* Check that off_t can represent 2**63 - 1 correctly.
5803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5804 since some C++ compilers masquerading as C compilers
5805 incorrectly reject 9223372036854775807. */
5806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5808 && LARGE_OFF_T % 2147483647 == 1)
5818 if ac_fn_cxx_try_compile
"$LINENO"; then :
5819 ac_cv_sys_file_offset_bits
=no
; break
5821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 #define _FILE_OFFSET_BITS 64
5825 #include <sys/types.h>
5826 /* Check that off_t can represent 2**63 - 1 correctly.
5827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5828 since some C++ compilers masquerading as C compilers
5829 incorrectly reject 9223372036854775807. */
5830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5832 && LARGE_OFF_T % 2147483647 == 1)
5842 if ac_fn_cxx_try_compile
"$LINENO"; then :
5843 ac_cv_sys_file_offset_bits
=64; break
5845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5846 ac_cv_sys_file_offset_bits
=unknown
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5851 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5852 case $ac_cv_sys_file_offset_bits in #(
5855 cat >>confdefs.h
<<_ACEOF
5856 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5861 if test $ac_cv_sys_file_offset_bits = unknown
; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5863 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5864 if test "${ac_cv_sys_large_files+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 #include <sys/types.h>
5871 /* Check that off_t can represent 2**63 - 1 correctly.
5872 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5873 since some C++ compilers masquerading as C compilers
5874 incorrectly reject 9223372036854775807. */
5875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5877 && LARGE_OFF_T % 2147483647 == 1)
5887 if ac_fn_cxx_try_compile
"$LINENO"; then :
5888 ac_cv_sys_large_files
=no
; break
5890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5893 #define _LARGE_FILES 1
5894 #include <sys/types.h>
5895 /* Check that off_t can represent 2**63 - 1 correctly.
5896 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5897 since some C++ compilers masquerading as C compilers
5898 incorrectly reject 9223372036854775807. */
5899 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5900 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5901 && LARGE_OFF_T % 2147483647 == 1)
5911 if ac_fn_cxx_try_compile
"$LINENO"; then :
5912 ac_cv_sys_large_files
=1; break
5914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5915 ac_cv_sys_large_files
=unknown
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5920 $as_echo "$ac_cv_sys_large_files" >&6; }
5921 case $ac_cv_sys_large_files in #(
5924 cat >>confdefs.h
<<_ACEOF
5925 #define _LARGE_FILES $ac_cv_sys_large_files
5934 # sizeof(char) is 1 by definition.
5935 # The cast to long int works around a bug in the HP C Compiler
5936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5938 # This bug is HP SR number 8606223364.
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5940 $as_echo_n "checking size of void *... " >&6; }
5941 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5944 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5947 if test "$ac_cv_type_void_p" = yes; then
5948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5950 { as_fn_set_status
77
5951 as_fn_error
"cannot compute sizeof (void *)
5952 See \`config.log' for more details." "$LINENO" 5; }; }
5954 ac_cv_sizeof_void_p
=0
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5960 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5964 cat >>confdefs.h
<<_ACEOF
5965 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5969 # The cast to long int works around a bug in the HP C Compiler
5970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5972 # This bug is HP SR number 8606223364.
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5974 $as_echo_n "checking size of short... " >&6; }
5975 if test "${ac_cv_sizeof_short+set}" = set; then :
5976 $as_echo_n "(cached) " >&6
5978 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5981 if test "$ac_cv_type_short" = yes; then
5982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5984 { as_fn_set_status
77
5985 as_fn_error
"cannot compute sizeof (short)
5986 See \`config.log' for more details." "$LINENO" 5; }; }
5988 ac_cv_sizeof_short
=0
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5994 $as_echo "$ac_cv_sizeof_short" >&6; }
5998 cat >>confdefs.h
<<_ACEOF
5999 #define SIZEOF_SHORT $ac_cv_sizeof_short
6003 # The cast to long int works around a bug in the HP C Compiler
6004 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6005 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6006 # This bug is HP SR number 8606223364.
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6008 $as_echo_n "checking size of int... " >&6; }
6009 if test "${ac_cv_sizeof_int+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6012 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6015 if test "$ac_cv_type_int" = yes; then
6016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6018 { as_fn_set_status
77
6019 as_fn_error
"cannot compute sizeof (int)
6020 See \`config.log' for more details." "$LINENO" 5; }; }
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6028 $as_echo "$ac_cv_sizeof_int" >&6; }
6032 cat >>confdefs.h
<<_ACEOF
6033 #define SIZEOF_INT $ac_cv_sizeof_int
6037 # The cast to long int works around a bug in the HP C Compiler
6038 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6039 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6040 # This bug is HP SR number 8606223364.
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6042 $as_echo_n "checking size of long... " >&6; }
6043 if test "${ac_cv_sizeof_long+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6046 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6049 if test "$ac_cv_type_long" = yes; then
6050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6052 { as_fn_set_status
77
6053 as_fn_error
"cannot compute sizeof (long)
6054 See \`config.log' for more details." "$LINENO" 5; }; }
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6062 $as_echo "$ac_cv_sizeof_long" >&6; }
6066 cat >>confdefs.h
<<_ACEOF
6067 #define SIZEOF_LONG $ac_cv_sizeof_long
6071 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6072 if test "x$ac_cv_type_long_long" = x
""yes; then :
6074 cat >>confdefs.h
<<_ACEOF
6075 #define HAVE_LONG_LONG 1
6078 # The cast to long int works around a bug in the HP C Compiler
6079 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6080 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6081 # This bug is HP SR number 8606223364.
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6083 $as_echo_n "checking size of long long... " >&6; }
6084 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6085 $as_echo_n "(cached) " >&6
6087 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6090 if test "$ac_cv_type_long_long" = yes; then
6091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6093 { as_fn_set_status
77
6094 as_fn_error
"cannot compute sizeof (long long)
6095 See \`config.log' for more details." "$LINENO" 5; }; }
6097 ac_cv_sizeof_long_long
=0
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6103 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6107 cat >>confdefs.h
<<_ACEOF
6108 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6114 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6115 case $ac_cv_c_int8_t in #(
6119 cat >>confdefs.h
<<_ACEOF
6120 #define int8_t $ac_cv_c_int8_t
6125 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6126 case $ac_cv_c_int16_t in #(
6130 cat >>confdefs.h
<<_ACEOF
6131 #define int16_t $ac_cv_c_int16_t
6136 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6137 case $ac_cv_c_int32_t in #(
6141 cat >>confdefs.h
<<_ACEOF
6142 #define int32_t $ac_cv_c_int32_t
6147 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6148 case $ac_cv_c_int64_t in #(
6152 cat >>confdefs.h
<<_ACEOF
6153 #define int64_t $ac_cv_c_int64_t
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6160 $as_echo_n "checking for long long int... " >&6; }
6161 if test "${ac_cv_type_long_long_int+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6167 /* For now, do not test the preprocessor; as of 2007 there are too many
6168 implementations with broken preprocessors. Perhaps this can
6169 be revisited in 2012. In the meantime, code should not expect
6170 #if to work with literals wider than 32 bits. */
6171 /* Test literals. */
6172 long long int ll = 9223372036854775807ll;
6173 long long int nll = -9223372036854775807LL;
6174 unsigned long long int ull = 18446744073709551615ULL;
6175 /* Test constant expressions. */
6176 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6178 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6184 /* Test availability of runtime routines for shift and division. */
6185 long long int llmax = 9223372036854775807ll;
6186 unsigned long long int ullmax = 18446744073709551615ull;
6187 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6188 | (llmax / ll) | (llmax % ll)
6189 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6190 | (ullmax / ull) | (ullmax % ull));
6196 if ac_fn_cxx_try_link
"$LINENO"; then :
6197 if test "$cross_compiling" = yes; then :
6198 ac_cv_type_long_long_int
=yes
6200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6205 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6206 # define LLONG_MAX (HALF - 1 + HALF)
6211 long long int n = 1;
6215 long long int m = n << i;
6218 if (LLONG_MAX / 2 < m)
6226 if ac_fn_cxx_try_run
"$LINENO"; then :
6227 ac_cv_type_long_long_int
=yes
6229 ac_cv_type_long_long_int
=no
6231 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6232 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6236 ac_cv_type_long_long_int
=no
6238 rm -f core conftest.err conftest.
$ac_objext \
6239 conftest
$ac_exeext conftest.
$ac_ext
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6242 $as_echo "$ac_cv_type_long_long_int" >&6; }
6243 if test $ac_cv_type_long_long_int = yes; then
6245 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6251 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6252 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6254 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6257 test $ac_cv_type_long_long_int = yes \
6258 && ac_type
='long long int' \
6259 || ac_type
='long int'
6261 cat >>confdefs.h
<<_ACEOF
6262 #define intmax_t $ac_type
6269 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6270 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6272 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6275 for ac_type
in 'int' 'long int' 'long long int'; do
6276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6278 $ac_includes_default
6282 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6289 if ac_fn_cxx_try_compile
"$LINENO"; then :
6291 cat >>confdefs.h
<<_ACEOF
6292 #define intptr_t $ac_type
6297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6298 test -z "$ac_type" && break
6303 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6304 case $ac_cv_c_uint8_t in #(
6308 $as_echo "#define _UINT8_T 1" >>confdefs.h
6311 cat >>confdefs.h
<<_ACEOF
6312 #define uint8_t $ac_cv_c_uint8_t
6317 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6318 case $ac_cv_c_uint16_t in #(
6323 cat >>confdefs.h
<<_ACEOF
6324 #define uint16_t $ac_cv_c_uint16_t
6329 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6330 case $ac_cv_c_uint32_t in #(
6334 $as_echo "#define _UINT32_T 1" >>confdefs.h
6337 cat >>confdefs.h
<<_ACEOF
6338 #define uint32_t $ac_cv_c_uint32_t
6343 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6344 case $ac_cv_c_uint64_t in #(
6348 $as_echo "#define _UINT64_T 1" >>confdefs.h
6351 cat >>confdefs.h
<<_ACEOF
6352 #define uint64_t $ac_cv_c_uint64_t
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6359 $as_echo_n "checking for unsigned long long int... " >&6; }
6360 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6361 $as_echo_n "(cached) " >&6
6363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6366 /* For now, do not test the preprocessor; as of 2007 there are too many
6367 implementations with broken preprocessors. Perhaps this can
6368 be revisited in 2012. In the meantime, code should not expect
6369 #if to work with literals wider than 32 bits. */
6370 /* Test literals. */
6371 long long int ll = 9223372036854775807ll;
6372 long long int nll = -9223372036854775807LL;
6373 unsigned long long int ull = 18446744073709551615ULL;
6374 /* Test constant expressions. */
6375 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6377 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6383 /* Test availability of runtime routines for shift and division. */
6384 long long int llmax = 9223372036854775807ll;
6385 unsigned long long int ullmax = 18446744073709551615ull;
6386 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6387 | (llmax / ll) | (llmax % ll)
6388 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6389 | (ullmax / ull) | (ullmax % ull));
6395 if ac_fn_cxx_try_link
"$LINENO"; then :
6396 ac_cv_type_unsigned_long_long_int
=yes
6398 ac_cv_type_unsigned_long_long_int
=no
6400 rm -f core conftest.err conftest.
$ac_objext \
6401 conftest
$ac_exeext conftest.
$ac_ext
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6404 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6405 if test $ac_cv_type_unsigned_long_long_int = yes; then
6407 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6413 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6414 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6416 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6419 test $ac_cv_type_unsigned_long_long_int = yes \
6420 && ac_type
='unsigned long long int' \
6421 || ac_type
='unsigned long int'
6423 cat >>confdefs.h
<<_ACEOF
6424 #define uintmax_t $ac_type
6431 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6432 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6434 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6437 for ac_type
in 'unsigned int' 'unsigned long int' \
6438 'unsigned long long int'; do
6439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 $ac_includes_default
6445 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6452 if ac_fn_cxx_try_compile
"$LINENO"; then :
6454 cat >>confdefs.h
<<_ACEOF
6455 #define uintptr_t $ac_type
6460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6461 test -z "$ac_type" && break
6478 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6479 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6482 # check what underlying integer type int64_t uses
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6484 $as_echo_n "checking for int64_t underlying type... " >&6; }
6485 if test "${ac_cv_int64_t_type+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6492 #ifdef HAVE_STDINT_H
6495 template <typename T> struct X { };
6497 struct X<long> { typedef long t; };
6507 if ac_fn_cxx_try_compile
"$LINENO"; then :
6508 ac_cv_int64_t_type
=long
6510 ac_cv_int64_t_type
="long long"
6512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6515 $as_echo "$ac_cv_int64_t_type" >&6; }
6516 if test "$ac_cv_int64_t_type" = "long"; then
6518 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6524 #ifdef HAVE_STDINT_H
6527 template <typename T> struct X { };
6529 struct X<long long> { typedef long long t; };
6539 if ac_fn_cxx_try_compile
"$LINENO"; then :
6542 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6548 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6549 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6550 $as_echo_n "(cached) " >&6
6553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6561 int a, b; std::swap(a,b);
6566 if ac_fn_cxx_try_compile
"$LINENO"; then :
6567 ac_cv_std_swap_in_utility
=yes
6569 ac_cv_std_swap_in_utility
=no
6571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6574 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6575 if test $ac_cv_std_swap_in_utility = yes; then
6577 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6581 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6582 # If the host compiler is affected by the bug, and we build with optimization
6583 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6584 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6585 # Since there is no reliable feature check for the presence of this bug,
6586 # we simply use a GCC version number check. (This should never trigger for
6587 # stages 2 or 3 of a native bootstrap.)
6589 if test "$GCC" = yes; then
6590 saved_CXXFLAGS
="$CXXFLAGS"
6592 # The following test compilation will succeed if and only if $CXX accepts
6593 # -fno-strict-aliasing *and* is older than GCC 4.3.
6594 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6596 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6600 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6601 #error compiler not affected by placement new aliasing bug
6605 if ac_fn_cxx_try_compile
"$LINENO"; then :
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6607 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6614 CXXFLAGS
="$saved_CXXFLAGS"
6620 # ---------------------
6621 # Warnings and checking
6622 # ---------------------
6624 # Check $CC warning features (if it's GCC).
6625 # We want to use -pedantic, but we don't want warnings about
6628 # * overlong strings
6629 # * C++11 narrowing conversions in { }
6630 # So, we only use -pedantic if we can disable those warnings.
6632 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6633 # Check whether --enable-build-format-warnings was given.
6634 if test "${enable_build_format_warnings+set}" = set; then :
6635 enableval
=$enable_build_format_warnings;
6637 enable_build_format_warnings
=yes
6640 if test $enable_build_format_warnings = no
; then :
6646 ac_cpp
='$CXXCPP $CPPFLAGS'
6647 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6648 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6649 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6652 save_CXXFLAGS
="$CXXFLAGS"
6653 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6654 # Do the check with the no- prefix removed since gcc silently
6655 # accepts any -Wno-* option on purpose
6656 case $real_option in
6657 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6658 *) option
=$real_option ;;
6660 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6663 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6664 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6665 $as_echo_n "(cached) " >&6
6668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6679 if ac_fn_cxx_try_compile
"$LINENO"; then :
6680 eval "$as_acx_Woption=yes"
6682 eval "$as_acx_Woption=no"
6684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6687 eval ac_res
=\$
$as_acx_Woption
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6689 $as_echo "$ac_res" >&6; }
6690 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6691 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6694 CXXFLAGS
="$save_CXXFLAGS"
6696 ac_cpp
='$CXXCPP $CPPFLAGS'
6697 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6698 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6699 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6704 ac_cpp
='$CPP $CPPFLAGS'
6705 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6706 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6707 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6710 save_CFLAGS
="$CFLAGS"
6711 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6712 # Do the check with the no- prefix removed since gcc silently
6713 # accepts any -Wno-* option on purpose
6714 case $real_option in
6715 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6716 *) option
=$real_option ;;
6718 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6721 $as_echo_n "checking whether $CC supports $option... " >&6; }
6722 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6723 $as_echo_n "(cached) " >&6
6726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6737 if ac_fn_c_try_compile
"$LINENO"; then :
6738 eval "$as_acx_Woption=yes"
6740 eval "$as_acx_Woption=no"
6742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6745 eval ac_res
=\$
$as_acx_Woption
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6747 $as_echo "$ac_res" >&6; }
6748 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6749 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6752 CFLAGS
="$save_CFLAGS"
6754 ac_cpp
='$CXXCPP $CPPFLAGS'
6755 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6761 ac_cpp
='$CXXCPP $CPPFLAGS'
6762 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6767 save_CXXFLAGS
="$CXXFLAGS"
6768 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6769 # Do the check with the no- prefix removed since gcc silently
6770 # accepts any -Wno-* option on purpose
6771 case $real_option in
6772 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6773 *) option
=$real_option ;;
6775 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6778 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6779 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6780 $as_echo_n "(cached) " >&6
6783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6794 if ac_fn_cxx_try_compile
"$LINENO"; then :
6795 eval "$as_acx_Woption=yes"
6797 eval "$as_acx_Woption=no"
6799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6802 eval ac_res
=\$
$as_acx_Woption
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6804 $as_echo "$ac_res" >&6; }
6805 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6806 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6809 CXXFLAGS
="$save_CXXFLAGS"
6811 ac_cpp
='$CXXCPP $CPPFLAGS'
6812 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6818 ac_cpp
='$CPP $CPPFLAGS'
6819 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6824 save_CFLAGS
="$CFLAGS"
6825 for real_option
in -Wold-style-definition -Wc++-compat; do
6826 # Do the check with the no- prefix removed since gcc silently
6827 # accepts any -Wno-* option on purpose
6828 case $real_option in
6829 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6830 *) option
=$real_option ;;
6832 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6835 $as_echo_n "checking whether $CC supports $option... " >&6; }
6836 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6837 $as_echo_n "(cached) " >&6
6840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6851 if ac_fn_c_try_compile
"$LINENO"; then :
6852 eval "$as_acx_Woption=yes"
6854 eval "$as_acx_Woption=no"
6856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6859 eval ac_res
=\$
$as_acx_Woption
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6861 $as_echo "$ac_res" >&6; }
6862 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6863 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6866 CFLAGS
="$save_CFLAGS"
6868 ac_cpp
='$CXXCPP $CPPFLAGS'
6869 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6875 ac_cpp
='$CXXCPP $CPPFLAGS'
6876 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6877 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6878 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6880 # Do the check with the no- prefix removed from the warning options
6881 # since gcc silently accepts any -Wno-* option on purpose
6882 if test "$GXX" = yes; then :
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6884 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6885 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6886 $as_echo_n "(cached) " >&6
6888 save_CXXFLAGS
="$CXXFLAGS"
6889 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6901 if ac_fn_cxx_try_compile
"$LINENO"; then :
6902 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6904 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6907 CXXFLAGS
="$save_CXXFLAGS"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6910 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6911 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6912 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6917 ac_cpp
='$CXXCPP $CPPFLAGS'
6918 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6924 ac_cpp
='$CXXCPP $CPPFLAGS'
6925 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6929 # Check whether --enable-werror-always was given.
6930 if test "${enable_werror_always+set}" = set; then :
6931 enableval
=$enable_werror_always;
6933 enable_werror_always
=no
6936 if test $enable_werror_always = yes; then :
6937 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6941 ac_cpp
='$CXXCPP $CPPFLAGS'
6942 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6943 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6944 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6948 # The above macros do nothing if the compiler is not GCC. However, the
6949 # Makefile has more goo to add other flags, so these variables are used
6950 # to enable warnings only for GCC.
6953 if test "x$GCC" = "xyes"; then
6954 warn_cflags
='$(GCC_WARN_CFLAGS)'
6955 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6960 # Disable exceptions and RTTI if building with g++
6962 ac_cpp
='$CPP $CPPFLAGS'
6963 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6968 save_CFLAGS
="$CFLAGS"
6969 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6970 # Do the check with the no- prefix removed since gcc silently
6971 # accepts any -Wno-* option on purpose
6972 case $real_option in
6973 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6974 *) option
=$real_option ;;
6976 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6979 $as_echo_n "checking whether $CC supports $option... " >&6; }
6980 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6981 $as_echo_n "(cached) " >&6
6984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6995 if ac_fn_c_try_compile
"$LINENO"; then :
6996 eval "$as_acx_Woption=yes"
6998 eval "$as_acx_Woption=no"
7000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7003 eval ac_res
=\$
$as_acx_Woption
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7005 $as_echo "$ac_res" >&6; }
7006 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7007 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7010 CFLAGS
="$save_CFLAGS"
7012 ac_cpp
='$CXXCPP $CPPFLAGS'
7013 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7019 # Enable expensive internal checks
7021 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7025 # Check whether --enable-checking was given.
7026 if test "${enable_checking+set}" = set; then :
7027 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7030 # Determine the default checks.
7031 if test x
$is_release = x
; then
7032 ac_checking_flags
=yes,extra
7034 ac_checking_flags
=release
7038 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7039 for check
in release
$ac_checking_flags
7042 # these set all the flags to specific states
7043 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7044 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7045 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7046 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7047 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7048 ac_types_checking
=1 ;;
7049 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7050 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7051 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7052 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7053 ac_tree_checking
= ; ac_valgrind_checking
= ;
7054 ac_types_checking
= ;;
7055 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7056 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7057 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7058 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7059 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7060 ac_types_checking
=1 ;;
7061 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7062 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7063 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7064 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7065 ac_tree_checking
= ; ac_valgrind_checking
= ;
7066 ac_types_checking
= ;;
7067 # these enable particular checks
7068 assert
) ac_assert_checking
=1 ;;
7069 df
) ac_df_checking
=1 ;;
7070 extra
) ac_extra_checking
=1 ;;
7071 fold) ac_fold_checking
=1 ;;
7072 gc
) ac_gc_checking
=1 ;;
7073 gcac
) ac_gc_always_collect
=1 ;;
7074 gimple
) ac_gimple_checking
=1 ;;
7075 misc
) ac_checking
=1 ;;
7076 rtl
) ac_rtl_checking
=1 ;;
7077 rtlflag
) ac_rtlflag_checking
=1 ;;
7078 runtime
) ac_runtime_checking
=1 ;;
7079 tree
) ac_tree_checking
=1 ;;
7080 types
) ac_types_checking
=1 ;;
7081 valgrind
) ac_valgrind_checking
=1 ;;
7082 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7088 if test x
$ac_checking != x
; then
7090 $as_echo "#define CHECKING_P 1" >>confdefs.h
7092 nocommon_flag
=-fno-common
7094 $as_echo "#define CHECKING_P 0" >>confdefs.h
7098 if test x
$ac_extra_checking != x
; then
7100 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7103 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7106 if test x
$ac_df_checking != x
; then
7108 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7111 if test x
$ac_assert_checking != x
; then
7113 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7116 if test x
$ac_gimple_checking != x
; then
7118 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7122 if test x
$ac_runtime_checking != x
; then
7124 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7127 if test x
$ac_tree_checking != x
; then
7129 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7133 if test x
$ac_types_checking != x
; then
7135 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7139 if test x
$ac_rtl_checking != x
; then
7141 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7144 if test x
$ac_rtlflag_checking != x
; then
7146 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7149 if test x
$ac_gc_checking != x
; then
7151 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7154 if test x
$ac_gc_always_collect != x
; then
7156 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7159 if test x
$ac_fold_checking != x
; then
7161 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7164 valgrind_path_defines
=
7167 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7168 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7176 # It is certainly possible that there's valgrind but no valgrind.h.
7177 # GCC relies on making annotations so we must have both.
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7179 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 #include <valgrind/memcheck.h>
7183 #ifndef VALGRIND_DISCARD
7184 #error VALGRIND_DISCARD not defined
7187 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7188 gcc_cv_header_valgrind_memcheck_h
=yes
7190 gcc_cv_header_valgrind_memcheck_h
=no
7192 rm -f conftest.err conftest.
$ac_ext
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7194 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7196 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 #include <memcheck.h>
7200 #ifndef VALGRIND_DISCARD
7201 #error VALGRIND_DISCARD not defined
7204 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7205 gcc_cv_header_memcheck_h
=yes
7207 gcc_cv_header_memcheck_h
=no
7209 rm -f conftest.err conftest.
$ac_ext
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7211 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7212 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7214 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7217 if test $gcc_cv_header_memcheck_h = yes; then
7219 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7223 if test x
$ac_valgrind_checking != x
; then
7225 # Prepare PATH_SEPARATOR.
7226 # The user is always right.
7227 if test "${PATH_SEPARATOR+set}" != set; then
7228 echo "#! /bin/sh" >conf$$.sh
7229 echo "exit 0" >>conf$$.sh
7231 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7239 # Find out how to test for executable files. Don't use a zero-byte file,
7240 # as systems may use methods other than mode bits to determine executability.
7241 cat >conf$$.
file <<_ASEOF
7245 chmod +x conf$$.
file
7246 if test -x conf$$.
file >/dev
/null
2>&1; then
7247 ac_executable_p
="test -x"
7249 ac_executable_p
="test -f"
7253 # Extract the first word of "valgrind", so it can be a program name with args.
7254 set dummy valgrind
; ac_word
=$2
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7260 case "$valgrind_path" in
7262 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7265 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7266 for ac_dir
in $PATH; do
7268 test -z "$ac_dir" && ac_dir
=.
7269 for ac_exec_ext
in '' $ac_executable_extensions; do
7270 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7271 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7272 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7282 valgrind_path
="$ac_cv_path_valgrind_path"
7283 if test -n "$valgrind_path"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7285 $as_echo "$valgrind_path" >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7291 if test "x$valgrind_path" = "x" \
7292 ||
(test $have_valgrind_h = no \
7293 && test $gcc_cv_header_memcheck_h = no \
7294 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7295 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7297 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7298 valgrind_command
="$valgrind_path -q"
7300 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7306 # Enable code coverage collection
7307 # Check whether --enable-coverage was given.
7308 if test "${enable_coverage+set}" = set; then :
7309 enableval
=$enable_coverage; case "${enableval}" in
7311 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7314 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7317 # a.k.a. --disable-coverage
7321 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7330 # Check whether --enable-gather-detailed-mem-stats was given.
7331 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7332 enableval
=$enable_gather_detailed_mem_stats;
7334 enable_gather_detailed_mem_stats
=no
7337 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7339 cat >>confdefs.h
<<_ACEOF
7340 #define GATHER_STATISTICS $gather_stats
7344 # Check whether --enable-valgrind-annotations was given.
7345 if test "${enable_valgrind_annotations+set}" = set; then :
7346 enableval
=$enable_valgrind_annotations;
7348 enable_valgrind_annotations
=no
7351 if test x
$enable_valgrind_annotations != xno \
7352 ||
test x
$ac_valgrind_checking != x
; then
7353 if (test $have_valgrind_h = no \
7354 && test $gcc_cv_header_memcheck_h = no \
7355 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7356 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7359 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7363 # -------------------------------
7364 # Miscenalleous configure options
7365 # -------------------------------
7369 # Check whether --with-stabs was given.
7370 if test "${with_stabs+set}" = set; then :
7371 withval
=$with_stabs; stabs
="$with_stabs"
7377 # Determine whether or not multilibs are enabled.
7378 # Check whether --enable-multilib was given.
7379 if test "${enable_multilib+set}" = set; then :
7380 enableval
=$enable_multilib;
7387 # Determine whether or not multiarch is enabled.
7388 # Check whether --enable-multiarch was given.
7389 if test "${enable_multiarch+set}" = set; then :
7390 enableval
=$enable_multiarch; case "${enableval}" in
7391 yes|no|auto
) enable_multiarch
=$enableval;;
7392 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7395 enable_multiarch
=auto
7398 if test x
${enable_multiarch} = xauto
; then
7399 if test x
${with_native_system_header_dir} != x
; then
7400 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7403 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7404 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7409 $as_echo_n "checking for multiarch configuration... " >&6; }
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7412 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7414 # needed for setting the multiarch name for soft-float/hard-float ABIs
7418 # Enable __cxa_atexit for C++.
7419 # Check whether --enable-__cxa_atexit was given.
7420 if test "${enable___cxa_atexit+set}" = set; then :
7421 enableval
=$enable___cxa_atexit;
7425 # Enable C extension for decimal float if target supports it.
7427 # Check whether --enable-decimal-float was given.
7428 if test "${enable_decimal_float+set}" = set; then :
7429 enableval
=$enable_decimal_float;
7430 case $enable_decimal_float in
7431 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7432 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7433 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7439 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7440 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7441 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7442 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7443 enable_decimal_float
=yes
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7447 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7448 enable_decimal_float
=no
7455 # x86's use BID format instead of DPD
7456 case x
$enable_decimal_float in
7459 i?
86*-*-* | x86_64
*-*-*)
7460 enable_decimal_float
=bid
7463 enable_decimal_float
=dpd
7466 default_decimal_float
=$enable_decimal_float
7469 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7470 # dependency on libdecnumber.
7471 default_decimal_float
=dpd
7478 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7480 cat >>confdefs.h
<<_ACEOF
7481 #define ENABLE_DECIMAL_FLOAT $dfp
7485 # Use default_decimal_float for dependency.
7486 enable_decimal_float
=$default_decimal_float
7488 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7490 cat >>confdefs.h
<<_ACEOF
7491 #define ENABLE_DECIMAL_BID_FORMAT $bid
7495 # Enable C extension for fixed-point arithmetic.
7496 # Check whether --enable-fixed-point was given.
7497 if test "${enable_fixed_point+set}" = set; then :
7498 enableval
=$enable_fixed_point;
7503 enable_fixed_point
=yes
7507 enable_fixed_point
=yes
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7511 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7512 enable_fixed_point
=no
7520 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7522 cat >>confdefs.h
<<_ACEOF
7523 #define ENABLE_FIXED_POINT $fixedpoint
7528 # Pass with no value to take the default
7529 # Pass with a value to specify a thread package
7530 # Check whether --enable-threads was given.
7531 if test "${enable_threads+set}" = set; then :
7532 enableval
=$enable_threads;
7538 # Check whether --enable-tls was given.
7539 if test "${enable_tls+set}" = set; then :
7540 enableval
=$enable_tls;
7543 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7544 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7552 # Check whether --enable-vtable-verify was given.
7553 if test "${enable_vtable_verify+set}" = set; then :
7554 enableval
=$enable_vtable_verify;
7556 enable_vtable_verify
=no
7559 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7561 cat >>confdefs.h
<<_ACEOF
7562 #define ENABLE_VTABLE_VERIFY $vtable_verify
7566 # Check whether --enable-objc-gc was given.
7567 if test "${enable_objc_gc+set}" = set; then :
7568 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7579 # Check whether --with-dwarf2 was given.
7580 if test "${with_dwarf2+set}" = set; then :
7581 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7587 # Check whether --enable-shared was given.
7588 if test "${enable_shared+set}" = set; then :
7589 enableval
=$enable_shared;
7590 case $enable_shared in
7594 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7595 for pkg
in $enableval; do
7596 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7611 # Check whether --with-specs was given.
7612 if test "${with_specs+set}" = set; then :
7613 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7623 # Check whether --with-pkgversion was given.
7624 if test "${with_pkgversion+set}" = set; then :
7625 withval
=$with_pkgversion; case "$withval" in
7626 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7628 *) PKGVERSION
="($withval) " ;;
7639 # Check whether --with-bugurl was given.
7640 if test "${with_bugurl+set}" = set; then :
7641 withval
=$with_bugurl; case "$withval" in
7642 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7645 *) BUGURL
="$withval"
7649 BUGURL
="http://gcc.gnu.org/bugs.html"
7659 REPORT_BUGS_TO
="<$BUGURL>"
7660 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7667 # Sanity check enable_languages in case someone does not run the toplevel
7668 # configure # script.
7669 # Check whether --enable-languages was given.
7670 if test "${enable_languages+set}" = set; then :
7671 enableval
=$enable_languages; case ,${enable_languages}, in
7673 # go safe -- we cannot be much sure without the toplevel
7675 # analysis of which target libs are present and usable
7679 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7684 enable_languages
=c
,${enable_languages}
7692 if test x
"$enable_as_accelerator_for" != x
; then
7694 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7696 enable_as_accelerator
=yes
7699 # In this case we expect offload compiler to be built as native, so we
7700 # need to rename the driver to avoid clashes with host's drivers.
7701 program_transform_name
="s&^&${target}-&" ;;
7703 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7704 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7705 accel_dir_suffix
=/accel
/${target_noncanonical}
7706 real_target_noncanonical
=${enable_as_accelerator_for}
7712 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7713 tgt
=`echo $tgt | sed 's/=.*//'`
7715 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7721 if test x
"$offload_targets" = x
; then
7722 offload_targets
=$tgt
7724 offload_targets
="$offload_targets,$tgt"
7728 cat >>confdefs.h
<<_ACEOF
7729 #define OFFLOAD_TARGETS "$offload_targets"
7732 if test x
"$enable_offloading" != x
; then
7734 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7738 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7742 if test x
"$enable_hsa" = x1
; then
7744 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7749 # Check whether --with-multilib-list was given.
7750 if test "${with_multilib_list+set}" = set; then :
7751 withval
=$with_multilib_list; :
7753 with_multilib_list
=default
7757 # -------------------------
7758 # Checks for other programs
7759 # -------------------------
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7762 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7764 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7765 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7766 $as_echo_n "(cached) " >&6
7768 cat >conftest.
make <<\_ACEOF
7771 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7773 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7774 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7776 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7778 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7782 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7784 $as_echo "yes" >&6; }
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 SET_MAKE
="MAKE=${MAKE-make}"
7793 # Find some useful tools
7794 for ac_prog
in gawk mawk nawk
awk
7796 # Extract the first word of "$ac_prog", so it can be a program name with args.
7797 set dummy
$ac_prog; ac_word
=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if test "${ac_cv_prog_AWK+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7803 if test -n "$AWK"; then
7804 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir
=.
7811 for ac_exec_ext
in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_prog_AWK
="$ac_prog"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 if test -n "$AWK"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7826 $as_echo "$AWK" >&6; }
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7833 test -n "$AWK" && break
7836 # We need awk to create options.c and options.h.
7837 # Bail out if it's missing.
7839 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7843 $as_echo_n "checking whether ln -s works... " >&6; }
7844 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7847 rm -f conftestdata_t
7848 echo >conftestdata_f
7849 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7851 gcc_cv_prog_LN_S
="ln -s"
7853 if ln conftestdata_f conftestdata_t
2>/dev
/null
7857 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7859 gcc_cv_prog_LN_S
="cp -p"
7865 rm -f conftestdata_f conftestdata_t
7868 LN_S
="$gcc_cv_prog_LN_S"
7869 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7871 $as_echo "yes" >&6; }
7873 if test "$gcc_cv_prog_LN_S" = "ln"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7875 $as_echo "no, using ln" >&6; }
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7878 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7883 $as_echo_n "checking whether ln works... " >&6; }
7884 if test "${acx_cv_prog_LN+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7887 rm -f conftestdata_t
7888 echo >conftestdata_f
7889 if ln conftestdata_f conftestdata_t
2>/dev
/null
7895 rm -f conftestdata_f conftestdata_t
7898 if test $acx_cv_prog_LN = no
; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7901 $as_echo "no, using $LN" >&6; }
7903 LN
="$acx_cv_prog_LN"
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7905 $as_echo "yes" >&6; }
7908 if test -n "$ac_tool_prefix"; then
7909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7910 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7916 if test -n "$RANLIB"; then
7917 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7923 test -z "$as_dir" && as_dir
=.
7924 for ac_exec_ext
in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7926 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 RANLIB
=$ac_cv_prog_RANLIB
7937 if test -n "$RANLIB"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7939 $as_echo "$RANLIB" >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7947 if test -z "$ac_cv_prog_RANLIB"; then
7948 ac_ct_RANLIB
=$RANLIB
7949 # Extract the first word of "ranlib", so it can be a program name with args.
7950 set dummy ranlib
; ac_word
=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7956 if test -n "$ac_ct_RANLIB"; then
7957 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7963 test -z "$as_dir" && as_dir
=.
7964 for ac_exec_ext
in '' $ac_executable_extensions; do
7965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7966 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7977 if test -n "$ac_ct_RANLIB"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7979 $as_echo "$ac_ct_RANLIB" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7985 if test "x$ac_ct_RANLIB" = x
; then
7988 case $cross_compiling:$ac_tool_warned in
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7992 ac_tool_warned
=yes ;;
7994 RANLIB
=$ac_ct_RANLIB
7997 RANLIB
="$ac_cv_prog_RANLIB"
8003 # Find a good install program. We prefer a C program (faster),
8004 # so one script is as good as another. But avoid the broken or
8005 # incompatible versions:
8006 # SysV /etc/install, /usr/sbin/install
8007 # SunOS /usr/etc/install
8008 # IRIX /sbin/install
8010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8012 # ./install, which can be erroneously created by make from ./install.sh.
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8014 $as_echo_n "checking for a BSD compatible install... " >&6; }
8015 if test -z "$INSTALL"; then
8016 if test "${ac_cv_path_install+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
8019 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8020 for ac_dir
in $PATH; do
8021 # Account for people who put trailing slashes in PATH elements.
8023 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8025 # OSF1 and SCO ODT 3.0 have their own names for install.
8026 for ac_prog
in ginstall scoinst
install; do
8027 if test -f $ac_dir/$ac_prog; then
8028 if test $ac_prog = install &&
8029 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8030 # AIX install. It has an incompatible calling convention.
8031 # OSF/1 installbsd also uses dspmsg, but is usable.
8034 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8045 if test "${ac_cv_path_install+set}" = set; then
8046 INSTALL
="$ac_cv_path_install"
8048 # As a last resort, use the slow shell script. We don't cache a
8049 # path for INSTALL within a source directory, because that will
8050 # break other packages using the cache if that directory is
8051 # removed, or if the path is relative.
8052 INSTALL
="$ac_install_sh"
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8056 $as_echo "$INSTALL" >&6; }
8058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8059 # It thinks the first close brace ends the variable substitution.
8060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8062 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8065 # See if cmp has --ignore-initial.
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8067 $as_echo_n "checking for cmp's capabilities... " >&6; }
8068 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8073 gcc_cv_prog_cmp_skip
=slowcompare
8074 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8075 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8078 gcc_cv_prog_cmp_skip
=gnucompare
8081 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8082 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8083 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8086 gcc_cv_prog_cmp_skip
=fastcompare
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8094 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8095 make_compare_target
=$gcc_cv_prog_cmp_skip
8099 # See if we have the mktemp command.
8100 # Extract the first word of "mktemp", so it can be a program name with args.
8101 set dummy mktemp
; ac_word
=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8105 $as_echo_n "(cached) " >&6
8107 if test -n "$have_mktemp_command"; then
8108 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8114 test -z "$as_dir" && as_dir
=.
8115 for ac_exec_ext
in '' $ac_executable_extensions; do
8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117 ac_cv_prog_have_mktemp_command
="yes"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8128 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8129 if test -n "$have_mktemp_command"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8131 $as_echo "$have_mktemp_command" >&6; }
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8139 # See if makeinfo has been installed and is modern enough
8140 # that we can use it.
8142 # Extract the first word of "makeinfo", so it can be a program name with args.
8143 set dummy makeinfo
; ac_word
=$2
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8145 $as_echo_n "checking for $ac_word... " >&6; }
8146 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8147 $as_echo_n "(cached) " >&6
8149 if test -n "$MAKEINFO"; then
8150 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8156 test -z "$as_dir" && as_dir
=.
8157 for ac_exec_ext
in '' $ac_executable_extensions; do
8158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159 ac_cv_prog_MAKEINFO
="makeinfo"
8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 MAKEINFO
=$ac_cv_prog_MAKEINFO
8170 if test -n "$MAKEINFO"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8172 $as_echo "$MAKEINFO" >&6; }
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 $as_echo "no" >&6; }
8179 if test -n "$MAKEINFO"; then
8180 # Found it, now check the version.
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8182 $as_echo_n "checking for modern makeinfo... " >&6; }
8183 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8186 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8187 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8189 case $ac_prog_version in
8190 '') gcc_cv_prog_makeinfo_modern
=no
;;
8191 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8192 *) gcc_cv_prog_makeinfo_modern
=no
;;
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8197 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8199 gcc_cv_prog_makeinfo_modern
=no
8201 if test $gcc_cv_prog_makeinfo_modern = no
; then
8202 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8205 if test $gcc_cv_prog_makeinfo_modern = no
; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8207 *** Makeinfo is missing or too old.
8208 *** Info documentation will not be built." >&5
8209 $as_echo "$as_me: WARNING:
8210 *** Makeinfo is missing or too old.
8211 *** Info documentation will not be built." >&2;}
8218 # Is pod2man recent enough to regenerate manpages?
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8220 $as_echo_n "checking for recent Pod::Man... " >&6; }
8221 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8223 $as_echo "yes" >&6; }
8224 GENERATED_MANPAGES
=generated-manpages
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8232 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8237 # Extract the first word of "$ac_prog", so it can be a program name with args.
8238 set dummy
$ac_prog; ac_word
=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if test "${ac_cv_prog_FLEX+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
8244 if test -n "$FLEX"; then
8245 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8251 test -z "$as_dir" && as_dir
=.
8252 for ac_exec_ext
in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_prog_FLEX
="$ac_prog"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 FLEX
=$ac_cv_prog_FLEX
8265 if test -n "$FLEX"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8267 $as_echo "$FLEX" >&6; }
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8274 test -n "$FLEX" && break
8276 test -n "$FLEX" || FLEX
="$MISSING flex"
8280 for ac_prog
in bison
8282 # Extract the first word of "$ac_prog", so it can be a program name with args.
8283 set dummy
$ac_prog; ac_word
=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if test "${ac_cv_prog_BISON+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8289 if test -n "$BISON"; then
8290 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8296 test -z "$as_dir" && as_dir
=.
8297 for ac_exec_ext
in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_prog_BISON
="$ac_prog"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 BISON
=$ac_cv_prog_BISON
8310 if test -n "$BISON"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8312 $as_echo "$BISON" >&6; }
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8319 test -n "$BISON" && break
8321 test -n "$BISON" || BISON
="$MISSING bison"
8324 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8325 # check for build == host before using them.
8328 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8329 && test -d ..
/binutils
; then
8330 NM
='${objdir}/../binutils/nm-new'
8332 # Extract the first word of "nm", so it can be a program name with args.
8333 set dummy nm
; ac_word
=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if test "${ac_cv_prog_NM+set}" = set; then :
8337 $as_echo_n "(cached) " >&6
8339 if test -n "$NM"; then
8340 ac_cv_prog_NM
="$NM" # Let the user override the test.
8342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8346 test -z "$as_dir" && as_dir
=.
8347 for ac_exec_ext
in '' $ac_executable_extensions; do
8348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8361 if test -n "$NM"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8363 $as_echo "$NM" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8373 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8374 && test -d ..
/binutils
; then
8375 AR
='${objdir}/../binutils/ar'
8377 # Extract the first word of "ar", so it can be a program name with args.
8378 set dummy
ar; ac_word
=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if test "${ac_cv_prog_AR+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8384 if test -n "$AR"; then
8385 ac_cv_prog_AR
="$AR" # Let the user override the test.
8387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8391 test -z "$as_dir" && as_dir
=.
8392 for ac_exec_ext
in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8406 if test -n "$AR"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8408 $as_echo "$AR" >&6; }
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8417 # The jit documentation looks better if built with sphinx, but can be
8418 # built with texinfo if sphinx is not available.
8419 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8420 # Extract the first word of "sphinx-build", so it can be a program name with args.
8421 set dummy sphinx-build
; ac_word
=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8425 $as_echo_n "(cached) " >&6
8427 if test -n "$doc_build_sys"; then
8428 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8434 test -z "$as_dir" && as_dir
=.
8435 for ac_exec_ext
in '' $ac_executable_extensions; do
8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8437 ac_cv_prog_doc_build_sys
="sphinx"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8448 doc_build_sys
=$ac_cv_prog_doc_build_sys
8449 if test -n "$doc_build_sys"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8451 $as_echo "$doc_build_sys" >&6; }
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8459 # --------------------
8460 # Checks for C headers
8461 # --------------------
8463 # Need to reject headers which give warnings, so that the -Werror bootstrap
8464 # works later. *sigh* This needs to come before all header checks.
8466 ac_c_preproc_warn_flag
=yes
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8469 $as_echo_n "checking for ANSI C header files... " >&6; }
8470 if test "${ac_cv_header_stdc+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8488 if ac_fn_cxx_try_compile
"$LINENO"; then :
8489 ac_cv_header_stdc
=yes
8491 ac_cv_header_stdc
=no
8493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8495 if test $ac_cv_header_stdc = yes; then
8496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8503 $EGREP "memchr" >/dev
/null
2>&1; then :
8506 ac_cv_header_stdc
=no
8512 if test $ac_cv_header_stdc = yes; then
8513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8520 $EGREP "free" >/dev
/null
2>&1; then :
8523 ac_cv_header_stdc
=no
8529 if test $ac_cv_header_stdc = yes; then
8530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8531 if test "$cross_compiling" = yes; then :
8534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8538 #if ((' ' & 0x0FF) == 0x020)
8539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8542 # define ISLOWER(c) \
8543 (('a' <= (c) && (c) <= 'i') \
8544 || ('j' <= (c) && (c) <= 'r') \
8545 || ('s' <= (c) && (c) <= 'z'))
8546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8554 for (i = 0; i < 256; i++)
8555 if (XOR (islower (i), ISLOWER (i))
8556 || toupper (i) != TOUPPER (i))
8561 if ac_fn_cxx_try_run
"$LINENO"; then :
8564 ac_cv_header_stdc
=no
8566 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8567 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8573 $as_echo "$ac_cv_header_stdc" >&6; }
8574 if test $ac_cv_header_stdc = yes; then
8576 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8581 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8582 if test "${ac_cv_header_time+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 #include <sys/types.h>
8588 #include <sys/time.h>
8594 if ((struct tm *) 0)
8600 if ac_fn_cxx_try_compile
"$LINENO"; then :
8601 ac_cv_header_time
=yes
8603 ac_cv_header_time
=no
8605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8608 $as_echo "$ac_cv_header_time" >&6; }
8609 if test $ac_cv_header_time = yes; then
8611 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8616 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8617 if test "${gcc_cv_header_string+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8623 #include <strings.h>
8632 if ac_fn_cxx_try_compile
"$LINENO"; then :
8633 gcc_cv_header_string
=yes
8635 gcc_cv_header_string
=no
8637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8640 $as_echo "$gcc_cv_header_string" >&6; }
8641 if test $gcc_cv_header_string = yes; then
8643 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8648 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8649 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8654 #include <sys/types.h>
8655 #include <sys/wait.h>
8657 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8660 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8668 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8673 if ac_fn_cxx_try_compile
"$LINENO"; then :
8674 ac_cv_header_sys_wait_h
=yes
8676 ac_cv_header_sys_wait_h
=no
8678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8681 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8682 if test $ac_cv_header_sys_wait_h = yes; then
8684 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8689 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8690 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 #include <sys/types.h>
8696 #include <termios.h>
8702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8703 $EGREP "yes" >/dev
/null
2>&1; then :
8704 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8706 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8712 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8714 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8716 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8717 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 #include <sys/types.h>
8723 #include <sys/ioctl.h>
8729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8730 $EGREP "yes" >/dev
/null
2>&1; then :
8731 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8733 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8739 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8741 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8743 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8748 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8749 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8750 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8751 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8753 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8754 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8755 eval as_val
=\$
$as_ac_Header
8756 if test "x$as_val" = x
""yes; then :
8757 cat >>confdefs.h
<<_ACEOF
8758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8765 # Check for thread headers.
8766 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8767 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8773 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8774 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8781 # These tests can't be done till we know if we have limits.h.
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8783 $as_echo_n "checking for CHAR_BIT... " >&6; }
8784 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #ifdef HAVE_LIMITS_H
8796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8797 $EGREP "found" >/dev
/null
2>&1; then :
8798 gcc_cv_decl_char_bit
=yes
8800 gcc_cv_decl_char_bit
=no
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8807 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8808 if test $gcc_cv_decl_char_bit = no
; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8810 $as_echo_n "checking number of bits in a byte... " >&6; }
8811 if test "${gcc_cv_c_nbby+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8816 while test $i -lt 65; do
8817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8824 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8825 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8831 if ac_fn_cxx_try_compile
"$LINENO"; then :
8832 gcc_cv_c_nbby
=$i; break
8834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8837 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8841 $as_echo "$gcc_cv_c_nbby" >&6; }
8842 if test $gcc_cv_c_nbby = failed
; then
8843 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8846 cat >>confdefs.h
<<_ACEOF
8847 #define CHAR_BIT $gcc_cv_c_nbby
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8853 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8854 if test "${ac_cv_c_bigendian+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8857 ac_cv_c_bigendian
=unknown
8858 # See if we're dealing with a universal compiler.
8859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #ifndef __APPLE_CC__
8862 not a universal capable compiler
8867 if ac_fn_cxx_try_compile
"$LINENO"; then :
8869 # Check for potential -arch flags. It is not universal unless
8870 # there are at least two -arch flags with different values.
8873 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8874 if test -n "$ac_prev"; then
8876 i?
86 | x86_64 | ppc | ppc64
)
8877 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8880 ac_cv_c_bigendian
=universal
8886 elif test "x$ac_word" = "x-arch"; then
8891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8892 if test $ac_cv_c_bigendian = unknown
; then
8893 # See if sys/param.h defines the BYTE_ORDER macro.
8894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896 #include <sys/types.h>
8897 #include <sys/param.h>
8902 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8903 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8912 if ac_fn_cxx_try_compile
"$LINENO"; then :
8913 # It does; now see whether it defined to BIG_ENDIAN or not.
8914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 #include <sys/types.h>
8917 #include <sys/param.h>
8922 #if BYTE_ORDER != BIG_ENDIAN
8930 if ac_fn_cxx_try_compile
"$LINENO"; then :
8931 ac_cv_c_bigendian
=yes
8933 ac_cv_c_bigendian
=no
8935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8939 if test $ac_cv_c_bigendian = unknown
; then
8940 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8948 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8956 if ac_fn_cxx_try_compile
"$LINENO"; then :
8957 # It does; now see whether it defined to _BIG_ENDIAN or not.
8958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8973 if ac_fn_cxx_try_compile
"$LINENO"; then :
8974 ac_cv_c_bigendian
=yes
8976 ac_cv_c_bigendian
=no
8978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8982 if test $ac_cv_c_bigendian = unknown
; then
8983 # Compile a test program.
8984 if test "$cross_compiling" = yes; then :
8985 # Try to guess by grepping values from an object file.
8986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 short int ascii_mm[] =
8989 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8990 short int ascii_ii[] =
8991 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8992 int use_ascii (int i) {
8993 return ascii_mm[i] + ascii_ii[i];
8995 short int ebcdic_ii[] =
8996 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8997 short int ebcdic_mm[] =
8998 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8999 int use_ebcdic (int i) {
9000 return ebcdic_mm[i] + ebcdic_ii[i];
9007 return use_ascii (foo) == use_ebcdic (foo);
9012 if ac_fn_cxx_try_compile
"$LINENO"; then :
9013 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9014 ac_cv_c_bigendian
=yes
9016 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9017 if test "$ac_cv_c_bigendian" = unknown
; then
9018 ac_cv_c_bigendian
=no
9020 # finding both strings is unlikely to happen, but who knows?
9021 ac_cv_c_bigendian
=unknown
9025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 $ac_includes_default
9034 /* Are we little or big endian? From Harbison&Steele. */
9038 char c[sizeof (long int)];
9041 return u.c[sizeof (long int) - 1] == 1;
9047 if ac_fn_cxx_try_run
"$LINENO"; then :
9048 ac_cv_c_bigendian
=no
9050 ac_cv_c_bigendian
=yes
9052 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9053 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9059 $as_echo "$ac_cv_c_bigendian" >&6; }
9060 case $ac_cv_c_bigendian in #(
9062 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9068 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9072 as_fn_error
"unknown endianness
9073 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9077 # ----------------------
9078 # Checks for C++ headers
9079 # ----------------------
9082 ac_cpp
='$CXXCPP $CPPFLAGS'
9083 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9084 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9085 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9087 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9088 if test -z "$CXXCPP"; then
9089 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9090 $as_echo_n "(cached) " >&6
9092 # Double quotes because CXXCPP needs to be expanded
9093 for CXXCPP
in "$CXX -E" "/lib/cpp"
9096 for ac_cxx_preproc_warn_flag
in '' yes
9098 # Use a header file that comes with gcc, so configuring glibc
9099 # with a fresh cross-compiler works.
9100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9101 # <limits.h> exists even on freestanding compilers.
9102 # On the NeXT, cc -E runs the code through the compiler's parser,
9103 # not just through cpp. "Syntax error" is here to catch this case.
9104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9107 # include <limits.h>
9109 # include <assert.h>
9113 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9116 # Broken: fails on valid input.
9119 rm -f conftest.err conftest.
$ac_ext
9121 # OK, works on sane cases. Now check whether nonexistent headers
9122 # can be detected and how.
9123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 #include <ac_nonexistent.h>
9127 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9128 # Broken: success on invalid input.
9131 # Passes both tests.
9135 rm -f conftest.err conftest.
$ac_ext
9138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9139 rm -f conftest.err conftest.
$ac_ext
9140 if $ac_preproc_ok; then :
9145 ac_cv_prog_CXXCPP
=$CXXCPP
9148 CXXCPP
=$ac_cv_prog_CXXCPP
9150 ac_cv_prog_CXXCPP
=$CXXCPP
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9153 $as_echo "$CXXCPP" >&6; }
9155 for ac_cxx_preproc_warn_flag
in '' yes
9157 # Use a header file that comes with gcc, so configuring glibc
9158 # with a fresh cross-compiler works.
9159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9160 # <limits.h> exists even on freestanding compilers.
9161 # On the NeXT, cc -E runs the code through the compiler's parser,
9162 # not just through cpp. "Syntax error" is here to catch this case.
9163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9166 # include <limits.h>
9168 # include <assert.h>
9172 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9175 # Broken: fails on valid input.
9178 rm -f conftest.err conftest.
$ac_ext
9180 # OK, works on sane cases. Now check whether nonexistent headers
9181 # can be detected and how.
9182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 #include <ac_nonexistent.h>
9186 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9187 # Broken: success on invalid input.
9190 # Passes both tests.
9194 rm -f conftest.err conftest.
$ac_ext
9197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9198 rm -f conftest.err conftest.
$ac_ext
9199 if $ac_preproc_ok; then :
9202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9205 See \`config.log' for more details." >&5
9206 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9207 See \`config.log' for more details." >&2;}; }
9211 ac_cpp
='$CXXCPP $CPPFLAGS'
9212 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9213 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9214 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9217 for ac_header
in unordered_map
9219 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9220 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9221 cat >>confdefs.h
<<_ACEOF
9222 #define HAVE_UNORDERED_MAP 1
9228 for ac_header
in tr1/unordered_map
9230 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9231 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9232 cat >>confdefs.h
<<_ACEOF
9233 #define HAVE_TR1_UNORDERED_MAP 1
9239 for ac_header
in ext
/hash_map
9241 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9242 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9243 cat >>confdefs.h
<<_ACEOF
9244 #define HAVE_EXT_HASH_MAP 1
9252 # Dependency checking.
9255 rm -rf .tst
2>/dev
/null
9256 mkdir .tst
2>/dev
/null
9257 if test -d .tst
; then
9262 rmdir .tst
2>/dev
/null
9264 DEPDIR
="${am__leading_dot}deps"
9266 ac_config_commands
="$ac_config_commands depdir"
9269 ac_config_commands
="$ac_config_commands gccdepdir"
9272 depcc
="$CXX" am_compiler_list
=
9274 am_depcomp
=$ac_aux_dir/depcomp
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9276 $as_echo_n "checking dependency style of $depcc... " >&6; }
9277 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9280 if test -f "$am_depcomp"; then
9281 # We make a subdir and do the tests there. Otherwise we can end up
9282 # making bogus files that we don't know about and never remove. For
9283 # instance it was reported that on HP-UX the gcc test will end up
9284 # making a dummy file named `D' -- because `-MD' means `put the output
9287 # Copy depcomp to subdir because otherwise we won't find it if we're
9288 # using a relative directory.
9289 cp "$am_depcomp" conftest.dir
9291 # We will build objects and dependencies in a subdirectory because
9292 # it helps to detect inapplicable dependency modes. For instance
9293 # both Tru64's cc and ICC support -MD to output dependencies as a
9294 # side effect of compilation, but ICC will put the dependencies in
9295 # the current directory while Tru64 will put them in the object
9299 am_cv_CXX_dependencies_compiler_type
=none
9300 if test "$am_compiler_list" = ""; then
9301 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9303 for depmode
in $am_compiler_list; do
9304 if test $depmode = none
; then break; fi
9306 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9307 # Setup a source with many dependencies, because some compilers
9308 # like to wrap large dependency lists on column 80 (with \), and
9309 # we should not choose a depcomp mode which is confused by this.
9311 # We need to recreate these files for each test, as the compiler may
9312 # overwrite some of them when testing with obscure command lines.
9313 # This happens at least with the AIX C compiler.
9315 for i
in 1 2 3 4 5 6; do
9316 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9317 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9318 # Solaris 8's {/usr,}/bin/sh.
9319 touch sub
/conftst
$i.h
9321 echo "include sub/conftest.Po" > confmf
9323 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9324 # mode. It turns out that the SunPro C++ compiler does not properly
9325 # handle `-M -o', and we need to detect this.
9326 depcmd
="depmode=$depmode \
9327 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9328 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9329 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9330 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9331 if env
$depcmd > conftest.err
2>&1 &&
9332 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9333 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9334 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9335 # icc doesn't choke on unknown options, it will just issue warnings
9336 # or remarks (even with -Werror). So we grep stderr for any message
9337 # that says an option was ignored or not supported.
9338 # When given -MP, icc 7.0 and 7.1 complain thusly:
9339 # icc: Command line warning: ignoring option '-M'; no argument required
9340 # The diagnosis changed in icc 8.0:
9341 # icc: Command line remark: option '-MP' not supported
9342 if (grep 'ignoring option' conftest.err ||
9343 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9344 am_cv_CXX_dependencies_compiler_type
=$depmode
9345 $as_echo "$as_me:$LINENO: success" >&5
9349 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9350 sed -e 's/^/| /' < conftest.err
>&5
9356 am_cv_CXX_dependencies_compiler_type
=none
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9361 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9362 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9363 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9364 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9374 # These libraries may be used by collect2.
9375 # We may need a special search path to get them linked.
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9377 $as_echo_n "checking for collect2 libraries... " >&6; }
9378 if test "${gcc_cv_collect2_libs+set}" = set; then :
9379 $as_echo_n "(cached) " >&6
9382 for libs
in '' -lld -lmld \
9383 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9384 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9390 /* Override any GCC internal prototype to avoid an error.
9391 Use char because int might match the return type of a GCC
9392 builtin and then its argument prototype would still apply. */
9405 if ac_fn_cxx_try_link
"$LINENO"; then :
9406 gcc_cv_collect2_libs
="$libs"; break
9408 rm -f core conftest.err conftest.
$ac_objext \
9409 conftest
$ac_exeext conftest.
$ac_ext
9412 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9415 $as_echo "$gcc_cv_collect2_libs" >&6; }
9416 case $gcc_cv_collect2_libs in
9418 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9422 # When building Ada code on Alpha, we need exc_resume which is usually in
9423 # -lexc. So test for it.
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9427 $as_echo_n "checking for library containing exc_resume... " >&6; }
9428 if test "${ac_cv_search_exc_resume+set}" = set; then :
9429 $as_echo_n "(cached) " >&6
9431 ac_func_search_save_LIBS
=$LIBS
9432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9435 /* Override any GCC internal prototype to avoid an error.
9436 Use char because int might match the return type of a GCC
9437 builtin and then its argument prototype would still apply. */
9445 return exc_resume ();
9450 for ac_lib
in '' exc
; do
9451 if test -z "$ac_lib"; then
9452 ac_res
="none required"
9455 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9457 if ac_fn_cxx_try_link
"$LINENO"; then :
9458 ac_cv_search_exc_resume
=$ac_res
9460 rm -f core conftest.err conftest.
$ac_objext \
9462 if test "${ac_cv_search_exc_resume+set}" = set; then :
9466 if test "${ac_cv_search_exc_resume+set}" = set; then :
9469 ac_cv_search_exc_resume
=no
9472 LIBS
=$ac_func_search_save_LIBS
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9475 $as_echo "$ac_cv_search_exc_resume" >&6; }
9476 ac_res
=$ac_cv_search_exc_resume
9477 if test "$ac_res" != no
; then :
9478 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9486 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9490 $as_echo_n "checking for library containing kstat_open... " >&6; }
9491 if test "${ac_cv_search_kstat_open+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9494 ac_func_search_save_LIBS
=$LIBS
9495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9498 /* Override any GCC internal prototype to avoid an error.
9499 Use char because int might match the return type of a GCC
9500 builtin and then its argument prototype would still apply. */
9508 return kstat_open ();
9513 for ac_lib
in '' kstat
; do
9514 if test -z "$ac_lib"; then
9515 ac_res
="none required"
9518 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9520 if ac_fn_cxx_try_link
"$LINENO"; then :
9521 ac_cv_search_kstat_open
=$ac_res
9523 rm -f core conftest.err conftest.
$ac_objext \
9525 if test "${ac_cv_search_kstat_open+set}" = set; then :
9529 if test "${ac_cv_search_kstat_open+set}" = set; then :
9532 ac_cv_search_kstat_open
=no
9535 LIBS
=$ac_func_search_save_LIBS
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9538 $as_echo "$ac_cv_search_kstat_open" >&6; }
9539 ac_res
=$ac_cv_search_kstat_open
9540 if test "$ac_res" != no
; then :
9541 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9545 EXTRA_GCC_LIBS
="$LIBS"
9549 # Some systems put ldexp and frexp in libm instead of libc; assume
9550 # they're both in the same place. jcf-dump needs them.
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9554 $as_echo_n "checking for library containing ldexp... " >&6; }
9555 if test "${ac_cv_search_ldexp+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9558 ac_func_search_save_LIBS
=$LIBS
9559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9562 /* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9577 for ac_lib
in '' m
; do
9578 if test -z "$ac_lib"; then
9579 ac_res
="none required"
9582 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9584 if ac_fn_cxx_try_link
"$LINENO"; then :
9585 ac_cv_search_ldexp
=$ac_res
9587 rm -f core conftest.err conftest.
$ac_objext \
9589 if test "${ac_cv_search_ldexp+set}" = set; then :
9593 if test "${ac_cv_search_ldexp+set}" = set; then :
9596 ac_cv_search_ldexp
=no
9599 LIBS
=$ac_func_search_save_LIBS
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9602 $as_echo "$ac_cv_search_ldexp" >&6; }
9603 ac_res
=$ac_cv_search_ldexp
9604 if test "$ac_res" != no
; then :
9605 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9613 # Use <inttypes.h> only if it exists,
9614 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9617 $as_echo_n "checking for inttypes.h... " >&6; }
9618 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9619 $as_echo_n "(cached) " >&6
9621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9623 #define __STDC_FORMAT_MACROS
9624 #include <sys/types.h>
9625 #include <inttypes.h>
9637 if ac_fn_cxx_try_compile
"$LINENO"; then :
9638 gcc_cv_header_inttypes_h
=yes
9640 gcc_cv_header_inttypes_h
=no
9642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9646 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9647 if test $gcc_cv_header_inttypes_h = yes; then
9649 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9655 for ac_func
in times clock kill getrlimit setrlimit atoq \
9656 popen sysconf strsignal getrusage nl_langinfo \
9657 gettimeofday mbstowcs wcswidth mmap setlocale \
9658 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
9660 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9661 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9662 eval as_val
=\$
$as_ac_var
9663 if test "x$as_val" = x
""yes; then :
9664 cat >>confdefs.h
<<_ACEOF
9665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9672 if test x
$ac_cv_func_mbstowcs = xyes
; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9674 $as_echo_n "checking whether mbstowcs works... " >&6; }
9675 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9678 if test "$cross_compiling" = yes; then :
9679 gcc_cv_func_mbstowcs_works
=yes
9681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9690 if ac_fn_cxx_try_run
"$LINENO"; then :
9691 gcc_cv_func_mbstowcs_works
=yes
9693 gcc_cv_func_mbstowcs_works
=no
9695 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9696 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9701 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9702 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9704 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9709 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9710 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9714 cat >>confdefs.h
<<_ACEOF
9720 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9721 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9725 cat >>confdefs.h
<<_ACEOF
9726 #define caddr_t char *
9733 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9734 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9735 gcc_header_sys_mman_h
=yes
9737 gcc_header_sys_mman_h
=no
9740 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9741 if test "x$ac_cv_func_mmap" = x
""yes; then :
9747 if test "$gcc_header_sys_mman_h" != yes \
9748 ||
test "$gcc_func_mmap" != yes; then
9749 gcc_cv_func_mmap_file
=no
9750 gcc_cv_func_mmap_dev_zero
=no
9751 gcc_cv_func_mmap_anon
=no
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9754 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9755 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9756 $as_echo_n "(cached) " >&6
9758 # Add a system to this blacklist if
9759 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9760 # memory area containing the same data that you'd get if you applied
9761 # read() to the same fd. The only system known to have a problem here
9762 # is VMS, where text files have record structure.
9765 gcc_cv_func_mmap_file
=no
;;
9767 gcc_cv_func_mmap_file
=yes;;
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9771 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9773 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9774 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9775 $as_echo_n "(cached) " >&6
9777 # Add a system to this blacklist if it has mmap() but /dev/zero
9778 # does not exist, or if mmapping /dev/zero does not give anonymous
9779 # zeroed pages with both the following properties:
9780 # 1. If you map N consecutive pages in with one call, and then
9781 # unmap any subset of those pages, the pages that were not
9782 # explicitly unmapped remain accessible.
9783 # 2. If you map two adjacent blocks of memory and then unmap them
9784 # both at once, they must both go away.
9785 # Systems known to be in this category are Windows (all variants),
9788 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9789 gcc_cv_func_mmap_dev_zero
=no
;;
9791 gcc_cv_func_mmap_dev_zero
=yes;;
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9795 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9797 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9799 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9800 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
9803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9805 #include <sys/types.h>
9806 #include <sys/mman.h>
9809 #ifndef MAP_ANONYMOUS
9810 #define MAP_ANONYMOUS MAP_ANON
9816 int n = MAP_ANONYMOUS;
9821 if ac_fn_cxx_try_compile
"$LINENO"; then :
9822 gcc_cv_decl_map_anon
=yes
9824 gcc_cv_decl_map_anon
=no
9826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9829 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9831 if test $gcc_cv_decl_map_anon = no
; then
9832 gcc_cv_func_mmap_anon
=no
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9835 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9836 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9837 $as_echo_n "(cached) " >&6
9839 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9840 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9841 # doesn't give anonymous zeroed pages with the same properties listed
9842 # above for use of /dev/zero.
9843 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9845 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9846 gcc_cv_func_mmap_anon
=no
;;
9848 gcc_cv_func_mmap_anon
=yes;;
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9852 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9856 if test $gcc_cv_func_mmap_file = yes; then
9858 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9861 if test $gcc_cv_func_mmap_dev_zero = yes; then
9863 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9866 if test $gcc_cv_func_mmap_anon = yes; then
9868 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9875 # Under VMS, vfork works very differently than on Unix. The standard test
9876 # won't work, and it isn't easily adaptable. It makes more sense to
9878 ac_cv_func_vfork_works
=yes
9881 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9882 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9886 cat >>confdefs.h
<<_ACEOF
9892 for ac_header
in vfork.h
9894 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9895 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9896 cat >>confdefs.h
<<_ACEOF
9897 #define HAVE_VFORK_H 1
9903 for ac_func
in fork vfork
9905 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9906 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9907 eval as_val
=\$
$as_ac_var
9908 if test "x$as_val" = x
""yes; then :
9909 cat >>confdefs.h
<<_ACEOF
9910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9916 if test "x$ac_cv_func_fork" = xyes
; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9918 $as_echo_n "checking for working fork... " >&6; }
9919 if test "${ac_cv_func_fork_works+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9922 if test "$cross_compiling" = yes; then :
9923 ac_cv_func_fork_works
=cross
9925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9927 $ac_includes_default
9932 /* By Ruediger Kuhlmann. */
9939 if ac_fn_cxx_try_run
"$LINENO"; then :
9940 ac_cv_func_fork_works
=yes
9942 ac_cv_func_fork_works
=no
9944 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9945 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9950 $as_echo "$ac_cv_func_fork_works" >&6; }
9953 ac_cv_func_fork_works
=$ac_cv_func_fork
9955 if test "x$ac_cv_func_fork_works" = xcross
; then
9957 *-*-amigaos* |
*-*-msdosdjgpp*)
9958 # Override, as these systems have only a dummy fork() stub
9959 ac_cv_func_fork_works
=no
9962 ac_cv_func_fork_works
=yes
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9966 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9968 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9969 if test "x$ac_cv_func_vfork" = xyes
; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9971 $as_echo_n "checking for working vfork... " >&6; }
9972 if test "${ac_cv_func_vfork_works+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
9975 if test "$cross_compiling" = yes; then :
9976 ac_cv_func_vfork_works
=cross
9978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9979 /* end confdefs.h. */
9980 /* Thanks to Paul Eggert for this test. */
9981 $ac_includes_default
9982 #include <sys/wait.h>
9986 /* On some sparc systems, changes by the child to local and incoming
9987 argument registers are propagated back to the parent. The compiler
9988 is told about this with #include <vfork.h>, but some compilers
9989 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9990 static variable whose address is put into a register that is
9991 clobbered by the vfork. */
9994 sparc_address_test (int arg)
9996 sparc_address_test (arg) int arg;
10017 pid_t parent = getpid ();
10020 sparc_address_test (0);
10025 /* Here is another test for sparc vfork register problems. This
10026 test uses lots of local variables, at least as many local
10027 variables as main has allocated so far including compiler
10028 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10029 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10030 reuse the register of parent for one of the local variables,
10031 since it will think that parent can't possibly be used any more
10032 in this routine. Assigning to the local variable will thus
10033 munge parent in the parent process. */
10035 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10036 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10037 /* Convince the compiler that p..p7 are live; otherwise, it might
10038 use the same hardware register for all 8 local variables. */
10039 if (p != p1 || p != p2 || p != p3 || p != p4
10040 || p != p5 || p != p6 || p != p7)
10043 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10044 from child file descriptors. If the child closes a descriptor
10045 before it execs or exits, this munges the parent's descriptor
10046 as well. Test for this by closing stdout in the child. */
10047 _exit(close(fileno(stdout)) != 0);
10052 while (wait(&status) != child)
10055 /* Was there some problem with vforking? */
10058 /* Did the child fail? (This shouldn't happen.) */
10061 /* Did the vfork/compiler bug occur? */
10062 || parent != getpid()
10064 /* Did the file descriptor bug occur? */
10065 || fstat(fileno(stdout), &st) != 0
10070 if ac_fn_cxx_try_run
"$LINENO"; then :
10071 ac_cv_func_vfork_works
=yes
10073 ac_cv_func_vfork_works
=no
10075 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10076 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10081 $as_echo "$ac_cv_func_vfork_works" >&6; }
10084 if test "x$ac_cv_func_fork_works" = xcross
; then
10085 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10087 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10090 if test "x$ac_cv_func_vfork_works" = xyes
; then
10092 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10096 $as_echo "#define vfork fork" >>confdefs.h
10099 if test "x$ac_cv_func_fork_works" = xyes
; then
10101 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10107 if test "X$prefix" = "XNONE"; then
10108 acl_final_prefix
="$ac_default_prefix"
10110 acl_final_prefix
="$prefix"
10112 if test "X$exec_prefix" = "XNONE"; then
10113 acl_final_exec_prefix
='${prefix}'
10115 acl_final_exec_prefix
="$exec_prefix"
10117 acl_save_prefix
="$prefix"
10118 prefix
="$acl_final_prefix"
10119 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10120 prefix
="$acl_save_prefix"
10123 # Check whether --with-gnu-ld was given.
10124 if test "${with_gnu_ld+set}" = set; then :
10125 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10130 # Prepare PATH_SEPARATOR.
10131 # The user is always right.
10132 if test "${PATH_SEPARATOR+set}" != set; then
10133 echo "#! /bin/sh" >conf$$.sh
10134 echo "exit 0" >>conf$$.sh
10136 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10144 if test "$GCC" = yes; then
10145 # Check if gcc -print-prog-name=ld gives a path.
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10147 $as_echo_n "checking for ld used by GCC... " >&6; }
10150 # gcc leaves a trailing carriage return which upsets mingw
10151 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10153 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10156 # Accept absolute paths.
10157 [\\/]* |
[A-Za-z
]:[\\/]*)
10158 re_direlt
='/[^/][^/]*/\.\./'
10159 # Canonicalize the path of ld
10160 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10161 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10162 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10164 test -z "$LD" && LD
="$ac_prog"
10167 # If it fails, then pretend we aren't using GCC.
10171 # If it is relative, then search for the first ld in PATH.
10172 with_gnu_ld
=unknown
10175 elif test "$with_gnu_ld" = yes; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10177 $as_echo_n "checking for GNU ld... " >&6; }
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10180 $as_echo_n "checking for non-GNU ld... " >&6; }
10182 if test "${acl_cv_path_LD+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
10185 if test -z "$LD"; then
10186 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10187 for ac_dir
in $PATH; do
10188 test -z "$ac_dir" && ac_dir
=.
10189 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10190 acl_cv_path_LD
="$ac_dir/$ac_prog"
10191 # Check to see if the program is GNU ld. I'd rather use --version,
10192 # but apparently some GNU ld's only accept -v.
10193 # Break only if it was the GNU/non-GNU ld that we prefer.
10194 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10195 test "$with_gnu_ld" != no
&& break
10197 test "$with_gnu_ld" != yes && break
10203 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10207 LD
="$acl_cv_path_LD"
10208 if test -n "$LD"; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10210 $as_echo "$LD" >&6; }
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10215 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10217 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10218 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10221 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10222 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10223 acl_cv_prog_gnu_ld
=yes
10225 acl_cv_prog_gnu_ld
=no
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10229 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10230 with_gnu_ld
=$acl_cv_prog_gnu_ld
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10235 $as_echo_n "checking for shared library run path origin... " >&6; }
10236 if test "${acl_cv_rpath+set}" = set; then :
10237 $as_echo_n "(cached) " >&6
10240 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10241 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10243 rm -f .
/conftest.sh
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10248 $as_echo "$acl_cv_rpath" >&6; }
10250 libext
="$acl_cv_libext"
10251 shlibext
="$acl_cv_shlibext"
10252 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10253 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10254 hardcode_direct
="$acl_cv_hardcode_direct"
10255 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10256 # Check whether --enable-rpath was given.
10257 if test "${enable_rpath+set}" = set; then :
10258 enableval
=$enable_rpath; :
10272 acl_save_prefix
="$prefix"
10273 prefix
="$acl_final_prefix"
10274 acl_save_exec_prefix
="$exec_prefix"
10275 exec_prefix
="$acl_final_exec_prefix"
10277 eval additional_includedir
=\"$includedir\"
10278 eval additional_libdir
=\"$libdir\"
10280 exec_prefix
="$acl_save_exec_prefix"
10281 prefix
="$acl_save_prefix"
10284 # Check whether --with-libiconv-prefix was given.
10285 if test "${with_libiconv_prefix+set}" = set; then :
10286 withval
=$with_libiconv_prefix;
10287 if test "X$withval" = "Xno"; then
10290 if test "X$withval" = "X"; then
10292 acl_save_prefix
="$prefix"
10293 prefix
="$acl_final_prefix"
10294 acl_save_exec_prefix
="$exec_prefix"
10295 exec_prefix
="$acl_final_exec_prefix"
10297 eval additional_includedir
=\"$includedir\"
10298 eval additional_libdir
=\"$libdir\"
10300 exec_prefix
="$acl_save_exec_prefix"
10301 prefix
="$acl_save_prefix"
10304 additional_includedir
="$withval/include"
10305 additional_libdir
="$withval/lib"
10316 names_already_handled
=
10317 names_next_round
='iconv '
10318 while test -n "$names_next_round"; do
10319 names_this_round
="$names_next_round"
10321 for name
in $names_this_round; do
10323 for n
in $names_already_handled; do
10324 if test "$n" = "$name"; then
10325 already_handled
=yes
10329 if test -z "$already_handled"; then
10330 names_already_handled
="$names_already_handled $name"
10331 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10332 eval value
=\"\
$HAVE_LIB$uppername\"
10333 if test -n "$value"; then
10334 if test "$value" = yes; then
10335 eval value
=\"\
$LIB$uppername\"
10336 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10337 eval value
=\"\
$LTLIB$uppername\"
10338 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10347 if test $use_additional = yes; then
10348 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10349 found_dir
="$additional_libdir"
10350 found_so
="$additional_libdir/lib$name.$shlibext"
10351 if test -f "$additional_libdir/lib$name.la"; then
10352 found_la
="$additional_libdir/lib$name.la"
10355 if test -f "$additional_libdir/lib$name.$libext"; then
10356 found_dir
="$additional_libdir"
10357 found_a
="$additional_libdir/lib$name.$libext"
10358 if test -f "$additional_libdir/lib$name.la"; then
10359 found_la
="$additional_libdir/lib$name.la"
10364 if test "X$found_dir" = "X"; then
10365 for x
in $LDFLAGS $LTLIBICONV; do
10367 acl_save_prefix
="$prefix"
10368 prefix
="$acl_final_prefix"
10369 acl_save_exec_prefix
="$exec_prefix"
10370 exec_prefix
="$acl_final_exec_prefix"
10372 exec_prefix
="$acl_save_exec_prefix"
10373 prefix
="$acl_save_prefix"
10377 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10378 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10380 found_so
="$dir/lib$name.$shlibext"
10381 if test -f "$dir/lib$name.la"; then
10382 found_la
="$dir/lib$name.la"
10385 if test -f "$dir/lib$name.$libext"; then
10387 found_a
="$dir/lib$name.$libext"
10388 if test -f "$dir/lib$name.la"; then
10389 found_la
="$dir/lib$name.la"
10395 if test "X$found_dir" != "X"; then
10400 if test "X$found_dir" != "X"; then
10401 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10402 if test "X$found_so" != "X"; then
10403 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10404 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10407 for x
in $ltrpathdirs; do
10408 if test "X$x" = "X$found_dir"; then
10413 if test -z "$haveit"; then
10414 ltrpathdirs
="$ltrpathdirs $found_dir"
10416 if test "$hardcode_direct" = yes; then
10417 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10419 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10420 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10422 for x
in $rpathdirs; do
10423 if test "X$x" = "X$found_dir"; then
10428 if test -z "$haveit"; then
10429 rpathdirs
="$rpathdirs $found_dir"
10433 for x
in $LDFLAGS $LIBICONV; do
10435 acl_save_prefix
="$prefix"
10436 prefix
="$acl_final_prefix"
10437 acl_save_exec_prefix
="$exec_prefix"
10438 exec_prefix
="$acl_final_exec_prefix"
10440 exec_prefix
="$acl_save_exec_prefix"
10441 prefix
="$acl_save_prefix"
10443 if test "X$x" = "X-L$found_dir"; then
10448 if test -z "$haveit"; then
10449 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10451 if test "$hardcode_minus_L" != no
; then
10452 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10454 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10460 if test "X$found_a" != "X"; then
10461 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10463 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10466 additional_includedir
=
10467 case "$found_dir" in
10469 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10470 additional_includedir
="$basedir/include"
10473 if test "X$additional_includedir" != "X"; then
10474 if test "X$additional_includedir" != "X/usr/include"; then
10476 if test "X$additional_includedir" = "X/usr/local/include"; then
10477 if test -n "$GCC"; then
10479 linux
*) haveit
=yes;;
10483 if test -z "$haveit"; then
10484 for x
in $CPPFLAGS $INCICONV; do
10486 acl_save_prefix
="$prefix"
10487 prefix
="$acl_final_prefix"
10488 acl_save_exec_prefix
="$exec_prefix"
10489 exec_prefix
="$acl_final_exec_prefix"
10491 exec_prefix
="$acl_save_exec_prefix"
10492 prefix
="$acl_save_prefix"
10494 if test "X$x" = "X-I$additional_includedir"; then
10499 if test -z "$haveit"; then
10500 if test -d "$additional_includedir"; then
10501 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10507 if test -n "$found_la"; then
10508 save_libdir
="$libdir"
10509 case "$found_la" in
10510 */* |
*\\*) .
"$found_la" ;;
10511 *) .
"./$found_la" ;;
10513 libdir
="$save_libdir"
10514 for dep
in $dependency_libs; do
10517 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10518 if test "X$additional_libdir" != "X/usr/lib"; then
10520 if test "X$additional_libdir" = "X/usr/local/lib"; then
10521 if test -n "$GCC"; then
10523 linux
*) haveit
=yes;;
10527 if test -z "$haveit"; then
10529 for x
in $LDFLAGS $LIBICONV; do
10531 acl_save_prefix
="$prefix"
10532 prefix
="$acl_final_prefix"
10533 acl_save_exec_prefix
="$exec_prefix"
10534 exec_prefix
="$acl_final_exec_prefix"
10536 exec_prefix
="$acl_save_exec_prefix"
10537 prefix
="$acl_save_prefix"
10539 if test "X$x" = "X-L$additional_libdir"; then
10544 if test -z "$haveit"; then
10545 if test -d "$additional_libdir"; then
10546 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10550 for x
in $LDFLAGS $LTLIBICONV; do
10552 acl_save_prefix
="$prefix"
10553 prefix
="$acl_final_prefix"
10554 acl_save_exec_prefix
="$exec_prefix"
10555 exec_prefix
="$acl_final_exec_prefix"
10557 exec_prefix
="$acl_save_exec_prefix"
10558 prefix
="$acl_save_prefix"
10560 if test "X$x" = "X-L$additional_libdir"; then
10565 if test -z "$haveit"; then
10566 if test -d "$additional_libdir"; then
10567 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10574 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10575 if test "$enable_rpath" != no
; then
10577 for x
in $rpathdirs; do
10578 if test "X$x" = "X$dir"; then
10583 if test -z "$haveit"; then
10584 rpathdirs
="$rpathdirs $dir"
10587 for x
in $ltrpathdirs; do
10588 if test "X$x" = "X$dir"; then
10593 if test -z "$haveit"; then
10594 ltrpathdirs
="$ltrpathdirs $dir"
10599 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10602 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10605 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10606 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10612 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10613 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10619 if test "X$rpathdirs" != "X"; then
10620 if test -n "$hardcode_libdir_separator"; then
10622 for found_dir
in $rpathdirs; do
10623 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10625 acl_save_libdir
="$libdir"
10627 eval flag
=\"$hardcode_libdir_flag_spec\"
10628 libdir
="$acl_save_libdir"
10629 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10631 for found_dir
in $rpathdirs; do
10632 acl_save_libdir
="$libdir"
10633 libdir
="$found_dir"
10634 eval flag
=\"$hardcode_libdir_flag_spec\"
10635 libdir
="$acl_save_libdir"
10636 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10640 if test "X$ltrpathdirs" != "X"; then
10641 for found_dir
in $ltrpathdirs; do
10642 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10653 $as_echo_n "checking for iconv... " >&6; }
10654 if test "${am_cv_func_iconv+set}" = set; then :
10655 $as_echo_n "(cached) " >&6
10658 am_cv_func_iconv
="no, consider installing GNU libiconv"
10660 am_save_CPPFLAGS
="$CPPFLAGS"
10661 CPPFLAGS
="$CPPFLAGS $INCICONV"
10662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 #include <stdlib.h>
10669 iconv_t cd = iconv_open("","");
10670 iconv(cd,NULL,NULL,NULL,NULL);
10676 if ac_fn_cxx_try_link
"$LINENO"; then :
10677 am_cv_func_iconv
=yes
10679 rm -f core conftest.err conftest.
$ac_objext \
10680 conftest
$ac_exeext conftest.
$ac_ext
10681 CPPFLAGS
="$am_save_CPPFLAGS"
10683 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10684 for _libs
in .libs _libs
; do
10685 am_save_CPPFLAGS
="$CPPFLAGS"
10686 am_save_LIBS
="$LIBS"
10687 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10688 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10691 #include <stdlib.h>
10696 iconv_t cd = iconv_open("","");
10697 iconv(cd,NULL,NULL,NULL,NULL);
10703 if ac_fn_cxx_try_link
"$LINENO"; then :
10704 INCICONV
="-I../libiconv/include"
10705 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10706 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10707 am_cv_lib_iconv
=yes
10708 am_cv_func_iconv
=yes
10710 rm -f core conftest.err conftest.
$ac_objext \
10711 conftest
$ac_exeext conftest.
$ac_ext
10712 CPPFLAGS
="$am_save_CPPFLAGS"
10713 LIBS
="$am_save_LIBS"
10714 if test "$am_cv_func_iconv" = "yes"; then
10720 if test "$am_cv_func_iconv" != yes; then
10721 am_save_CPPFLAGS
="$CPPFLAGS"
10722 am_save_LIBS
="$LIBS"
10723 CPPFLAGS
="$LIBS $INCICONV"
10724 LIBS
="$LIBS $LIBICONV"
10725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10727 #include <stdlib.h>
10732 iconv_t cd = iconv_open("","");
10733 iconv(cd,NULL,NULL,NULL,NULL);
10739 if ac_fn_cxx_try_link
"$LINENO"; then :
10740 am_cv_lib_iconv
=yes
10741 am_cv_func_iconv
=yes
10743 rm -f core conftest.err conftest.
$ac_objext \
10744 conftest
$ac_exeext conftest.
$ac_ext
10745 CPPFLAGS
="$am_save_CPPFLAGS"
10746 LIBS
="$am_save_LIBS"
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10751 $as_echo "$am_cv_func_iconv" >&6; }
10752 if test "$am_cv_func_iconv" = yes; then
10754 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10757 if test "$am_cv_lib_iconv" = yes; then
10759 for element
in $INCICONV; do
10761 for x
in $CPPFLAGS; do
10763 acl_save_prefix
="$prefix"
10764 prefix
="$acl_final_prefix"
10765 acl_save_exec_prefix
="$exec_prefix"
10766 exec_prefix
="$acl_final_exec_prefix"
10768 exec_prefix
="$acl_save_exec_prefix"
10769 prefix
="$acl_save_prefix"
10771 if test "X$x" = "X$element"; then
10776 if test -z "$haveit"; then
10777 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10782 $as_echo_n "checking how to link with libiconv... " >&6; }
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10784 $as_echo "$LIBICONV" >&6; }
10792 if test "$am_cv_func_iconv" = yes; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10794 $as_echo_n "checking for iconv declaration... " >&6; }
10795 if test "${am_cv_proto_iconv+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10802 #include <stdlib.h>
10808 #if defined(__STDC__) || defined(__cplusplus)
10809 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10822 if ac_fn_cxx_try_compile
"$LINENO"; then :
10823 am_cv_proto_iconv_arg1
=""
10825 am_cv_proto_iconv_arg1
="const"
10827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10828 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);"
10831 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10833 }$am_cv_proto_iconv" >&5
10835 }$am_cv_proto_iconv" >&6; }
10837 cat >>confdefs.h
<<_ACEOF
10838 #define ICONV_CONST $am_cv_proto_iconv_arg1
10844 # Until we have in-tree GNU iconv:
10846 if test -f "$LTLIBICONV"; then
10847 LIBICONV_DEP
=$LTLIBICONV
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10853 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10854 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10855 $as_echo_n "(cached) " >&6
10857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859 #include <locale.h>
10868 if ac_fn_cxx_try_link
"$LINENO"; then :
10869 am_cv_val_LC_MESSAGES
=yes
10871 am_cv_val_LC_MESSAGES
=no
10873 rm -f core conftest.err conftest.
$ac_objext \
10874 conftest
$ac_exeext conftest.
$ac_ext
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10877 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10878 if test $am_cv_val_LC_MESSAGES = yes; then
10880 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10887 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10888 if test "${am_cv_langinfo_codeset+set}" = set; then :
10889 $as_echo_n "(cached) " >&6
10891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893 #include <langinfo.h>
10897 char* cs = nl_langinfo(CODESET);
10902 if ac_fn_cxx_try_link
"$LINENO"; then :
10903 am_cv_langinfo_codeset
=yes
10905 am_cv_langinfo_codeset
=no
10907 rm -f core conftest.err conftest.
$ac_objext \
10908 conftest
$ac_exeext conftest.
$ac_ext
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10912 $as_echo "$am_cv_langinfo_codeset" >&6; }
10913 if test $am_cv_langinfo_codeset = yes; then
10915 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10920 # We will need to find libiberty.h and ansidecl.h
10921 saved_CFLAGS
="$CFLAGS"
10922 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10923 saved_CXXFLAGS
="$CXXFLAGS"
10924 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10926 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10927 # normal autoconf function for these. But force definition of
10928 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10929 # basename handling in libiberty.h.
10930 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10931 #undef HAVE_DECL_BASENAME
10932 #define HAVE_DECL_BASENAME 1
10933 #include \"ansidecl.h\"
10934 #include \"system.h\"
10936 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10942 cat >>confdefs.h
<<_ACEOF
10943 #define HAVE_DECL_BASENAME $ac_have_decl
10945 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10946 #undef HAVE_DECL_BASENAME
10947 #define HAVE_DECL_BASENAME 1
10948 #include \"ansidecl.h\"
10949 #include \"system.h\"
10951 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10957 cat >>confdefs.h
<<_ACEOF
10958 #define HAVE_DECL_STRSTR $ac_have_decl
10962 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10963 madvise stpcpy strnlen strsignal strverscmp \
10964 strtol strtoul strtoll strtoull setenv unsetenv \
10965 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10966 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
10968 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10970 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10971 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10972 $as_echo_n "(cached) " >&6
10974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10977 #define $ac_tr_decl 1
10979 #include "ansidecl.h"
10980 #include "system.h"
10986 char *(*pfn) = (char *(*)) $ac_func ;
10992 if ac_fn_cxx_try_compile
"$LINENO"; then :
10993 eval "gcc_cv_have_decl_$ac_func=yes"
10995 eval "gcc_cv_have_decl_$ac_func=no"
10997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11000 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11002 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11003 #define $ac_tr_decl 1
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11009 #define $ac_tr_decl 0
11017 for ac_func
in getrlimit setrlimit getrusage
11019 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11021 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11022 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11023 $as_echo_n "(cached) " >&6
11025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11028 #define $ac_tr_decl 1
11030 #include "ansidecl.h"
11031 #include "system.h"
11032 #ifdef HAVE_SYS_RESOURCE_H
11033 #include <sys/resource.h>
11041 char *(*pfn) = (char *(*)) $ac_func ;
11047 if ac_fn_cxx_try_compile
"$LINENO"; then :
11048 eval "gcc_cv_have_decl_$ac_func=yes"
11050 eval "gcc_cv_have_decl_$ac_func=no"
11052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11055 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11057 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11058 #define $ac_tr_decl 1
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11064 #define $ac_tr_decl 0
11072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11075 #include "ansidecl.h"
11076 #include "system.h"
11077 #ifdef HAVE_SYS_RESOURCE_H
11078 #include <sys/resource.h>
11089 if ac_fn_cxx_try_compile
"$LINENO"; then :
11093 $as_echo "#define rlim_t long" >>confdefs.h
11096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11098 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11099 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11100 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11101 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11102 for ac_func
in ldgetname
11104 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11106 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11107 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11108 $as_echo_n "(cached) " >&6
11110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11113 #define $ac_tr_decl 1
11115 #include "ansidecl.h"
11116 #include "system.h"
11117 #ifdef HAVE_LDFCN_H
11128 char *(*pfn) = (char *(*)) $ac_func ;
11134 if ac_fn_cxx_try_compile
"$LINENO"; then :
11135 eval "gcc_cv_have_decl_$ac_func=yes"
11137 eval "gcc_cv_have_decl_$ac_func=no"
11139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11142 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11145 #define $ac_tr_decl 1
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11151 #define $ac_tr_decl 0
11159 for ac_func
in times
11161 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11163 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11164 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11165 $as_echo_n "(cached) " >&6
11167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h. */
11170 #define $ac_tr_decl 1
11172 #include "ansidecl.h"
11173 #include "system.h"
11174 #ifdef HAVE_SYS_TIMES_H
11175 #include <sys/times.h>
11183 char *(*pfn) = (char *(*)) $ac_func ;
11189 if ac_fn_cxx_try_compile
"$LINENO"; then :
11190 eval "gcc_cv_have_decl_$ac_func=yes"
11192 eval "gcc_cv_have_decl_$ac_func=no"
11194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11197 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11199 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11200 #define $ac_tr_decl 1
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11206 #define $ac_tr_decl 0
11214 for ac_func
in sigaltstack
11216 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11218 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11219 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11220 $as_echo_n "(cached) " >&6
11222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11225 #define $ac_tr_decl 1
11227 #include "ansidecl.h"
11228 #include "system.h"
11229 #include <signal.h>
11236 char *(*pfn) = (char *(*)) $ac_func ;
11242 if ac_fn_cxx_try_compile
"$LINENO"; then :
11243 eval "gcc_cv_have_decl_$ac_func=yes"
11245 eval "gcc_cv_have_decl_$ac_func=no"
11247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11250 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11252 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11253 #define $ac_tr_decl 1
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11259 #define $ac_tr_decl 0
11267 # More time-related stuff.
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11269 $as_echo_n "checking for struct tms... " >&6; }
11270 if test "${ac_cv_struct_tms+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11277 #include "ansidecl.h"
11278 #include "system.h"
11279 #ifdef HAVE_SYS_TIMES_H
11280 #include <sys/times.h>
11291 if ac_fn_cxx_try_compile
"$LINENO"; then :
11292 ac_cv_struct_tms
=yes
11294 ac_cv_struct_tms
=no
11296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11299 $as_echo "$ac_cv_struct_tms" >&6; }
11300 if test $ac_cv_struct_tms = yes; then
11302 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11306 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11307 # revisit after autoconf 2.50.
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11309 $as_echo_n "checking for clock_t... " >&6; }
11310 if test "${gcc_cv_type_clock_t+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11317 #include "ansidecl.h"
11318 #include "system.h"
11328 if ac_fn_cxx_try_compile
"$LINENO"; then :
11329 gcc_cv_type_clock_t
=yes
11331 gcc_cv_type_clock_t
=no
11333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11336 $as_echo "$gcc_cv_type_clock_t" >&6; }
11337 if test $gcc_cv_type_clock_t = yes; then
11339 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11343 # Check if F_SETLKW is supported by fcntl.
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11345 $as_echo_n "checking for F_SETLKW... " >&6; }
11346 if test "${ac_cv_f_setlkw+set}" = set; then :
11347 $as_echo_n "(cached) " >&6
11350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h. */
11363 return fcntl (1, F_SETLKW, &fl);
11368 if ac_fn_cxx_try_compile
"$LINENO"; then :
11373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11376 $as_echo "$ac_cv_f_setlkw" >&6; }
11377 if test $ac_cv_f_setlkw = yes; then
11379 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11383 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11384 CFLAGS
="$saved_CFLAGS"
11385 CXXFLAGS
="$saved_CXXFLAGS"
11387 # mkdir takes a single argument on some systems.
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11389 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11390 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11391 $as_echo_n "(cached) " >&6
11393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11396 #include <sys/types.h>
11397 #ifdef HAVE_SYS_STAT_H
11398 # include <sys/stat.h>
11400 #ifdef HAVE_UNISTD_H
11401 # include <unistd.h>
11403 #ifdef HAVE_DIRECT_H
11404 # include <direct.h>
11414 if ac_fn_cxx_try_compile
"$LINENO"; then :
11415 gcc_cv_mkdir_takes_one_arg
=no
11417 gcc_cv_mkdir_takes_one_arg
=yes
11419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11422 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11423 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11425 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11436 # With Setjmp/Longjmp based exception handling.
11437 # Check whether --enable-sjlj-exceptions was given.
11438 if test "${enable_sjlj_exceptions+set}" = set; then :
11439 enableval
=$enable_sjlj_exceptions; case $target in
11441 if test $enableval != yes; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11443 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11448 force_sjlj_exceptions
=yes
11452 force_sjlj_exceptions
=yes
11456 force_sjlj_exceptions
=yes
11460 force_sjlj_exceptions
=no
11465 if test $force_sjlj_exceptions = yes; then
11466 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11468 cat >>confdefs.h
<<_ACEOF
11469 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11474 # --------------------------------------------------------
11475 # Build, host, and target specific configuration fragments
11476 # --------------------------------------------------------
11478 # Collect build-machine-specific information.
11479 .
${srcdir}/config.build
11481 # Collect host-machine-specific information.
11482 .
${srcdir}/config.
host
11486 # Collect target-machine-specific information.
11487 .
${srcdir}/config.gcc
11489 extra_objs
="${host_extra_objs} ${extra_objs}"
11490 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11492 # Default the target-machine variables that were not explicitly set.
11493 if test x
"$tm_file" = x
11494 then tm_file
=$cpu_type/$cpu_type.h
; fi
11496 if test x
"$extra_headers" = x
11497 then extra_headers
=; fi
11499 if test x
$md_file = x
11500 then md_file
=$cpu_type/$cpu_type.md
; fi
11502 if test x
$out_file = x
11503 then out_file
=$cpu_type/$cpu_type.c
; fi
11505 if test x
"$tmake_file" = x
11506 then tmake_file
=$cpu_type/t-
$cpu_type
11509 # Support --enable-initfini-array.
11510 if test x
$enable_initfini_array != xno
; then
11511 tm_file
="${tm_file} initfini-array.h"
11514 if test x
"$dwarf2" = xyes
11515 then tm_file
="$tm_file tm-dwarf2.h"
11518 # Say what files are being used for the output code and MD file.
11519 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11520 echo "Using \`$srcdir/config/$md_file' as machine description file."
11522 # If any of the xm_file variables contain nonexistent files, warn
11523 # about them and drop them.
11526 for x
in $build_xm_file; do
11527 if test -f $srcdir/config
/$x
11529 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11530 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11533 build_xm_file
="$bx"
11536 for x
in $host_xm_file; do
11537 if test -f $srcdir/config
/$x
11539 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11540 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11546 for x
in $xm_file; do
11547 if test -f $srcdir/config
/$x
11549 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11550 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11556 for f
in $tm_file; do
11559 if test $count = ax
; then
11560 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11562 echo "Using the following target machine macro files:"
11563 for f
in $tm_file; do
11564 echo " $srcdir/config/$f"
11568 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11570 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11574 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11576 cat >>confdefs.h
<<_ACEOF
11577 #define HAVE_GNU_LD $gnu_ld_bool
11581 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11583 cat >>confdefs.h
<<_ACEOF
11584 #define HAVE_GNU_AS $gnu_as_bool
11589 for f
in $host_xm_file; do
11592 if test $count = a
; then
11594 elif test $count = ax
; then
11595 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11597 echo "Using the following host machine macro files:"
11598 for f
in $host_xm_file; do
11599 echo " $srcdir/config/$f"
11602 echo "Using ${out_host_hook_obj} for host machine hooks."
11604 if test "$host_xm_file" != "$build_xm_file"; then
11606 for f
in $build_xm_file; do
11609 if test $count = a
; then
11611 elif test $count = ax
; then
11612 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11614 echo "Using the following build machine macro files:"
11615 for f
in $build_xm_file; do
11616 echo " $srcdir/config/$f"
11621 if test -n "$configured_native_system_header_dir"; then
11622 native_system_header_dir
=$configured_native_system_header_dir
11624 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11628 powerpc
*-*-darwin*)
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11630 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11631 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
11634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11635 /* end confdefs.h. */
11637 #include <sys/cdefs.h>
11638 #include <sys/signal.h>
11639 #include <ucontext.h>
11640 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11643 if ac_fn_cxx_try_compile
"$LINENO"; then :
11644 gcc_cv_mcontext_underscores
=no
11646 gcc_cv_mcontext_underscores
=yes
11648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11651 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11652 if test $gcc_cv_mcontext_underscores = yes; then
11654 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11664 # Check if a valid thread package
11665 case ${enable_threads} in
11668 target_thread_file
='single'
11672 target_thread_file
='single'
11674 aix | dce | lynx | mipssde | posix | rtems | \
11675 single | tpf | vxworks | win32
)
11676 target_thread_file
=${enable_threads}
11679 echo "${enable_threads} is an unknown thread package" 1>&2
11684 if test x
${thread_file} = x
; then
11685 # No thread file set by target-specific clauses in config.gcc,
11686 # so use file chosen by default logic above
11687 thread_file
=${target_thread_file}
11695 if test x
$enable___cxa_atexit = xyes || \
11696 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11697 if test x
$host = x
$target; then
11699 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11700 # keyed to flag_use_cxa_atexit
11708 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11709 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11712 echo "__cxa_atexit can't be enabled on this target"
11718 # We can't check for __cxa_atexit when building a cross, so assume
11722 if test x
$use_cxa_atexit = xyes
; then
11724 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11729 # Look for a file containing extra machine modes.
11730 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11731 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11734 cat >>confdefs.h
<<_ACEOF
11735 #define EXTRA_MODES_FILE "config/$extra_modes"
11740 # Convert extra_options into a form suitable for Makefile use.
11743 for f
in $extra_options; do
11744 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11745 all_opt_files
="$all_opt_files $srcdir/config/$f"
11749 # auto-host.h is the file containing items generated by autoconf and is
11750 # the first file included by config.h.
11751 # If host=build, it is correct to have bconfig include auto-host.h
11752 # as well. If host!=build, we are in error and need to do more
11753 # work to find out the build config parameters.
11754 if test x
$host = x
$build
11756 build_auto
=auto-host.h
11758 # We create a subdir, then run autoconf in the subdir.
11759 # To prevent recursion we set host and build for the new
11760 # invocation of configure to the build for this invocation
11767 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11768 *) realsrcdir
=..
/${srcdir};;
11770 # Clearing GMPINC is necessary to prevent host headers being
11771 # used by the build compiler. Defining GENERATOR_FILE stops
11772 # system.h from including gmp.h.
11773 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11774 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11775 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11776 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11777 ${realsrcdir}/configure \
11778 --enable-languages=${enable_languages-all} \
11779 --target=$target_alias --host=$build_alias --build=$build_alias
11781 # We just finished tests for the build machine, so rename
11782 # the file auto-build.h in the gcc directory.
11783 mv auto-host.h ..
/auto-build.h
11786 build_auto
=auto-build.h
11790 tm_file
="${tm_file} defaults.h"
11791 tm_p_file
="${tm_p_file} tm-preds.h"
11792 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11793 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11794 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11795 # put this back in temporarily.
11796 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11802 # Compile in configure arguments.
11803 if test -f configargs.h
; then
11804 # Being re-configured.
11805 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11806 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11808 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11811 # Double all backslashes and backslash all quotes to turn
11812 # gcc_config_arguments into a C string.
11813 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11814 $gcc_config_arguments
11816 gcc_config_arguments_str
=`cat conftest.out`
11819 cat > configargs.h
<<EOF
11820 /* Generated automatically. */
11821 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11822 static const char thread_model[] = "$thread_file";
11824 static const struct {
11825 const char *name, *value;
11826 } configure_default_options[] = $configure_default_options;
11829 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11830 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11831 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11832 if test -f $srcdir/REVISION
; then
11833 gcc_REVISION
=`cat $srcdir/REVISION`
11837 cat > plugin-version.h
<<EOF
11838 #include "configargs.h"
11840 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11841 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11842 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11843 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11845 static char basever[] = "$gcc_BASEVER";
11846 static char datestamp[] = "$gcc_DATESTAMP";
11847 static char devphase[] = "$gcc_DEVPHASE";
11848 static char revision[] = "$gcc_REVISION";
11850 /* FIXME plugins: We should make the version information more precise.
11851 One way to do is to add a checksum. */
11853 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11854 devphase, revision,
11855 configuration_arguments};
11858 # Internationalization
11859 # If we haven't got the data from the intl directory,
11860 # assume NLS is disabled.
11869 if test -f ..
/intl
/config.intl
; then
11870 . ..
/intl
/config.intl
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11873 $as_echo_n "checking whether NLS is requested... " >&6; }
11874 if test x
"$USE_NLS" != xyes
; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876 $as_echo "no" >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879 $as_echo "yes" >&6; }
11881 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11885 $as_echo_n "checking for catalogs to be installed... " >&6; }
11886 # Look for .po and .gmo files in the source directory.
11889 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11890 # If there aren't any .gmo files the shell will give us the
11891 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11893 case "$cat" in *\
**)
11896 # The quadruple backslash is collapsed to a double backslash
11897 # by the backticks, then collapsed again by the double quotes,
11898 # leaving us with one backslash in the sed expression (right
11899 # before the dot that mustn't act as a wildcard).
11900 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11901 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11902 # The user is allowed to set LINGUAS to a list of languages to
11903 # install catalogs for. If it's empty that means "all of them."
11904 if test "x$LINGUAS" = x
; then
11905 CATALOGS
="$CATALOGS $cat"
11906 XLINGUAS
="$XLINGUAS $lang"
11908 case "$LINGUAS" in *$lang*)
11909 CATALOGS
="$CATALOGS $cat"
11910 XLINGUAS
="$XLINGUAS $lang"
11915 LINGUAS
="$XLINGUAS"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11917 $as_echo "$LINGUAS" >&6; }
11930 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11931 # -liconv on the link line twice.
11932 case "$LIBINTL" in *$LIBICONV*)
11936 # Check whether --enable-secureplt was given.
11937 if test "${enable_secureplt+set}" = set; then :
11938 enableval
=$enable_secureplt;
11942 # Check whether --enable-leading-mingw64-underscores was given.
11943 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11944 enableval
=$enable_leading_mingw64_underscores;
11947 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11949 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11953 # Check whether --enable-cld was given.
11954 if test "${enable_cld+set}" = set; then :
11955 enableval
=$enable_cld;
11961 # Check whether --enable-frame-pointer was given.
11962 if test "${enable_frame_pointer+set}" = set; then :
11963 enableval
=$enable_frame_pointer;
11967 linux
* | darwin
[8912]*)
11968 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11970 enable_frame_pointer
=no
11973 enable_frame_pointer
=yes
11980 # Windows32 Registry support for specifying GCC installation paths.
11981 # Check whether --enable-win32-registry was given.
11982 if test "${enable_win32_registry+set}" = set; then :
11983 enableval
=$enable_win32_registry;
11988 win32 | pe | cygwin
* | mingw32
*)
11989 if test "x$enable_win32_registry" != xno
; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11991 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11992 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11993 $as_echo_n "(cached) " >&6
11995 ac_func_search_save_LIBS
=$LIBS
11996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11999 /* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
12005 char RegOpenKeyExA ();
12009 return RegOpenKeyExA ();
12014 for ac_lib
in '' advapi32
; do
12015 if test -z "$ac_lib"; then
12016 ac_res
="none required"
12019 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12021 if ac_fn_cxx_try_link
"$LINENO"; then :
12022 ac_cv_search_RegOpenKeyExA
=$ac_res
12024 rm -f core conftest.err conftest.
$ac_objext \
12026 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12030 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12033 ac_cv_search_RegOpenKeyExA
=no
12035 rm conftest.
$ac_ext
12036 LIBS
=$ac_func_search_save_LIBS
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12039 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12040 ac_res
=$ac_cv_search_RegOpenKeyExA
12041 if test "$ac_res" != no
; then :
12042 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12045 enable_win32_registry
=no
12050 if test "x$enable_win32_registry" != xno
; then
12052 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12055 if test "x$enable_win32_registry" != xyes \
12056 && test "x$enable_win32_registry" != x
; then
12058 cat >>confdefs.h
<<_ACEOF
12059 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12067 # Get an absolute path to the GCC top-level source directory
12068 holddir
=`${PWDCMD-pwd}`
12070 topdir
=`${PWDCMD-pwd}`
12073 # Conditionalize the makefile for this host machine.
12075 for f
in ${host_xmake_file}
12077 if test -f ${srcdir}/config
/$f
12079 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12083 # Conditionalize the makefile for this target machine.
12085 for f
in ${tmake_file}
12087 if test -f ${srcdir}/config
/$f
12089 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12092 tmake_file
="${tmake_file_}"
12094 out_object_file
=`basename $out_file .c`.o
12095 common_out_object_file
=`basename $common_out_file .c`.o
12097 tm_file_list
="options.h"
12098 tm_include_list
="options.h insn-constants.h"
12099 for f
in $tm_file; do
12102 f
=`echo $f | sed 's/^..//'`
12103 tm_file_list
="${tm_file_list} $f"
12104 tm_include_list
="${tm_include_list} $f"
12107 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12108 tm_include_list
="${tm_include_list} $f"
12111 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12112 tm_include_list
="${tm_include_list} config/$f"
12119 for f
in $tm_p_file; do
12122 tm_p_file_list
="${tm_p_file_list} $f"
12123 tm_p_include_list
="${tm_p_include_list} $f"
12126 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12127 tm_p_include_list
="${tm_p_include_list} config/$f"
12133 for f
in $xm_file; do
12136 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12137 xm_include_list
="${xm_include_list} $f"
12140 xm_file_list
="${xm_file_list} $f"
12141 xm_include_list
="${xm_include_list} $f"
12144 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12145 xm_include_list
="${xm_include_list} config/$f"
12151 host_xm_include_list
=
12152 for f
in $host_xm_file; do
12155 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12156 host_xm_include_list
="${host_xm_include_list} $f"
12159 host_xm_file_list
="${host_xm_file_list} $f"
12160 host_xm_include_list
="${host_xm_include_list} $f"
12163 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12164 host_xm_include_list
="${host_xm_include_list} config/$f"
12169 build_xm_file_list
=
12170 for f
in $build_xm_file; do
12173 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12174 build_xm_include_list
="${build_xm_include_list} $f"
12176 auto-build.h | auto-host.h
)
12177 build_xm_file_list
="${build_xm_file_list} $f"
12178 build_xm_include_list
="${build_xm_include_list} $f"
12181 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12182 build_xm_include_list
="${build_xm_include_list} config/$f"
12187 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12188 # cross-compiler which does not use the native headers and libraries.
12189 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12192 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12194 if test "x$with_build_sysroot" != x
; then
12195 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12197 # This value is used, even on a native system, because
12198 # CROSS_SYSTEM_HEADER_DIR is just
12199 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12200 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12203 if test x
$host != x
$target
12205 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12207 SYSTEM_HEADER_DIR
=$build_system_header_dir
12208 case "$host","$target" in
12209 # Darwin crosses can use the host system's libraries and headers,
12210 # because of the fat library support. Of course, it must be the
12211 # same version of Darwin on both sides. Allow the user to
12212 # just say --target=foo-darwin without a version number to mean
12213 # "the version on this system".
12214 *-*-darwin*,*-*-darwin*)
12215 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12216 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12217 if test $hostos = $targetos -o $targetos = darwin
; then
12219 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12224 i?
86-*-*,x86_64-
*-* \
12225 | powerpc
*-*-*,powerpc64
*-*-*)
12226 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12231 if test "x$with_headers" = x
; then
12238 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12239 SYSTEM_HEADER_DIR
=$build_system_header_dir
12242 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
12243 if test "x$with_headers" != x
&& test "x$with_headers" != xyes
; then
12244 target_header_dir
=$with_headers
12245 elif test "x$with_sysroot" = x
; then
12246 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12247 elif test "x$with_build_sysroot" != "x"; then
12248 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12249 elif test "x$with_sysroot" = xyes
; then
12250 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12252 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12255 target_header_dir
=${native_system_header_dir}
12258 # If this is a cross-compiler that does not
12259 # have its own set of headers then define
12262 # If this is using newlib, without having the headers available now,
12263 # then define inhibit_libc in LIBGCC2_CFLAGS.
12264 # This prevents libgcc2 from containing any code which requires libc
12266 : ${inhibit_libc=false}
12267 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12268 test x
$with_newlib = xyes
; } &&
12269 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12274 # When building gcc with a cross-compiler, we need to adjust things so
12275 # that the generator programs are still built with the native compiler.
12276 # Also, we cannot run fixincludes.
12278 # These are the normal (build=host) settings:
12279 CC_FOR_BUILD
='$(CC)'
12280 CXX_FOR_BUILD
='$(CXX)'
12281 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12282 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12283 BUILD_LDFLAGS
='$(LDFLAGS)'
12284 STMP_FIXINC
=stmp-fixinc
12286 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12287 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12289 # And these apply if build != host, or we are generating coverage data
12290 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12292 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12293 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12294 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12296 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12297 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12298 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12299 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12304 # Expand extra_headers to include complete path.
12305 # This substitutes for lots of t-* files.
12306 extra_headers_list
=
12307 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12308 for file in ${extra_headers} ; do
12309 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12312 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12313 if test x
"$use_gcc_tgmath" = xyes
12314 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12317 # Define collect2 in Makefile.
12318 case $host_can_use_collect2 in
12320 *) collect2
='collect2$(exeext)' ;;
12324 # Add a definition of USE_COLLECT2 if system wants one.
12325 case $use_collect2 in
12326 no
) use_collect2
= ;;
12329 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12330 xm_defines
="${xm_defines} USE_COLLECT2"
12331 case $host_can_use_collect2 in
12333 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12340 cat >>confdefs.h
<<_ACEOF
12341 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12345 # ---------------------------
12346 # Assembler & linker features
12347 # ---------------------------
12349 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12350 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12351 # However when ld-new is first executed from the build tree, libtool will
12352 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12353 # to the build tree. While doing this we need to use the previous-stage
12354 # linker, or we have an infinite loop. The presence of a shell script as
12355 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12356 # the gcc/collect-ld script. So we need to know how libtool works, or
12357 # exec-tool will fail.
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12363 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12368 macro_version
='2.2.7a'
12369 macro_revision
='1.3134'
12383 ltmain
="$ac_aux_dir/ltmain.sh"
12385 # Backslashify metacharacters that are still active within
12386 # double-quoted strings.
12387 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12389 # Same as above, but do not quote variable references.
12390 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12392 # Sed substitution to delay expansion of an escaped shell variable in a
12393 # double_quote_subst'ed string.
12394 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12396 # Sed substitution to delay expansion of an escaped single quote.
12397 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12399 # Sed substitution to avoid accidental globbing in evaled expressions
12400 no_glob_subst
='s/\*/\\\*/g'
12402 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12403 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12404 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12407 $as_echo_n "checking how to print strings... " >&6; }
12408 # Test print first, because it will be a builtin if present.
12409 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12410 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12412 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12415 # Use this function as a fallback that always works.
12416 func_fallback_echo ()
12418 eval 'cat <<_LTECHO_EOF
12422 ECHO='func_fallback_echo
'
12425 # func_echo_all arg...
12426 # Invoke $ECHO with all args, space-separated.
12433 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12434 $as_echo "printf" >&6; } ;;
12435 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12436 $as_echo "print -r" >&6; } ;;
12437 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12438 $as_echo "cat" >&6; } ;;
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12455 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12456 if test "${ac_cv_path_SED+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12459 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12460 for ac_i in 1 2 3 4 5 6 7; do
12461 ac_script="$ac_script$as_nl$ac_script"
12463 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12464 { ac_script=; unset ac_script;}
12465 if test -z "$SED"; then
12466 ac_path_SED_found=false
12467 # Loop through the user's path and
test for each of PROGNAME-LIST
12468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12469 for as_dir
in $PATH
12472 test -z "$as_dir" && as_dir
=.
12473 for ac_prog
in sed gsed
; do
12474 for ac_exec_ext
in '' $ac_executable_extensions; do
12475 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12476 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12477 # Check for GNU ac_path_SED and select it if it is found.
12478 # Check for GNU $ac_path_SED
12479 case `"$ac_path_SED" --version 2>&1` in
12481 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12484 $as_echo_n 0123456789 >"conftest.in"
12487 cat "conftest.in" "conftest.in" >"conftest.tmp"
12488 mv "conftest.tmp" "conftest.in"
12489 cp "conftest.in" "conftest.nl"
12490 $as_echo '' >> "conftest.nl"
12491 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12492 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12493 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12494 if test $ac_count -gt ${ac_path_SED_max-0}; then
12495 # Best one so far, save it but keep looking for a better one
12496 ac_cv_path_SED
="$ac_path_SED"
12497 ac_path_SED_max
=$ac_count
12499 # 10*(2^10) chars as input seems more than enough
12500 test $ac_count -gt 10 && break
12502 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12505 $ac_path_SED_found && break 3
12510 if test -z "$ac_cv_path_SED"; then
12511 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12514 ac_cv_path_SED
=$SED
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12519 $as_echo "$ac_cv_path_SED" >&6; }
12520 SED
="$ac_cv_path_SED"
12523 test -z "$SED" && SED
=sed
12524 Xsed
="$SED -e 1s/^X//"
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12537 $as_echo_n "checking for fgrep... " >&6; }
12538 if test "${ac_cv_path_FGREP+set}" = set; then :
12539 $as_echo_n "(cached) " >&6
12541 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12542 then ac_cv_path_FGREP
="$GREP -F"
12544 if test -z "$FGREP"; then
12545 ac_path_FGREP_found
=false
12546 # Loop through the user's path and test for each of PROGNAME-LIST
12547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12548 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12551 test -z "$as_dir" && as_dir
=.
12552 for ac_prog
in fgrep
; do
12553 for ac_exec_ext
in '' $ac_executable_extensions; do
12554 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12555 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12556 # Check for GNU ac_path_FGREP and select it if it is found.
12557 # Check for GNU $ac_path_FGREP
12558 case `"$ac_path_FGREP" --version 2>&1` in
12560 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12563 $as_echo_n 0123456789 >"conftest.in"
12566 cat "conftest.in" "conftest.in" >"conftest.tmp"
12567 mv "conftest.tmp" "conftest.in"
12568 cp "conftest.in" "conftest.nl"
12569 $as_echo 'FGREP' >> "conftest.nl"
12570 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12571 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12572 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12573 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12574 # Best one so far, save it but keep looking for a better one
12575 ac_cv_path_FGREP
="$ac_path_FGREP"
12576 ac_path_FGREP_max
=$ac_count
12578 # 10*(2^10) chars as input seems more than enough
12579 test $ac_count -gt 10 && break
12581 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12584 $ac_path_FGREP_found && break 3
12589 if test -z "$ac_cv_path_FGREP"; then
12590 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12593 ac_cv_path_FGREP
=$FGREP
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12599 $as_echo "$ac_cv_path_FGREP" >&6; }
12600 FGREP
="$ac_cv_path_FGREP"
12603 test -z "$GREP" && GREP
=grep
12623 # Check whether --with-gnu-ld was given.
12624 if test "${with_gnu_ld+set}" = set; then :
12625 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12631 if test "$GCC" = yes; then
12632 # Check if gcc -print-prog-name=ld gives a path.
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12634 $as_echo_n "checking for ld used by $CC... " >&6; }
12637 # gcc leaves a trailing carriage return which upsets mingw
12638 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12640 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12643 # Accept absolute paths.
12645 re_direlt
='/[^/][^/]*/\.\./'
12646 # Canonicalize the pathname of ld
12647 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12648 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12649 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12651 test -z "$LD" && LD
="$ac_prog"
12654 # If it fails, then pretend we aren't using GCC.
12658 # If it is relative, then search for the first ld in PATH.
12659 with_gnu_ld
=unknown
12662 elif test "$with_gnu_ld" = yes; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12664 $as_echo_n "checking for GNU ld... " >&6; }
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12667 $as_echo_n "checking for non-GNU ld... " >&6; }
12669 if test "${lt_cv_path_LD+set}" = set; then :
12670 $as_echo_n "(cached) " >&6
12672 if test -z "$LD"; then
12673 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12674 for ac_dir
in $PATH; do
12676 test -z "$ac_dir" && ac_dir
=.
12677 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12678 lt_cv_path_LD
="$ac_dir/$ac_prog"
12679 # Check to see if the program is GNU ld. I'd rather use --version,
12680 # but apparently some variants of GNU ld only accept -v.
12681 # Break only if it was the GNU/non-GNU ld that we prefer.
12682 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12683 *GNU
* |
*'with BFD'*)
12684 test "$with_gnu_ld" != no
&& break
12687 test "$with_gnu_ld" != yes && break
12694 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12698 LD
="$lt_cv_path_LD"
12699 if test -n "$LD"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12701 $as_echo "$LD" >&6; }
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12706 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12708 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12709 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12710 $as_echo_n "(cached) " >&6
12712 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12713 case `$LD -v 2>&1 </dev/null` in
12714 *GNU
* |
*'with BFD'*)
12715 lt_cv_prog_gnu_ld
=yes
12718 lt_cv_prog_gnu_ld
=no
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12723 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12724 with_gnu_ld
=$lt_cv_prog_gnu_ld
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12735 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12736 if test "${lt_cv_path_NM+set}" = set; then :
12737 $as_echo_n "(cached) " >&6
12739 if test -n "$NM"; then
12740 # Let the user override the test.
12741 lt_cv_path_NM
="$NM"
12743 lt_nm_to_check
="${ac_tool_prefix}nm"
12744 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12745 lt_nm_to_check
="$lt_nm_to_check nm"
12747 for lt_tmp_nm
in $lt_nm_to_check; do
12748 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12749 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12751 test -z "$ac_dir" && ac_dir
=.
12752 tmp_nm
="$ac_dir/$lt_tmp_nm"
12753 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12754 # Check to see if the nm accepts a BSD-compat flag.
12755 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12756 # nm: unknown option "B" ignored
12757 # Tru64's nm complains that /dev/null is an invalid object file
12758 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12759 */dev
/null
* |
*'Invalid file or object type'*)
12760 lt_cv_path_NM
="$tmp_nm -B"
12764 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12766 lt_cv_path_NM
="$tmp_nm -p"
12770 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12771 continue # so that we can try to find one that supports BSD flags
12780 : ${lt_cv_path_NM=no}
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12784 $as_echo "$lt_cv_path_NM" >&6; }
12785 if test "$lt_cv_path_NM" != "no"; then
12786 NM
="$lt_cv_path_NM"
12788 # Didn't find any BSD compatible name lister, look for dumpbin.
12789 if test -n "$DUMPBIN"; then :
12790 # Let the user override the test.
12792 if test -n "$ac_tool_prefix"; then
12793 for ac_prog
in dumpbin
"link -dump"
12795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12796 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12798 $as_echo_n "checking for $ac_word... " >&6; }
12799 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12800 $as_echo_n "(cached) " >&6
12802 if test -n "$DUMPBIN"; then
12803 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12806 for as_dir
in $PATH
12809 test -z "$as_dir" && as_dir
=.
12810 for ac_exec_ext
in '' $ac_executable_extensions; do
12811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12812 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 DUMPBIN
=$ac_cv_prog_DUMPBIN
12823 if test -n "$DUMPBIN"; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12825 $as_echo "$DUMPBIN" >&6; }
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 $as_echo "no" >&6; }
12832 test -n "$DUMPBIN" && break
12835 if test -z "$DUMPBIN"; then
12836 ac_ct_DUMPBIN
=$DUMPBIN
12837 for ac_prog
in dumpbin
"link -dump"
12839 # Extract the first word of "$ac_prog", so it can be a program name with args.
12840 set dummy
$ac_prog; ac_word
=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 $as_echo_n "checking for $ac_word... " >&6; }
12843 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
12846 if test -n "$ac_ct_DUMPBIN"; then
12847 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12850 for as_dir
in $PATH
12853 test -z "$as_dir" && as_dir
=.
12854 for ac_exec_ext
in '' $ac_executable_extensions; do
12855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12856 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12866 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12867 if test -n "$ac_ct_DUMPBIN"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12869 $as_echo "$ac_ct_DUMPBIN" >&6; }
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12876 test -n "$ac_ct_DUMPBIN" && break
12879 if test "x$ac_ct_DUMPBIN" = x
; then
12882 case $cross_compiling:$ac_tool_warned in
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12886 ac_tool_warned
=yes ;;
12888 DUMPBIN
=$ac_ct_DUMPBIN
12892 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12894 DUMPBIN
="$DUMPBIN -symbols"
12902 if test "$DUMPBIN" != ":"; then
12906 test -z "$NM" && NM
=nm
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12914 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12915 if test "${lt_cv_nm_interface+set}" = set; then :
12916 $as_echo_n "(cached) " >&6
12918 lt_cv_nm_interface
="BSD nm"
12919 echo "int some_variable = 0;" > conftest.
$ac_ext
12920 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12921 (eval "$ac_compile" 2>conftest.err
)
12922 cat conftest.err
>&5
12923 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12924 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12925 cat conftest.err
>&5
12926 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12927 cat conftest.out
>&5
12928 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12929 lt_cv_nm_interface
="MS dumpbin"
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12934 $as_echo "$lt_cv_nm_interface" >&6; }
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12937 $as_echo_n "checking whether ln -s works... " >&6; }
12939 if test "$LN_S" = "ln -s"; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12941 $as_echo "yes" >&6; }
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12944 $as_echo "no, using $LN_S" >&6; }
12947 # find the maximum length of command line arguments
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12949 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12950 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12951 $as_echo_n "(cached) " >&6
12958 # On DJGPP, this test can blow up pretty badly due to problems in libc
12959 # (any single argument exceeding 2000 bytes causes a buffer overrun
12960 # during glob expansion). Even if it were fixed, the result of this
12961 # check would be larger than it should be.
12962 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12966 # Under GNU Hurd, this test is not required because there is
12967 # no limit to the length of command line arguments.
12968 # Libtool will interpret -1 as no limit whatsoever
12969 lt_cv_sys_max_cmd_len
=-1;
12972 cygwin
* | mingw
* | cegcc
*)
12973 # On Win9x/ME, this test blows up -- it succeeds, but takes
12974 # about 5 minutes as the teststring grows exponentially.
12975 # Worse, since 9x/ME are not pre-emptively multitasking,
12976 # you end up with a "frozen" computer, even though with patience
12977 # the test eventually succeeds (with a max line length of 256k).
12978 # Instead, let's just punt: use the minimum linelength reported by
12979 # all of the supported platforms: 8192 (on NT/2K/XP).
12980 lt_cv_sys_max_cmd_len
=8192;
12984 # On MiNT this can take a long time and run out of memory.
12985 lt_cv_sys_max_cmd_len
=8192;
12989 # On AmigaOS with pdksh, this test takes hours, literally.
12990 # So we just punt and use a minimum line length of 8192.
12991 lt_cv_sys_max_cmd_len
=8192;
12994 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12995 # This has been around since 386BSD, at least. Likely further.
12996 if test -x /sbin
/sysctl
; then
12997 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12998 elif test -x /usr
/sbin
/sysctl
; then
12999 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13001 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13003 # And add a safety zone
13004 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13005 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13009 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13010 lt_cv_sys_max_cmd_len
=196608
13014 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13015 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13016 # nice to cause kernel panics so lets avoid the loop below.
13017 # First set a reasonable default.
13018 lt_cv_sys_max_cmd_len
=16384
13020 if test -x /sbin
/sysconfig
; then
13021 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13022 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13027 lt_cv_sys_max_cmd_len
=102400
13029 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13030 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13031 if test -n "$kargmax"; then
13032 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13034 lt_cv_sys_max_cmd_len
=32768
13038 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13039 if test -n "$lt_cv_sys_max_cmd_len"; then
13040 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13041 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13043 # Make teststring a little bigger before we do anything with it.
13044 # a 1K string should be a reasonable start.
13045 for i
in 1 2 3 4 5 6 7 8 ; do
13046 teststring
=$teststring$teststring
13048 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13049 # If test is not a shell built-in, we'll probably end up computing a
13050 # maximum length that is only half of the actual maximum length, but
13052 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13053 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13054 test $i != 17 # 1/2 MB should be enough
13057 teststring
=$teststring$teststring
13059 # Only check the string length outside the loop.
13060 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13062 # Add a significant safety factor because C++ compilers can tack on
13063 # massive amounts of additional arguments before passing them to the
13064 # linker. It appears as though 1/2 is a usable value.
13065 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13072 if test -n $lt_cv_sys_max_cmd_len ; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13074 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13077 $as_echo "none" >&6; }
13079 max_cmd_len
=$lt_cv_sys_max_cmd_len
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13091 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13092 # Try some XSI features
13094 ( _lt_dummy
="a/b/c"
13095 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13097 && eval 'test $(( 1 + 1 )) -eq 2 \
13098 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13101 $as_echo "$xsi_shell" >&6; }
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13105 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13107 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13109 && lt_shell_append=yes
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13111 $as_echo "$lt_shell_append" >&6; }
13114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13124 # test EBCDIC or ASCII
13125 case `echo X|tr X '\101'` in
13126 A) # ASCII based system
13127 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13128 lt_SP2NL='tr \040 \012'
13129 lt_NL2SP='tr \015\012 \040\040'
13131 *) # EBCDIC based system
13132 lt_SP2NL='tr \100 \n'
13133 lt_NL2SP='tr \r\n \100\100'
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13146 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13147 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13148 $as_echo_n "(cached
) " >&6
13150 lt_cv_ld_reload_flag='-r'
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13153 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13154 reload_flag=$lt_cv_ld_reload_flag
13155 case $reload_flag in
13157 *) reload_flag=" $reload_flag" ;;
13159 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13162 if test "$GCC" = yes; then
13163 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13165 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13178 if test -n "$ac_tool_prefix"; then
13179 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13180 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13182 $as_echo_n "checking
for $ac_word...
" >&6; }
13183 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13184 $as_echo_n "(cached
) " >&6
13186 if test -n "$OBJDUMP"; then
13187 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13196 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13206 OBJDUMP=$ac_cv_prog_OBJDUMP
13207 if test -n "$OBJDUMP"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13209 $as_echo "$OBJDUMP" >&6; }
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13212 $as_echo "no
" >&6; }
13217 if test -z "$ac_cv_prog_OBJDUMP"; then
13218 ac_ct_OBJDUMP=$OBJDUMP
13219 # Extract the first word of "objdump
", so it can be a program name with args.
13220 set dummy objdump; ac_word=$2
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13222 $as_echo_n "checking
for $ac_word...
" >&6; }
13223 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13224 $as_echo_n "(cached
) " >&6
13226 if test -n "$ac_ct_OBJDUMP"; then
13227 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230 for as_dir in $PATH
13233 test -z "$as_dir" && as_dir=.
13234 for ac_exec_ext in '' $ac_executable_extensions; do
13235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13236 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13237 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13246 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13247 if test -n "$ac_ct_OBJDUMP"; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13249 $as_echo "$ac_ct_OBJDUMP" >&6; }
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13252 $as_echo "no
" >&6; }
13255 if test "x
$ac_ct_OBJDUMP" = x; then
13258 case $cross_compiling:$ac_tool_warned in
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13261 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13262 ac_tool_warned=yes ;;
13264 OBJDUMP=$ac_ct_OBJDUMP
13267 OBJDUMP="$ac_cv_prog_OBJDUMP"
13270 test -z "$OBJDUMP" && OBJDUMP=objdump
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13281 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13282 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13283 $as_echo_n "(cached
) " >&6
13285 lt_cv_file_magic_cmd='$MAGIC_CMD'
13286 lt_cv_file_magic_test_file=
13287 lt_cv_deplibs_check_method='unknown'
13288 # Need to set the preceding variable on all platforms that support
13289 # interlibrary dependencies.
13290 # 'none' -- dependencies not supported.
13291 # `unknown' -- same as none, but documents that we really don't know.
13292 # 'pass_all' -- all dependencies passed with no checks.
13293 # 'test_compile' -- check by making test program.
13294 # 'file_magic [[regex]]' -- check by looking for files in library path
13295 # which responds to the $file_magic_cmd with a given extended regex.
13296 # If you have `file' or equivalent on your system and you're not sure
13297 # whether `pass_all' will *always* work, you probably want this one.
13301 lt_cv_deplibs_check_method=pass_all
13305 lt_cv_deplibs_check_method=pass_all
13309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13310 lt_cv_file_magic_cmd='/usr/bin/file -L'
13311 lt_cv_file_magic_test_file=/shlib/libc.so
13315 # func_win32_libid is a shell function defined in ltmain.sh
13316 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13317 lt_cv_file_magic_cmd='func_win32_libid'
13321 # Base MSYS/MinGW do not provide the 'file' command needed by
13322 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13323 # unless we find 'file', for example because we are cross-compiling.
13324 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13325 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13326 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13327 lt_cv_file_magic_cmd='func_win32_libid'
13329 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13330 lt_cv_file_magic_cmd='$OBJDUMP -f'
13335 # use the weaker test based on 'objdump'. See mingw*.
13336 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13337 lt_cv_file_magic_cmd='$OBJDUMP -f'
13340 darwin* | rhapsody*)
13341 lt_cv_deplibs_check_method=pass_all
13344 freebsd* | dragonfly*)
13345 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13348 # Not sure whether the presence of OpenBSD here was a mistake.
13349 # Let's accept both of them until this is cleared up.
13350 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13351 lt_cv_file_magic_cmd=/usr/bin/file
13352 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13356 lt_cv_deplibs_check_method=pass_all
13361 lt_cv_deplibs_check_method=pass_all
13365 lt_cv_deplibs_check_method=pass_all
13368 hpux10.20* | hpux11*)
13369 lt_cv_file_magic_cmd=/usr/bin/file
13372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13373 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13376 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]'
13377 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13387 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13391 irix5* | irix6* | nonstopux*)
13393 *-32|*"-32 ") libmagic=32-bit;;
13394 *-n32|*"-n32 ") libmagic=N32;;
13395 *-64|*"-64 ") libmagic=64-bit;;
13396 *) libmagic=never-match;;
13398 lt_cv_deplibs_check_method=pass_all
13401 # This must be Linux ELF.
13402 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13403 lt_cv_deplibs_check_method=pass_all
13407 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13416 lt_cv_file_magic_cmd=/usr/bin/file
13417 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13421 lt_cv_deplibs_check_method=pass_all
13425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13432 osf3* | osf4* | osf5*)
13433 lt_cv_deplibs_check_method=pass_all
13437 lt_cv_deplibs_check_method=pass_all
13441 lt_cv_deplibs_check_method=pass_all
13444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13445 lt_cv_deplibs_check_method=pass_all
13449 case $host_vendor in
13451 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]'
13452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13455 lt_cv_deplibs_check_method=pass_all
13458 lt_cv_file_magic_cmd='/bin/file'
13459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13462 lt_cv_file_magic_cmd='/bin/file'
13463 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13464 lt_cv_file_magic_test_file=/lib/libc.so
13467 lt_cv_deplibs_check_method=pass_all
13470 lt_cv_deplibs_check_method=pass_all
13476 lt_cv_deplibs_check_method=pass_all
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13482 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13483 file_magic_cmd=$lt_cv_file_magic_cmd
13484 deplibs_check_method=$lt_cv_deplibs_check_method
13485 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13498 if test -n "$ac_tool_prefix"; then
13499 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13500 set dummy ${ac_tool_prefix}ar; ac_word=$2
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13502 $as_echo_n "checking
for $ac_word...
" >&6; }
13503 if test "${ac_cv_prog_AR+set}" = set; then :
13504 $as_echo_n "(cached
) " >&6
13506 if test -n "$AR"; then
13507 ac_cv_prog_AR="$AR" # Let the user override the test.
13509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13510 for as_dir in $PATH
13513 test -z "$as_dir" && as_dir=.
13514 for ac_exec_ext in '' $ac_executable_extensions; do
13515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13516 ac_cv_prog_AR="${ac_tool_prefix}ar"
13517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13527 if test -n "$AR"; then
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13529 $as_echo "$AR" >&6; }
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13532 $as_echo "no
" >&6; }
13537 if test -z "$ac_cv_prog_AR"; then
13539 # Extract the first word of "ar", so it can be a program name with args.
13540 set dummy ar; ac_word=$2
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13542 $as_echo_n "checking
for $ac_word...
" >&6; }
13543 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13544 $as_echo_n "(cached
) " >&6
13546 if test -n "$ac_ct_AR"; then
13547 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13550 for as_dir in $PATH
13553 test -z "$as_dir" && as_dir=.
13554 for ac_exec_ext in '' $ac_executable_extensions; do
13555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13556 ac_cv_prog_ac_ct_AR="ar"
13557 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13566 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13567 if test -n "$ac_ct_AR"; then
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13569 $as_echo "$ac_ct_AR" >&6; }
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13572 $as_echo "no
" >&6; }
13575 if test "x
$ac_ct_AR" = x; then
13578 case $cross_compiling:$ac_tool_warned in
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13581 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13582 ac_tool_warned=yes ;;
13587 AR="$ac_cv_prog_AR"
13590 test -z "$AR" && AR=ar
13591 test -z "$AR_FLAGS" && AR_FLAGS=cru
13603 if test -n "$ac_tool_prefix"; then
13604 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13605 set dummy ${ac_tool_prefix}strip; ac_word=$2
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13607 $as_echo_n "checking
for $ac_word...
" >&6; }
13608 if test "${ac_cv_prog_STRIP+set}" = set; then :
13609 $as_echo_n "(cached
) " >&6
13611 if test -n "$STRIP"; then
13612 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615 for as_dir in $PATH
13618 test -z "$as_dir" && as_dir=.
13619 for ac_exec_ext in '' $ac_executable_extensions; do
13620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13621 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13622 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13631 STRIP=$ac_cv_prog_STRIP
13632 if test -n "$STRIP"; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13634 $as_echo "$STRIP" >&6; }
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13637 $as_echo "no
" >&6; }
13642 if test -z "$ac_cv_prog_STRIP"; then
13644 # Extract the first word of "strip
", so it can be a program name with args.
13645 set dummy strip; ac_word=$2
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13647 $as_echo_n "checking
for $ac_word...
" >&6; }
13648 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13649 $as_echo_n "(cached
) " >&6
13651 if test -n "$ac_ct_STRIP"; then
13652 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655 for as_dir in $PATH
13658 test -z "$as_dir" && as_dir=.
13659 for ac_exec_ext in '' $ac_executable_extensions; do
13660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13661 ac_cv_prog_ac_ct_STRIP="strip
"
13662 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13672 if test -n "$ac_ct_STRIP"; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13674 $as_echo "$ac_ct_STRIP" >&6; }
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13677 $as_echo "no
" >&6; }
13680 if test "x
$ac_ct_STRIP" = x; then
13683 case $cross_compiling:$ac_tool_warned in
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13686 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13687 ac_tool_warned=yes ;;
13692 STRIP="$ac_cv_prog_STRIP"
13695 test -z "$STRIP" && STRIP=:
13702 if test -n "$ac_tool_prefix"; then
13703 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13704 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13706 $as_echo_n "checking
for $ac_word...
" >&6; }
13707 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13708 $as_echo_n "(cached
) " >&6
13710 if test -n "$RANLIB"; then
13711 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13714 for as_dir in $PATH
13717 test -z "$as_dir" && as_dir=.
13718 for ac_exec_ext in '' $ac_executable_extensions; do
13719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13720 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13721 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13730 RANLIB=$ac_cv_prog_RANLIB
13731 if test -n "$RANLIB"; then
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13733 $as_echo "$RANLIB" >&6; }
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13736 $as_echo "no
" >&6; }
13741 if test -z "$ac_cv_prog_RANLIB"; then
13742 ac_ct_RANLIB=$RANLIB
13743 # Extract the first word of "ranlib
", so it can be a program name with args.
13744 set dummy ranlib; ac_word=$2
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13746 $as_echo_n "checking
for $ac_word...
" >&6; }
13747 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13748 $as_echo_n "(cached
) " >&6
13750 if test -n "$ac_ct_RANLIB"; then
13751 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13760 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13761 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13770 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13771 if test -n "$ac_ct_RANLIB"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13773 $as_echo "$ac_ct_RANLIB" >&6; }
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13776 $as_echo "no
" >&6; }
13779 if test "x
$ac_ct_RANLIB" = x; then
13782 case $cross_compiling:$ac_tool_warned in
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13785 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13786 ac_tool_warned=yes ;;
13788 RANLIB=$ac_ct_RANLIB
13791 RANLIB="$ac_cv_prog_RANLIB"
13794 test -z "$RANLIB" && RANLIB=:
13801 # Determine commands to create old-style static archives.
13802 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13803 old_postinstall_cmds='chmod 644 $oldlib'
13804 old_postuninstall_cmds=
13806 if test -n "$RANLIB"; then
13809 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13812 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13815 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13820 lock_old_archive_extraction=yes ;;
13822 lock_old_archive_extraction=no ;;
13863 # If no C compiler was specified, use CC.
13866 # If no C compiler flags were specified, use CFLAGS.
13867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13869 # Allow CC to be a program name with arguments.
13873 # Check for command to grab the raw symbol name followed by C symbol from nm.
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13875 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13876 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13877 $as_echo_n "(cached
) " >&6
13880 # These are sane defaults that work on at least a few old systems.
13881 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13883 # Character class describing NM global symbol codes.
13884 symcode='[BCDEGRST]'
13886 # Regexp to match symbols that can be accessed directly from C.
13887 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13889 # Define system-specific variables.
13894 cygwin* | mingw* | pw32* | cegcc*)
13895 symcode='[ABCDGISTW]'
13898 if test "$host_cpu" = ia64; then
13899 symcode='[ABCDEGRST]'
13902 irix* | nonstopux*)
13903 symcode='[BCDEGRST]'
13906 symcode='[BCDEGQRST]'
13917 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13925 # If we're using GNU nm, then use its standard symbol codes.
13926 case `$NM -V 2>&1` in
13927 *GNU* | *'with BFD'*)
13928 symcode='[ABCDGIRSTW]' ;;
13931 # Transform an extracted symbol line into a proper C declaration.
13932 # Some systems (esp. on ia64) link data and code symbols differently,
13933 # so use this general approach.
13934 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13936 # Transform an extracted symbol line into symbol name and symbol address
13937 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13938 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'"
13940 # Handle CRLF in mingw tool chain
13944 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13948 # Try without a prefix underscore, then with it.
13949 for ac_symprfx in "" "_
"; do
13951 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13952 symxfrm="\\1 $ac_symprfx\\2 \\2"
13954 # Write the raw and C identifiers.
13955 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13956 # Fake it for dumpbin and say T for any non-static function
13957 # and D for any global variable.
13958 # Also find C++ and __fastcall symbols from MSVC++,
13959 # which start with @ or ?.
13960 lt_cv_sys_global_symbol_pipe="$AWK '"\
13961 " {last_section=section; section=\$ 3};"\
13962 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13963 " \$ 0!~/External *\|/{next};"\
13964 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13965 " {if(hide[section]) next};"\
13966 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13967 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13968 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13969 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13970 " ' prfx
=^
$ac_symprfx"
13972 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13975 # Check to see that the pipe works correctly.
13979 cat > conftest.$ac_ext <<_LT_EOF
13984 void nm_test_func(void);
13985 void nm_test_func(void){}
13989 int main(){nm_test_var='a';nm_test_func();return(0);}
13992 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13993 (eval $ac_compile) 2>&5
13995 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13996 test $ac_status = 0; }; then
13997 # Now try to grab the symbols.
13999 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14000 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14002 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14003 test $ac_status = 0; } && test -s "$nlist"; then
14004 # Try sorting and uniquifying the output.
14005 if sort "$nlist" | uniq > "$nlist"T; then
14006 mv -f "$nlist"T "$nlist"
14011 # Make sure that we snagged all the symbols we need.
14012 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14013 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14014 cat <<_LT_EOF > conftest.$ac_ext
14020 # Now generate the symbol file.
14021 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14023 cat <<_LT_EOF >> conftest.$ac_ext
14025 /* The mapping between symbol names and symbols. */
14030 lt__PROGRAM__LTX_preloaded_symbols[] =
14032 { "@PROGRAM@
", (void *) 0 },
14034 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14035 cat <<\_LT_EOF >> conftest.$ac_ext
14039 /* This works around a problem in FreeBSD linker */
14040 #ifdef FREEBSD_WORKAROUND
14041 static const void *lt_preloaded_setup() {
14042 return lt__PROGRAM__LTX_preloaded_symbols;
14050 # Now try linking the two files.
14051 mv conftest.$ac_objext conftstm.$ac_objext
14052 lt_save_LIBS="$LIBS"
14053 lt_save_CFLAGS="$CFLAGS"
14054 LIBS="conftstm.
$ac_objext"
14055 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14056 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14057 (eval $ac_link) 2>&5
14059 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14060 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14063 LIBS="$lt_save_LIBS"
14064 CFLAGS="$lt_save_CFLAGS"
14066 echo "cannot
find nm_test_func
in $nlist" >&5
14069 echo "cannot
find nm_test_var
in $nlist" >&5
14072 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14075 echo "$progname: failed program was
:" >&5
14076 cat conftest.$ac_ext >&5
14078 rm -rf conftest* conftst*
14080 # Do not use the global_symbol_pipe unless it works.
14081 if test "$pipe_works" = yes; then
14084 lt_cv_sys_global_symbol_pipe=
14090 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14091 lt_cv_sys_global_symbol_to_cdecl=
14093 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14095 $as_echo "failed
" >&6; }
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14098 $as_echo "ok
" >&6; }
14122 # Check whether --enable-libtool-lock was given.
14123 if test "${enable_libtool_lock+set}" = set; then :
14124 enableval=$enable_libtool_lock;
14127 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14129 # Some flags need to be propagated to the compiler or linker for good
14133 # Find out which ABI we are using.
14134 echo 'int i;' > conftest.$ac_ext
14135 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14136 (eval $ac_compile) 2>&5
14138 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14139 test $ac_status = 0; }; then
14140 case `/usr/bin/file conftest.$ac_objext` in
14142 HPUX_IA64_MODE="32"
14145 HPUX_IA64_MODE="64"
14152 # Find out which ABI we are using.
14153 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14154 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14155 (eval $ac_compile) 2>&5
14157 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14158 test $ac_status = 0; }; then
14159 if test "$lt_cv_prog_gnu_ld" = yes; then
14160 case `/usr/bin/file conftest.$ac_objext` in
14162 LD="${LD-ld} -melf32bsmip"
14165 LD="${LD-ld} -melf32bmipn32"
14168 LD="${LD-ld} -melf64bmip"
14172 case `/usr/bin/file conftest.$ac_objext` in
14188 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14189 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14190 # Find out which ABI we are using.
14191 echo 'int i;' > conftest.$ac_ext
14192 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14193 (eval $ac_compile) 2>&5
14195 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14196 test $ac_status = 0; }; then
14197 case `/usr/bin/file conftest.o` in
14200 x86_64-*kfreebsd*-gnu)
14201 LD="${LD-ld} -m elf_i386_fbsd
"
14204 case `/usr/bin/file conftest.o` in
14206 LD="${LD-ld} -m elf32_x86_64
"
14209 LD="${LD-ld} -m elf_i386
"
14213 powerpc64le-*linux*)
14214 LD="${LD-ld} -m elf32lppclinux
"
14217 LD="${LD-ld} -m elf32ppclinux
"
14220 LD="${LD-ld} -m elf_s390
"
14223 LD="${LD-ld} -m elf32_sparc
"
14229 x86_64-*kfreebsd*-gnu)
14230 LD="${LD-ld} -m elf_x86_64_fbsd
"
14233 LD="${LD-ld} -m elf_x86_64
"
14236 LD="${LD-ld} -m elf64lppc
"
14239 LD="${LD-ld} -m elf64ppc
"
14241 s390*-*linux*|s390*-*tpf*)
14242 LD="${LD-ld} -m elf64_s390
"
14245 LD="${LD-ld} -m elf64_sparc
"
14255 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14256 SAVE_CFLAGS="$CFLAGS"
14257 CFLAGS="$CFLAGS -belf"
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14259 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14260 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14261 $as_echo_n "(cached
) " >&6
14264 ac_cpp='$CPP $CPPFLAGS'
14265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14280 if ac_fn_c_try_link "$LINENO"; then :
14281 lt_cv_cc_needs_belf=yes
14283 lt_cv_cc_needs_belf=no
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14288 ac_cpp='$CPP $CPPFLAGS'
14289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14295 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14296 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14297 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14298 CFLAGS="$SAVE_CFLAGS"
14302 # Find out which ABI we are using.
14303 echo 'int i;' > conftest.$ac_ext
14304 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14305 (eval $ac_compile) 2>&5
14307 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14308 test $ac_status = 0; }; then
14309 case `/usr/bin/file conftest.o` in
14311 case $lt_cv_prog_gnu_ld in
14312 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14314 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14326 need_locks="$enable_libtool_lock"
14330 rhapsody* | darwin*)
14331 if test -n "$ac_tool_prefix"; then
14332 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14333 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14335 $as_echo_n "checking
for $ac_word...
" >&6; }
14336 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14337 $as_echo_n "(cached
) " >&6
14339 if test -n "$DSYMUTIL"; then
14340 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343 for as_dir in $PATH
14346 test -z "$as_dir" && as_dir=.
14347 for ac_exec_ext in '' $ac_executable_extensions; do
14348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14349 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14350 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14359 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14360 if test -n "$DSYMUTIL"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14362 $as_echo "$DSYMUTIL" >&6; }
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14365 $as_echo "no
" >&6; }
14370 if test -z "$ac_cv_prog_DSYMUTIL"; then
14371 ac_ct_DSYMUTIL=$DSYMUTIL
14372 # Extract the first word of "dsymutil
", so it can be a program name with args.
14373 set dummy dsymutil; ac_word=$2
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14375 $as_echo_n "checking
for $ac_word...
" >&6; }
14376 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14377 $as_echo_n "(cached
) " >&6
14379 if test -n "$ac_ct_DSYMUTIL"; then
14380 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14389 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14390 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14399 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14400 if test -n "$ac_ct_DSYMUTIL"; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14402 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14405 $as_echo "no
" >&6; }
14408 if test "x
$ac_ct_DSYMUTIL" = x; then
14411 case $cross_compiling:$ac_tool_warned in
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14414 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14415 ac_tool_warned=yes ;;
14417 DSYMUTIL=$ac_ct_DSYMUTIL
14420 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14423 if test -n "$ac_tool_prefix"; then
14424 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14425 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14427 $as_echo_n "checking
for $ac_word...
" >&6; }
14428 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14429 $as_echo_n "(cached
) " >&6
14431 if test -n "$NMEDIT"; then
14432 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435 for as_dir in $PATH
14438 test -z "$as_dir" && as_dir=.
14439 for ac_exec_ext in '' $ac_executable_extensions; do
14440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14441 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14442 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14451 NMEDIT=$ac_cv_prog_NMEDIT
14452 if test -n "$NMEDIT"; then
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14454 $as_echo "$NMEDIT" >&6; }
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14457 $as_echo "no
" >&6; }
14462 if test -z "$ac_cv_prog_NMEDIT"; then
14463 ac_ct_NMEDIT=$NMEDIT
14464 # Extract the first word of "nmedit
", so it can be a program name with args.
14465 set dummy nmedit; ac_word=$2
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14467 $as_echo_n "checking
for $ac_word...
" >&6; }
14468 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14469 $as_echo_n "(cached
) " >&6
14471 if test -n "$ac_ct_NMEDIT"; then
14472 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475 for as_dir in $PATH
14478 test -z "$as_dir" && as_dir=.
14479 for ac_exec_ext in '' $ac_executable_extensions; do
14480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14481 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14482 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14491 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14492 if test -n "$ac_ct_NMEDIT"; then
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14494 $as_echo "$ac_ct_NMEDIT" >&6; }
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14497 $as_echo "no
" >&6; }
14500 if test "x
$ac_ct_NMEDIT" = x; then
14503 case $cross_compiling:$ac_tool_warned in
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14506 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14507 ac_tool_warned=yes ;;
14509 NMEDIT=$ac_ct_NMEDIT
14512 NMEDIT="$ac_cv_prog_NMEDIT"
14515 if test -n "$ac_tool_prefix"; then
14516 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14517 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14519 $as_echo_n "checking
for $ac_word...
" >&6; }
14520 if test "${ac_cv_prog_LIPO+set}" = set; then :
14521 $as_echo_n "(cached
) " >&6
14523 if test -n "$LIPO"; then
14524 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527 for as_dir in $PATH
14530 test -z "$as_dir" && as_dir=.
14531 for ac_exec_ext in '' $ac_executable_extensions; do
14532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14533 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14534 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14543 LIPO=$ac_cv_prog_LIPO
14544 if test -n "$LIPO"; then
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14546 $as_echo "$LIPO" >&6; }
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14549 $as_echo "no
" >&6; }
14554 if test -z "$ac_cv_prog_LIPO"; then
14556 # Extract the first word of "lipo
", so it can be a program name with args.
14557 set dummy lipo; ac_word=$2
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14559 $as_echo_n "checking
for $ac_word...
" >&6; }
14560 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14561 $as_echo_n "(cached
) " >&6
14563 if test -n "$ac_ct_LIPO"; then
14564 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14567 for as_dir in $PATH
14570 test -z "$as_dir" && as_dir=.
14571 for ac_exec_ext in '' $ac_executable_extensions; do
14572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14573 ac_cv_prog_ac_ct_LIPO="lipo
"
14574 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14583 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14584 if test -n "$ac_ct_LIPO"; then
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14586 $as_echo "$ac_ct_LIPO" >&6; }
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14589 $as_echo "no
" >&6; }
14592 if test "x
$ac_ct_LIPO" = x; then
14595 case $cross_compiling:$ac_tool_warned in
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14598 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14599 ac_tool_warned=yes ;;
14604 LIPO="$ac_cv_prog_LIPO"
14607 if test -n "$ac_tool_prefix"; then
14608 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14609 set dummy ${ac_tool_prefix}otool; ac_word=$2
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14611 $as_echo_n "checking
for $ac_word...
" >&6; }
14612 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14613 $as_echo_n "(cached
) " >&6
14615 if test -n "$OTOOL"; then
14616 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14619 for as_dir in $PATH
14622 test -z "$as_dir" && as_dir=.
14623 for ac_exec_ext in '' $ac_executable_extensions; do
14624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14625 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14626 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14635 OTOOL=$ac_cv_prog_OTOOL
14636 if test -n "$OTOOL"; then
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14638 $as_echo "$OTOOL" >&6; }
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14641 $as_echo "no
" >&6; }
14646 if test -z "$ac_cv_prog_OTOOL"; then
14648 # Extract the first word of "otool
", so it can be a program name with args.
14649 set dummy otool; ac_word=$2
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14651 $as_echo_n "checking
for $ac_word...
" >&6; }
14652 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14653 $as_echo_n "(cached
) " >&6
14655 if test -n "$ac_ct_OTOOL"; then
14656 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659 for as_dir in $PATH
14662 test -z "$as_dir" && as_dir=.
14663 for ac_exec_ext in '' $ac_executable_extensions; do
14664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14665 ac_cv_prog_ac_ct_OTOOL="otool
"
14666 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14675 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14676 if test -n "$ac_ct_OTOOL"; then
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14678 $as_echo "$ac_ct_OTOOL" >&6; }
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14681 $as_echo "no
" >&6; }
14684 if test "x
$ac_ct_OTOOL" = x; then
14687 case $cross_compiling:$ac_tool_warned in
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14690 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14691 ac_tool_warned=yes ;;
14696 OTOOL="$ac_cv_prog_OTOOL"
14699 if test -n "$ac_tool_prefix"; then
14700 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14701 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14703 $as_echo_n "checking
for $ac_word...
" >&6; }
14704 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14705 $as_echo_n "(cached
) " >&6
14707 if test -n "$OTOOL64"; then
14708 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14711 for as_dir in $PATH
14714 test -z "$as_dir" && as_dir=.
14715 for ac_exec_ext in '' $ac_executable_extensions; do
14716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14717 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14718 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14727 OTOOL64=$ac_cv_prog_OTOOL64
14728 if test -n "$OTOOL64"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14730 $as_echo "$OTOOL64" >&6; }
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14733 $as_echo "no
" >&6; }
14738 if test -z "$ac_cv_prog_OTOOL64"; then
14739 ac_ct_OTOOL64=$OTOOL64
14740 # Extract the first word of "otool64
", so it can be a program name with args.
14741 set dummy otool64; ac_word=$2
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14743 $as_echo_n "checking
for $ac_word...
" >&6; }
14744 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14745 $as_echo_n "(cached
) " >&6
14747 if test -n "$ac_ct_OTOOL64"; then
14748 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14751 for as_dir in $PATH
14754 test -z "$as_dir" && as_dir=.
14755 for ac_exec_ext in '' $ac_executable_extensions; do
14756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14757 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14758 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14767 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14768 if test -n "$ac_ct_OTOOL64"; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14770 $as_echo "$ac_ct_OTOOL64" >&6; }
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14773 $as_echo "no
" >&6; }
14776 if test "x
$ac_ct_OTOOL64" = x; then
14779 case $cross_compiling:$ac_tool_warned in
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14782 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14783 ac_tool_warned=yes ;;
14785 OTOOL64=$ac_ct_OTOOL64
14788 OTOOL64="$ac_cv_prog_OTOOL64"
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14818 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14819 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14820 $as_echo_n "(cached
) " >&6
14822 lt_cv_apple_cc_single_mod=no
14823 if test -z "${LT_MULTI_MODULE}"; then
14824 # By default we will add the -single_module flag. You can override
14825 # by either setting the environment variable LT_MULTI_MODULE
14826 # non-empty at configure time, or by adding -multi_module to the
14828 rm -rf libconftest.dylib*
14829 echo "int foo
(void
){return 1;}" > conftest.c
14830 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14831 -dynamiclib -Wl,-single_module conftest.c
" >&5
14832 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14833 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14835 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14836 lt_cv_apple_cc_single_mod=yes
14838 cat conftest.err >&5
14840 rm -rf libconftest.dylib*
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14845 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14847 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14848 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14849 $as_echo_n "(cached
) " >&6
14851 lt_cv_ld_exported_symbols_list=no
14852 save_LDFLAGS=$LDFLAGS
14853 echo "_main
" > conftest.sym
14854 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856 /* end confdefs.h. */
14866 if ac_fn_c_try_link "$LINENO"; then :
14867 lt_cv_ld_exported_symbols_list=yes
14869 lt_cv_ld_exported_symbols_list=no
14871 rm -f core conftest.err conftest.$ac_objext \
14872 conftest$ac_exeext conftest.$ac_ext
14873 LDFLAGS="$save_LDFLAGS"
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14877 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14879 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14880 if test "${lt_cv_ld_force_load+set}" = set; then :
14881 $as_echo_n "(cached
) " >&6
14883 lt_cv_ld_force_load=no
14884 cat > conftest.c << _LT_EOF
14885 int forced_loaded() { return 2;}
14887 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14888 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14889 echo "$AR cru libconftest.a conftest.o
" >&5
14890 $AR cru libconftest.a conftest.o 2>&5
14891 cat > conftest.c << _LT_EOF
14892 int main() { return 0;}
14894 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14895 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14897 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14898 lt_cv_ld_force_load=yes
14900 cat conftest.err >&5
14902 rm -f conftest.err libconftest.a conftest conftest.c
14903 rm -rf conftest.dSYM
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14907 $as_echo "$lt_cv_ld_force_load" >&6; }
14909 rhapsody* | darwin1.[012])
14910 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14912 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14913 darwin*) # darwin 5.x on
14914 # if running on 10.5 or later, the deployment target defaults
14915 # to the OS version, if on x86, and 10.4, the deployment
14916 # target defaults to 10.4. Don't you love it?
14917 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14918 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14919 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14921 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14923 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14927 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14928 _lt_dar_single_mod='$single_module'
14930 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14931 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14933 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14935 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14936 _lt_dsymutil='~$DSYMUTIL $lib || :'
14944 for ac_header in dlfcn.h
14946 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14947 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14948 cat >>confdefs.h <<_ACEOF
14949 #define HAVE_DLFCN_H 1
14966 enable_win32_dll=no
14969 # Check whether --enable-shared was given.
14970 if test "${enable_shared+set}" = set; then :
14971 enableval=$enable_shared; p=${PACKAGE-default}
14973 yes) enable_shared=yes ;;
14974 no) enable_shared=no ;;
14977 # Look at the argument we got. We use all the common list separators.
14978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14979 for pkg in $enableval; do
14981 if test "X
$pkg" = "X
$p"; then
15000 # Check whether --enable-static was given.
15001 if test "${enable_static+set}" = set; then :
15002 enableval=$enable_static; p=${PACKAGE-default}
15004 yes) enable_static=yes ;;
15005 no) enable_static=no ;;
15008 # Look at the argument we got. We use all the common list separators.
15009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15010 for pkg in $enableval; do
15012 if test "X
$pkg" = "X
$p"; then
15032 # Check whether --with-pic was given.
15033 if test "${with_pic+set}" = set; then :
15034 withval=$with_pic; pic_mode="$withval"
15040 test -z "$pic_mode" && pic_mode=default
15048 # Check whether --enable-fast-install was given.
15049 if test "${enable_fast_install+set}" = set; then :
15050 enableval=$enable_fast_install; p=${PACKAGE-default}
15052 yes) enable_fast_install=yes ;;
15053 no) enable_fast_install=no ;;
15055 enable_fast_install=no
15056 # Look at the argument we got. We use all the common list separators.
15057 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15058 for pkg in $enableval; do
15060 if test "X
$pkg" = "X
$p"; then
15061 enable_fast_install=yes
15068 enable_fast_install=yes
15081 # This can be used to rebuild libtool when needed
15082 LIBTOOL_DEPS="$ltmain"
15084 # Always use our own libtool.
15085 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15112 test -z "$LN_S" && LN_S="ln -s"
15127 if test -n "${ZSH_VERSION+set}" ; then
15128 setopt NO_GLOB_SUBST
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15132 $as_echo_n "checking
for objdir...
" >&6; }
15133 if test "${lt_cv_objdir+set}" = set; then :
15134 $as_echo_n "(cached
) " >&6
15136 rm -f .libs 2>/dev/null
15137 mkdir .libs 2>/dev/null
15138 if test -d .libs; then
15141 # MS-DOS does not allow filenames that begin with a dot.
15144 rmdir .libs 2>/dev/null
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15147 $as_echo "$lt_cv_objdir" >&6; }
15148 objdir=$lt_cv_objdir
15154 cat >>confdefs.h <<_ACEOF
15155 #define LT_OBJDIR "$lt_cv_objdir/"
15163 # AIX sometimes has problems with the GCC collect2 program. For some
15164 # reason, if we set the COLLECT_NAMES environment variable, the problems
15165 # vanish in a puff of smoke.
15166 if test "X
${COLLECT_NAMES+set}" != Xset; then
15168 export COLLECT_NAMES
15173 # Global variables:
15175 can_build_shared=yes
15177 # All known linkers require a `.a' archive for static linking (except MSVC,
15178 # which needs '.lib').
15181 with_gnu_ld="$lt_cv_prog_gnu_ld"
15184 old_CFLAGS="$CFLAGS"
15186 # Set sane defaults for various variables
15187 test -z "$CC" && CC=cc
15188 test -z "$LTCC" && LTCC=$CC
15189 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15190 test -z "$LD" && LD=ld
15191 test -z "$ac_objext" && ac_objext=o
15193 for cc_temp in $compiler""; do
15195 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15196 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15201 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15204 # Only perform the check for file, if the check method requires it
15205 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15206 case $deplibs_check_method in
15208 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15210 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15211 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15212 $as_echo_n "(cached
) " >&6
15216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15219 lt_save_MAGIC_CMD="$MAGIC_CMD"
15220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15221 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15222 for ac_dir in $ac_dummy; do
15224 test -z "$ac_dir" && ac_dir=.
15225 if test -f $ac_dir/${ac_tool_prefix}file; then
15226 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15227 if test -n "$file_magic_test_file"; then
15228 case $deplibs_check_method in
15230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15233 $EGREP "$file_magic_regex" > /dev/null; then
15238 *** Warning: the command libtool uses to detect shared libraries,
15239 *** $file_magic_cmd, produces output that libtool cannot recognize.
15240 *** The result is that libtool may fail to recognize shared libraries
15241 *** as such. This will affect the creation of libtool libraries that
15242 *** depend on shared libraries, but programs linked with such libtool
15243 *** libraries will work regardless of this problem. Nevertheless, you
15244 *** may want to report the problem to your system manager and/or to
15245 *** bug-libtool@gnu.org
15255 MAGIC_CMD="$lt_save_MAGIC_CMD"
15260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15261 if test -n "$MAGIC_CMD"; then
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15263 $as_echo "$MAGIC_CMD" >&6; }
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15266 $as_echo "no
" >&6; }
15273 if test -z "$lt_cv_path_MAGIC_CMD"; then
15274 if test -n "$ac_tool_prefix"; then
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15276 $as_echo_n "checking
for file...
" >&6; }
15277 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15278 $as_echo_n "(cached
) " >&6
15282 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15285 lt_save_MAGIC_CMD="$MAGIC_CMD"
15286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15287 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15288 for ac_dir in $ac_dummy; do
15290 test -z "$ac_dir" && ac_dir=.
15291 if test -f $ac_dir/file; then
15292 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15293 if test -n "$file_magic_test_file"; then
15294 case $deplibs_check_method in
15296 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15297 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15298 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15299 $EGREP "$file_magic_regex" > /dev/null; then
15304 *** Warning: the command libtool uses to detect shared libraries,
15305 *** $file_magic_cmd, produces output that libtool cannot recognize.
15306 *** The result is that libtool may fail to recognize shared libraries
15307 *** as such. This will affect the creation of libtool libraries that
15308 *** depend on shared libraries, but programs linked with such libtool
15309 *** libraries will work regardless of this problem. Nevertheless, you
15310 *** may want to report the problem to your system manager and/or to
15311 *** bug-libtool@gnu.org
15321 MAGIC_CMD="$lt_save_MAGIC_CMD"
15326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15327 if test -n "$MAGIC_CMD"; then
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15329 $as_echo "$MAGIC_CMD" >&6; }
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15332 $as_echo "no
" >&6; }
15345 # Use C for the default configuration in the libtool script
15349 ac_cpp='$CPP $CPPFLAGS'
15350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15355 # Source file extension for C test sources.
15358 # Object file extension for compiled C test sources.
15362 # Code to be used in simple compile tests
15363 lt_simple_compile_test_code="int some_variable
= 0;"
15365 # Code to be used in simple link tests
15366 lt_simple_link_test_code='int main(){return(0);}'
15374 # If no C compiler was specified, use CC.
15377 # If no C compiler flags were specified, use CFLAGS.
15378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15380 # Allow CC to be a program name with arguments.
15383 # Save the default compiler, since it gets overwritten when the other
15384 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15385 compiler_DEFAULT=$CC
15387 # save warnings/boilerplate of simple test code
15388 ac_outfile=conftest.$ac_objext
15389 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15390 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15391 _lt_compiler_boilerplate=`cat conftest.err`
15394 ac_outfile=conftest.$ac_objext
15395 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15396 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15397 _lt_linker_boilerplate=`cat conftest.err`
15402 ## There is no encapsulation within the following macros, do not change
15403 ## the running order or otherwise move them around unless you know exactly
15404 ## what you are doing...
15405 if test -n "$compiler"; then
15407 lt_prog_compiler_no_builtin_flag=
15409 if test "$GCC" = yes; then
15410 case $cc_basename in
15412 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15414 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15418 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15419 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15420 $as_echo_n "(cached
) " >&6
15422 lt_cv_prog_compiler_rtti_exceptions=no
15423 ac_outfile=conftest.$ac_objext
15424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15425 lt_compiler_flag="-fno-rtti -fno-exceptions"
15426 # Insert the option either (1) after the last *FLAGS variable, or
15427 # (2) before a word containing "conftest.
", or (3) at the end.
15428 # Note that $ac_compile itself does not contain backslashes and begins
15429 # with a dollar sign (not a hyphen), so the echo should work correctly.
15430 # The option is referenced via a variable to avoid confusing sed.
15431 lt_compile=`echo "$ac_compile" | $SED \
15432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15434 -e 's:$: $lt_compiler_flag:'`
15435 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15436 (eval "$lt_compile" 2>conftest.err)
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15440 if (exit $ac_status) && test -s "$ac_outfile"; then
15441 # The compiler can only warn and ignore the option if not recognized
15442 # So say no if there are warnings other than the usual output.
15443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15446 lt_cv_prog_compiler_rtti_exceptions=yes
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15453 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15455 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15456 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15468 lt_prog_compiler_wl=
15469 lt_prog_compiler_pic=
15470 lt_prog_compiler_static=
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15473 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15475 if test "$GCC" = yes; then
15476 lt_prog_compiler_wl='-Wl,'
15477 lt_prog_compiler_static='-static'
15481 # All AIX code is PIC.
15482 if test "$host_cpu" = ia64; then
15483 # AIX 5 now supports IA64 processor
15484 lt_prog_compiler_static='-Bstatic'
15486 lt_prog_compiler_pic='-fPIC'
15492 # see comment about AmigaOS4 .so support
15493 lt_prog_compiler_pic='-fPIC'
15496 # FIXME: we need at least 68020 code to build shared libraries, but
15497 # adding the `-m68020' flag to GCC prevents building anything better,
15499 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15504 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15505 # PIC is the default for these OSes.
15508 mingw* | cygwin* | pw32* | os2* | cegcc*)
15509 # This hack is so that the source file can tell whether it is being
15510 # built for inclusion in a dll (and should export symbols for example).
15511 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15512 # (--disable-auto-import) libraries
15513 lt_prog_compiler_pic='-DDLL_EXPORT'
15516 darwin* | rhapsody*)
15517 # PIC is the default on this platform
15518 # Common symbols not allowed in MH_DYLIB files
15519 lt_prog_compiler_pic='-fno-common'
15523 # PIC is the default for Haiku.
15524 # The "-static" flag exists, but is broken.
15525 lt_prog_compiler_static=
15529 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15530 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15531 # sets the default TLS model and affects inlining.
15537 lt_prog_compiler_pic='-fPIC'
15543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15544 # Instead, we relocate shared libraries at runtime.
15548 # Just because we use GCC doesn't mean we suddenly get shared libraries
15549 # on systems that don't support them.
15550 lt_prog_compiler_can_build_shared=no
15555 # QNX uses GNU C++, but need to define -shared option too, otherwise
15556 # it will coredump.
15557 lt_prog_compiler_pic='-fPIC -shared'
15561 if test -d /usr/nec; then
15562 lt_prog_compiler_pic=-Kconform_pic
15567 lt_prog_compiler_pic='-fPIC'
15571 case $cc_basename in
15572 nvcc*) # Cuda Compiler Driver 2.2
15573 lt_prog_compiler_wl='-Xlinker '
15574 lt_prog_compiler_pic='-Xcompiler -fPIC'
15578 # PORTME Check for flag to pass linker flags through the system compiler.
15581 lt_prog_compiler_wl='-Wl,'
15582 if test "$host_cpu" = ia64; then
15583 # AIX 5 now supports IA64 processor
15584 lt_prog_compiler_static='-Bstatic'
15586 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15590 mingw* | cygwin* | pw32* | os2* | cegcc*)
15591 # This hack is so that the source file can tell whether it is being
15592 # built for inclusion in a dll (and should export symbols for example).
15593 lt_prog_compiler_pic='-DDLL_EXPORT'
15596 hpux9* | hpux10* | hpux11*)
15597 lt_prog_compiler_wl='-Wl,'
15598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15599 # not for PA HP-UX.
15605 lt_prog_compiler_pic='+Z'
15608 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15609 lt_prog_compiler_static='${wl}-a ${wl}archive'
15612 irix5* | irix6* | nonstopux*)
15613 lt_prog_compiler_wl='-Wl,'
15614 # PIC (with -KPIC) is the default.
15615 lt_prog_compiler_static='-non_shared'
15618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15619 case $cc_basename in
15620 # old Intel for x86_64 which still supported -KPIC.
15622 lt_prog_compiler_wl='-Wl,'
15623 lt_prog_compiler_pic='-KPIC'
15624 lt_prog_compiler_static='-static'
15626 # icc used to be incompatible with GCC.
15627 # ICC 10 doesn't accept -KPIC any more.
15629 lt_prog_compiler_wl='-Wl,'
15630 lt_prog_compiler_pic='-fPIC'
15631 lt_prog_compiler_static='-static'
15633 # Lahey Fortran 8.1.
15635 lt_prog_compiler_wl='-Wl,'
15636 lt_prog_compiler_pic='--shared'
15637 lt_prog_compiler_static='--static'
15639 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15640 # Portland Group compilers (*not* the Pentium gcc compiler,
15641 # which looks to be a dead project)
15642 lt_prog_compiler_wl='-Wl,'
15643 lt_prog_compiler_pic='-fpic'
15644 lt_prog_compiler_static='-Bstatic'
15647 lt_prog_compiler_wl='-Wl,'
15648 # All Alpha code is PIC.
15649 lt_prog_compiler_static='-non_shared'
15651 xl* | bgxl* | bgf* | mpixl*)
15652 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15653 lt_prog_compiler_wl='-Wl,'
15654 lt_prog_compiler_pic='-qpic'
15655 lt_prog_compiler_static='-qstaticlink'
15658 case `$CC -V 2>&1 | sed 5q` in
15659 *Sun\ F* | *Sun*Fortran*)
15660 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15661 lt_prog_compiler_pic='-KPIC'
15662 lt_prog_compiler_static='-Bstatic'
15663 lt_prog_compiler_wl=''
15667 lt_prog_compiler_pic='-KPIC'
15668 lt_prog_compiler_static='-Bstatic'
15669 lt_prog_compiler_wl='-Wl,'
15677 lt_prog_compiler_pic='-KPIC'
15678 lt_prog_compiler_static='-Bstatic'
15682 # QNX uses GNU C++, but need to define -shared option too, otherwise
15683 # it will coredump.
15684 lt_prog_compiler_pic='-fPIC -shared'
15687 osf3* | osf4* | osf5*)
15688 lt_prog_compiler_wl='-Wl,'
15689 # All OSF/1 code is PIC.
15690 lt_prog_compiler_static='-non_shared'
15694 lt_prog_compiler_static='-non_shared'
15698 lt_prog_compiler_pic='-KPIC'
15699 lt_prog_compiler_static='-Bstatic'
15700 case $cc_basename in
15701 f77* | f90* | f95*)
15702 lt_prog_compiler_wl='-Qoption ld ';;
15704 lt_prog_compiler_wl='-Wl,';;
15709 lt_prog_compiler_wl='-Qoption ld '
15710 lt_prog_compiler_pic='-PIC'
15711 lt_prog_compiler_static='-Bstatic'
15714 sysv4 | sysv4.2uw2* | sysv4.3*)
15715 lt_prog_compiler_wl='-Wl,'
15716 lt_prog_compiler_pic='-KPIC'
15717 lt_prog_compiler_static='-Bstatic'
15721 if test -d /usr/nec ;then
15722 lt_prog_compiler_pic='-Kconform_pic'
15723 lt_prog_compiler_static='-Bstatic'
15727 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15728 lt_prog_compiler_wl='-Wl,'
15729 lt_prog_compiler_pic='-KPIC'
15730 lt_prog_compiler_static='-Bstatic'
15734 lt_prog_compiler_wl='-Wl,'
15735 lt_prog_compiler_can_build_shared=no
15739 lt_prog_compiler_pic='-pic'
15740 lt_prog_compiler_static='-Bstatic'
15744 lt_prog_compiler_can_build_shared=no
15750 # For platforms which do not support PIC, -DPIC is meaningless:
15752 lt_prog_compiler_pic=
15755 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15759 $as_echo "$lt_prog_compiler_pic" >&6; }
15767 # Check to make sure the PIC flag actually works.
15769 if test -n "$lt_prog_compiler_pic"; then
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15771 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15772 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15773 $as_echo_n "(cached
) " >&6
15775 lt_cv_prog_compiler_pic_works=no
15776 ac_outfile=conftest.$ac_objext
15777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15778 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15779 # Insert the option either (1) after the last *FLAGS variable, or
15780 # (2) before a word containing "conftest.
", or (3) at the end.
15781 # Note that $ac_compile itself does not contain backslashes and begins
15782 # with a dollar sign (not a hyphen), so the echo should work correctly.
15783 # The option is referenced via a variable to avoid confusing sed.
15784 lt_compile=`echo "$ac_compile" | $SED \
15785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15787 -e 's:$: $lt_compiler_flag:'`
15788 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15789 (eval "$lt_compile" 2>conftest.err)
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15793 if (exit $ac_status) && test -s "$ac_outfile"; then
15794 # The compiler can only warn and ignore the option if not recognized
15795 # So say no if there are warnings other than the usual output.
15796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15799 lt_cv_prog_compiler_pic_works=yes
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15806 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15808 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15809 case $lt_prog_compiler_pic in
15811 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15814 lt_prog_compiler_pic=
15815 lt_prog_compiler_can_build_shared=no
15826 # Check to make sure the static flag actually works.
15828 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15830 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15831 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15832 $as_echo_n "(cached
) " >&6
15834 lt_cv_prog_compiler_static_works=no
15835 save_LDFLAGS="$LDFLAGS"
15836 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15837 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15838 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15839 # The linker can only warn and ignore the option if not recognized
15840 # So say no if there are warnings
15841 if test -s conftest.err; then
15842 # Append any errors to the config.log.
15843 cat conftest.err 1>&5
15844 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15846 if diff conftest.exp conftest.er2 >/dev/null; then
15847 lt_cv_prog_compiler_static_works=yes
15850 lt_cv_prog_compiler_static_works=yes
15854 LDFLAGS="$save_LDFLAGS"
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15858 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15860 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15863 lt_prog_compiler_static=
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15873 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15874 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15875 $as_echo_n "(cached
) " >&6
15877 lt_cv_prog_compiler_c_o=no
15878 $RM -r conftest 2>/dev/null
15882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15884 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15885 # Insert the option either (1) after the last *FLAGS variable, or
15886 # (2) before a word containing "conftest.
", or (3) at the end.
15887 # Note that $ac_compile itself does not contain backslashes and begins
15888 # with a dollar sign (not a hyphen), so the echo should work correctly.
15889 lt_compile=`echo "$ac_compile" | $SED \
15890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15892 -e 's:$: $lt_compiler_flag:'`
15893 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15894 (eval "$lt_compile" 2>out/conftest.err)
15896 cat out/conftest.err >&5
15897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15900 # The compiler can only warn and ignore the option if not recognized
15901 # So say no if there are warnings
15902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15905 lt_cv_prog_compiler_c_o=yes
15910 # SGI C++ compiler will create directory out/ii_files/ for
15911 # template instantiation
15912 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15913 $RM out/* && rmdir out
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15920 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15928 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15929 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15930 $as_echo_n "(cached
) " >&6
15932 lt_cv_prog_compiler_c_o=no
15933 $RM -r conftest 2>/dev/null
15937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15939 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15940 # Insert the option either (1) after the last *FLAGS variable, or
15941 # (2) before a word containing "conftest.
", or (3) at the end.
15942 # Note that $ac_compile itself does not contain backslashes and begins
15943 # with a dollar sign (not a hyphen), so the echo should work correctly.
15944 lt_compile=`echo "$ac_compile" | $SED \
15945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15947 -e 's:$: $lt_compiler_flag:'`
15948 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15949 (eval "$lt_compile" 2>out/conftest.err)
15951 cat out/conftest.err >&5
15952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15955 # The compiler can only warn and ignore the option if not recognized
15956 # So say no if there are warnings
15957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15960 lt_cv_prog_compiler_c_o=yes
15965 # SGI C++ compiler will create directory out/ii_files/ for
15966 # template instantiation
15967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15968 $RM out/* && rmdir out
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15975 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15980 hard_links="nottested
"
15981 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15982 # do not overwrite the value of need_locks provided by the user
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15984 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15989 ln conftest.a conftest.b 2>&5 || hard_links=no
15990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15992 $as_echo "$hard_links" >&6; }
15993 if test "$hard_links" = no; then
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15995 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16008 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16011 allow_undefined_flag=
16012 always_export_symbols=no
16014 archive_expsym_cmds=
16015 compiler_needs_object=no
16016 enable_shared_with_static_runtimes=no
16017 export_dynamic_flag_spec=
16018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16019 hardcode_automatic=no
16021 hardcode_direct_absolute=no
16022 hardcode_libdir_flag_spec=
16023 hardcode_libdir_flag_spec_ld=
16024 hardcode_libdir_separator=
16025 hardcode_minus_L=no
16026 hardcode_shlibpath_var=unsupported
16028 link_all_deplibs=unknown
16030 module_expsym_cmds=
16031 old_archive_from_new_cmds=
16032 old_archive_from_expsyms_cmds=
16033 thread_safe_flag_spec=
16034 whole_archive_flag_spec=
16035 # include_expsyms should be a list of space-separated symbols to be *always*
16036 # included in the symbol list
16038 # exclude_expsyms can be an extended regexp of symbols to exclude
16039 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16040 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16041 # as well as any symbol that contains `d'.
16042 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16043 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16044 # platforms (ab)use it in PIC code, but their linkers get confused if
16045 # the symbol is explicitly referenced. Since portable code cannot
16046 # rely on this symbol name, it's probably fine to never include it in
16047 # preloaded symbol tables.
16048 # Exclude shared library initialization/finalization symbols.
16049 extract_expsyms_cmds=
16052 cygwin* | mingw* | pw32* | cegcc*)
16053 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16054 # When not using gcc, we currently assume that we are using
16055 # Microsoft Visual C++.
16056 if test "$GCC" != yes; then
16061 # we just hope/assume this is gcc and not c89 (= MSVC++)
16071 # On some targets, GNU ld is compatible enough with the native linker
16072 # that we're better off using the native interface for both.
16073 lt_use_gnu_ld_interface=no
16074 if test "$with_gnu_ld" = yes; then
16077 # The AIX port of GNU ld has always aspired to compatibility
16078 # with the native linker. However, as the warning in the GNU ld
16079 # block says, versions before 2.19.5* couldn't really create working
16080 # shared libraries, regardless of the interface used.
16081 case `$LD -v 2>&1` in
16082 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16083 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16084 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16086 lt_use_gnu_ld_interface=yes
16091 lt_use_gnu_ld_interface=yes
16096 if test "$lt_use_gnu_ld_interface" = yes; then
16097 # If archive_cmds runs LD, not CC, wlarc should be empty
16100 # Set some defaults for GNU ld with shared library support. These
16101 # are reset later if shared libraries are not supported. Putting them
16102 # here allows them to be overridden if necessary.
16103 runpath_var=LD_RUN_PATH
16104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16105 export_dynamic_flag_spec='${wl}--export-dynamic'
16106 # ancient GNU ld didn't support --whole-archive et. al.
16107 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16108 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16110 whole_archive_flag_spec=
16112 supports_anon_versioning=no
16113 case `$LD -v 2>&1` in
16114 *GNU\ gold*) supports_anon_versioning=yes ;;
16115 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16116 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16117 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16118 *\ 2.11.*) ;; # other 2.11 versions
16119 *) supports_anon_versioning=yes ;;
16122 # See if GNU ld supports shared libraries.
16125 # On AIX/PPC, the GNU linker is very broken
16126 if test "$host_cpu" != ia64; then
16130 *** Warning: the GNU linker, at least up to release 2.19, is reported
16131 *** to be unable to reliably create shared libraries on AIX.
16132 *** Therefore, libtool is disabling shared libraries support. If you
16133 *** really care for shared libraries, you may want to install binutils
16134 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16135 *** You will then need to restart the configuration process.
16144 # see comment about AmigaOS4 .so support
16145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16146 archive_expsym_cmds=''
16149 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)'
16150 hardcode_libdir_flag_spec
='-L$libdir'
16151 hardcode_minus_L
=yes
16157 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16158 allow_undefined_flag
=unsupported
16159 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16160 # support --undefined. This deserves some investigation. FIXME
16161 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16167 cygwin
* | mingw
* | pw32
* | cegcc
*)
16168 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16169 # as there is no search path for DLLs.
16170 hardcode_libdir_flag_spec
='-L$libdir'
16171 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16172 allow_undefined_flag
=unsupported
16173 always_export_symbols
=no
16174 enable_shared_with_static_runtimes
=yes
16175 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16177 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16178 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16179 # If the export-symbols file already is a .def file (1st line
16180 # is EXPORTS), use it as is; otherwise, prepend...
16181 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16182 cp $export_symbols $output_objdir/$soname.def;
16184 echo EXPORTS > $output_objdir/$soname.def;
16185 cat $export_symbols >> $output_objdir/$soname.def;
16187 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16194 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16195 link_all_deplibs
=yes
16200 hardcode_shlibpath_var
=no
16201 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16202 export_dynamic_flag_spec
='${wl}-E'
16203 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16204 # Instead, shared libraries are loaded at an image base (0x10000000 by
16205 # default) and relocated if they conflict, which is a slow very memory
16206 # consuming and fragmenting process. To avoid this, we pick a random,
16207 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16208 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16209 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16210 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'
16213 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16215 if test "$host_os" = linux-dietlibc
; then
16216 case $cc_basename in
16217 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16220 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16221 && test "$tmp_diet" = no
16223 tmp_addflag
=' $pic_flag'
16224 tmp_sharedflag
='-shared'
16225 case $cc_basename,$host_cpu in
16226 pgcc
*) # Portland Group C compiler
16227 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'
16228 tmp_addflag
=' $pic_flag'
16230 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16231 # Portland Group f77 and f90 compilers
16232 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'
16233 tmp_addflag
=' $pic_flag -Mnomain' ;;
16234 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16235 tmp_addflag
=' -i_dynamic' ;;
16236 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16237 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16238 ifc
* | ifort
*) # Intel Fortran compiler
16239 tmp_addflag
=' -nofor_main' ;;
16240 lf95
*) # Lahey Fortran 8.1
16241 whole_archive_flag_spec
=
16242 tmp_sharedflag
='--shared' ;;
16243 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16244 tmp_sharedflag
='-qmkshrobj'
16246 nvcc
*) # Cuda Compiler Driver 2.2
16247 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'
16248 compiler_needs_object
=yes
16251 case `$CC -V 2>&1 | sed 5q` in
16252 *Sun\ C
*) # Sun C 5.9
16253 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'
16254 compiler_needs_object
=yes
16255 tmp_sharedflag
='-G' ;;
16256 *Sun\ F
*) # Sun Fortran 8.3
16257 tmp_sharedflag
='-G' ;;
16259 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16261 if test "x$supports_anon_versioning" = xyes
; then
16262 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16264 echo "local: *; };" >> $output_objdir/$libname.ver~
16265 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16268 case $cc_basename in
16269 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16270 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16271 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16272 hardcode_libdir_flag_spec
=
16273 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16274 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16275 if test "x$supports_anon_versioning" = xyes
; then
16276 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16277 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16278 echo "local: *; };" >> $output_objdir/$libname.ver~
16279 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16289 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16290 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16293 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16294 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16299 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16304 *** create shared libraries on Solaris systems. Therefore, libtool
16305 *** is disabling shared libraries support. We urge you to upgrade GNU
16306 *** binutils to release 2.9.1 or newer. Another option is to modify
16307 *** your PATH or compiler configuration so that the native linker is
16308 *** used, and then restart.
16311 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16312 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16313 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16319 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16320 case `$LD -v 2>&1` in
16321 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16325 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16326 *** reliably create shared libraries on SCO systems. Therefore, libtool
16327 *** is disabling shared libraries support. We urge you to upgrade GNU
16328 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16329 *** your PATH or compiler configuration so that the native linker is
16330 *** used, and then restart.
16335 # For security reasons, it is highly recommended that you always
16336 # use absolute paths for naming shared libraries, and exclude the
16337 # DT_RUNPATH tag from executables and libraries. But doing so
16338 # requires that you compile everything twice, which is a pain.
16339 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16340 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16341 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16342 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16351 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16353 hardcode_direct
=yes
16354 hardcode_shlibpath_var
=no
16358 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16359 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16360 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16367 if test "$ld_shlibs" = no
; then
16369 hardcode_libdir_flag_spec
=
16370 export_dynamic_flag_spec
=
16371 whole_archive_flag_spec
=
16374 # PORTME fill in a description of your system's linker (not GNU ld)
16377 allow_undefined_flag
=unsupported
16378 always_export_symbols
=yes
16379 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'
16380 # Note: this linker hardcodes the directories in LIBPATH if there
16381 # are no directories specified by -L.
16382 hardcode_minus_L
=yes
16383 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16384 # Neither direct hardcoding nor static linking is supported with a
16386 hardcode_direct
=unsupported
16391 if test "$host_cpu" = ia64
; then
16392 # On IA64, the linker does run time linking by default, so we don't
16393 # have to do anything special.
16394 aix_use_runtimelinking
=no
16395 exp_sym_flag
='-Bexport'
16398 # If we're using GNU nm, then we don't want the "-C" option.
16399 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16400 # Also, AIX nm treats weak defined symbols like other global
16401 # defined symbols, whereas GNU nm marks them as "W".
16402 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16403 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'
16405 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'
16407 aix_use_runtimelinking
=no
16409 # Test if we are trying to use run time linking or normal
16410 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16411 # need to do runtime linking.
16412 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16413 for ld_flag
in $LDFLAGS; do
16414 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16415 aix_use_runtimelinking
=yes
16422 exp_sym_flag
='-bexport'
16423 no_entry_flag
='-bnoentry'
16426 # When large executables or shared objects are built, AIX ld can
16427 # have problems creating the table of contents. If linking a library
16428 # or program results in "error TOC overflow" add -mminimal-toc to
16429 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16430 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16433 hardcode_direct
=yes
16434 hardcode_direct_absolute
=yes
16435 hardcode_libdir_separator
=':'
16436 link_all_deplibs
=yes
16437 file_list_spec
='${wl}-f,'
16439 if test "$GCC" = yes; then
16440 case $host_os in aix4.
[012]|aix4.
[012].
*)
16441 # We only want to do this on AIX 4.2 and lower, the check
16442 # below for broken collect2 doesn't work under 4.3+
16443 collect2name
=`${CC} -print-prog-name=collect2`
16444 if test -f "$collect2name" &&
16445 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16447 # We have reworked collect2
16450 # We have old collect2
16451 hardcode_direct
=unsupported
16452 # It fails to find uninstalled libraries when the uninstalled
16453 # path is not listed in the libpath. Setting hardcode_minus_L
16454 # to unsupported forces relinking
16455 hardcode_minus_L
=yes
16456 hardcode_libdir_flag_spec
='-L$libdir'
16457 hardcode_libdir_separator
=
16461 shared_flag
='-shared'
16462 if test "$aix_use_runtimelinking" = yes; then
16463 shared_flag
="$shared_flag "'${wl}-G'
16467 if test "$host_cpu" = ia64
; then
16468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16469 # chokes on -Wl,-G. The following line is correct:
16472 if test "$aix_use_runtimelinking" = yes; then
16473 shared_flag
='${wl}-G'
16475 shared_flag
='${wl}-bM:SRE'
16480 export_dynamic_flag_spec
='${wl}-bexpall'
16481 # It seems that -bexpall does not export symbols beginning with
16482 # underscore (_), so it is better to generate a list of symbols to export.
16483 always_export_symbols
=yes
16484 if test "$aix_use_runtimelinking" = yes; then
16485 # Warning - without using the other runtime loading flags (-brtl),
16486 # -berok will link without error, but may produce a broken library.
16487 allow_undefined_flag
='-berok'
16488 # Determine the default libpath from the value encoded in an
16489 # empty executable.
16490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16491 /* end confdefs.h. */
16501 if ac_fn_c_try_link
"$LINENO"; then :
16503 lt_aix_libpath_sed
='
16504 /Import File Strings/,/^$/ {
16510 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16511 # Check for a 64-bit object if we didn't find anything.
16512 if test -z "$aix_libpath"; then
16513 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16516 rm -f core conftest.err conftest.
$ac_objext \
16517 conftest
$ac_exeext conftest.
$ac_ext
16518 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16520 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16521 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"
16523 if test "$host_cpu" = ia64
; then
16524 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16525 allow_undefined_flag
="-z nodefs"
16526 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"
16528 # Determine the default libpath from the value encoded in an
16529 # empty executable.
16530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16531 /* end confdefs.h. */
16541 if ac_fn_c_try_link
"$LINENO"; then :
16543 lt_aix_libpath_sed
='
16544 /Import File Strings/,/^$/ {
16550 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16551 # Check for a 64-bit object if we didn't find anything.
16552 if test -z "$aix_libpath"; then
16553 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16556 rm -f core conftest.err conftest.
$ac_objext \
16557 conftest
$ac_exeext conftest.
$ac_ext
16558 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16560 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16561 # Warning - without using the other run time loading flags,
16562 # -berok will link without error, but may produce a broken library.
16563 no_undefined_flag
=' ${wl}-bernotok'
16564 allow_undefined_flag
=' ${wl}-berok'
16565 if test "$with_gnu_ld" = yes; then
16566 # We only use this code for GNU lds that support --whole-archive.
16567 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16569 # Exported symbols can be pulled into shared objects from archives
16570 whole_archive_flag_spec
='$convenience'
16572 archive_cmds_need_lc
=yes
16573 # This is similar to how AIX traditionally builds its shared libraries.
16574 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'
16582 # see comment about AmigaOS4 .so support
16583 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16584 archive_expsym_cmds
=''
16587 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)'
16588 hardcode_libdir_flag_spec
='-L$libdir'
16589 hardcode_minus_L
=yes
16595 export_dynamic_flag_spec
=-rdynamic
16598 cygwin
* | mingw
* | pw32
* | cegcc
*)
16599 # When not using gcc, we currently assume that we are using
16600 # Microsoft Visual C++.
16601 # hardcode_libdir_flag_spec is actually meaningless, as there is
16602 # no search path for DLLs.
16603 hardcode_libdir_flag_spec
=' '
16604 allow_undefined_flag
=unsupported
16605 # Tell ltmain to make .lib files, not .a files.
16607 # Tell ltmain to make .dll files, not .so files.
16609 # FIXME: Setting linknames here is a bad hack.
16610 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16611 # The linker will automatically build a .lib file if we build a DLL.
16612 old_archive_from_new_cmds
='true'
16613 # FIXME: Should let the user specify the lib program.
16614 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16615 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16616 enable_shared_with_static_runtimes
=yes
16619 darwin
* | rhapsody
*)
16622 archive_cmds_need_lc
=no
16624 hardcode_automatic
=yes
16625 hardcode_shlibpath_var
=unsupported
16626 if test "$lt_cv_ld_force_load" = "yes"; then
16627 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\"`'
16629 whole_archive_flag_spec
=''
16631 link_all_deplibs
=yes
16632 allow_undefined_flag
="$_lt_dar_allow_undefined"
16633 case $cc_basename in
16634 ifort
*) _lt_dar_can_shared
=yes ;;
16635 *) _lt_dar_can_shared
=$GCC ;;
16637 if test "$_lt_dar_can_shared" = "yes"; then
16638 output_verbose_link_cmd
=func_echo_all
16639 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16640 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16641 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}"
16642 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}"
16651 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16652 hardcode_libdir_flag_spec
='-L$libdir'
16653 hardcode_shlibpath_var
=no
16656 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16657 # support. Future versions do this automatically, but an explicit c++rt0.o
16658 # does not break anything, and helps significantly (at the cost of a little
16661 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16662 hardcode_libdir_flag_spec
='-R$libdir'
16663 hardcode_direct
=yes
16664 hardcode_shlibpath_var
=no
16667 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16669 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16670 hardcode_direct
=yes
16671 hardcode_minus_L
=yes
16672 hardcode_shlibpath_var
=no
16675 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16676 freebsd
* | dragonfly
*)
16677 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16678 hardcode_libdir_flag_spec
='-R$libdir'
16679 hardcode_direct
=yes
16680 hardcode_shlibpath_var
=no
16684 if test "$GCC" = yes; then
16685 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'
16687 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'
16689 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16690 hardcode_libdir_separator
=:
16691 hardcode_direct
=yes
16693 # hardcode_minus_L: Not really in the search PATH,
16694 # but as the default location of the library.
16695 hardcode_minus_L
=yes
16696 export_dynamic_flag_spec
='${wl}-E'
16700 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16701 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16703 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16705 if test "$with_gnu_ld" = no
; then
16706 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16707 hardcode_libdir_flag_spec_ld
='+b $libdir'
16708 hardcode_libdir_separator
=:
16709 hardcode_direct
=yes
16710 hardcode_direct_absolute
=yes
16711 export_dynamic_flag_spec
='${wl}-E'
16712 # hardcode_minus_L: Not really in the search PATH,
16713 # but as the default location of the library.
16714 hardcode_minus_L
=yes
16719 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16722 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16725 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16728 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16734 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16737 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16741 # Older versions of the 11.00 compiler do not understand -b yet
16742 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16744 $as_echo_n "checking if $CC understands -b... " >&6; }
16745 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16746 $as_echo_n "(cached) " >&6
16748 lt_cv_prog_compiler__b
=no
16749 save_LDFLAGS
="$LDFLAGS"
16750 LDFLAGS
="$LDFLAGS -b"
16751 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16752 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16753 # The linker can only warn and ignore the option if not recognized
16754 # So say no if there are warnings
16755 if test -s conftest.err
; then
16756 # Append any errors to the config.log.
16757 cat conftest.err
1>&5
16758 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16759 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16760 if diff conftest.exp conftest.er2
>/dev
/null
; then
16761 lt_cv_prog_compiler__b
=yes
16764 lt_cv_prog_compiler__b
=yes
16768 LDFLAGS
="$save_LDFLAGS"
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16772 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16774 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16775 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16777 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16783 if test "$with_gnu_ld" = no
; then
16784 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16785 hardcode_libdir_separator
=:
16790 hardcode_shlibpath_var
=no
16793 hardcode_direct
=yes
16794 hardcode_direct_absolute
=yes
16795 export_dynamic_flag_spec
='${wl}-E'
16797 # hardcode_minus_L: Not really in the search PATH,
16798 # but as the default location of the library.
16799 hardcode_minus_L
=yes
16805 irix5
* | irix6
* | nonstopux
*)
16806 if test "$GCC" = yes; then
16807 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'
16808 # Try to use the -exported_symbol ld option, if it does not
16809 # work, assume that -exports_file does not work either and
16810 # implicitly export all symbols.
16811 save_LDFLAGS
="$LDFLAGS"
16812 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h. */
16817 if ac_fn_c_try_link
"$LINENO"; then :
16818 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'
16821 rm -f core conftest.err conftest.
$ac_objext \
16822 conftest
$ac_exeext conftest.
$ac_ext
16823 LDFLAGS
="$save_LDFLAGS"
16825 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'
16826 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'
16828 archive_cmds_need_lc
='no'
16829 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16830 hardcode_libdir_separator
=:
16832 link_all_deplibs
=yes
16836 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16837 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16839 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16841 hardcode_libdir_flag_spec
='-R$libdir'
16842 hardcode_direct
=yes
16843 hardcode_shlibpath_var
=no
16847 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16848 hardcode_direct
=yes
16849 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16850 hardcode_libdir_separator
=:
16851 hardcode_shlibpath_var
=no
16858 if test -f /usr
/libexec
/ld.so
; then
16859 hardcode_direct
=yes
16860 hardcode_shlibpath_var
=no
16861 hardcode_direct_absolute
=yes
16862 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16863 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16864 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16865 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16866 export_dynamic_flag_spec
='${wl}-E'
16869 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16870 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16871 hardcode_libdir_flag_spec
='-R$libdir'
16874 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16875 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16885 hardcode_libdir_flag_spec
='-L$libdir'
16886 hardcode_minus_L
=yes
16887 allow_undefined_flag
=unsupported
16888 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'
16889 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16893 if test "$GCC" = yes; then
16894 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16895 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'
16897 allow_undefined_flag
=' -expect_unresolved \*'
16898 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'
16900 archive_cmds_need_lc
='no'
16901 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16902 hardcode_libdir_separator
=:
16905 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16906 if test "$GCC" = yes; then
16907 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16908 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'
16909 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16911 allow_undefined_flag
=' -expect_unresolved \*'
16912 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'
16913 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~
16914 $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'
16916 # Both c and cxx compiler support -rpath directly
16917 hardcode_libdir_flag_spec
='-rpath $libdir'
16919 archive_cmds_need_lc
='no'
16920 hardcode_libdir_separator
=:
16924 no_undefined_flag
=' -z defs'
16925 if test "$GCC" = yes; then
16927 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16928 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16929 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16931 case `$CC -V 2>&1` in
16934 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16935 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16936 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16940 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16941 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16942 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16946 hardcode_libdir_flag_spec
='-R$libdir'
16947 hardcode_shlibpath_var
=no
16949 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16951 # The compiler driver will combine and reorder linker options,
16952 # but understands `-z linker_flag'. GCC discards it without `$wl',
16953 # but is careful enough not to reorder.
16954 # Supported since Solaris 2.6 (maybe 2.5.1?)
16955 if test "$GCC" = yes; then
16956 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16958 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16962 link_all_deplibs
=yes
16966 if test "x$host_vendor" = xsequent
; then
16967 # Use $CC to link under sequent, because it throws in some extra .o
16968 # files that make .init and .fini sections work.
16969 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16971 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16973 hardcode_libdir_flag_spec
='-L$libdir'
16974 hardcode_direct
=yes
16975 hardcode_minus_L
=yes
16976 hardcode_shlibpath_var
=no
16980 case $host_vendor in
16982 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16983 hardcode_direct
=yes # is this really true???
16986 ## LD is ld it makes a PLAMLIB
16987 ## CC just makes a GrossModule.
16988 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16989 reload_cmds
='$CC -r -o $output$reload_objs'
16993 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16994 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16997 runpath_var
='LD_RUN_PATH'
16998 hardcode_shlibpath_var
=no
17002 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17003 hardcode_shlibpath_var
=no
17004 export_dynamic_flag_spec
='-Bexport'
17008 if test -d /usr
/nec
; then
17009 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17010 hardcode_shlibpath_var
=no
17011 runpath_var
=LD_RUN_PATH
17012 hardcode_runpath_var
=yes
17017 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17018 no_undefined_flag
='${wl}-z,text'
17019 archive_cmds_need_lc
=no
17020 hardcode_shlibpath_var
=no
17021 runpath_var
='LD_RUN_PATH'
17023 if test "$GCC" = yes; then
17024 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17025 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17027 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17028 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17032 sysv5
* | sco3.2v5
* | sco5v6
*)
17033 # Note: We can NOT use -z defs as we might desire, because we do not
17034 # link with -lc, and that would cause any symbols used from libc to
17035 # always be unresolved, which means just about no library would
17036 # ever link correctly. If we're not using GNU ld we use -z text
17037 # though, which does catch some bad symbols but isn't as heavy-handed
17039 no_undefined_flag
='${wl}-z,text'
17040 allow_undefined_flag
='${wl}-z,nodefs'
17041 archive_cmds_need_lc
=no
17042 hardcode_shlibpath_var
=no
17043 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17044 hardcode_libdir_separator
=':'
17045 link_all_deplibs
=yes
17046 export_dynamic_flag_spec
='${wl}-Bexport'
17047 runpath_var
='LD_RUN_PATH'
17049 if test "$GCC" = yes; then
17050 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17051 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17053 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17054 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17059 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17060 hardcode_libdir_flag_spec
='-L$libdir'
17061 hardcode_shlibpath_var
=no
17069 if test x
$host_vendor = xsni
; then
17071 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17072 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17079 $as_echo "$ld_shlibs" >&6; }
17080 test "$ld_shlibs" = no
&& can_build_shared
=no
17082 with_gnu_ld
=$with_gnu_ld
17099 # Do we need to explicitly link libc?
17101 case "x$archive_cmds_need_lc" in
17103 # Assume -lc should be added
17104 archive_cmds_need_lc
=yes
17106 if test "$enable_shared" = yes && test "$GCC" = yes; then
17107 case $archive_cmds in
17109 # FIXME: we may have to deal with multi-command sequences.
17112 # Test whether the compiler implicitly links with -lc since on some
17113 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17114 # to ld, don't add -lc before -lgcc.
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17116 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17117 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17118 $as_echo_n "(cached) " >&6
17121 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17124 (eval $ac_compile) 2>&5
17126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17127 test $ac_status = 0; } 2>conftest.err
; then
17130 libobjs
=conftest.
$ac_objext
17132 wl
=$lt_prog_compiler_wl
17133 pic_flag
=$lt_prog_compiler_pic
17139 lt_save_allow_undefined_flag
=$allow_undefined_flag
17140 allow_undefined_flag
=
17141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17142 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17145 test $ac_status = 0; }
17147 lt_cv_archive_cmds_need_lc
=no
17149 lt_cv_archive_cmds_need_lc
=yes
17151 allow_undefined_flag
=$lt_save_allow_undefined_flag
17153 cat conftest.err
1>&5
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17159 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17160 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17324 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17326 if test "$GCC" = yes; then
17328 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17329 *) lt_awk_arg
="/^libraries:/" ;;
17332 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17333 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17335 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17336 case $lt_search_path_spec in
17338 # if the path contains ";" then we assume it to be the separator
17339 # otherwise default to the standard path separator (i.e. ":") - it is
17340 # assumed that no part of a normal pathname contains ";" but that should
17341 # okay in the real world where ";" in dirpaths is itself problematic.
17342 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17345 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17348 # Ok, now we have the path, separated by spaces, we can step through it
17349 # and add multilib dir if necessary.
17350 lt_tmp_lt_search_path_spec
=
17351 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17352 for lt_sys_path
in $lt_search_path_spec; do
17353 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17354 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17356 test -d "$lt_sys_path" && \
17357 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17360 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17361 BEGIN {RS=" "; FS="/|\n";} {
17364 for (lt_i = NF; lt_i > 0; lt_i--) {
17365 if ($lt_i != "" && $lt_i != ".") {
17366 if ($lt_i == "..") {
17369 if (lt_count == 0) {
17370 lt_foo="/" $lt_i lt_foo;
17377 if (lt_foo != "") { lt_freq[lt_foo]++; }
17378 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17380 # AWK program above erroneously prepends '/' to C:/dos/paths
17383 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17384 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17386 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17388 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17390 library_names_spec
=
17391 libname_spec
='lib$name'
17395 postuninstall_cmds
=
17399 shlibpath_overrides_runpath
=unknown
17401 dynamic_linker
="$host_os ld.so"
17402 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17403 need_lib_prefix
=unknown
17404 hardcode_into_libs
=no
17406 # when you set need_version to no, make sure it does not cause -set_version
17407 # flags to be left without arguments
17408 need_version
=unknown
17413 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17414 shlibpath_var
=LIBPATH
17416 # AIX 3 has no versioning support, so we append a major version to the name.
17417 soname_spec
='${libname}${release}${shared_ext}$major'
17424 hardcode_into_libs
=yes
17425 if test "$host_cpu" = ia64
; then
17426 # AIX 5 supports IA64
17427 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17428 shlibpath_var
=LD_LIBRARY_PATH
17430 # With GCC up to 2.95.x, collect2 would create an import file
17431 # for dependence libraries. The import file would start with
17432 # the line `#! .'. This would cause the generated library to
17433 # depend on `.', always an invalid library. This was fixed in
17434 # development snapshots of GCC prior to 3.0.
17436 aix4 | aix4.
[01] | aix4.
[01].
*)
17437 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17439 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17442 can_build_shared
=no
17446 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17447 # soname into executable. Probably we can add versioning support to
17448 # collect2, so additional links can be useful in future.
17449 if test "$aix_use_runtimelinking" = yes; then
17450 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17451 # instead of lib<name>.a to let people know that these are not
17452 # typical AIX shared libraries.
17453 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455 # We preserve .a as extension for shared libraries through AIX4.2
17456 # and later when we are not doing run time linking.
17457 library_names_spec
='${libname}${release}.a $libname.a'
17458 soname_spec
='${libname}${release}${shared_ext}$major'
17460 shlibpath_var
=LIBPATH
17467 # Since July 2007 AmigaOS4 officially supports .so libraries.
17468 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17469 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17472 library_names_spec
='$libname.ixlibrary $libname.a'
17473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17474 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'
17480 library_names_spec
='${libname}${shared_ext}'
17481 dynamic_linker
="$host_os ld.so"
17482 shlibpath_var
=LIBRARY_PATH
17488 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489 soname_spec
='${libname}${release}${shared_ext}$major'
17490 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17491 shlibpath_var
=LD_LIBRARY_PATH
17492 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17493 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17494 # the default ld.so.conf also contains /usr/contrib/lib and
17495 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17496 # libtool to hard-code these into programs
17499 cygwin
* | mingw
* | pw32
* | cegcc
*)
17500 version_type
=windows
17505 case $GCC,$host_os in
17506 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17507 library_names_spec
='$libname.dll.a'
17508 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17509 postinstall_cmds
='base_file=`basename \${file}`~
17510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17511 dldir=$destdir/`dirname \$dlpath`~
17512 test -d \$dldir || mkdir -p \$dldir~
17513 $install_prog $dir/$dlname \$dldir/$dlname~
17514 chmod a+x \$dldir/$dlname~
17515 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17516 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17518 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17519 dlpath=$dir/\$dldll~
17521 shlibpath_overrides_runpath
=yes
17525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17526 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17528 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17531 # MinGW DLLs use traditional 'lib' prefix
17532 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17535 # pw32 DLLs use 'pw' prefix rather than 'lib'
17536 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17542 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17545 dynamic_linker
='Win32 ld.exe'
17546 # FIXME: first we should search . and the directory the executable is in
17550 darwin
* | rhapsody
*)
17551 dynamic_linker
="$host_os dyld"
17552 version_type
=darwin
17555 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17556 soname_spec
='${libname}${release}${major}$shared_ext'
17557 shlibpath_overrides_runpath
=yes
17558 shlibpath_var
=DYLD_LIBRARY_PATH
17559 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17561 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17562 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17569 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17570 soname_spec
='${libname}${release}${shared_ext}$major'
17571 shlibpath_var
=LD_LIBRARY_PATH
17574 freebsd
* | dragonfly
*)
17575 # DragonFly does not have aout. When/if they implement a new
17576 # versioning mechanism, adjust this.
17577 if test -x /usr
/bin
/objformat
; then
17578 objformat
=`/usr/bin/objformat`
17581 freebsd
[23].
*) objformat
=aout
;;
17582 *) objformat
=elf
;;
17585 version_type
=freebsd-
$objformat
17586 case $version_type in
17588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17593 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17597 shlibpath_var
=LD_LIBRARY_PATH
17600 shlibpath_overrides_runpath
=yes
17602 freebsd3.
[01]* | freebsdelf3.
[01]*)
17603 shlibpath_overrides_runpath
=yes
17604 hardcode_into_libs
=yes
17606 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17607 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17608 shlibpath_overrides_runpath
=no
17609 hardcode_into_libs
=yes
17611 *) # from 4.6 on, and DragonFly
17612 shlibpath_overrides_runpath
=yes
17613 hardcode_into_libs
=yes
17622 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17623 soname_spec
='${libname}${release}${shared_ext}$major'
17624 shlibpath_var
=LD_LIBRARY_PATH
17625 hardcode_into_libs
=yes
17632 dynamic_linker
="$host_os runtime_loader"
17633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17634 soname_spec
='${libname}${release}${shared_ext}$major'
17635 shlibpath_var
=LIBRARY_PATH
17636 shlibpath_overrides_runpath
=yes
17637 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17638 hardcode_into_libs
=yes
17641 hpux9
* | hpux10
* | hpux11
*)
17642 # Give a soname corresponding to the major version so that dld.sl refuses to
17643 # link against other versions.
17650 hardcode_into_libs
=yes
17651 dynamic_linker
="$host_os dld.so"
17652 shlibpath_var
=LD_LIBRARY_PATH
17653 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17654 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655 soname_spec
='${libname}${release}${shared_ext}$major'
17656 if test "X$HPUX_IA64_MODE" = X32
; then
17657 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17659 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17661 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17665 hardcode_into_libs
=yes
17666 dynamic_linker
="$host_os dld.sl"
17667 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17668 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17670 soname_spec
='${libname}${release}${shared_ext}$major'
17671 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17672 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17676 dynamic_linker
="$host_os dld.sl"
17677 shlibpath_var
=SHLIB_PATH
17678 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17679 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680 soname_spec
='${libname}${release}${shared_ext}$major'
17683 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17684 postinstall_cmds
='chmod 555 $lib'
17685 # or fails outright, so override atomically:
17686 install_override_mode
=555
17693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17694 soname_spec
='${libname}${release}${shared_ext}$major'
17695 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17696 shlibpath_var
=LD_LIBRARY_PATH
17697 shlibpath_overrides_runpath
=no
17698 hardcode_into_libs
=yes
17701 irix5
* | irix6
* | nonstopux
*)
17703 nonstopux
*) version_type
=nonstopux
;;
17705 if test "$lt_cv_prog_gnu_ld" = yes; then
17713 soname_spec
='${libname}${release}${shared_ext}$major'
17714 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17716 irix5
* | nonstopux
*)
17717 libsuff
= shlibsuff
=
17720 case $LD in # libtool.m4 will add one of these switches to LD
17721 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17722 libsuff
= shlibsuff
= libmagic
=32-bit;;
17723 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17724 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17725 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17726 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17727 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17731 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17732 shlibpath_overrides_runpath
=no
17733 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17734 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17735 hardcode_into_libs
=yes
17738 # No shared lib support for Linux oldld, aout, or coff.
17739 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17743 # This must be Linux ELF.
17744 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749 soname_spec
='${libname}${release}${shared_ext}$major'
17750 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17751 shlibpath_var
=LD_LIBRARY_PATH
17752 shlibpath_overrides_runpath
=no
17754 # Some binutils ld are patched to set DT_RUNPATH
17755 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17756 $as_echo_n "(cached) " >&6
17758 lt_cv_shlibpath_overrides_runpath
=no
17759 save_LDFLAGS
=$LDFLAGS
17760 save_libdir
=$libdir
17761 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17762 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17764 /* end confdefs.h. */
17774 if ac_fn_c_try_link
"$LINENO"; then :
17775 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17776 lt_cv_shlibpath_overrides_runpath
=yes
17779 rm -f core conftest.err conftest.
$ac_objext \
17780 conftest
$ac_exeext conftest.
$ac_ext
17781 LDFLAGS
=$save_LDFLAGS
17782 libdir
=$save_libdir
17786 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17788 # This implies no fast_install, which is unacceptable.
17789 # Some rework will be needed to allow for fast_install
17790 # before this can be enabled.
17791 hardcode_into_libs
=yes
17793 # Append ld.so.conf contents to the search path
17794 if test -f /etc
/ld.so.conf
; then
17795 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' ' '`
17796 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17799 # We used to test for /lib/ld.so.1 and disable shared libraries on
17800 # powerpc, because MkLinux only supported shared libraries with the
17801 # GNU dynamic linker. Since this was broken with cross compilers,
17802 # most powerpc-linux boxes support dynamic linking these days and
17803 # people can always --disable-shared, the test was removed, and we
17804 # assume the GNU/Linux dynamic linker is in use.
17805 dynamic_linker
='GNU/Linux ld.so'
17812 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17814 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17815 dynamic_linker
='NetBSD (a.out) ld.so'
17817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17818 soname_spec
='${libname}${release}${shared_ext}$major'
17819 dynamic_linker
='NetBSD ld.elf_so'
17821 shlibpath_var
=LD_LIBRARY_PATH
17822 shlibpath_overrides_runpath
=yes
17823 hardcode_into_libs
=yes
17828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17829 shlibpath_var
=LD_LIBRARY_PATH
17830 shlibpath_overrides_runpath
=yes
17837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17838 soname_spec
='${libname}${release}${shared_ext}$major'
17839 shlibpath_var
=LD_LIBRARY_PATH
17840 shlibpath_overrides_runpath
=no
17841 hardcode_into_libs
=yes
17842 dynamic_linker
='ldqnx.so'
17847 sys_lib_dlsearch_path_spec
="/usr/lib"
17849 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17851 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17852 *) need_version
=no
;;
17854 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17855 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17856 shlibpath_var
=LD_LIBRARY_PATH
17857 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17859 openbsd2.
[89] | openbsd2.
[89].
*)
17860 shlibpath_overrides_runpath
=no
17863 shlibpath_overrides_runpath
=yes
17867 shlibpath_overrides_runpath
=yes
17872 libname_spec
='$name'
17875 library_names_spec
='$libname${shared_ext} $libname.a'
17876 dynamic_linker
='OS/2 ld.exe'
17877 shlibpath_var
=LIBPATH
17880 osf3
* | osf4
* | osf5
*)
17884 soname_spec
='${libname}${release}${shared_ext}$major'
17885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886 shlibpath_var
=LD_LIBRARY_PATH
17887 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17888 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17899 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17900 soname_spec
='${libname}${release}${shared_ext}$major'
17901 shlibpath_var
=LD_LIBRARY_PATH
17902 shlibpath_overrides_runpath
=yes
17903 hardcode_into_libs
=yes
17904 # ldd complains unless libraries are executable
17905 postinstall_cmds
='chmod +x $lib'
17910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17911 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17912 shlibpath_var
=LD_LIBRARY_PATH
17913 shlibpath_overrides_runpath
=yes
17914 if test "$with_gnu_ld" = yes; then
17922 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17923 soname_spec
='${libname}${release}${shared_ext}$major'
17924 shlibpath_var
=LD_LIBRARY_PATH
17925 case $host_vendor in
17927 shlibpath_overrides_runpath
=no
17929 runpath_var
=LD_RUN_PATH
17937 shlibpath_overrides_runpath
=no
17938 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17944 if test -d /usr
/nec
;then
17946 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17947 soname_spec
='$libname${shared_ext}.$major'
17948 shlibpath_var
=LD_LIBRARY_PATH
17952 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17953 version_type
=freebsd-elf
17956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17957 soname_spec
='${libname}${release}${shared_ext}$major'
17958 shlibpath_var
=LD_LIBRARY_PATH
17959 shlibpath_overrides_runpath
=yes
17960 hardcode_into_libs
=yes
17961 if test "$with_gnu_ld" = yes; then
17962 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17964 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17967 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17971 sys_lib_dlsearch_path_spec
='/usr/lib'
17975 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980 shlibpath_var
=LD_LIBRARY_PATH
17981 shlibpath_overrides_runpath
=no
17982 hardcode_into_libs
=yes
17987 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17988 soname_spec
='${libname}${release}${shared_ext}$major'
17989 shlibpath_var
=LD_LIBRARY_PATH
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17997 $as_echo "$dynamic_linker" >&6; }
17998 test "$dynamic_linker" = no
&& can_build_shared
=no
18000 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18001 if test "$GCC" = yes; then
18002 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18005 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18006 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18008 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18009 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18104 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18106 if test -n "$hardcode_libdir_flag_spec" ||
18107 test -n "$runpath_var" ||
18108 test "X$hardcode_automatic" = "Xyes" ; then
18110 # We can hardcode non-existent directories.
18111 if test "$hardcode_direct" != no
&&
18112 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18113 # have to relink, otherwise we might link with an installed library
18114 # when we should be linking with a yet-to-be-installed one
18115 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18116 test "$hardcode_minus_L" != no
; then
18117 # Linking always hardcodes the temporary library directory.
18118 hardcode_action
=relink
18120 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18121 hardcode_action
=immediate
18124 # We cannot hardcode anything, or else we can only hardcode existing
18126 hardcode_action
=unsupported
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18129 $as_echo "$hardcode_action" >&6; }
18131 if test "$hardcode_action" = relink ||
18132 test "$inherit_rpath" = yes; then
18133 # Fast installation is not supported
18134 enable_fast_install
=no
18135 elif test "$shlibpath_overrides_runpath" = yes ||
18136 test "$enable_shared" = no
; then
18137 # Fast installation is not necessary
18138 enable_fast_install
=needless
18146 if test "x$enable_dlopen" != xyes
; then
18147 enable_dlopen
=unknown
18148 enable_dlopen_self
=unknown
18149 enable_dlopen_self_static
=unknown
18156 lt_cv_dlopen
="load_add_on"
18158 lt_cv_dlopen_self
=yes
18161 mingw
* | pw32
* | cegcc
*)
18162 lt_cv_dlopen
="LoadLibrary"
18167 lt_cv_dlopen
="dlopen"
18172 # if libdl is installed we need to link against it
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18174 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18175 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18176 $as_echo_n "(cached) " >&6
18178 ac_check_lib_save_LIBS
=$LIBS
18180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18183 /* Override any GCC internal prototype to avoid an error.
18184 Use char because int might match the return type of a GCC
18185 builtin and then its argument prototype would still apply. */
18198 if ac_fn_c_try_link
"$LINENO"; then :
18199 ac_cv_lib_dl_dlopen
=yes
18201 ac_cv_lib_dl_dlopen
=no
18203 rm -f core conftest.err conftest.
$ac_objext \
18204 conftest
$ac_exeext conftest.
$ac_ext
18205 LIBS
=$ac_check_lib_save_LIBS
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18208 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18209 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18210 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18213 lt_cv_dlopen
="dyld"
18215 lt_cv_dlopen_self
=yes
18222 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18223 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18224 lt_cv_dlopen
="shl_load"
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18227 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18228 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18229 $as_echo_n "(cached) " >&6
18231 ac_check_lib_save_LIBS
=$LIBS
18233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18236 /* Override any GCC internal prototype to avoid an error.
18237 Use char because int might match the return type of a GCC
18238 builtin and then its argument prototype would still apply. */
18246 return shl_load ();
18251 if ac_fn_c_try_link
"$LINENO"; then :
18252 ac_cv_lib_dld_shl_load
=yes
18254 ac_cv_lib_dld_shl_load
=no
18256 rm -f core conftest.err conftest.
$ac_objext \
18257 conftest
$ac_exeext conftest.
$ac_ext
18258 LIBS
=$ac_check_lib_save_LIBS
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18261 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18262 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18263 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18265 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18266 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18267 lt_cv_dlopen
="dlopen"
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18270 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18271 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18272 $as_echo_n "(cached) " >&6
18274 ac_check_lib_save_LIBS
=$LIBS
18276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18277 /* end confdefs.h. */
18279 /* Override any GCC internal prototype to avoid an error.
18280 Use char because int might match the return type of a GCC
18281 builtin and then its argument prototype would still apply. */
18294 if ac_fn_c_try_link
"$LINENO"; then :
18295 ac_cv_lib_dl_dlopen
=yes
18297 ac_cv_lib_dl_dlopen
=no
18299 rm -f core conftest.err conftest.
$ac_objext \
18300 conftest
$ac_exeext conftest.
$ac_ext
18301 LIBS
=$ac_check_lib_save_LIBS
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18304 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18305 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18306 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18309 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18310 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18311 $as_echo_n "(cached) " >&6
18313 ac_check_lib_save_LIBS
=$LIBS
18314 LIBS
="-lsvld $LIBS"
18315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18316 /* end confdefs.h. */
18318 /* Override any GCC internal prototype to avoid an error.
18319 Use char because int might match the return type of a GCC
18320 builtin and then its argument prototype would still apply. */
18333 if ac_fn_c_try_link
"$LINENO"; then :
18334 ac_cv_lib_svld_dlopen
=yes
18336 ac_cv_lib_svld_dlopen
=no
18338 rm -f core conftest.err conftest.
$ac_objext \
18339 conftest
$ac_exeext conftest.
$ac_ext
18340 LIBS
=$ac_check_lib_save_LIBS
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18343 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18344 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18345 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18348 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18349 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18350 $as_echo_n "(cached) " >&6
18352 ac_check_lib_save_LIBS
=$LIBS
18354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18355 /* end confdefs.h. */
18357 /* Override any GCC internal prototype to avoid an error.
18358 Use char because int might match the return type of a GCC
18359 builtin and then its argument prototype would still apply. */
18367 return dld_link ();
18372 if ac_fn_c_try_link
"$LINENO"; then :
18373 ac_cv_lib_dld_dld_link
=yes
18375 ac_cv_lib_dld_dld_link
=no
18377 rm -f core conftest.err conftest.
$ac_objext \
18378 conftest
$ac_exeext conftest.
$ac_ext
18379 LIBS
=$ac_check_lib_save_LIBS
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18382 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18383 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18384 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18405 if test "x$lt_cv_dlopen" != xno
; then
18411 case $lt_cv_dlopen in
18413 save_CPPFLAGS
="$CPPFLAGS"
18414 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18416 save_LDFLAGS
="$LDFLAGS"
18417 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18420 LIBS
="$lt_cv_dlopen_libs $LIBS"
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18423 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18424 if test "${lt_cv_dlopen_self+set}" = set; then :
18425 $as_echo_n "(cached) " >&6
18427 if test "$cross_compiling" = yes; then :
18428 lt_cv_dlopen_self
=cross
18430 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18431 lt_status
=$lt_dlunknown
18432 cat > conftest.
$ac_ext <<_LT_EOF
18433 #line 18433 "configure"
18434 #include "confdefs.h"
18443 # define LT_DLGLOBAL RTLD_GLOBAL
18446 # define LT_DLGLOBAL DL_GLOBAL
18448 # define LT_DLGLOBAL 0
18452 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18453 find out it does not work in some platform. */
18454 #ifndef LT_DLLAZY_OR_NOW
18456 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18459 # define LT_DLLAZY_OR_NOW DL_LAZY
18462 # define LT_DLLAZY_OR_NOW RTLD_NOW
18465 # define LT_DLLAZY_OR_NOW DL_NOW
18467 # define LT_DLLAZY_OR_NOW 0
18474 /* When -fvisbility=hidden is used, assume the code has been annotated
18475 correspondingly for the symbols needed. */
18476 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18477 void fnord () __attribute__((visibility("default")));
18480 void fnord () { int i=42; }
18483 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18484 int status = $lt_dlunknown;
18488 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18491 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18492 else puts (dlerror ());
18494 /* dlclose (self); */
18502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18503 (eval $ac_link) 2>&5
18505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18506 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18507 (.
/conftest
; exit; ) >&5 2>/dev
/null
18509 case x
$lt_status in
18510 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18511 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18512 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18515 # compilation failed
18516 lt_cv_dlopen_self
=no
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18524 $as_echo "$lt_cv_dlopen_self" >&6; }
18526 if test "x$lt_cv_dlopen_self" = xyes
; then
18527 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18529 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18530 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18531 $as_echo_n "(cached) " >&6
18533 if test "$cross_compiling" = yes; then :
18534 lt_cv_dlopen_self_static
=cross
18536 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18537 lt_status
=$lt_dlunknown
18538 cat > conftest.
$ac_ext <<_LT_EOF
18539 #line 18539 "configure"
18540 #include "confdefs.h"
18549 # define LT_DLGLOBAL RTLD_GLOBAL
18552 # define LT_DLGLOBAL DL_GLOBAL
18554 # define LT_DLGLOBAL 0
18558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18559 find out it does not work in some platform. */
18560 #ifndef LT_DLLAZY_OR_NOW
18562 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18565 # define LT_DLLAZY_OR_NOW DL_LAZY
18568 # define LT_DLLAZY_OR_NOW RTLD_NOW
18571 # define LT_DLLAZY_OR_NOW DL_NOW
18573 # define LT_DLLAZY_OR_NOW 0
18580 /* When -fvisbility=hidden is used, assume the code has been annotated
18581 correspondingly for the symbols needed. */
18582 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18583 void fnord () __attribute__((visibility("default")));
18586 void fnord () { int i=42; }
18589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18590 int status = $lt_dlunknown;
18594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18597 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18598 else puts (dlerror ());
18600 /* dlclose (self); */
18608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18609 (eval $ac_link) 2>&5
18611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18612 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18613 (.
/conftest
; exit; ) >&5 2>/dev
/null
18615 case x
$lt_status in
18616 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18617 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18618 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18621 # compilation failed
18622 lt_cv_dlopen_self_static
=no
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18630 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18633 CPPFLAGS
="$save_CPPFLAGS"
18634 LDFLAGS
="$save_LDFLAGS"
18639 case $lt_cv_dlopen_self in
18640 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18641 *) enable_dlopen_self
=unknown
;;
18644 case $lt_cv_dlopen_self_static in
18645 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18646 *) enable_dlopen_self_static
=unknown
;;
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18669 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18670 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18671 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18672 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18674 $as_echo "yes" >&6; }
18676 # FIXME - insert some real tests, host_os isn't really good enough
18679 if test -n "$STRIP" ; then
18680 striplib
="$STRIP -x"
18681 old_striplib
="$STRIP -S"
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18683 $as_echo "yes" >&6; }
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18686 $as_echo "no" >&6; }
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18691 $as_echo "no" >&6; }
18707 # Report which library types will actually be built
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18709 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18711 $as_echo "$can_build_shared" >&6; }
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18714 $as_echo_n "checking whether to build shared libraries... " >&6; }
18715 test "$can_build_shared" = "no" && enable_shared
=no
18717 # On AIX, shared libraries and static libraries use the same namespace, and
18718 # are all built from PIC.
18721 test "$enable_shared" = yes && enable_static
=no
18722 if test -n "$RANLIB"; then
18723 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18724 postinstall_cmds
='$RANLIB $lib'
18729 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18730 test "$enable_shared" = yes && enable_static
=no
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18735 $as_echo "$enable_shared" >&6; }
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18738 $as_echo_n "checking whether to build static libraries... " >&6; }
18739 # Make sure either enable_shared or enable_static is yes.
18740 test "$enable_shared" = yes || enable_static
=yes
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18742 $as_echo "$enable_static" >&6; }
18749 ac_cpp
='$CXXCPP $CPPFLAGS'
18750 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18751 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18752 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18756 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18757 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18758 (test "X$CXX" != "Xg++"))) ; then
18760 ac_cpp
='$CXXCPP $CPPFLAGS'
18761 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18762 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18763 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18765 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18766 if test -z "$CXXCPP"; then
18767 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18768 $as_echo_n "(cached) " >&6
18770 # Double quotes because CXXCPP needs to be expanded
18771 for CXXCPP
in "$CXX -E" "/lib/cpp"
18773 ac_preproc_ok
=false
18774 for ac_cxx_preproc_warn_flag
in '' yes
18776 # Use a header file that comes with gcc, so configuring glibc
18777 # with a fresh cross-compiler works.
18778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18779 # <limits.h> exists even on freestanding compilers.
18780 # On the NeXT, cc -E runs the code through the compiler's parser,
18781 # not just through cpp. "Syntax error" is here to catch this case.
18782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18785 # include <limits.h>
18787 # include <assert.h>
18791 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18794 # Broken: fails on valid input.
18797 rm -f conftest.err conftest.
$ac_ext
18799 # OK, works on sane cases. Now check whether nonexistent headers
18800 # can be detected and how.
18801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18802 /* end confdefs.h. */
18803 #include <ac_nonexistent.h>
18805 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18806 # Broken: success on invalid input.
18809 # Passes both tests.
18813 rm -f conftest.err conftest.
$ac_ext
18816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18817 rm -f conftest.err conftest.
$ac_ext
18818 if $ac_preproc_ok; then :
18823 ac_cv_prog_CXXCPP
=$CXXCPP
18826 CXXCPP
=$ac_cv_prog_CXXCPP
18828 ac_cv_prog_CXXCPP
=$CXXCPP
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18831 $as_echo "$CXXCPP" >&6; }
18832 ac_preproc_ok
=false
18833 for ac_cxx_preproc_warn_flag
in '' yes
18835 # Use a header file that comes with gcc, so configuring glibc
18836 # with a fresh cross-compiler works.
18837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18838 # <limits.h> exists even on freestanding compilers.
18839 # On the NeXT, cc -E runs the code through the compiler's parser,
18840 # not just through cpp. "Syntax error" is here to catch this case.
18841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18842 /* end confdefs.h. */
18844 # include <limits.h>
18846 # include <assert.h>
18850 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18853 # Broken: fails on valid input.
18856 rm -f conftest.err conftest.
$ac_ext
18858 # OK, works on sane cases. Now check whether nonexistent headers
18859 # can be detected and how.
18860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18861 /* end confdefs.h. */
18862 #include <ac_nonexistent.h>
18864 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18865 # Broken: success on invalid input.
18868 # Passes both tests.
18872 rm -f conftest.err conftest.
$ac_ext
18875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18876 rm -f conftest.err conftest.
$ac_ext
18877 if $ac_preproc_ok; then :
18880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18882 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18883 See \`config.log' for more details." "$LINENO" 5; }
18887 ac_cpp
='$CXXCPP $CPPFLAGS'
18888 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18893 _lt_caught_CXX_error
=yes
18897 ac_cpp
='$CXXCPP $CPPFLAGS'
18898 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18899 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18900 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18902 archive_cmds_need_lc_CXX
=no
18903 allow_undefined_flag_CXX
=
18904 always_export_symbols_CXX
=no
18905 archive_expsym_cmds_CXX
=
18906 compiler_needs_object_CXX
=no
18907 export_dynamic_flag_spec_CXX
=
18908 hardcode_direct_CXX
=no
18909 hardcode_direct_absolute_CXX
=no
18910 hardcode_libdir_flag_spec_CXX
=
18911 hardcode_libdir_flag_spec_ld_CXX
=
18912 hardcode_libdir_separator_CXX
=
18913 hardcode_minus_L_CXX
=no
18914 hardcode_shlibpath_var_CXX
=unsupported
18915 hardcode_automatic_CXX
=no
18916 inherit_rpath_CXX
=no
18918 module_expsym_cmds_CXX
=
18919 link_all_deplibs_CXX
=unknown
18920 old_archive_cmds_CXX
=$old_archive_cmds
18921 reload_flag_CXX
=$reload_flag
18922 reload_cmds_CXX
=$reload_cmds
18923 no_undefined_flag_CXX
=
18924 whole_archive_flag_spec_CXX
=
18925 enable_shared_with_static_runtimes_CXX
=no
18927 # Source file extension for C++ test sources.
18930 # Object file extension for compiled C++ test sources.
18934 # No sense in running all these tests if we already determined that
18935 # the CXX compiler isn't working. Some variables (like enable_shared)
18936 # are currently assumed to apply to all compilers on this platform,
18937 # and will be corrupted by setting them based on a non-working compiler.
18938 if test "$_lt_caught_CXX_error" != yes; then
18939 # Code to be used in simple compile tests
18940 lt_simple_compile_test_code
="int some_variable = 0;"
18942 # Code to be used in simple link tests
18943 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18945 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18952 # If no C compiler was specified, use CC.
18955 # If no C compiler flags were specified, use CFLAGS.
18956 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18958 # Allow CC to be a program name with arguments.
18962 # save warnings/boilerplate of simple test code
18963 ac_outfile
=conftest.
$ac_objext
18964 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18965 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18966 _lt_compiler_boilerplate
=`cat conftest.err`
18969 ac_outfile
=conftest.
$ac_objext
18970 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18971 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18972 _lt_linker_boilerplate
=`cat conftest.err`
18976 # Allow CC to be a program name with arguments.
18981 lt_save_with_gnu_ld
=$with_gnu_ld
18982 lt_save_path_LD
=$lt_cv_path_LD
18983 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18984 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18986 $as_unset lt_cv_prog_gnu_ld
18988 if test -n "${lt_cv_path_LDCXX+set}"; then
18989 lt_cv_path_LD
=$lt_cv_path_LDCXX
18991 $as_unset lt_cv_path_LD
18993 test -z "${LDCXX+set}" || LD
=$LDCXX
18997 for cc_temp
in $compiler""; do
18999 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19000 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19005 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19008 if test -n "$compiler"; then
19009 # We don't want -fno-exception when compiling C++ code, so set the
19010 # no_builtin_flag separately
19011 if test "$GXX" = yes; then
19012 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19014 lt_prog_compiler_no_builtin_flag_CXX
=
19017 if test "$GXX" = yes; then
19018 # Set up default GNU C++ configuration
19022 # Check whether --with-gnu-ld was given.
19023 if test "${with_gnu_ld+set}" = set; then :
19024 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19030 if test "$GCC" = yes; then
19031 # Check if gcc -print-prog-name=ld gives a path.
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19033 $as_echo_n "checking for ld used by $CC... " >&6; }
19036 # gcc leaves a trailing carriage return which upsets mingw
19037 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19039 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19042 # Accept absolute paths.
19044 re_direlt
='/[^/][^/]*/\.\./'
19045 # Canonicalize the pathname of ld
19046 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19047 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19048 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19050 test -z "$LD" && LD
="$ac_prog"
19053 # If it fails, then pretend we aren't using GCC.
19057 # If it is relative, then search for the first ld in PATH.
19058 with_gnu_ld
=unknown
19061 elif test "$with_gnu_ld" = yes; then
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19063 $as_echo_n "checking for GNU ld... " >&6; }
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19066 $as_echo_n "checking for non-GNU ld... " >&6; }
19068 if test "${lt_cv_path_LD+set}" = set; then :
19069 $as_echo_n "(cached) " >&6
19071 if test -z "$LD"; then
19072 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19073 for ac_dir
in $PATH; do
19075 test -z "$ac_dir" && ac_dir
=.
19076 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19077 lt_cv_path_LD
="$ac_dir/$ac_prog"
19078 # Check to see if the program is GNU ld. I'd rather use --version,
19079 # but apparently some variants of GNU ld only accept -v.
19080 # Break only if it was the GNU/non-GNU ld that we prefer.
19081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19082 *GNU
* |
*'with BFD'*)
19083 test "$with_gnu_ld" != no
&& break
19086 test "$with_gnu_ld" != yes && break
19093 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19097 LD
="$lt_cv_path_LD"
19098 if test -n "$LD"; then
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19100 $as_echo "$LD" >&6; }
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19103 $as_echo "no" >&6; }
19105 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19107 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19108 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19109 $as_echo_n "(cached) " >&6
19111 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19112 case `$LD -v 2>&1 </dev/null` in
19113 *GNU
* |
*'with BFD'*)
19114 lt_cv_prog_gnu_ld
=yes
19117 lt_cv_prog_gnu_ld
=no
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19122 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19123 with_gnu_ld
=$lt_cv_prog_gnu_ld
19131 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19132 # archiving commands below assume that GNU ld is being used.
19133 if test "$with_gnu_ld" = yes; then
19134 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19135 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'
19137 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19138 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19140 # If archive_cmds runs LD, not CC, wlarc should be empty
19141 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19142 # investigate it a little bit more. (MM)
19145 # ancient GNU ld didn't support --whole-archive et. al.
19146 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19147 $GREP 'no-whole-archive' > /dev
/null
; then
19148 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19150 whole_archive_flag_spec_CXX
=
19156 # A generic and very simple default shared library creation
19157 # command for GNU C++ for the case where it uses the native
19158 # linker, instead of GNU ld. If possible, this setting should
19159 # overridden to take advantage of the native linker features on
19160 # the platform it is being used on.
19161 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19164 # Commands to make compiler produce verbose output that lists
19165 # what "hidden" libraries, object files and flags are used when
19166 # linking a shared library.
19167 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19175 # PORTME: fill in a description of your system's C++ link characteristics
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19181 # FIXME: insert proper C++ library support
19185 if test "$host_cpu" = ia64
; then
19186 # On IA64, the linker does run time linking by default, so we don't
19187 # have to do anything special.
19188 aix_use_runtimelinking
=no
19189 exp_sym_flag
='-Bexport'
19192 aix_use_runtimelinking
=no
19194 # Test if we are trying to use run time linking or normal
19195 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19196 # need to do runtime linking.
19197 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19198 for ld_flag
in $LDFLAGS; do
19201 aix_use_runtimelinking
=yes
19209 exp_sym_flag
='-bexport'
19210 no_entry_flag
='-bnoentry'
19213 # When large executables or shared objects are built, AIX ld can
19214 # have problems creating the table of contents. If linking a library
19215 # or program results in "error TOC overflow" add -mminimal-toc to
19216 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19217 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19219 archive_cmds_CXX
=''
19220 hardcode_direct_CXX
=yes
19221 hardcode_direct_absolute_CXX
=yes
19222 hardcode_libdir_separator_CXX
=':'
19223 link_all_deplibs_CXX
=yes
19224 file_list_spec_CXX
='${wl}-f,'
19226 if test "$GXX" = yes; then
19227 case $host_os in aix4.
[012]|aix4.
[012].
*)
19228 # We only want to do this on AIX 4.2 and lower, the check
19229 # below for broken collect2 doesn't work under 4.3+
19230 collect2name
=`${CC} -print-prog-name=collect2`
19231 if test -f "$collect2name" &&
19232 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19234 # We have reworked collect2
19237 # We have old collect2
19238 hardcode_direct_CXX
=unsupported
19239 # It fails to find uninstalled libraries when the uninstalled
19240 # path is not listed in the libpath. Setting hardcode_minus_L
19241 # to unsupported forces relinking
19242 hardcode_minus_L_CXX
=yes
19243 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19244 hardcode_libdir_separator_CXX
=
19247 shared_flag
='-shared'
19248 if test "$aix_use_runtimelinking" = yes; then
19249 shared_flag
="$shared_flag "'${wl}-G'
19253 if test "$host_cpu" = ia64
; then
19254 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19255 # chokes on -Wl,-G. The following line is correct:
19258 if test "$aix_use_runtimelinking" = yes; then
19259 shared_flag
='${wl}-G'
19261 shared_flag
='${wl}-bM:SRE'
19266 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19267 # It seems that -bexpall does not export symbols beginning with
19268 # underscore (_), so it is better to generate a list of symbols to
19270 always_export_symbols_CXX
=yes
19271 if test "$aix_use_runtimelinking" = yes; then
19272 # Warning - without using the other runtime loading flags (-brtl),
19273 # -berok will link without error, but may produce a broken library.
19274 allow_undefined_flag_CXX
='-berok'
19275 # Determine the default libpath from the value encoded in an empty
19277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h. */
19288 if ac_fn_cxx_try_link
"$LINENO"; then :
19290 lt_aix_libpath_sed
='
19291 /Import File Strings/,/^$/ {
19297 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19298 # Check for a 64-bit object if we didn't find anything.
19299 if test -z "$aix_libpath"; then
19300 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19303 rm -f core conftest.err conftest.
$ac_objext \
19304 conftest
$ac_exeext conftest.
$ac_ext
19305 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19307 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19309 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"
19311 if test "$host_cpu" = ia64
; then
19312 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19313 allow_undefined_flag_CXX
="-z nodefs"
19314 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"
19316 # Determine the default libpath from the value encoded in an
19317 # empty executable.
19318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h. */
19329 if ac_fn_cxx_try_link
"$LINENO"; then :
19331 lt_aix_libpath_sed
='
19332 /Import File Strings/,/^$/ {
19338 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19339 # Check for a 64-bit object if we didn't find anything.
19340 if test -z "$aix_libpath"; then
19341 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19344 rm -f core conftest.err conftest.
$ac_objext \
19345 conftest
$ac_exeext conftest.
$ac_ext
19346 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19348 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19349 # Warning - without using the other run time loading flags,
19350 # -berok will link without error, but may produce a broken library.
19351 no_undefined_flag_CXX
=' ${wl}-bernotok'
19352 allow_undefined_flag_CXX
=' ${wl}-berok'
19353 if test "$with_gnu_ld" = yes; then
19354 # We only use this code for GNU lds that support --whole-archive.
19355 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19357 # Exported symbols can be pulled into shared objects from archives
19358 whole_archive_flag_spec_CXX
='$convenience'
19360 archive_cmds_need_lc_CXX
=yes
19361 # This is similar to how AIX traditionally builds its shared
19363 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'
19369 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19370 allow_undefined_flag_CXX
=unsupported
19371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19372 # support --undefined. This deserves some investigation. FIXME
19373 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19380 case $cc_basename in
19382 # FIXME: insert proper C++ library support
19388 cygwin
* | mingw
* | pw32
* | cegcc
*)
19389 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19390 # as there is no search path for DLLs.
19391 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19392 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19393 allow_undefined_flag_CXX
=unsupported
19394 always_export_symbols_CXX
=no
19395 enable_shared_with_static_runtimes_CXX
=yes
19397 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19398 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'
19399 # If the export-symbols file already is a .def file (1st line
19400 # is EXPORTS), use it as is; otherwise, prepend...
19401 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19402 cp $export_symbols $output_objdir/$soname.def;
19404 echo EXPORTS > $output_objdir/$soname.def;
19405 cat $export_symbols >> $output_objdir/$soname.def;
19407 $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'
19412 darwin
* | rhapsody
*)
19415 archive_cmds_need_lc_CXX
=no
19416 hardcode_direct_CXX
=no
19417 hardcode_automatic_CXX
=yes
19418 hardcode_shlibpath_var_CXX
=unsupported
19419 if test "$lt_cv_ld_force_load" = "yes"; then
19420 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\"`'
19422 whole_archive_flag_spec_CXX
=''
19424 link_all_deplibs_CXX
=yes
19425 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19426 case $cc_basename in
19427 ifort
*) _lt_dar_can_shared
=yes ;;
19428 *) _lt_dar_can_shared
=$GCC ;;
19430 if test "$_lt_dar_can_shared" = "yes"; then
19431 output_verbose_link_cmd
=func_echo_all
19432 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}"
19433 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19434 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}"
19435 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}"
19436 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19437 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}"
19438 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}"
19448 case $cc_basename in
19450 # FIXME: insert proper C++ library support
19454 # Green Hills C++ Compiler
19455 # FIXME: insert proper C++ library support
19459 # FIXME: insert proper C++ library support
19466 # C++ shared libraries reported to be fairly broken before
19472 archive_cmds_need_lc_CXX
=no
19475 freebsd
* | dragonfly
*)
19476 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19485 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19486 link_all_deplibs_CXX
=yes
19490 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19491 hardcode_libdir_separator_CXX
=:
19492 export_dynamic_flag_spec_CXX
='${wl}-E'
19493 hardcode_direct_CXX
=yes
19494 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19495 # but as the default
19496 # location of the library.
19498 case $cc_basename in
19500 # FIXME: insert proper C++ library support
19504 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'
19505 # Commands to make compiler produce verbose output that lists
19506 # what "hidden" libraries, object files and flags are used when
19507 # linking a shared library.
19509 # There doesn't appear to be a way to prevent this compiler from
19510 # explicitly linking system object files so we need to strip them
19511 # from the output so that they don't get included in the library
19513 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"'
19516 if test "$GXX" = yes; then
19517 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'
19519 # FIXME: insert proper C++ library support
19527 if test $with_gnu_ld = no
; then
19528 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19529 hardcode_libdir_separator_CXX
=:
19535 export_dynamic_flag_spec_CXX
='${wl}-E'
19541 hardcode_direct_CXX
=no
19542 hardcode_shlibpath_var_CXX
=no
19545 hardcode_direct_CXX
=yes
19546 hardcode_direct_absolute_CXX
=yes
19547 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19548 # but as the default
19549 # location of the library.
19553 case $cc_basename in
19555 # FIXME: insert proper C++ library support
19561 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19564 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19567 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19570 # Commands to make compiler produce verbose output that lists
19571 # what "hidden" libraries, object files and flags are used when
19572 # linking a shared library.
19574 # There doesn't appear to be a way to prevent this compiler from
19575 # explicitly linking system object files so we need to strip them
19576 # from the output so that they don't get included in the library
19578 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $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"'
19581 if test "$GXX" = yes; then
19582 if test $with_gnu_ld = no
; then
19585 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19588 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19591 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'
19596 # FIXME: insert proper C++ library support
19604 hardcode_direct_CXX
=no
19605 hardcode_shlibpath_var_CXX
=no
19606 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19607 export_dynamic_flag_spec_CXX
='${wl}-E'
19608 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19609 # Instead, shared libraries are loaded at an image base (0x10000000 by
19610 # default) and relocated if they conflict, which is a slow very memory
19611 # consuming and fragmenting process. To avoid this, we pick a random,
19612 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19613 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19614 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'
19615 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'
19618 case $cc_basename in
19621 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'
19623 # Archives containing C++ object files must be created using
19624 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19625 # necessary to make sure instantiated templates are included
19627 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19630 if test "$GXX" = yes; then
19631 if test "$with_gnu_ld" = no
; then
19632 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'
19634 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'
19637 link_all_deplibs_CXX
=yes
19640 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19641 hardcode_libdir_separator_CXX
=:
19642 inherit_rpath_CXX
=yes
19645 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19646 case $cc_basename in
19648 # Kuck and Associates, Inc. (KAI) C++ Compiler
19650 # KCC will only create a shared library if the output file
19651 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19652 # to its proper name (with version) after linking.
19653 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'
19654 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'
19655 # Commands to make compiler produce verbose output that lists
19656 # what "hidden" libraries, object files and flags are used when
19657 # linking a shared library.
19659 # There doesn't appear to be a way to prevent this compiler from
19660 # explicitly linking system object files so we need to strip them
19661 # from the output so that they don't get included in the library
19663 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"'
19665 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19666 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19668 # Archives containing C++ object files must be created using
19669 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19670 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19675 # version 8.0 and above of icpc choke on multiply defined symbols
19676 # if we add $predep_objects and $postdep_objects, however 7.1 and
19677 # earlier do not add the objects themselves.
19678 case `$CC -V 2>&1` in
19680 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19681 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'
19683 *) # Version 8.0 or newer
19686 ia64
*) tmp_idyn
=' -i_dynamic';;
19688 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19689 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'
19692 archive_cmds_need_lc_CXX
=no
19693 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19694 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19695 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19698 # Portland Group C++ compiler
19700 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19701 prelink_cmds_CXX
='tpldir=Template.dir~
19703 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19704 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19705 old_archive_cmds_CXX
='tpldir=Template.dir~
19707 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19708 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19710 archive_cmds_CXX
='tpldir=Template.dir~
19712 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19713 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19714 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19716 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19717 $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'
19719 *) # Version 6 and above use weak symbols
19720 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19721 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'
19725 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19726 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19727 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'
19731 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19732 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'
19734 runpath_var
=LD_RUN_PATH
19735 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19736 hardcode_libdir_separator_CXX
=:
19738 # Commands to make compiler produce verbose output that lists
19739 # what "hidden" libraries, object files and flags are used when
19740 # linking a shared library.
19742 # There doesn't appear to be a way to prevent this compiler from
19743 # explicitly linking system object files so we need to strip them
19744 # from the output so that they don't get included in the library
19746 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'
19748 xl
* | mpixl
* | bgxl
*)
19749 # IBM XL 8.0 on PPC, with GNU ld
19750 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19751 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19752 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19753 if test "x$supports_anon_versioning" = xyes
; then
19754 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19755 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19756 echo "local: *; };" >> $output_objdir/$libname.ver~
19757 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19761 case `$CC -V 2>&1 | sed 5q` in
19764 no_undefined_flag_CXX
=' -zdefs'
19765 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19766 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'
19767 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19768 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'
19769 compiler_needs_object_CXX
=yes
19771 # Not sure whether something based on
19772 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19774 output_verbose_link_cmd
='func_echo_all'
19776 # Archives containing C++ object files must be created using
19777 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19778 # necessary to make sure instantiated templates are included
19780 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19788 # FIXME: insert proper C++ library support
19793 # FIXME: insert proper C++ library support
19798 case $cc_basename in
19800 # FIXME: insert proper C++ library support
19804 # FIXME: insert proper C++ library support
19811 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19812 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19814 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19815 hardcode_direct_CXX
=yes
19816 hardcode_shlibpath_var_CXX
=no
19818 # Workaround some broken pre-1.5 toolchains
19819 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19827 # C++ shared libraries are fairly broken
19832 if test -f /usr
/libexec
/ld.so
; then
19833 hardcode_direct_CXX
=yes
19834 hardcode_shlibpath_var_CXX
=no
19835 hardcode_direct_absolute_CXX
=yes
19836 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19837 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19838 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19839 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19840 export_dynamic_flag_spec_CXX
='${wl}-E'
19841 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19843 output_verbose_link_cmd
=func_echo_all
19849 osf3
* | osf4
* | osf5
*)
19850 case $cc_basename in
19852 # Kuck and Associates, Inc. (KAI) C++ Compiler
19854 # KCC will only create a shared library if the output file
19855 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19856 # to its proper name (with version) after linking.
19857 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'
19859 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19860 hardcode_libdir_separator_CXX
=:
19862 # Archives containing C++ object files must be created using
19863 # the KAI C++ compiler.
19865 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19866 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19870 # Rational C++ 2.4.1
19871 # FIXME: insert proper C++ library support
19877 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19878 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'
19879 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19882 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19883 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'
19884 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19885 echo "-hidden">> $lib.exp~
19886 $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~
19888 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19892 hardcode_libdir_separator_CXX
=:
19894 # Commands to make compiler produce verbose output that lists
19895 # what "hidden" libraries, object files and flags are used when
19896 # linking a shared library.
19898 # There doesn't appear to be a way to prevent this compiler from
19899 # explicitly linking system object files so we need to strip them
19900 # from the output so that they don't get included in the library
19902 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"'
19905 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19906 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19909 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'
19912 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'
19916 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19917 hardcode_libdir_separator_CXX
=:
19919 # Commands to make compiler produce verbose output that lists
19920 # what "hidden" libraries, object files and flags are used when
19921 # linking a shared library.
19922 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19925 # FIXME: insert proper C++ library support
19933 # FIXME: insert proper C++ library support
19938 case $cc_basename in
19941 # FIXME: insert proper C++ library support
19946 # FIXME: insert proper C++ library support
19950 # FIXME: insert proper C++ library support
19957 case $cc_basename in
19959 # Sun C++ 4.2, 5.x and Centerline C++
19960 archive_cmds_need_lc_CXX
=yes
19961 no_undefined_flag_CXX
=' -zdefs'
19962 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19963 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19964 $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'
19966 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19967 hardcode_shlibpath_var_CXX
=no
19969 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19971 # The compiler driver will combine and reorder linker options,
19972 # but understands `-z linker_flag'.
19973 # Supported since Solaris 2.6 (maybe 2.5.1?)
19974 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19977 link_all_deplibs_CXX
=yes
19979 output_verbose_link_cmd
='func_echo_all'
19981 # Archives containing C++ object files must be created using
19982 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19983 # necessary to make sure instantiated templates are included
19985 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19988 # Green Hills C++ Compiler
19989 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19991 # The C++ compiler must be used to create the archive.
19992 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19995 # GNU C++ compiler with Solaris linker
19996 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19997 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19998 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19999 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20000 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20001 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20003 # Commands to make compiler produce verbose output that lists
20004 # what "hidden" libraries, object files and flags are used when
20005 # linking a shared library.
20006 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20008 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20010 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20011 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20012 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20014 # Commands to make compiler produce verbose output that lists
20015 # what "hidden" libraries, object files and flags are used when
20016 # linking a shared library.
20017 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20020 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20022 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20024 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20032 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20033 no_undefined_flag_CXX
='${wl}-z,text'
20034 archive_cmds_need_lc_CXX
=no
20035 hardcode_shlibpath_var_CXX
=no
20036 runpath_var
='LD_RUN_PATH'
20038 case $cc_basename in
20040 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20041 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20044 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20045 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20050 sysv5
* | sco3.2v5
* | sco5v6
*)
20051 # Note: We can NOT use -z defs as we might desire, because we do not
20052 # link with -lc, and that would cause any symbols used from libc to
20053 # always be unresolved, which means just about no library would
20054 # ever link correctly. If we're not using GNU ld we use -z text
20055 # though, which does catch some bad symbols but isn't as heavy-handed
20057 no_undefined_flag_CXX
='${wl}-z,text'
20058 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20059 archive_cmds_need_lc_CXX
=no
20060 hardcode_shlibpath_var_CXX
=no
20061 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20062 hardcode_libdir_separator_CXX
=':'
20063 link_all_deplibs_CXX
=yes
20064 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20065 runpath_var
='LD_RUN_PATH'
20067 case $cc_basename in
20069 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20070 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20071 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20072 '"$old_archive_cmds_CXX"
20073 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20074 '"$reload_cmds_CXX"
20077 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20078 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20084 case $cc_basename in
20086 # NonStop-UX NCC 3.20
20087 # FIXME: insert proper C++ library support
20091 # FIXME: insert proper C++ library support
20098 # FIXME: insert proper C++ library support
20103 # FIXME: insert proper C++ library support
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20109 $as_echo "$ld_shlibs_CXX" >&6; }
20110 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20116 ## There is no encapsulation within the following macros, do not change
20117 ## the running order or otherwise move them around unless you know exactly
20118 ## what you are doing...
20119 # Dependencies to place before and after the object being linked:
20120 predep_objects_CXX
=
20121 postdep_objects_CXX
=
20124 compiler_lib_search_path_CXX
=
20126 cat > conftest.
$ac_ext <<_LT_EOF
20130 Foo (void) { a = 0; }
20136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20137 (eval $ac_compile) 2>&5
20139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20140 test $ac_status = 0; }; then
20141 # Parse the compiler output and extract the necessary
20142 # objects, libraries and library flags.
20144 # Sentinel used to keep track of whether or not we are before
20145 # the conftest object file.
20146 pre_test_object_deps_done
=no
20148 for p
in `eval "$output_verbose_link_cmd"`; do
20152 # Some compilers place space between "-{L,R}" and the path.
20153 # Remove the space.
20154 if test $p = "-L" ||
20155 test $p = "-R"; then
20162 if test "$pre_test_object_deps_done" = no
; then
20165 # Internal compiler library paths should come after those
20166 # provided the user. The postdeps already come after the
20167 # user supplied libs so there is no need to process them.
20168 if test -z "$compiler_lib_search_path_CXX"; then
20169 compiler_lib_search_path_CXX
="${prev}${p}"
20171 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20174 # The "-l" case would never come before the object being
20175 # linked, so don't bother handling this case.
20178 if test -z "$postdeps_CXX"; then
20179 postdeps_CXX
="${prev}${p}"
20181 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20187 # This assumes that the test object file only shows up
20188 # once in the compiler output.
20189 if test "$p" = "conftest.$objext"; then
20190 pre_test_object_deps_done
=yes
20194 if test "$pre_test_object_deps_done" = no
; then
20195 if test -z "$predep_objects_CXX"; then
20196 predep_objects_CXX
="$p"
20198 predep_objects_CXX
="$predep_objects_CXX $p"
20201 if test -z "$postdep_objects_CXX"; then
20202 postdep_objects_CXX
="$p"
20204 postdep_objects_CXX
="$postdep_objects_CXX $p"
20209 *) ;; # Ignore the rest.
20217 echo "libtool.m4: error: problem compiling CXX test program"
20220 $RM -f confest.
$objext
20222 # PORTME: override above test on systems where it is broken
20225 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20226 # hack all around it, let's just trust "g++" to DTRT.
20227 predep_objects_CXX
=
20228 postdep_objects_CXX
=
20233 case `$CC -V 2>&1 | sed 5q` in
20237 # The more standards-conforming stlport4 library is
20238 # incompatible with the Cstd library. Avoid specifying
20239 # it if it's in CXXFLAGS. Ignore libCrun as
20240 # -library=stlport4 depends on it.
20241 case " $CXX $CXXFLAGS " in
20242 *" -library=stlport4 "*)
20243 solaris_use_stlport4
=yes
20247 if test "$solaris_use_stlport4" != yes; then
20248 postdeps_CXX
='-library=Cstd -library=Crun'
20255 case $cc_basename in
20257 # The more standards-conforming stlport4 library is
20258 # incompatible with the Cstd library. Avoid specifying
20259 # it if it's in CXXFLAGS. Ignore libCrun as
20260 # -library=stlport4 depends on it.
20261 case " $CXX $CXXFLAGS " in
20262 *" -library=stlport4 "*)
20263 solaris_use_stlport4
=yes
20267 # Adding this requires a known-good setup of shared libraries for
20268 # Sun compiler versions before 5.6, else PIC objects from an old
20269 # archive will be linked into the output, leading to subtle bugs.
20270 if test "$solaris_use_stlport4" != yes; then
20271 postdeps_CXX
='-library=Cstd -library=Crun'
20279 case " $postdeps_CXX " in
20280 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20282 compiler_lib_search_dirs_CXX
=
20283 if test -n "${compiler_lib_search_path_CXX}"; then
20284 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20317 lt_prog_compiler_wl_CXX
=
20318 lt_prog_compiler_pic_CXX
=
20319 lt_prog_compiler_static_CXX
=
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20322 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20324 # C++ specific cases for pic, static, wl, etc.
20325 if test "$GXX" = yes; then
20326 lt_prog_compiler_wl_CXX
='-Wl,'
20327 lt_prog_compiler_static_CXX
='-static'
20331 # All AIX code is PIC.
20332 if test "$host_cpu" = ia64
; then
20333 # AIX 5 now supports IA64 processor
20334 lt_prog_compiler_static_CXX
='-Bstatic'
20336 lt_prog_compiler_pic_CXX
='-fPIC'
20342 # see comment about AmigaOS4 .so support
20343 lt_prog_compiler_pic_CXX
='-fPIC'
20346 # FIXME: we need at least 68020 code to build shared libraries, but
20347 # adding the `-m68020' flag to GCC prevents building anything better,
20349 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20354 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20355 # PIC is the default for these OSes.
20357 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20358 # This hack is so that the source file can tell whether it is being
20359 # built for inclusion in a dll (and should export symbols for example).
20360 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20361 # (--disable-auto-import) libraries
20362 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20364 darwin
* | rhapsody
*)
20365 # PIC is the default on this platform
20366 # Common symbols not allowed in MH_DYLIB files
20367 lt_prog_compiler_pic_CXX
='-fno-common'
20370 # DJGPP does not support shared libraries at all
20371 lt_prog_compiler_pic_CXX
=
20374 # PIC is the default for Haiku.
20375 # The "-static" flag exists, but is broken.
20376 lt_prog_compiler_static_CXX
=
20379 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20380 # Instead, we relocate shared libraries at runtime.
20383 if test -d /usr
/nec
; then
20384 lt_prog_compiler_pic_CXX
=-Kconform_pic
20388 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20389 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20390 # sets the default TLS model and affects inlining.
20395 lt_prog_compiler_pic_CXX
='-fPIC'
20400 # QNX uses GNU C++, but need to define -shared option too, otherwise
20401 # it will coredump.
20402 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20405 lt_prog_compiler_pic_CXX
='-fPIC'
20411 # All AIX code is PIC.
20412 if test "$host_cpu" = ia64
; then
20413 # AIX 5 now supports IA64 processor
20414 lt_prog_compiler_static_CXX
='-Bstatic'
20416 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20420 case $cc_basename in
20422 # Green Hills C++ Compiler
20423 # _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"
20428 case $cc_basename in
20430 lt_prog_compiler_pic_CXX
='-KPIC'
20433 # Green Hills C++ Compiler
20434 lt_prog_compiler_pic_CXX
='-pic'
20440 freebsd
* | dragonfly
*)
20441 # FreeBSD uses GNU C++
20443 hpux9
* | hpux10
* | hpux11
*)
20444 case $cc_basename in
20446 lt_prog_compiler_wl_CXX
='-Wl,'
20447 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20448 if test "$host_cpu" != ia64
; then
20449 lt_prog_compiler_pic_CXX
='+Z'
20453 lt_prog_compiler_wl_CXX
='-Wl,'
20454 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20460 lt_prog_compiler_pic_CXX
='+Z'
20469 # This is c89, which is MS Visual C++ (no shared libs)
20470 # Anyone wants to do a port?
20472 irix5
* | irix6
* | nonstopux
*)
20473 case $cc_basename in
20475 lt_prog_compiler_wl_CXX
='-Wl,'
20476 lt_prog_compiler_static_CXX
='-non_shared'
20477 # CC pic flag -KPIC is the default.
20483 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20484 case $cc_basename in
20487 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20488 lt_prog_compiler_pic_CXX
='-fPIC'
20491 # old Intel C++ for x86_64 which still supported -KPIC.
20492 lt_prog_compiler_wl_CXX
='-Wl,'
20493 lt_prog_compiler_pic_CXX
='-KPIC'
20494 lt_prog_compiler_static_CXX
='-static'
20497 # Intel C++, used to be incompatible with GCC.
20498 # ICC 10 doesn't accept -KPIC any more.
20499 lt_prog_compiler_wl_CXX
='-Wl,'
20500 lt_prog_compiler_pic_CXX
='-fPIC'
20501 lt_prog_compiler_static_CXX
='-static'
20504 # Portland Group C++ compiler
20505 lt_prog_compiler_wl_CXX
='-Wl,'
20506 lt_prog_compiler_pic_CXX
='-fpic'
20507 lt_prog_compiler_static_CXX
='-Bstatic'
20511 # Make sure the PIC flag is empty. It appears that all Alpha
20512 # Linux and Compaq Tru64 Unix objects are PIC.
20513 lt_prog_compiler_pic_CXX
=
20514 lt_prog_compiler_static_CXX
='-non_shared'
20516 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20517 # IBM XL 8.0, 9.0 on PPC and BlueGene
20518 lt_prog_compiler_wl_CXX
='-Wl,'
20519 lt_prog_compiler_pic_CXX
='-qpic'
20520 lt_prog_compiler_static_CXX
='-qstaticlink'
20523 case `$CC -V 2>&1 | sed 5q` in
20526 lt_prog_compiler_pic_CXX
='-KPIC'
20527 lt_prog_compiler_static_CXX
='-Bstatic'
20528 lt_prog_compiler_wl_CXX
='-Qoption ld '
20539 case $cc_basename in
20541 lt_prog_compiler_pic_CXX
='-W c,exportall'
20550 # QNX uses GNU C++, but need to define -shared option too, otherwise
20551 # it will coredump.
20552 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20554 osf3
* | osf4
* | osf5
*)
20555 case $cc_basename in
20557 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20560 # Rational C++ 2.4.1
20561 lt_prog_compiler_pic_CXX
='-pic'
20564 # Digital/Compaq C++
20565 lt_prog_compiler_wl_CXX
='-Wl,'
20566 # Make sure the PIC flag is empty. It appears that all Alpha
20567 # Linux and Compaq Tru64 Unix objects are PIC.
20568 lt_prog_compiler_pic_CXX
=
20569 lt_prog_compiler_static_CXX
='-non_shared'
20578 case $cc_basename in
20580 # Sun C++ 4.2, 5.x and Centerline C++
20581 lt_prog_compiler_pic_CXX
='-KPIC'
20582 lt_prog_compiler_static_CXX
='-Bstatic'
20583 lt_prog_compiler_wl_CXX
='-Qoption ld '
20586 # Green Hills C++ Compiler
20587 lt_prog_compiler_pic_CXX
='-PIC'
20594 case $cc_basename in
20597 lt_prog_compiler_pic_CXX
='-pic'
20598 lt_prog_compiler_static_CXX
='-Bstatic'
20602 lt_prog_compiler_pic_CXX
='-pic'
20608 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20609 case $cc_basename in
20611 lt_prog_compiler_wl_CXX
='-Wl,'
20612 lt_prog_compiler_pic_CXX
='-KPIC'
20613 lt_prog_compiler_static_CXX
='-Bstatic'
20618 case $cc_basename in
20620 # NonStop-UX NCC 3.20
20621 lt_prog_compiler_pic_CXX
='-KPIC'
20630 lt_prog_compiler_can_build_shared_CXX
=no
20636 # For platforms which do not support PIC, -DPIC is meaningless:
20638 lt_prog_compiler_pic_CXX
=
20641 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20645 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20650 # Check to make sure the PIC flag actually works.
20652 if test -n "$lt_prog_compiler_pic_CXX"; then
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20654 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20655 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20656 $as_echo_n "(cached) " >&6
20658 lt_cv_prog_compiler_pic_works_CXX
=no
20659 ac_outfile
=conftest.
$ac_objext
20660 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20661 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20662 # Insert the option either (1) after the last *FLAGS variable, or
20663 # (2) before a word containing "conftest.", or (3) at the end.
20664 # Note that $ac_compile itself does not contain backslashes and begins
20665 # with a dollar sign (not a hyphen), so the echo should work correctly.
20666 # The option is referenced via a variable to avoid confusing sed.
20667 lt_compile
=`echo "$ac_compile" | $SED \
20668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20670 -e 's:$: $lt_compiler_flag:'`
20671 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20672 (eval "$lt_compile" 2>conftest.err
)
20674 cat conftest.err
>&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 if (exit $ac_status) && test -s "$ac_outfile"; then
20677 # The compiler can only warn and ignore the option if not recognized
20678 # So say no if there are warnings other than the usual output.
20679 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20680 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20681 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20682 lt_cv_prog_compiler_pic_works_CXX
=yes
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20689 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20691 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20692 case $lt_prog_compiler_pic_CXX in
20694 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20697 lt_prog_compiler_pic_CXX
=
20698 lt_prog_compiler_can_build_shared_CXX
=no
20706 # Check to make sure the static flag actually works.
20708 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20710 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20711 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20712 $as_echo_n "(cached) " >&6
20714 lt_cv_prog_compiler_static_works_CXX
=no
20715 save_LDFLAGS
="$LDFLAGS"
20716 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20717 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20718 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20719 # The linker can only warn and ignore the option if not recognized
20720 # So say no if there are warnings
20721 if test -s conftest.err
; then
20722 # Append any errors to the config.log.
20723 cat conftest.err
1>&5
20724 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20725 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20726 if diff conftest.exp conftest.er2
>/dev
/null
; then
20727 lt_cv_prog_compiler_static_works_CXX
=yes
20730 lt_cv_prog_compiler_static_works_CXX
=yes
20734 LDFLAGS
="$save_LDFLAGS"
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20738 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20740 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20743 lt_prog_compiler_static_CXX
=
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20750 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20751 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20752 $as_echo_n "(cached) " >&6
20754 lt_cv_prog_compiler_c_o_CXX
=no
20755 $RM -r conftest
2>/dev
/null
20759 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20761 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20762 # Insert the option either (1) after the last *FLAGS variable, or
20763 # (2) before a word containing "conftest.", or (3) at the end.
20764 # Note that $ac_compile itself does not contain backslashes and begins
20765 # with a dollar sign (not a hyphen), so the echo should work correctly.
20766 lt_compile
=`echo "$ac_compile" | $SED \
20767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20769 -e 's:$: $lt_compiler_flag:'`
20770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20771 (eval "$lt_compile" 2>out
/conftest.err
)
20773 cat out
/conftest.err
>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20777 # The compiler can only warn and ignore the option if not recognized
20778 # So say no if there are warnings
20779 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20780 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20781 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20782 lt_cv_prog_compiler_c_o_CXX
=yes
20787 # SGI C++ compiler will create directory out/ii_files/ for
20788 # template instantiation
20789 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20790 $RM out
/* && rmdir out
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20797 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20802 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20803 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20804 $as_echo_n "(cached) " >&6
20806 lt_cv_prog_compiler_c_o_CXX
=no
20807 $RM -r conftest
2>/dev
/null
20811 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20813 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20814 # Insert the option either (1) after the last *FLAGS variable, or
20815 # (2) before a word containing "conftest.", or (3) at the end.
20816 # Note that $ac_compile itself does not contain backslashes and begins
20817 # with a dollar sign (not a hyphen), so the echo should work correctly.
20818 lt_compile
=`echo "$ac_compile" | $SED \
20819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20821 -e 's:$: $lt_compiler_flag:'`
20822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20823 (eval "$lt_compile" 2>out
/conftest.err
)
20825 cat out
/conftest.err
>&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20829 # The compiler can only warn and ignore the option if not recognized
20830 # So say no if there are warnings
20831 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20832 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20833 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20834 lt_cv_prog_compiler_c_o_CXX
=yes
20839 # SGI C++ compiler will create directory out/ii_files/ for
20840 # template instantiation
20841 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20842 $RM out
/* && rmdir out
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20849 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20854 hard_links
="nottested"
20855 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20856 # do not overwrite the value of need_locks provided by the user
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20858 $as_echo_n "checking if we can lock with hard links... " >&6; }
20861 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20863 ln conftest.a conftest.b
2>&5 || hard_links
=no
20864 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20866 $as_echo "$hard_links" >&6; }
20867 if test "$hard_links" = no
; then
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20869 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20879 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20881 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20884 # If we're using GNU nm, then we don't want the "-C" option.
20885 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20886 # Also, AIX nm treats weak defined symbols like other global defined
20887 # symbols, whereas GNU nm marks them as "W".
20888 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20889 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'
20891 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'
20895 export_symbols_cmds_CXX
="$ltdll_cmds"
20897 cygwin
* | mingw
* | cegcc
*)
20898 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'
20901 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20904 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20907 $as_echo "$ld_shlibs_CXX" >&6; }
20908 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20910 with_gnu_ld_CXX
=$with_gnu_ld
20918 # Do we need to explicitly link libc?
20920 case "x$archive_cmds_need_lc_CXX" in
20922 # Assume -lc should be added
20923 archive_cmds_need_lc_CXX
=yes
20925 if test "$enable_shared" = yes && test "$GCC" = yes; then
20926 case $archive_cmds_CXX in
20928 # FIXME: we may have to deal with multi-command sequences.
20931 # Test whether the compiler implicitly links with -lc since on some
20932 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20933 # to ld, don't add -lc before -lgcc.
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20935 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20936 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20937 $as_echo_n "(cached) " >&6
20940 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20943 (eval $ac_compile) 2>&5
20945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20946 test $ac_status = 0; } 2>conftest.err
; then
20949 libobjs
=conftest.
$ac_objext
20951 wl
=$lt_prog_compiler_wl_CXX
20952 pic_flag
=$lt_prog_compiler_pic_CXX
20958 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20959 allow_undefined_flag_CXX
=
20960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20961 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20964 test $ac_status = 0; }
20966 lt_cv_archive_cmds_need_lc_CXX
=no
20968 lt_cv_archive_cmds_need_lc_CXX
=yes
20970 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20972 cat conftest.err
1>&5
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20978 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20979 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21050 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21052 library_names_spec
=
21053 libname_spec
='lib$name'
21057 postuninstall_cmds
=
21061 shlibpath_overrides_runpath
=unknown
21063 dynamic_linker
="$host_os ld.so"
21064 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21065 need_lib_prefix
=unknown
21066 hardcode_into_libs
=no
21068 # when you set need_version to no, make sure it does not cause -set_version
21069 # flags to be left without arguments
21070 need_version
=unknown
21075 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21076 shlibpath_var
=LIBPATH
21078 # AIX 3 has no versioning support, so we append a major version to the name.
21079 soname_spec
='${libname}${release}${shared_ext}$major'
21086 hardcode_into_libs
=yes
21087 if test "$host_cpu" = ia64
; then
21088 # AIX 5 supports IA64
21089 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21090 shlibpath_var
=LD_LIBRARY_PATH
21092 # With GCC up to 2.95.x, collect2 would create an import file
21093 # for dependence libraries. The import file would start with
21094 # the line `#! .'. This would cause the generated library to
21095 # depend on `.', always an invalid library. This was fixed in
21096 # development snapshots of GCC prior to 3.0.
21098 aix4 | aix4.
[01] | aix4.
[01].
*)
21099 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21101 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21104 can_build_shared
=no
21108 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21109 # soname into executable. Probably we can add versioning support to
21110 # collect2, so additional links can be useful in future.
21111 if test "$aix_use_runtimelinking" = yes; then
21112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21113 # instead of lib<name>.a to let people know that these are not
21114 # typical AIX shared libraries.
21115 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21117 # We preserve .a as extension for shared libraries through AIX4.2
21118 # and later when we are not doing run time linking.
21119 library_names_spec
='${libname}${release}.a $libname.a'
21120 soname_spec
='${libname}${release}${shared_ext}$major'
21122 shlibpath_var
=LIBPATH
21129 # Since July 2007 AmigaOS4 officially supports .so libraries.
21130 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21134 library_names_spec
='$libname.ixlibrary $libname.a'
21135 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21136 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'
21142 library_names_spec
='${libname}${shared_ext}'
21143 dynamic_linker
="$host_os ld.so"
21144 shlibpath_var
=LIBRARY_PATH
21150 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21151 soname_spec
='${libname}${release}${shared_ext}$major'
21152 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21153 shlibpath_var
=LD_LIBRARY_PATH
21154 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21155 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21156 # the default ld.so.conf also contains /usr/contrib/lib and
21157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21158 # libtool to hard-code these into programs
21161 cygwin
* | mingw
* | pw32
* | cegcc
*)
21162 version_type
=windows
21167 case $GCC,$host_os in
21168 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21169 library_names_spec
='$libname.dll.a'
21170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21171 postinstall_cmds
='base_file=`basename \${file}`~
21172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21173 dldir=$destdir/`dirname \$dlpath`~
21174 test -d \$dldir || mkdir -p \$dldir~
21175 $install_prog $dir/$dlname \$dldir/$dlname~
21176 chmod a+x \$dldir/$dlname~
21177 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21178 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21180 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21181 dlpath=$dir/\$dldll~
21183 shlibpath_overrides_runpath
=yes
21187 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21188 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21192 # MinGW DLLs use traditional 'lib' prefix
21193 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21196 # pw32 DLLs use 'pw' prefix rather than 'lib'
21197 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21203 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21206 dynamic_linker
='Win32 ld.exe'
21207 # FIXME: first we should search . and the directory the executable is in
21211 darwin
* | rhapsody
*)
21212 dynamic_linker
="$host_os dyld"
21213 version_type
=darwin
21216 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21217 soname_spec
='${libname}${release}${major}$shared_ext'
21218 shlibpath_overrides_runpath
=yes
21219 shlibpath_var
=DYLD_LIBRARY_PATH
21220 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21222 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21229 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21230 soname_spec
='${libname}${release}${shared_ext}$major'
21231 shlibpath_var
=LD_LIBRARY_PATH
21234 freebsd
* | dragonfly
*)
21235 # DragonFly does not have aout. When/if they implement a new
21236 # versioning mechanism, adjust this.
21237 if test -x /usr
/bin
/objformat
; then
21238 objformat
=`/usr/bin/objformat`
21241 freebsd
[23].
*) objformat
=aout
;;
21242 *) objformat
=elf
;;
21245 version_type
=freebsd-
$objformat
21246 case $version_type in
21248 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21253 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21257 shlibpath_var
=LD_LIBRARY_PATH
21260 shlibpath_overrides_runpath
=yes
21262 freebsd3.
[01]* | freebsdelf3.
[01]*)
21263 shlibpath_overrides_runpath
=yes
21264 hardcode_into_libs
=yes
21266 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21267 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21268 shlibpath_overrides_runpath
=no
21269 hardcode_into_libs
=yes
21271 *) # from 4.6 on, and DragonFly
21272 shlibpath_overrides_runpath
=yes
21273 hardcode_into_libs
=yes
21282 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21283 soname_spec
='${libname}${release}${shared_ext}$major'
21284 shlibpath_var
=LD_LIBRARY_PATH
21285 hardcode_into_libs
=yes
21292 dynamic_linker
="$host_os runtime_loader"
21293 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21294 soname_spec
='${libname}${release}${shared_ext}$major'
21295 shlibpath_var
=LIBRARY_PATH
21296 shlibpath_overrides_runpath
=yes
21297 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21298 hardcode_into_libs
=yes
21301 hpux9
* | hpux10
* | hpux11
*)
21302 # Give a soname corresponding to the major version so that dld.sl refuses to
21303 # link against other versions.
21310 hardcode_into_libs
=yes
21311 dynamic_linker
="$host_os dld.so"
21312 shlibpath_var
=LD_LIBRARY_PATH
21313 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21314 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21315 soname_spec
='${libname}${release}${shared_ext}$major'
21316 if test "X$HPUX_IA64_MODE" = X32
; then
21317 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21319 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21321 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21325 hardcode_into_libs
=yes
21326 dynamic_linker
="$host_os dld.sl"
21327 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21328 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21330 soname_spec
='${libname}${release}${shared_ext}$major'
21331 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21332 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21336 dynamic_linker
="$host_os dld.sl"
21337 shlibpath_var
=SHLIB_PATH
21338 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21340 soname_spec
='${libname}${release}${shared_ext}$major'
21343 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21344 postinstall_cmds
='chmod 555 $lib'
21345 # or fails outright, so override atomically:
21346 install_override_mode
=555
21353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21354 soname_spec
='${libname}${release}${shared_ext}$major'
21355 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21356 shlibpath_var
=LD_LIBRARY_PATH
21357 shlibpath_overrides_runpath
=no
21358 hardcode_into_libs
=yes
21361 irix5
* | irix6
* | nonstopux
*)
21363 nonstopux
*) version_type
=nonstopux
;;
21365 if test "$lt_cv_prog_gnu_ld" = yes; then
21373 soname_spec
='${libname}${release}${shared_ext}$major'
21374 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21376 irix5
* | nonstopux
*)
21377 libsuff
= shlibsuff
=
21380 case $LD in # libtool.m4 will add one of these switches to LD
21381 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21382 libsuff
= shlibsuff
= libmagic
=32-bit;;
21383 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21384 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21385 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21386 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21387 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21391 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21392 shlibpath_overrides_runpath
=no
21393 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21394 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21395 hardcode_into_libs
=yes
21398 # No shared lib support for Linux oldld, aout, or coff.
21399 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21403 # This must be Linux ELF.
21404 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21408 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21409 soname_spec
='${libname}${release}${shared_ext}$major'
21410 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21411 shlibpath_var
=LD_LIBRARY_PATH
21412 shlibpath_overrides_runpath
=no
21414 # Some binutils ld are patched to set DT_RUNPATH
21415 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21416 $as_echo_n "(cached) " >&6
21418 lt_cv_shlibpath_overrides_runpath
=no
21419 save_LDFLAGS
=$LDFLAGS
21420 save_libdir
=$libdir
21421 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21422 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21424 /* end confdefs.h. */
21434 if ac_fn_cxx_try_link
"$LINENO"; then :
21435 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21436 lt_cv_shlibpath_overrides_runpath
=yes
21439 rm -f core conftest.err conftest.
$ac_objext \
21440 conftest
$ac_exeext conftest.
$ac_ext
21441 LDFLAGS
=$save_LDFLAGS
21442 libdir
=$save_libdir
21446 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21448 # This implies no fast_install, which is unacceptable.
21449 # Some rework will be needed to allow for fast_install
21450 # before this can be enabled.
21451 hardcode_into_libs
=yes
21453 # Append ld.so.conf contents to the search path
21454 if test -f /etc
/ld.so.conf
; then
21455 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' ' '`
21456 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21459 # We used to test for /lib/ld.so.1 and disable shared libraries on
21460 # powerpc, because MkLinux only supported shared libraries with the
21461 # GNU dynamic linker. Since this was broken with cross compilers,
21462 # most powerpc-linux boxes support dynamic linking these days and
21463 # people can always --disable-shared, the test was removed, and we
21464 # assume the GNU/Linux dynamic linker is in use.
21465 dynamic_linker
='GNU/Linux ld.so'
21472 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21474 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21475 dynamic_linker
='NetBSD (a.out) ld.so'
21477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21478 soname_spec
='${libname}${release}${shared_ext}$major'
21479 dynamic_linker
='NetBSD ld.elf_so'
21481 shlibpath_var
=LD_LIBRARY_PATH
21482 shlibpath_overrides_runpath
=yes
21483 hardcode_into_libs
=yes
21488 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21489 shlibpath_var
=LD_LIBRARY_PATH
21490 shlibpath_overrides_runpath
=yes
21497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21498 soname_spec
='${libname}${release}${shared_ext}$major'
21499 shlibpath_var
=LD_LIBRARY_PATH
21500 shlibpath_overrides_runpath
=no
21501 hardcode_into_libs
=yes
21502 dynamic_linker
='ldqnx.so'
21507 sys_lib_dlsearch_path_spec
="/usr/lib"
21509 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21511 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21512 *) need_version
=no
;;
21514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21515 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21516 shlibpath_var
=LD_LIBRARY_PATH
21517 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21519 openbsd2.
[89] | openbsd2.
[89].
*)
21520 shlibpath_overrides_runpath
=no
21523 shlibpath_overrides_runpath
=yes
21527 shlibpath_overrides_runpath
=yes
21532 libname_spec
='$name'
21535 library_names_spec
='$libname${shared_ext} $libname.a'
21536 dynamic_linker
='OS/2 ld.exe'
21537 shlibpath_var
=LIBPATH
21540 osf3
* | osf4
* | osf5
*)
21544 soname_spec
='${libname}${release}${shared_ext}$major'
21545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21546 shlibpath_var
=LD_LIBRARY_PATH
21547 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21548 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21559 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21560 soname_spec
='${libname}${release}${shared_ext}$major'
21561 shlibpath_var
=LD_LIBRARY_PATH
21562 shlibpath_overrides_runpath
=yes
21563 hardcode_into_libs
=yes
21564 # ldd complains unless libraries are executable
21565 postinstall_cmds
='chmod +x $lib'
21570 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21571 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21572 shlibpath_var
=LD_LIBRARY_PATH
21573 shlibpath_overrides_runpath
=yes
21574 if test "$with_gnu_ld" = yes; then
21582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21583 soname_spec
='${libname}${release}${shared_ext}$major'
21584 shlibpath_var
=LD_LIBRARY_PATH
21585 case $host_vendor in
21587 shlibpath_overrides_runpath
=no
21589 runpath_var
=LD_RUN_PATH
21597 shlibpath_overrides_runpath
=no
21598 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21604 if test -d /usr
/nec
;then
21606 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21607 soname_spec
='$libname${shared_ext}.$major'
21608 shlibpath_var
=LD_LIBRARY_PATH
21612 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21613 version_type
=freebsd-elf
21616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21617 soname_spec
='${libname}${release}${shared_ext}$major'
21618 shlibpath_var
=LD_LIBRARY_PATH
21619 shlibpath_overrides_runpath
=yes
21620 hardcode_into_libs
=yes
21621 if test "$with_gnu_ld" = yes; then
21622 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21624 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21627 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21631 sys_lib_dlsearch_path_spec
='/usr/lib'
21635 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21640 shlibpath_var
=LD_LIBRARY_PATH
21641 shlibpath_overrides_runpath
=no
21642 hardcode_into_libs
=yes
21647 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21648 soname_spec
='${libname}${release}${shared_ext}$major'
21649 shlibpath_var
=LD_LIBRARY_PATH
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21657 $as_echo "$dynamic_linker" >&6; }
21658 test "$dynamic_linker" = no
&& can_build_shared
=no
21660 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21661 if test "$GCC" = yes; then
21662 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21665 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21666 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21668 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21669 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21710 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21711 hardcode_action_CXX
=
21712 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21713 test -n "$runpath_var_CXX" ||
21714 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21716 # We can hardcode non-existent directories.
21717 if test "$hardcode_direct_CXX" != no
&&
21718 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21719 # have to relink, otherwise we might link with an installed library
21720 # when we should be linking with a yet-to-be-installed one
21721 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21722 test "$hardcode_minus_L_CXX" != no
; then
21723 # Linking always hardcodes the temporary library directory.
21724 hardcode_action_CXX
=relink
21726 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21727 hardcode_action_CXX
=immediate
21730 # We cannot hardcode anything, or else we can only hardcode existing
21732 hardcode_action_CXX
=unsupported
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21735 $as_echo "$hardcode_action_CXX" >&6; }
21737 if test "$hardcode_action_CXX" = relink ||
21738 test "$inherit_rpath_CXX" = yes; then
21739 # Fast installation is not supported
21740 enable_fast_install
=no
21741 elif test "$shlibpath_overrides_runpath" = yes ||
21742 test "$enable_shared" = no
; then
21743 # Fast installation is not necessary
21744 enable_fast_install
=needless
21753 fi # test -n "$compiler"
21759 with_gnu_ld
=$lt_save_with_gnu_ld
21760 lt_cv_path_LDCXX
=$lt_cv_path_LD
21761 lt_cv_path_LD
=$lt_save_path_LD
21762 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21763 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21764 fi # test "$_lt_caught_CXX_error" != yes
21767 ac_cpp
='$CXXCPP $CPPFLAGS'
21768 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21769 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21770 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21787 # Only expand once:
21793 # Identify the assembler which will work hand-in-glove with the newly
21794 # built GCC, so that we can examine its features. This is the assembler
21795 # which will be driven by the driver program.
21797 # If build != host, and we aren't building gas in-tree, we identify a
21798 # build->target assembler and hope that it will have the same features
21799 # as the host->target assembler we'll be using.
21800 gcc_cv_gas_major_version
=
21801 gcc_cv_gas_minor_version
=
21802 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21804 if test "${gcc_cv_as+set}" = set; then :
21808 if test -x "$DEFAULT_ASSEMBLER"; then
21809 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21810 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21811 && test -f ..
/gas
/Makefile \
21812 && test x
$build = x
$host; then
21813 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21814 elif test -x as
$build_exeext; then
21815 # Build using assembler in the current directory.
21816 gcc_cv_as
=.
/as
$build_exeext
21817 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21818 gcc_cv_as
="$AS_FOR_TARGET"
21820 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21821 set dummy
$AS_FOR_TARGET; ac_word
=$2
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21823 $as_echo_n "checking for $ac_word... " >&6; }
21824 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21825 $as_echo_n "(cached) " >&6
21829 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21833 for as_dir
in $PATH
21836 test -z "$as_dir" && as_dir
=.
21837 for ac_exec_ext
in '' $ac_executable_extensions; do
21838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21839 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21850 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21851 if test -n "$gcc_cv_as"; then
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21853 $as_echo "$gcc_cv_as" >&6; }
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21856 $as_echo "no" >&6; }
21863 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21865 case "$ORIGINAL_AS_FOR_TARGET" in
21866 .
/as | .
/as
$build_exeext) ;;
21867 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21872 $as_echo_n "checking what assembler to use... " >&6; }
21873 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21874 # Single tree build which includes gas. We want to prefer it
21875 # over whatever linker top-level may have detected, since
21876 # we'll use what we're building after installation anyway.
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21878 $as_echo "newly built gas" >&6; }
21880 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21881 for f
in $gcc_cv_as_bfd_srcdir/configure \
21882 $gcc_cv_as_gas_srcdir/configure \
21883 $gcc_cv_as_gas_srcdir/configure.ac \
21884 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21885 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21886 if test x
$gcc_cv_gas_version != x
; then
21890 case $gcc_cv_gas_version in
21892 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21894 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21895 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21896 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21897 case $gcc_cv_gas_patch_version in
21898 "") gcc_cv_gas_patch_version
="0" ;;
21900 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21901 + $gcc_cv_gas_minor_version \) \* 1000 \
21902 + $gcc_cv_gas_patch_version`
21904 in_tree_gas_is_elf
=no
21905 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21906 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21907 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21909 in_tree_gas_is_elf
=yes
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21913 $as_echo "$gcc_cv_as" >&6; }
21918 # Check whether --enable-ld was given.
21919 if test "${enable_ld+set}" = set; then :
21920 enableval
=$enable_ld; case "${enableval}" in
21928 install_gold_as_default
=no
21929 # Check whether --enable-gold was given.
21930 if test "${enable_gold+set}" = set; then :
21931 enableval
=$enable_gold; case "${enableval}" in
21933 install_gold_as_default
=yes
21936 if test x
${default_ld} != x
; then
21937 install_gold_as_default
=yes
21943 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21949 # Identify the linker which will work hand-in-glove with the newly
21950 # built GCC, so that we can examine its features. This is the linker
21951 # which will be driven by the driver program.
21953 # If build != host, and we aren't building gas in-tree, we identify a
21954 # build->target linker and hope that it will have the same features
21955 # as the host->target linker we'll be using.
21956 gcc_cv_gld_major_version
=
21957 gcc_cv_gld_minor_version
=
21958 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21959 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21960 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21962 if test "${gcc_cv_ld+set}" = set; then :
21966 if test -x "$DEFAULT_LINKER"; then
21967 gcc_cv_ld
="$DEFAULT_LINKER"
21968 elif test $install_gold_as_default = yes \
21969 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21970 && test -f ..
/gold
/Makefile \
21971 && test x
$build = x
$host; then
21972 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21973 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21974 && test -f ..
/ld
/Makefile \
21975 && test x
$build = x
$host; then
21976 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21977 elif test -x collect-ld
$build_exeext; then
21978 # Build using linker in the current directory.
21979 gcc_cv_ld
=.
/collect-ld
$build_exeext
21980 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21981 gcc_cv_ld
="$LD_FOR_TARGET"
21983 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21984 set dummy
$LD_FOR_TARGET; ac_word
=$2
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21986 $as_echo_n "checking for $ac_word... " >&6; }
21987 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21988 $as_echo_n "(cached) " >&6
21992 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21996 for as_dir
in $PATH
21999 test -z "$as_dir" && as_dir
=.
22000 for ac_exec_ext
in '' $ac_executable_extensions; do
22001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22002 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22013 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22014 if test -n "$gcc_cv_ld"; then
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22016 $as_echo "$gcc_cv_ld" >&6; }
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22019 $as_echo "no" >&6; }
22026 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22027 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22028 # if the PLUGIN_LD is set ld-new, just have it as ld
22029 # as that is the installed named.
22030 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22031 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22032 PLUGIN_LD_SUFFIX
=ld
22035 # Check whether --with-plugin-ld was given.
22036 if test "${with_plugin_ld+set}" = set; then :
22037 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22038 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22039 PLUGIN_LD_SUFFIX
="$withval"
22045 cat >>confdefs.h
<<_ACEOF
22046 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22050 # Check to see if we are using gold instead of ld
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22052 $as_echo_n "checking whether we are using gold... " >&6; }
22054 if test x
$gcc_cv_ld != x
; then
22055 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22056 |
grep "GNU gold" > /dev
/null
; then
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22061 $as_echo "$ld_is_gold" >&6; }
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22064 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22065 # Check to see if default ld is not gold, but gold is
22066 # available and has support for split stack. If gcc was configured
22067 # with gold then no checking is done.
22069 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22071 # For platforms other than powerpc64*, enable as appropriate.
22073 gold_non_default
=no
22074 ld_gold
=`which ${gcc_cv_ld}.gold`
22075 # Make sure this gold has minimal split stack support
22076 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22077 ld_vers
=`$ld_gold --version | sed 1q`
22078 gold_vers
=`echo $ld_vers | sed -n \
22079 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22081 # check that the gold version contains the complete split stack support
22082 # on powerpc64 big and little endian
22084 case "$gold_vers" in
22085 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22087 *) gold_non_default
=no
22093 if test $gold_non_default = yes; then
22095 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22100 $as_echo "$gold_non_default" >&6; }
22102 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22104 case "$ORIGINAL_LD_FOR_TARGET" in
22105 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22106 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22111 $as_echo_n "checking what linker to use... " >&6; }
22112 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22113 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22114 # Single tree build which includes ld. We want to prefer it
22115 # over whatever linker top-level may have detected, since
22116 # we'll use what we're building after installation anyway.
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22118 $as_echo "newly built ld" >&6; }
22120 in_tree_ld_is_elf
=no
22121 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22122 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22123 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22124 in_tree_ld_is_elf
=yes
22125 elif test "$ld_is_gold" = yes; then
22126 in_tree_ld_is_elf
=yes
22128 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
22130 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22131 if test x
$gcc_cv_gld_version != x
; then
22135 case $gcc_cv_gld_version in
22137 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22139 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22140 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22141 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22142 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22145 $as_echo "$gcc_cv_ld" >&6; }
22147 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22148 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22149 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22155 # Figure out what nm we will be using.
22156 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22157 if test "${gcc_cv_nm+set}" = set; then :
22161 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22162 && test -f ..
/binutils
/Makefile \
22163 && test x
$build = x
$host; then
22164 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22165 elif test -x nm
$build_exeext; then
22166 gcc_cv_nm
=.
/nm
$build_exeext
22167 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22168 gcc_cv_nm
="$NM_FOR_TARGET"
22170 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22171 set dummy
$NM_FOR_TARGET; ac_word
=$2
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22173 $as_echo_n "checking for $ac_word... " >&6; }
22174 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22175 $as_echo_n "(cached) " >&6
22179 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22183 for as_dir
in $PATH
22186 test -z "$as_dir" && as_dir
=.
22187 for ac_exec_ext
in '' $ac_executable_extensions; do
22188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22189 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22200 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22201 if test -n "$gcc_cv_nm"; then
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22203 $as_echo "$gcc_cv_nm" >&6; }
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22206 $as_echo "no" >&6; }
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22214 $as_echo_n "checking what nm to use... " >&6; }
22215 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22216 # Single tree build which includes binutils.
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22218 $as_echo "newly built nm" >&6; }
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22222 $as_echo "$gcc_cv_nm" >&6; }
22226 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22228 case "$ORIGINAL_NM_FOR_TARGET" in
22229 .
/nm | .
/nm
$build_exeext) ;;
22230 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22235 # Figure out what objdump we will be using.
22236 if test "${gcc_cv_objdump+set}" = set; then :
22240 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22241 && test -f ..
/binutils
/Makefile \
22242 && test x
$build = x
$host; then
22243 # Single tree build which includes binutils.
22244 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22245 elif test -x objdump
$build_exeext; then
22246 gcc_cv_objdump
=.
/objdump
$build_exeext
22247 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22248 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22250 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22251 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22253 $as_echo_n "checking for $ac_word... " >&6; }
22254 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22255 $as_echo_n "(cached) " >&6
22257 case $gcc_cv_objdump in
22259 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22263 for as_dir
in $PATH
22266 test -z "$as_dir" && as_dir
=.
22267 for ac_exec_ext
in '' $ac_executable_extensions; do
22268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22269 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22280 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22281 if test -n "$gcc_cv_objdump"; then
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22283 $as_echo "$gcc_cv_objdump" >&6; }
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22286 $as_echo "no" >&6; }
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22294 $as_echo_n "checking what objdump to use... " >&6; }
22295 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22296 # Single tree build which includes binutils.
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22298 $as_echo "newly built objdump" >&6; }
22299 elif test x
$gcc_cv_objdump = x
; then
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22301 $as_echo "not found" >&6; }
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22304 $as_echo "$gcc_cv_objdump" >&6; }
22307 # Figure out what readelf we will be using.
22308 if test "${gcc_cv_readelf+set}" = set; then :
22312 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22313 && test -f ..
/binutils
/Makefile \
22314 && test x
$build = x
$host; then
22315 # Single tree build which includes binutils.
22316 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22317 elif test -x readelf
$build_exeext; then
22318 gcc_cv_readelf
=.
/readelf
$build_exeext
22319 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22320 gcc_cv_readelf
="$READELF_FOR_TARGET"
22322 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22323 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22325 $as_echo_n "checking for $ac_word... " >&6; }
22326 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22327 $as_echo_n "(cached) " >&6
22329 case $gcc_cv_readelf in
22331 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22335 for as_dir
in $PATH
22338 test -z "$as_dir" && as_dir
=.
22339 for ac_exec_ext
in '' $ac_executable_extensions; do
22340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22341 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22352 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22353 if test -n "$gcc_cv_readelf"; then
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22355 $as_echo "$gcc_cv_readelf" >&6; }
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22358 $as_echo "no" >&6; }
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22366 $as_echo_n "checking what readelf to use... " >&6; }
22367 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22368 # Single tree build which includes binutils.
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22370 $as_echo "newly built readelf" >&6; }
22371 elif test x
$gcc_cv_readelf = x
; then
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22373 $as_echo "not found" >&6; }
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22376 $as_echo "$gcc_cv_readelf" >&6; }
22379 # Figure out what assembler alignment features are present.
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22381 $as_echo_n "checking assembler flags... " >&6; }
22382 if test "${gcc_cv_as_flags+set}" = set; then :
22383 $as_echo_n "(cached) " >&6
22386 i
[34567]86-*-linux*)
22387 gcc_cv_as_flags
=--32
22389 x86_64-
*-linux-gnux32)
22390 gcc_cv_as_flags
=--x32
22393 gcc_cv_as_flags
=--64
22395 powerpc
*-*-darwin*)
22396 gcc_cv_as_flags
="-arch ppc"
22399 gcc_cv_as_flags
=" "
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22404 $as_echo "$gcc_cv_as_flags" >&6; }
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22407 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22408 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22409 $as_echo_n "(cached) " >&6
22411 gcc_cv_as_balign_and_p2align
=no
22412 if test $in_tree_gas = yes; then
22413 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22414 then gcc_cv_as_balign_and_p2align
=yes
22416 elif test x
$gcc_cv_as != x
; then
22417 $as_echo '.balign 4
22418 .p2align 2' > conftest.s
22419 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22421 (eval $ac_try) 2>&5
22423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22424 test $ac_status = 0; }; }
22426 gcc_cv_as_balign_and_p2align
=yes
22428 echo "configure: failed program was" >&5
22431 rm -f conftest.o conftest.s
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22435 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22436 if test $gcc_cv_as_balign_and_p2align = yes; then
22438 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22444 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22445 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22446 $as_echo_n "(cached) " >&6
22448 gcc_cv_as_max_skip_p2align
=no
22449 if test $in_tree_gas = yes; then
22450 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22451 then gcc_cv_as_max_skip_p2align
=yes
22453 elif test x
$gcc_cv_as != x
; then
22454 $as_echo '.p2align 4,,7' > conftest.s
22455 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22457 (eval $ac_try) 2>&5
22459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22460 test $ac_status = 0; }; }
22462 gcc_cv_as_max_skip_p2align
=yes
22464 echo "configure: failed program was" >&5
22467 rm -f conftest.o conftest.s
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22471 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22472 if test $gcc_cv_as_max_skip_p2align = yes; then
22474 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22480 $as_echo_n "checking assembler for .literal16... " >&6; }
22481 if test "${gcc_cv_as_literal16+set}" = set; then :
22482 $as_echo_n "(cached) " >&6
22484 gcc_cv_as_literal16
=no
22485 if test $in_tree_gas = yes; then
22486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22487 then gcc_cv_as_literal16
=yes
22489 elif test x
$gcc_cv_as != x
; then
22490 $as_echo '.literal16' > conftest.s
22491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22493 (eval $ac_try) 2>&5
22495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22496 test $ac_status = 0; }; }
22498 gcc_cv_as_literal16
=yes
22500 echo "configure: failed program was" >&5
22503 rm -f conftest.o conftest.s
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22507 $as_echo "$gcc_cv_as_literal16" >&6; }
22508 if test $gcc_cv_as_literal16 = yes; then
22510 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22516 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22517 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22518 $as_echo_n "(cached) " >&6
22520 gcc_cv_as_subsection_m1
=no
22521 if test $in_tree_gas = yes; then
22522 if test $in_tree_gas_is_elf = yes \
22523 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22524 then gcc_cv_as_subsection_m1
=yes
22526 elif test x
$gcc_cv_as != x
; then
22527 $as_echo 'conftest_label1: .word 0
22529 conftest_label2: .word 0
22530 .previous' > conftest.s
22531 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22533 (eval $ac_try) 2>&5
22535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22536 test $ac_status = 0; }; }
22538 if test x
$gcc_cv_nm != x
; then
22539 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22540 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22541 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22543 else gcc_cv_as_subsection_m1
=yes
22545 rm -f conftest.nm1 conftest.nm2
22548 echo "configure: failed program was" >&5
22551 rm -f conftest.o conftest.s
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22555 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22556 if test $gcc_cv_as_subsection_m1 = yes; then
22558 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22564 $as_echo_n "checking assembler for .weak... " >&6; }
22565 if test "${gcc_cv_as_weak+set}" = set; then :
22566 $as_echo_n "(cached) " >&6
22569 if test $in_tree_gas = yes; then
22570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22571 then gcc_cv_as_weak
=yes
22573 elif test x
$gcc_cv_as != x
; then
22574 $as_echo ' .weak foobar' > conftest.s
22575 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22577 (eval $ac_try) 2>&5
22579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22580 test $ac_status = 0; }; }
22584 echo "configure: failed program was" >&5
22587 rm -f conftest.o conftest.s
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22591 $as_echo "$gcc_cv_as_weak" >&6; }
22592 if test $gcc_cv_as_weak = yes; then
22594 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22600 $as_echo_n "checking assembler for .weakref... " >&6; }
22601 if test "${gcc_cv_as_weakref+set}" = set; then :
22602 $as_echo_n "(cached) " >&6
22604 gcc_cv_as_weakref
=no
22605 if test $in_tree_gas = yes; then
22606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22607 then gcc_cv_as_weakref
=yes
22609 elif test x
$gcc_cv_as != x
; then
22610 $as_echo ' .weakref foobar, barfnot' > conftest.s
22611 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22613 (eval $ac_try) 2>&5
22615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22616 test $ac_status = 0; }; }
22618 gcc_cv_as_weakref
=yes
22620 echo "configure: failed program was" >&5
22623 rm -f conftest.o conftest.s
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22627 $as_echo "$gcc_cv_as_weakref" >&6; }
22628 if test $gcc_cv_as_weakref = yes; then
22630 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22636 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22637 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22638 $as_echo_n "(cached) " >&6
22640 gcc_cv_as_nsubspa_comdat
=no
22641 if test $in_tree_gas = yes; then
22642 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22643 then gcc_cv_as_nsubspa_comdat
=yes
22645 elif test x
$gcc_cv_as != x
; then
22646 $as_echo ' .SPACE $TEXT$
22647 .NSUBSPA $CODE$,COMDAT' > conftest.s
22648 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22650 (eval $ac_try) 2>&5
22652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22653 test $ac_status = 0; }; }
22655 gcc_cv_as_nsubspa_comdat
=yes
22657 echo "configure: failed program was" >&5
22660 rm -f conftest.o conftest.s
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22664 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22665 if test $gcc_cv_as_nsubspa_comdat = yes; then
22667 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22672 # .hidden needs to be supported in both the assembler and the linker,
22673 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22674 # This is irritatingly difficult to feature test for; we have to check the
22675 # date string after the version number. If we've got an in-tree
22676 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22678 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22679 case "${target}" in
22681 conftest_s
=' .globl foobar,hidden'
22684 conftest_s
=' .hidden foobar
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22689 $as_echo_n "checking assembler for .hidden... " >&6; }
22690 if test "${gcc_cv_as_hidden+set}" = set; then :
22691 $as_echo_n "(cached) " >&6
22693 gcc_cv_as_hidden
=no
22694 if test $in_tree_gas = yes; then
22695 if test $in_tree_gas_is_elf = yes \
22696 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22697 then gcc_cv_as_hidden
=yes
22699 elif test x
$gcc_cv_as != x
; then
22700 $as_echo "$conftest_s" > conftest.s
22701 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22703 (eval $ac_try) 2>&5
22705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22706 test $ac_status = 0; }; }
22708 gcc_cv_as_hidden
=yes
22710 echo "configure: failed program was" >&5
22713 rm -f conftest.o conftest.s
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22717 $as_echo "$gcc_cv_as_hidden" >&6; }
22720 case "${target}" in
22722 # Darwin as has some visibility support, though with a different syntax.
22723 gcc_cv_as_hidden
=yes
22727 # gnu_indirect_function type is an extension proposed at
22728 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22729 # selection of function implementation
22730 # Check whether --enable-gnu-indirect-function was given.
22731 if test "${enable_gnu_indirect_function+set}" = set; then :
22732 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22734 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22735 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22738 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22742 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22744 cat >>confdefs.h
<<_ACEOF
22745 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22750 if test $in_tree_ld != yes ; then
22751 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22752 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22753 if test x
"$ld_is_gold" = xyes
; then
22754 # GNU gold --version looks like this:
22756 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22758 # We extract the binutils version which is more familiar and specific
22759 # than the gold version.
22760 ld_vers
=`echo $ld_ver | sed -n \
22761 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22763 # GNU ld --version looks like this:
22765 # GNU ld (GNU Binutils) 2.21.51.20110225
22766 ld_vers
=`echo $ld_ver | sed -n \
22767 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22769 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'`
22770 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22771 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22772 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22774 case "${target}" in
22776 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22779 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22780 # /usr/ccs/bin/ld has been configured.
22781 ld_ver
=`$gcc_cv_ld -V 2>&1`
22782 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22783 ld_vers
=`echo $ld_ver | sed -n \
22784 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22785 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22786 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22794 $as_echo_n "checking linker for .hidden support... " >&6; }
22795 if test "${gcc_cv_ld_hidden+set}" = set; then :
22796 $as_echo_n "(cached) " >&6
22798 if test $in_tree_ld = yes ; then
22799 gcc_cv_ld_hidden
=no
22800 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 \
22801 && test $in_tree_ld_is_elf = yes; then
22802 gcc_cv_ld_hidden
=yes
22805 gcc_cv_ld_hidden
=yes
22806 if test x
"$ld_is_gold" = xyes
; then
22808 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22809 case "${target}" in
22810 mmix-knuth-mmixware
)
22811 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22812 gcc_cv_ld_hidden
=no
22815 if test 0"$ld_date" -lt 20020404; then
22816 if test -n "$ld_date"; then
22817 # If there was date string, but was earlier than 2002-04-04, fail
22818 gcc_cv_ld_hidden
=no
22819 elif test -z "$ld_vers"; then
22820 # If there was no date string nor ld version number, something is wrong
22821 gcc_cv_ld_hidden
=no
22823 test -z "$ld_vers_patch" && ld_vers_patch
=0
22824 if test "$ld_vers_major" -lt 2; then
22825 gcc_cv_ld_hidden
=no
22826 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22827 gcc_cv_ld_hidden
="no"
22828 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22829 gcc_cv_ld_hidden
=no
22834 case "${target}" in
22836 gcc_cv_ld_hidden
=yes
22839 # Darwin ld has some visibility support.
22840 gcc_cv_ld_hidden
=yes
22842 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22843 gcc_cv_ld_hidden
=yes
22845 *-*-solaris2.1
[0-9]*)
22846 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22847 # .symbolic was only added in Solaris 9 12/02.
22848 gcc_cv_ld_hidden
=yes
22851 gcc_cv_ld_hidden
=no
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22858 $as_echo "$gcc_cv_ld_hidden" >&6; }
22859 libgcc_visibility
=no
22862 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22863 libgcc_visibility
=yes
22865 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22870 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22871 gcc_cv_ld_ro_rw_mix
=unknown
22872 if test $in_tree_ld = yes ; then
22873 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 \
22874 && test $in_tree_ld_is_elf = yes; then
22875 gcc_cv_ld_ro_rw_mix
=read-write
22877 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22878 echo '.section myfoosect, "a"' > conftest1.s
22879 echo '.section myfoosect, "aw"' > conftest2.s
22880 echo '.byte 1' >> conftest2.s
22881 echo '.section myfoosect, "a"' > conftest3.s
22882 echo '.byte 0' >> conftest3.s
22883 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22884 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22885 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22886 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22887 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22888 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22889 | sed -e '/myfoosect/!d' -e N`
22890 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22891 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22892 gcc_cv_ld_ro_rw_mix
=read-only
22894 gcc_cv_ld_ro_rw_mix
=read-write
22898 rm -f conftest.
* conftest
[123].
*
22900 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22902 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22906 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22908 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22909 case "${target}" in
22912 # Solaris 2 ld -V output looks like this for a regular version:
22914 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22916 # but test versions add stuff at the end:
22918 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22920 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22921 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22922 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22923 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22924 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22925 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22931 # Check whether --enable-initfini-array was given.
22932 if test "${enable_initfini_array+set}" = set; then :
22933 enableval
=$enable_initfini_array;
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22937 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22938 if test "${gcc_cv_initfini_array+set}" = set; then :
22939 $as_echo_n "(cached) " >&6
22941 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22942 case "${target}" in
22944 if test "$cross_compiling" = yes; then :
22945 gcc_cv_initfini_array
=no
22947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22948 /* end confdefs.h. */
22951 #error Not an ELF OS
22953 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22954 if it can be used. */
22956 int main (void) { return x; }
22957 int foo (void) { x = 0; }
22958 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22961 if ac_fn_cxx_try_run
"$LINENO"; then :
22962 gcc_cv_initfini_array
=yes
22964 gcc_cv_initfini_array
=no
22966 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22967 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22971 gcc_cv_initfini_array
=no
22972 if test $in_tree_ld = yes ; then
22973 if test "$gcc_cv_gld_major_version" -eq 2 \
22974 -a "$gcc_cv_gld_minor_version" -ge 22 \
22975 -o "$gcc_cv_gld_major_version" -gt 2 \
22976 && test $in_tree_ld_is_elf = yes; then
22977 gcc_cv_initfini_array
=yes
22979 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22980 case $target:$gas in
22983 sh_type
='%progbits'
22985 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
22987 sh_type
='@progbits'
22989 sparc
*-*-solaris2*:no
)
22991 sh_type
='#progbits'
22995 case "$target:$gnu_ld" in
22997 cat > conftest.s
<<EOF
22998 .section .dtors,$sh_flags,$sh_type
23000 .byte 'A', 'A', 'A', 'A'
23001 .section .ctors,$sh_flags,$sh_type
23003 .byte 'B', 'B', 'B', 'B'
23004 .section .fini_array.65530,$sh_flags,$sh_type
23006 .byte 'C', 'C', 'C', 'C'
23007 .section .init_array.65530,$sh_flags,$sh_type
23009 .byte 'D', 'D', 'D', 'D'
23010 .section .dtors.64528,$sh_flags,$sh_type
23012 .byte 'E', 'E', 'E', 'E'
23013 .section .ctors.64528,$sh_flags,$sh_type
23015 .byte 'F', 'F', 'F', 'F'
23016 .section .fini_array.01005,$sh_flags,$sh_type
23018 .byte 'G', 'G', 'G', 'G'
23019 .section .init_array.01005,$sh_flags,$sh_type
23021 .byte 'H', 'H', 'H', 'H'
23026 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23027 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23028 && $gcc_cv_objdump -s -j .init_array conftest \
23029 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23030 && $gcc_cv_objdump -s -j .fini_array conftest \
23031 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23032 gcc_cv_initfini_array
=yes
23036 # When Solaris ld added constructor priority support, it was
23037 # decided to only handle .init_array.N/.fini_array.N since
23038 # there was no need for backwards compatibility with
23039 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23040 # sections with correct execution order resp. to
23041 # .init_array/.fini_array, while gld merges them into
23042 # .init_array/.fini_array.
23043 cat > conftest.s
<<EOF
23044 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23046 .byte 'C', 'C', 'C', 'C'
23047 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23049 .byte 'D', 'D', 'D', 'D'
23050 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23052 .byte 'G', 'G', 'G', 'G'
23053 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23055 .byte 'H', 'H', 'H', 'H'
23060 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23061 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23062 && $gcc_cv_objdump -s -j .init_array conftest \
23063 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23064 && $gcc_cv_objdump -s -j .fini_array conftest \
23065 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23066 gcc_cv_initfini_array
=yes
23070 rm -f conftest conftest.
*
23072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23073 /* end confdefs.h. */
23076 # error Not an ELF OS
23078 #include <stdlib.h>
23079 #if defined __GLIBC_PREREQ
23080 # if __GLIBC_PREREQ (2, 4)
23082 # error GLIBC 2.4 required
23085 # if defined __sun__ && defined __svr4__
23086 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23088 # error The C library not known to support .init_array/.fini_array
23093 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23096 gcc_cv_initfini_array
=no
23098 rm -f conftest.err conftest.
$ac_ext;;
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23102 $as_echo_n "checking cross compile... guessing... " >&6; }
23103 gcc_cv_initfini_array
=no
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23107 $as_echo "$gcc_cv_initfini_array" >&6; }
23108 enable_initfini_array
=$gcc_cv_initfini_array
23113 cat >>confdefs.h
<<_ACEOF
23114 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23119 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23121 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23122 if test "${gcc_cv_as_leb128+set}" = set; then :
23123 $as_echo_n "(cached) " >&6
23125 gcc_cv_as_leb128
=no
23126 if test $in_tree_gas = yes; then
23127 if test $in_tree_gas_is_elf = yes \
23128 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23129 then gcc_cv_as_leb128
=yes
23131 elif test x
$gcc_cv_as != x
; then
23138 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23140 (eval $ac_try) 2>&5
23142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23143 test $ac_status = 0; }; }
23145 # GAS versions before 2.11 do not support uleb128,
23146 # despite appearing to.
23147 # ??? There exists an elf-specific test that will crash
23148 # the assembler. Perhaps it's better to figure out whether
23149 # arbitrary sections are supported and try the test.
23150 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23151 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23152 as_vers
=`echo $as_ver | sed -n \
23153 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23154 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23155 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23156 if test $as_major -eq 2 && test $as_minor -lt 11
23158 else gcc_cv_as_leb128
=yes
23162 echo "configure: failed program was" >&5
23165 rm -f conftest.o conftest.s
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23169 $as_echo "$gcc_cv_as_leb128" >&6; }
23170 if test $gcc_cv_as_leb128 = yes; then
23172 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23175 if test $gcc_cv_as_leb128 != yes; then
23177 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23181 # Check if we have assembler support for unwind directives.
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23183 $as_echo_n "checking assembler for cfi directives... " >&6; }
23184 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23185 $as_echo_n "(cached) " >&6
23187 gcc_cv_as_cfi_directive
=no
23188 if test x
$gcc_cv_as != x
; then
23194 .cfi_escape 1, 2, 3, 4, 5
23195 .cfi_endproc' > conftest.s
23196 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23198 (eval $ac_try) 2>&5
23200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23201 test $ac_status = 0; }; }
23205 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23206 # read-only and read-write sections, we need to make sure that the
23207 # assembler used emits read-write .eh_frame sections.
23208 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23209 if test "x$gcc_cv_objdump" != x
; then
23210 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23211 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23212 gcc_cv_as_cfi_directive
=no
23215 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23216 # On Solaris/x86, make sure that GCC and assembler agree on using
23217 # read-only .eh_frame sections for 64-bit.
23218 if test x
$gas = xyes
; then
23219 as_ix86_64_opt
="--64"
23221 as_ix86_64_opt
="-xarch=amd64"
23223 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23224 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23225 sed -e /.eh_frame
/!d
-e N | \
23226 grep READONLY
> /dev
/null
; then
23227 gcc_cv_as_cfi_directive
=yes
23229 gcc_cv_as_cfi_directive
=no
23233 gcc_cv_as_cfi_directive
=yes
23238 # no objdump, err on the side of caution
23239 gcc_cv_as_cfi_directive
=no
23242 gcc_cv_as_cfi_directive
=yes
23246 gcc_cv_as_cfi_directive
=yes
23250 echo "configure: failed program was" >&5
23253 rm -f conftest.o conftest.s
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23257 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23260 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23262 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23263 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23264 $as_echo_n "(cached) " >&6
23266 gcc_cv_as_cfi_advance_working
=no
23267 if test x
$gcc_cv_as != x
; then
23270 .cfi_adjust_cfa_offset 64
23272 .cfi_adjust_cfa_offset 128
23273 .cfi_endproc' > conftest.s
23274 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23276 (eval $ac_try) 2>&5
23278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23279 test $ac_status = 0; }; }
23282 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23283 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23284 gcc_cv_as_cfi_advance_working
=yes
23288 echo "configure: failed program was" >&5
23291 rm -f conftest.o conftest.s
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23295 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23299 # no objdump, err on the side of caution
23300 gcc_cv_as_cfi_advance_working
=no
23304 cat >>confdefs.h
<<_ACEOF
23305 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23306 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23312 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23313 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23314 $as_echo_n "(cached) " >&6
23316 gcc_cv_as_cfi_personality_directive
=no
23317 if test x
$gcc_cv_as != x
; then
23320 .cfi_personality 0, symbol
23321 .cfi_endproc' > conftest.s
23322 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23324 (eval $ac_try) 2>&5
23326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23327 test $ac_status = 0; }; }
23329 gcc_cv_as_cfi_personality_directive
=yes
23331 echo "configure: failed program was" >&5
23334 rm -f conftest.o conftest.s
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23338 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23342 cat >>confdefs.h
<<_ACEOF
23343 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23344 then echo 1; else echo 0; fi`
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23349 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23350 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23351 $as_echo_n "(cached) " >&6
23353 gcc_cv_as_cfi_sections_directive
=no
23354 if test x
$gcc_cv_as != x
; then
23356 .cfi_sections .debug_frame, .eh_frame
23358 .cfi_endproc' > conftest.s
23359 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23361 (eval $ac_try) 2>&5
23363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23364 test $ac_status = 0; }; }
23367 win32 | pe | cygwin
* | mingw32
*)
23368 # Need to check that we generated the correct relocation for the
23369 # .debug_frame section. This was fixed for binutils 2.21.
23370 gcc_cv_as_cfi_sections_directive
=no
23371 if test "x$gcc_cv_objdump" != x
; then
23372 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23373 grep secrel
> /dev
/null
; then
23374 gcc_cv_as_cfi_sections_directive
=yes
23379 gcc_cv_as_cfi_sections_directive
=yes
23383 echo "configure: failed program was" >&5
23386 rm -f conftest.o conftest.s
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23390 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23395 cat >>confdefs.h
<<_ACEOF
23396 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23397 then echo 1; else echo 0; fi`
23401 # GAS versions up to and including 2.11.0 may mis-optimize
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23404 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23405 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23406 $as_echo_n "(cached) " >&6
23408 gcc_cv_as_eh_frame
=no
23409 if test $in_tree_gas = yes; then
23410 if test $in_tree_gas_is_elf = yes \
23411 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23412 then gcc_cv_as_eh_frame
=yes
23414 elif test x
$gcc_cv_as != x
; then
23421 .section .eh_frame,"aw",@progbits
23423 .4byte .LECIE1-.LSCIE1
23437 .4byte .LEFDE1-.LASFDE1
23439 .4byte .LASFDE1-__FRAME_BEGIN__
23446 .LEFDE1:' > conftest.s
23447 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23449 (eval $ac_try) 2>&5
23451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23452 test $ac_status = 0; }; }
23454 cat > conftest.lit
<<EOF
23455 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23456 0010 01000000 12000000 18000000 00000000 ................
23457 0020 08000000 04080000 0044 .........D
23459 cat > conftest.big
<<EOF
23460 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23461 0010 00000001 00000012 00000018 00000000 ................
23462 0020 00000008 04000000 0844 .........D
23464 # If the assembler didn't choke, and we can objdump,
23465 # and we got the correct data, then succeed.
23466 # The text in the here-document typically retains its unix-style line
23467 # endings, while the output of objdump will use host line endings.
23468 # Therefore, use diff -b for the comparisons.
23469 if test x
$gcc_cv_objdump != x \
23470 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23471 |
tail -3 > conftest.got \
23472 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23473 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23475 gcc_cv_as_eh_frame
=yes
23476 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23478 (eval $ac_try) 2>&5
23480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23481 test $ac_status = 0; }; }; then
23482 gcc_cv_as_eh_frame
=buggy
23484 # Uh oh, what do we do now?
23485 gcc_cv_as_eh_frame
=no
23488 echo "configure: failed program was" >&5
23491 rm -f conftest.o conftest.s
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23495 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23499 if test $gcc_cv_as_eh_frame = buggy
; then
23501 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23506 $as_echo_n "checking assembler for section merging support... " >&6; }
23507 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23508 $as_echo_n "(cached) " >&6
23510 gcc_cv_as_shf_merge
=no
23511 if test $in_tree_gas = yes; then
23512 if test $in_tree_gas_is_elf = yes \
23513 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23514 then gcc_cv_as_shf_merge
=yes
23516 elif test x
$gcc_cv_as != x
; then
23517 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23518 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23520 (eval $ac_try) 2>&5
23522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23523 test $ac_status = 0; }; }
23525 gcc_cv_as_shf_merge
=yes
23527 echo "configure: failed program was" >&5
23530 rm -f conftest.o conftest.s
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23534 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23537 if test $gcc_cv_as_shf_merge = no
; then
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23539 $as_echo_n "checking assembler for section merging support... " >&6; }
23540 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23541 $as_echo_n "(cached) " >&6
23543 gcc_cv_as_shf_merge
=no
23544 if test $in_tree_gas = yes; then
23545 if test $in_tree_gas_is_elf = yes \
23546 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23547 then gcc_cv_as_shf_merge
=yes
23549 elif test x
$gcc_cv_as != x
; then
23550 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23551 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23553 (eval $ac_try) 2>&5
23555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23556 test $ac_status = 0; }; }
23558 gcc_cv_as_shf_merge
=yes
23560 echo "configure: failed program was" >&5
23563 rm -f conftest.o conftest.s
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23567 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23572 cat >>confdefs.h
<<_ACEOF
23573 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23578 $as_echo_n "checking assembler for stabs directive... " >&6; }
23579 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23580 $as_echo_n "(cached) " >&6
23582 gcc_cv_as_stabs_directive
=no
23583 if test x
$gcc_cv_as != x
; then
23584 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23585 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23587 (eval $ac_try) 2>&5
23589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23590 test $ac_status = 0; }; }
23592 gcc_cv_as_stabs_directive
=yes
23594 echo "configure: failed program was" >&5
23597 rm -f conftest.o conftest.s
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23601 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23602 if test $gcc_cv_as_stabs_directive = yes; then
23604 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23610 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23611 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23612 $as_echo_n "(cached) " >&6
23614 gcc_cv_as_comdat_group
=no
23615 if test $in_tree_gas = yes; then
23616 if test $in_tree_gas_is_elf = yes \
23617 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23618 then gcc_cv_as_comdat_group
=yes
23620 elif test x
$gcc_cv_as != x
; then
23621 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23624 (eval $ac_try) 2>&5
23626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23627 test $ac_status = 0; }; }
23629 gcc_cv_as_comdat_group
=yes
23631 echo "configure: failed program was" >&5
23634 rm -f conftest.o conftest.s
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23638 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23641 if test $gcc_cv_as_comdat_group = yes; then
23642 gcc_cv_as_comdat_group_percent
=no
23643 gcc_cv_as_comdat_group_group
=no
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23646 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23647 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23648 $as_echo_n "(cached) " >&6
23650 gcc_cv_as_comdat_group_percent
=no
23651 if test $in_tree_gas = yes; then
23652 if test $in_tree_gas_is_elf = yes \
23653 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23654 then gcc_cv_as_comdat_group_percent
=yes
23656 elif test x
$gcc_cv_as != x
; then
23657 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23658 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23660 (eval $ac_try) 2>&5
23662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23663 test $ac_status = 0; }; }
23665 gcc_cv_as_comdat_group_percent
=yes
23667 echo "configure: failed program was" >&5
23670 rm -f conftest.o conftest.s
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23674 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23677 if test $gcc_cv_as_comdat_group_percent = yes; then
23678 gcc_cv_as_comdat_group_group
=no
23680 case "${target}" in
23681 # Sun as uses a completely different syntax.
23683 case "${target}" in
23684 sparc
*-*-solaris2*)
23686 .group foo,".text%foo",#comdat
23687 .section ".text%foo", #alloc,#execinstr,#progbits
23692 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23694 .group foo,.text%foo,#comdat
23695 .section .text%foo, "ax", @progbits
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23702 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23703 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23704 $as_echo_n "(cached) " >&6
23706 gcc_cv_as_comdat_group_group
=no
23707 if test x
$gcc_cv_as != x
; then
23708 $as_echo "$conftest_s" > conftest.s
23709 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23711 (eval $ac_try) 2>&5
23713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23714 test $ac_status = 0; }; }
23716 gcc_cv_as_comdat_group_group
=yes
23718 echo "configure: failed program was" >&5
23721 rm -f conftest.o conftest.s
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23725 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23730 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23731 gcc_cv_as_comdat_group_group
=no
23735 if test x
"$ld_is_gold" = xyes
; then
23737 elif test $in_tree_ld = yes ; then
23739 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 \
23740 && test $in_tree_ld_is_elf = yes; then
23743 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23745 if test 0"$ld_date" -lt 20050308; then
23746 if test -n "$ld_date"; then
23747 # If there was date string, but was earlier than 2005-03-08, fail
23749 elif test "$ld_vers_major" -lt 2; then
23751 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23756 case "${target}" in
23757 *-*-solaris2.1
[1-9]*)
23759 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23760 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23763 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23764 # least ld version 1.2267.
23765 if test "$ld_vers_major" -gt 1; then
23767 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23769 elif test "$ld_vers_minor" -ge 2267; then
23774 # Assume linkers other than GNU ld don't support COMDAT group.
23779 # Allow overriding the automatic COMDAT group tests above.
23780 # Check whether --enable-comdat was given.
23781 if test "${enable_comdat+set}" = set; then :
23782 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23785 if test $comdat_group = no
; then
23786 gcc_cv_as_comdat_group
=no
23787 gcc_cv_as_comdat_group_percent
=no
23788 gcc_cv_as_comdat_group_group
=no
23791 cat >>confdefs.h
<<_ACEOF
23792 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23793 || test $gcc_cv_as_comdat_group_percent = yes \
23794 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23799 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23800 if test "${gcc_cv_as_discriminator+set}" = set; then :
23801 $as_echo_n "(cached) " >&6
23803 gcc_cv_as_discriminator
=no
23804 if test $in_tree_gas = yes; then
23805 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23806 then gcc_cv_as_discriminator
=yes
23808 elif test x
$gcc_cv_as != x
; then
23811 .loc 1 1 0 discriminator 1' > conftest.s
23812 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23814 (eval $ac_try) 2>&5
23816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817 test $ac_status = 0; }; }
23819 gcc_cv_as_discriminator
=yes
23821 echo "configure: failed program was" >&5
23824 rm -f conftest.o conftest.s
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23828 $as_echo "$gcc_cv_as_discriminator" >&6; }
23829 if test $gcc_cv_as_discriminator = yes; then
23831 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23836 # Thread-local storage - the check is heavily parameterized.
23844 .section ".tdata","awT",@progbits
23847 ldq $27,__tls_get_addr($29) !literal!1
23848 lda $16,foo($29) !tlsgd!1
23849 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23850 ldq $27,__tls_get_addr($29) !literal!2
23851 lda $16,foo($29) !tlsldm!2
23852 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23853 ldq $1,foo($29) !gotdtprel
23854 ldah $2,foo($29) !dtprelhi
23855 lda $3,foo($2) !dtprello
23856 lda $4,foo($29) !dtprel
23857 ldq $1,foo($29) !gottprel
23858 ldah $2,foo($29) !tprelhi
23859 lda $3,foo($2) !tprello
23860 lda $4,foo($29) !tprel'
23863 tls_as_opt
=--fatal-warnings
23867 add_s r0,r0, @foo@tpoff'
23871 cris-
*-*|crisv32-
*-*)
23873 .section ".tdata","awT",@progbits
23880 tls_as_opt
=--fatal-warnings
23884 .section ".tdata","awT",@progbits
23887 call #gettlsoff(x)'
23896 .section ".tdata","awT",@progbits
23900 addil LT%foo-$tls_gdidx$,gp
23901 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23904 addil LT%foo-$tls_ldidx$,gp
23906 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23907 addil LR%foo-$tls_dtpoff$,%ret0
23908 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23910 addil LT%foo-$tls_ieoff$,gp
23911 ldw RT%foo-$tls_ieoff$(%r1),%t2
23914 addil LR%foo-$tls_leoff$,%t1
23915 ldo RR%foo-$tls_leoff$(%r1),%t2'
23918 tls_as_opt
=--fatal-warnings
23922 .section ".tdata","awT",%progbits
23925 .word foo(gottpoff)
23933 i
[34567]86-*-* | x86_64-
*-*)
23935 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23942 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23944 .section .tdata,"awt",@progbits'
23949 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23953 .section ".tdata","awT",@progbits'
23957 tls_as_opt
="--fatal-warnings"
23961 conftest_s
="$conftest_s
23965 leal foo@tlsgd(,%ebx,1), %eax
23966 leal foo@tlsldm(%ebx), %eax
23967 leal foo@dtpoff(%eax), %edx
23968 movl foo@gottpoff(%ebx), %eax
23969 subl foo@gottpoff(%ebx), %eax
23970 addl foo@gotntpoff(%ebx), %eax
23971 movl foo@indntpoff, %eax
23972 movl \$foo@tpoff, %eax
23973 subl \$foo@tpoff, %eax
23974 leal foo@ntpoff(%ecx), %eax"
23977 if test x
$on_solaris = xyes
; then
23979 yes) tls_as_opt
="$tls_as_opt --64" ;;
23980 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23983 conftest_s
="$conftest_s
23987 leaq foo@tlsgd(%rip), %rdi
23988 leaq foo@tlsld(%rip), %rdi
23989 leaq foo@dtpoff(%rax), %rdx
23990 movq foo@gottpoff(%rip), %rax
23991 movq \$foo@tpoff, %rax"
23997 .section ".tdata","awT",@progbits
24000 addl r16 = @ltoff(@dtpmod(foo#)), gp
24001 addl r17 = @ltoff(@dtprel(foo#)), gp
24002 addl r18 = @ltoff(@tprel(foo#)), gp
24003 addl r19 = @dtprel(foo#), gp
24004 adds r21 = @dtprel(foo#), r13
24005 movl r23 = @dtprel(foo#)
24006 addl r20 = @tprel(foo#), gp
24007 adds r22 = @tprel(foo#), r13
24008 movl r24 = @tprel(foo#)'
24011 tls_as_opt
=--fatal-warnings
24015 .section .tdata,"awT",@progbits
24019 addik r5,r20,x@TLSGD
24020 addik r5,r20,x@TLSLDM'
24023 tls_as_opt
='--fatal-warnings'
24027 .section .tdata,"awT",@progbits
24031 addiu $4, $28, %tlsgd(x)
24032 addiu $4, $28, %tlsldm(x)
24033 lui $4, %dtprel_hi(x)
24034 addiu $4, $4, %dtprel_lo(x)
24035 lw $4, %gottprel(x)($28)
24036 lui $4, %tprel_hi(x)
24037 addiu $4, $4, %tprel_lo(x)'
24040 tls_as_opt
='-32 --fatal-warnings'
24044 .section .tdata,"awT",@progbits
24049 move.l x@TLSGD(%a5),%a0
24050 move.l x@TLSLDM(%a5),%a0
24051 move.l x@TLSLDO(%a5),%a0
24052 move.l x@TLSIE(%a5),%a0
24053 move.l x@TLSLE(%a5),%a0'
24056 tls_as_opt
='--fatal-warnings'
24060 .section ".tdata","awT",@progbits'
24063 tls_as_opt
="--fatal-warnings"
24067 .section ".tdata","awT",%progbits
24071 add x0, x0, #:tlsgd_lo12:x
24076 tls_as_opt
='--fatal-warnings'
24080 .extern __get_tpointer
24098 .section ".tdata","awT",@progbits
24106 addi 3,2,ld0@got@tlsgd
24112 addi 3,2,x1@got@tlsld
24118 addis 9,3,x2@dtprel@ha
24119 addi 9,9,x2@dtprel@l
24122 ld 9,x3@got@dtprel(2)
24128 tls_as_opt
="-a64 --fatal-warnings"
24132 .section ".tdata","awT",@progbits
24140 addi 3,31,ld0@got@tlsgd
24142 addi 3,31,x1@got@tlsld
24145 addis 9,3,x2@dtprel@ha
24146 addi 9,9,x2@dtprel@l
24147 lwz 9,x3@got@tprel(31)
24150 addis 9,2,x2@tprel@ha
24151 addi 9,9,x2@tprel@l'
24154 tls_as_opt
="-a32 --fatal-warnings"
24158 .section ".tdata","awT",@progbits
24165 .long foo@GOTNTPOFF
24166 .long foo@INDNTPOFF
24167 l %r1,foo@GOTNTPOFF(%r12)
24168 l %r1,0(%r1):tls_load:foo
24169 bas %r14,0(%r1,%r13):tls_gdcall:foo
24170 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24173 tls_as_opt
="-m31 --fatal-warnings"
24177 .section ".tdata","awT",@progbits
24184 .quad foo@GOTNTPOFF
24185 lg %r1,foo@GOTNTPOFF(%r12)
24186 larl %r1,foo@INDNTPOFF
24187 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24188 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24191 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24193 sh-
*-* | sh
[123456789lbe
]*-*-*)
24195 .section ".tdata","awT",@progbits
24205 tls_as_opt
=--fatal-warnings
24209 sparc
*-sun-solaris2.
*)
24216 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24218 .section ".tdata",#alloc,#write,#tls'
24223 .section ".tdata","awT",@progbits'
24226 tls_as_opt
="-32 --fatal-warnings"
24228 conftest_s
="$conftest_s
24231 sethi %tgd_hi22(foo), %o0
24232 add %o0, %tgd_lo10(foo), %o1
24233 add %l7, %o1, %o0, %tgd_add(foo)
24234 call __tls_get_addr, %tgd_call(foo)
24235 sethi %tldm_hi22(foo), %l1
24236 add %l1, %tldm_lo10(foo), %l2
24237 add %l7, %l2, %o0, %tldm_add(foo)
24238 call __tls_get_addr, %tldm_call(foo)
24239 sethi %tldo_hix22(foo), %l3
24240 xor %l3, %tldo_lox10(foo), %l4
24241 add %o0, %l4, %l5, %tldo_add(foo)
24242 sethi %tie_hi22(foo), %o3
24243 add %o3, %tie_lo10(foo), %o3
24244 ld [%l7 + %o3], %o2, %tie_ld(foo)
24245 add %g7, %o2, %o4, %tie_add(foo)
24246 sethi %tle_hix22(foo), %l1
24247 xor %l1, %tle_lox10(foo), %o5
24248 ld [%g7 + %o5], %o1"
24252 .section ".tdata","awT",@progbits
24255 addli r0, zero, tls_gd(foo)
24256 auli r0, zero, tls_gd_ha16(foo)
24257 addli r0, r0, tls_gd_lo16(foo)
24259 addli r0, zero, tls_ie(foo)
24260 auli r0, r0, tls_ie_ha16(foo)
24261 addli r0, r0, tls_ie_lo16(foo)'
24264 tls_as_opt
="--fatal-warnings"
24268 .section ".tdata","awT",@progbits
24271 shl16insli r0, zero, hw0_last_tls_gd(foo)
24272 shl16insli r0, zero, hw1_last_tls_gd(foo)
24273 shl16insli r0, r0, hw0_tls_gd(foo)
24275 shl16insli r0, zero, hw1_last_tls_ie(foo)
24276 shl16insli r0, r0, hw0_tls_ie(foo)'
24279 tls_as_opt
="--fatal-warnings"
24283 .section ".tdata","awT",@progbits
24286 movi a8, foo@TLSFUNC
24287 movi a10, foo@TLSARG
24288 callx8.tls a8, foo@TLSCALL'
24294 if test "x$enable_tls" = xno
; then
24295 : # TLS explicitly disabled.
24296 elif test "x$enable_tls" = xyes
; then
24297 set_have_as_tls
=yes # TLS explicitly enabled.
24298 elif test -z "$tls_first_major"; then
24299 : # If we don't have a check, assume no support.
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24302 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24303 if test "${gcc_cv_as_tls+set}" = set; then :
24304 $as_echo_n "(cached) " >&6
24307 if test $in_tree_gas = yes; then
24308 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24309 then gcc_cv_as_tls
=yes
24311 elif test x
$gcc_cv_as != x
; then
24312 $as_echo "$conftest_s" > conftest.s
24313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24315 (eval $ac_try) 2>&5
24317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24318 test $ac_status = 0; }; }
24322 echo "configure: failed program was" >&5
24325 rm -f conftest.o conftest.s
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24329 $as_echo "$gcc_cv_as_tls" >&6; }
24330 if test $gcc_cv_as_tls = yes; then
24331 set_have_as_tls
=yes
24335 if test $set_have_as_tls = yes ; then
24337 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24341 # Target-specific assembler checks.
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24344 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24345 gcc_cv_ld_static_dynamic
=no
24346 gcc_cv_ld_static_option
='-Bstatic'
24347 gcc_cv_ld_dynamic_option
='-Bdynamic'
24348 if test $in_tree_ld = yes ; then
24349 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
24350 gcc_cv_ld_static_dynamic
=yes
24352 elif test x
$gcc_cv_ld != x
; then
24353 # Check if linker supports -Bstatic/-Bdynamic option
24354 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24355 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24356 gcc_cv_ld_static_dynamic
=yes
24359 # AIX ld uses -b flags
24360 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24361 gcc_cv_ld_static_dynamic
=yes
24362 gcc_cv_ld_static_option
="-bstatic"
24363 gcc_cv_ld_dynamic_option
="-bdynamic"
24365 # HP-UX ld uses -a flags to select between shared and archive.
24367 if test x
"$gnu_ld" = xno
; then
24368 gcc_cv_ld_static_dynamic
=yes
24369 gcc_cv_ld_static_option
="-aarchive_shared"
24370 gcc_cv_ld_dynamic_option
="-adefault"
24373 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24375 gcc_cv_ld_static_dynamic
=yes
24380 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24382 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24385 cat >>confdefs.h
<<_ACEOF
24386 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24390 cat >>confdefs.h
<<_ACEOF
24391 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24396 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24398 if test x
"$demangler_in_ld" = xyes
; then
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24400 $as_echo_n "checking linker --demangle support... " >&6; }
24401 gcc_cv_ld_demangle
=no
24402 if test $in_tree_ld = yes; then
24403 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 \
24404 gcc_cv_ld_demangle
=yes
24406 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24407 # Check if the GNU linker supports --demangle option
24408 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24409 gcc_cv_ld_demangle
=yes
24412 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24414 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24418 $as_echo "$gcc_cv_ld_demangle" >&6; }
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24422 $as_echo_n "checking linker plugin support... " >&6; }
24423 gcc_cv_lto_plugin
=0
24424 if test -f liblto_plugin.la
; then
24425 save_ld_ver
="$ld_ver"
24426 save_ld_vers_major
="$ld_vers_major"
24427 save_ld_vers_minor
="$ld_vers_minor"
24428 save_ld_is_gold
="$ld_is_gold"
24432 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24434 # FIXME: ld_is_gold?
24435 ld_vers_major
="$gcc_cv_gld_major_version"
24436 ld_vers_minor
="$gcc_cv_gld_minor_version"
24438 # Determine plugin linker version.
24439 # FIXME: Partial duplicate from above, generalize.
24440 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24441 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24442 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24444 ld_vers
=`echo $ld_ver | sed -n \
24445 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24447 ld_vers
=`echo $ld_ver | sed -n \
24448 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24450 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24451 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24455 # Determine plugin support.
24456 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24457 # Require GNU ld or gold 2.21+ for plugin support by default.
24458 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24459 gcc_cv_lto_plugin
=2
24460 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24461 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24462 gcc_cv_lto_plugin
=1
24466 ld_ver
="$save_ld_ver"
24467 ld_vers_major
="$save_ld_vers_major"
24468 ld_vers_minor
="$save_ld_vers_minor"
24469 ld_is_gold
="$save_ld_is_gold"
24472 cat >>confdefs.h
<<_ACEOF
24473 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24477 $as_echo "$gcc_cv_lto_plugin" >&6; }
24479 # Target OS-specific assembler checks.
24481 case "$target_os" in
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24484 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24485 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24486 $as_echo_n "(cached) " >&6
24488 gcc_cv_as_mmacosx_version_min
=no
24489 if test x
$gcc_cv_as != x
; then
24490 $as_echo '.text' > conftest.s
24491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24493 (eval $ac_try) 2>&5
24495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24496 test $ac_status = 0; }; }
24498 gcc_cv_as_mmacosx_version_min
=yes
24500 echo "configure: failed program was" >&5
24503 rm -f conftest.o conftest.s
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24507 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24508 if test $gcc_cv_as_mmacosx_version_min = yes; then
24510 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24517 # Target CPU-specific assembler checks.
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24522 $as_echo_n "checking assembler for -mabi option... " >&6; }
24523 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24524 $as_echo_n "(cached) " >&6
24526 gcc_cv_as_aarch64_mabi
=no
24527 if test x
$gcc_cv_as != x
; then
24528 $as_echo '.text' > conftest.s
24529 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24531 (eval $ac_try) 2>&5
24533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24534 test $ac_status = 0; }; }
24536 gcc_cv_as_aarch64_mabi
=yes
24538 echo "configure: failed program was" >&5
24541 rm -f conftest.o conftest.s
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24545 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24548 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24550 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24553 if test x
$with_abi = xilp32
; then
24554 as_fn_error
"Assembler does not support -mabi=ilp32.\
24555 Upgrade the Assembler." "$LINENO" 5
24557 if test x
"$with_multilib_list" = xdefault
; then
24558 TM_MULTILIB_CONFIG
=lp64
24560 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24561 for aarch64_multilib
in ${aarch64_multilibs}; do
24562 case ${aarch64_multilib} in
24564 as_fn_error
"Assembler does not support -mabi=ilp32.\
24565 Upgrade the Assembler." "$LINENO" 5
24573 # Check if we have binutils support for relocations types needed by -fpic
24574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24575 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24576 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24577 $as_echo_n "(cached) " >&6
24579 gcc_cv_as_aarch64_picreloc
=no
24580 if test x
$gcc_cv_as != x
; then
24583 ldr x0, [x2, #:gotpage_lo15:globalsym]
24585 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24587 (eval $ac_try) 2>&5
24589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24590 test $ac_status = 0; }; }
24592 gcc_cv_as_aarch64_picreloc
=yes
24594 echo "configure: failed program was" >&5
24597 rm -f conftest.o conftest.s
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24601 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24602 if test $gcc_cv_as_aarch64_picreloc = yes; then
24604 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24608 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24609 # Check whether --enable-fix-cortex-a53-835769 was given.
24610 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24611 enableval
=$enable_fix_cortex_a53_835769;
24614 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24619 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24620 Valid choices are 'yes' and 'no'." "$LINENO" 5
24627 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24628 # Check whether --enable-fix-cortex-a53-843419 was given.
24629 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24630 enableval
=$enable_fix_cortex_a53_843419;
24633 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24638 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24639 Valid choices are 'yes' and 'no'." "$LINENO" 5
24648 # All TARGET_ABI_OSF targets.
24649 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24651 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24652 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24653 $as_echo_n "(cached) " >&6
24655 gcc_cv_as_alpha_explicit_relocs
=no
24656 if test $in_tree_gas = yes; then
24657 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24658 then gcc_cv_as_alpha_explicit_relocs
=yes
24660 elif test x
$gcc_cv_as != x
; then
24661 $as_echo ' .set nomacro
24663 extbl $3, $2, $3 !lituse_bytoff!1
24664 ldq $2, a($29) !literal!1
24665 ldq $4, b($29) !literal!2
24666 ldq_u $3, 0($2) !lituse_base!1
24667 ldq $27, f($29) !literal!5
24668 jsr $26, ($27), f !lituse_jsr!5
24669 ldah $29, 0($26) !gpdisp!3
24670 lda $0, c($29) !gprel
24671 ldah $1, d($29) !gprelhigh
24672 lda $1, d($1) !gprellow
24673 lda $29, 0($29) !gpdisp!3' > conftest.s
24674 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24676 (eval $ac_try) 2>&5
24678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24679 test $ac_status = 0; }; }
24681 gcc_cv_as_alpha_explicit_relocs
=yes
24683 echo "configure: failed program was" >&5
24686 rm -f conftest.o conftest.s
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24690 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24691 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24693 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24698 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24699 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24700 $as_echo_n "(cached) " >&6
24702 gcc_cv_as_alpha_jsrdirect_relocs
=no
24703 if test $in_tree_gas = yes; then
24704 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24705 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24707 elif test x
$gcc_cv_as != x
; then
24708 $as_echo ' .set nomacro
24710 ldq $27, a($29) !literal!1
24711 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24712 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24714 (eval $ac_try) 2>&5
24716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24717 test $ac_status = 0; }; }
24719 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24721 echo "configure: failed program was" >&5
24724 rm -f conftest.o conftest.s
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24728 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24729 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24731 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24739 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24740 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24743 gcc_cv_as_avr_mlink_relax
=no
24744 if test x
$gcc_cv_as != x
; then
24745 $as_echo '.text' > conftest.s
24746 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24748 (eval $ac_try) 2>&5
24750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24751 test $ac_status = 0; }; }
24753 gcc_cv_as_avr_mlink_relax
=yes
24755 echo "configure: failed program was" >&5
24758 rm -f conftest.o conftest.s
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24762 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24763 if test $gcc_cv_as_avr_mlink_relax = yes; then
24765 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24771 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24772 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24775 gcc_cv_as_avr_mrmw
=no
24776 if test x
$gcc_cv_as != x
; then
24777 $as_echo '.text' > conftest.s
24778 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24780 (eval $ac_try) 2>&5
24782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24783 test $ac_status = 0; }; }
24785 gcc_cv_as_avr_mrmw
=yes
24787 echo "configure: failed program was" >&5
24790 rm -f conftest.o conftest.s
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24794 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24795 if test $gcc_cv_as_avr_mrmw = yes; then
24797 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24805 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24806 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24807 $as_echo_n "(cached) " >&6
24809 gcc_cv_as_cris_no_mul_bug
=no
24810 if test $in_tree_gas = yes; then
24811 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24812 then gcc_cv_as_cris_no_mul_bug
=yes
24814 elif test x
$gcc_cv_as != x
; then
24815 $as_echo '.text' > conftest.s
24816 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24818 (eval $ac_try) 2>&5
24820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24821 test $ac_status = 0; }; }
24823 gcc_cv_as_cris_no_mul_bug
=yes
24825 echo "configure: failed program was" >&5
24828 rm -f conftest.o conftest.s
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24832 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24833 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24835 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24843 $as_echo_n "checking assembler for .register... " >&6; }
24844 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24845 $as_echo_n "(cached) " >&6
24847 gcc_cv_as_sparc_register_op
=no
24848 if test x
$gcc_cv_as != x
; then
24849 $as_echo '.register %g2, #scratch' > conftest.s
24850 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24852 (eval $ac_try) 2>&5
24854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24855 test $ac_status = 0; }; }
24857 gcc_cv_as_sparc_register_op
=yes
24859 echo "configure: failed program was" >&5
24862 rm -f conftest.o conftest.s
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24866 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24867 if test $gcc_cv_as_sparc_register_op = yes; then
24869 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24875 $as_echo_n "checking assembler for -relax option... " >&6; }
24876 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24877 $as_echo_n "(cached) " >&6
24879 gcc_cv_as_sparc_relax
=no
24880 if test x
$gcc_cv_as != x
; then
24881 $as_echo '.text' > conftest.s
24882 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24884 (eval $ac_try) 2>&5
24886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24887 test $ac_status = 0; }; }
24889 gcc_cv_as_sparc_relax
=yes
24891 echo "configure: failed program was" >&5
24894 rm -f conftest.o conftest.s
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24898 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24899 if test $gcc_cv_as_sparc_relax = yes; then
24901 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24907 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24908 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24909 $as_echo_n "(cached) " >&6
24911 gcc_cv_as_sparc_gotdata_op
=no
24912 if test x
$gcc_cv_as != x
; then
24918 sethi %gdop_hix22(foo), %g1
24919 xor %g1, %gdop_lox10(foo), %g1
24920 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24923 (eval $ac_try) 2>&5
24925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24926 test $ac_status = 0; }; }
24928 if test x
$gcc_cv_ld != x \
24929 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24930 if test x
$gcc_cv_objdump != x
; then
24931 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24932 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24933 gcc_cv_as_sparc_gotdata_op
=no
24935 gcc_cv_as_sparc_gotdata_op
=yes
24941 echo "configure: failed program was" >&5
24944 rm -f conftest.o conftest.s
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24948 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24949 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24951 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24957 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24958 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24959 $as_echo_n "(cached) " >&6
24961 gcc_cv_as_sparc_ua_pcrel
=no
24962 if test x
$gcc_cv_as != x
; then
24969 .uaword %r_disp32(foo)' > conftest.s
24970 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24972 (eval $ac_try) 2>&5
24974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24975 test $ac_status = 0; }; }
24977 if test x
$gcc_cv_ld != x \
24978 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24979 gcc_cv_as_sparc_ua_pcrel
=yes
24983 echo "configure: failed program was" >&5
24986 rm -f conftest.o conftest.s
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24990 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24991 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24993 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24997 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24998 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24999 $as_echo_n "(cached) " >&6
25001 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25002 if test x
$gcc_cv_as != x
; then
25006 .uaword %r_disp32(foo)
25007 .byte 0x32, 0x33, 0x34
25011 .skip 4' > conftest.s
25012 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25014 (eval $ac_try) 2>&5
25016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25017 test $ac_status = 0; }; }
25019 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25020 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25021 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25022 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25023 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25024 |
grep 'DISP32' > /dev
/null
2>&1; then
25027 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25032 echo "configure: failed program was" >&5
25035 rm -f conftest.o conftest.s
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25039 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25040 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25042 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25048 # unaligned pcrel relocs
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25051 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25052 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25053 $as_echo_n "(cached) " >&6
25055 gcc_cv_as_sparc_offsetable_lo10
=no
25056 if test x
$gcc_cv_as != x
; then
25058 or %g1, %lo(ab) + 12, %g1
25059 or %g1, %lo(ab + 12), %g1' > conftest.s
25060 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25062 (eval $ac_try) 2>&5
25064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25065 test $ac_status = 0; }; }
25067 if test x
$gcc_cv_objdump != x \
25068 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25069 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25070 gcc_cv_as_sparc_offsetable_lo10
=yes
25073 echo "configure: failed program was" >&5
25076 rm -f conftest.o conftest.s
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25080 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25081 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25083 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25089 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25090 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25091 $as_echo_n "(cached) " >&6
25093 gcc_cv_as_sparc_fmaf
=no
25094 if test x
$gcc_cv_as != x
; then
25096 .register %g2, #scratch
25097 .register %g3, #scratch
25099 fmaddd %f0, %f2, %f4, %f6
25100 addxccc %g1, %g2, %g3
25101 fsrl32 %f2, %f4, %f8
25102 fnaddd %f10, %f12, %f14' > conftest.s
25103 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25105 (eval $ac_try) 2>&5
25107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25108 test $ac_status = 0; }; }
25110 gcc_cv_as_sparc_fmaf
=yes
25112 echo "configure: failed program was" >&5
25115 rm -f conftest.o conftest.s
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25119 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25120 if test $gcc_cv_as_sparc_fmaf = yes; then
25122 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25128 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25129 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25132 gcc_cv_as_sparc_sparc4
=no
25133 if test x
$gcc_cv_as != x
; then
25135 .register %g2, #scratch
25136 .register %g3, #scratch
25139 1: cwbneg %g2, %g3, 1f
25142 aes_kexpand0 %f4, %f6, %f8
25143 des_round %f38, %f40, %f42, %f44
25144 camellia_f %f54, %f56, %f58, %f60
25145 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25146 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25148 (eval $ac_try) 2>&5
25150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25151 test $ac_status = 0; }; }
25153 gcc_cv_as_sparc_sparc4
=yes
25155 echo "configure: failed program was" >&5
25158 rm -f conftest.o conftest.s
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25162 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25163 if test $gcc_cv_as_sparc_sparc4 = yes; then
25165 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25171 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25172 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25173 $as_echo_n "(cached) " >&6
25175 gcc_cv_as_sparc_sparc5
=no
25176 if test x
$gcc_cv_as != x
; then
25178 .register %g2, #scratch
25179 .register %g3, #scratch
25181 subxc %g1, %g2, %g3
25182 fpadd8 %f0, %f2, %f4' > conftest.s
25183 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25185 (eval $ac_try) 2>&5
25187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25188 test $ac_status = 0; }; }
25190 gcc_cv_as_sparc_sparc5
=yes
25192 echo "configure: failed program was" >&5
25195 rm -f conftest.o conftest.s
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25199 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25200 if test $gcc_cv_as_sparc_sparc5 = yes; then
25202 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25208 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25209 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25210 $as_echo_n "(cached) " >&6
25212 gcc_cv_as_sparc_leon
=no
25213 if test x
$gcc_cv_as != x
; then
25215 .register %g2, #scratch
25216 .register %g3, #scratch
25220 casa [%g2] 0xb, %g3, %g1' > conftest.s
25221 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25223 (eval $ac_try) 2>&5
25225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25226 test $ac_status = 0; }; }
25228 gcc_cv_as_sparc_leon
=yes
25230 echo "configure: failed program was" >&5
25233 rm -f conftest.o conftest.s
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25237 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25238 if test $gcc_cv_as_sparc_leon = yes; then
25240 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25246 i
[34567]86-*-* | x86_64-
*-*)
25249 # Full C++ conformance when using a shared libstdc++-v3 requires some
25250 # support from the Cygwin DLL, which in more recent versions exports
25251 # wrappers to aid in interposing and redirecting operators new, delete,
25252 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25253 # are configuring for a version of Cygwin that exports the wrappers.
25254 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25255 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25256 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25257 gcc_ac_cygwin_dll_wrappers
=yes
25259 gcc_ac_cygwin_dll_wrappers
=no
25263 # Can't check presence of libc functions during cross-compile, so
25264 # we just have to assume we're building for an up-to-date target.
25265 gcc_ac_cygwin_dll_wrappers
=yes
25268 cat >>confdefs.h
<<_ACEOF
25269 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25274 cygwin
* | pe | mingw32
*)
25275 # Recent binutils allows the three-operand form of ".comm" on PE. This
25276 # definition is used unconditionally to initialise the default state of
25277 # the target option variable that governs usage of the feature.
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25279 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25280 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25281 $as_echo_n "(cached) " >&6
25283 gcc_cv_as_comm_has_align
=no
25284 if test $in_tree_gas = yes; then
25285 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25286 then gcc_cv_as_comm_has_align
=yes
25288 elif test x
$gcc_cv_as != x
; then
25289 $as_echo '.comm foo,1,32' > conftest.s
25290 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25292 (eval $ac_try) 2>&5
25294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25295 test $ac_status = 0; }; }
25297 gcc_cv_as_comm_has_align
=yes
25299 echo "configure: failed program was" >&5
25302 rm -f conftest.o conftest.s
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25306 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25310 cat >>confdefs.h
<<_ACEOF
25311 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25314 # Used for DWARF 2 in PE
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25316 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25317 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25318 $as_echo_n "(cached) " >&6
25320 gcc_cv_as_ix86_pe_secrel32
=no
25321 if test $in_tree_gas = yes; then
25322 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25323 then gcc_cv_as_ix86_pe_secrel32
=yes
25325 elif test x
$gcc_cv_as != x
; then
25329 .secrel32 foo' > conftest.s
25330 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25332 (eval $ac_try) 2>&5
25334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25335 test $ac_status = 0; }; }
25337 if test x
$gcc_cv_ld != x \
25338 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25339 gcc_cv_as_ix86_pe_secrel32
=yes
25343 echo "configure: failed program was" >&5
25346 rm -f conftest.o conftest.s
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25350 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25351 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25353 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25357 # Test if the assembler supports the extended form of the .section
25358 # directive that specifies section alignment. LTO support uses this,
25359 # but normally only after installation, so we warn but don't fail the
25360 # configure if LTO is enabled but the assembler does not support it.
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25362 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25363 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25364 $as_echo_n "(cached) " >&6
25366 gcc_cv_as_section_has_align
=no
25367 if test $in_tree_gas = yes; then
25368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25369 then gcc_cv_as_section_has_align
=yes
25371 elif test x
$gcc_cv_as != x
; then
25372 $as_echo '.section lto_test,"dr0"' > conftest.s
25373 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25375 (eval $ac_try) 2>&5
25377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25378 test $ac_status = 0; }; }
25380 gcc_cv_as_section_has_align
=yes
25382 echo "configure: failed program was" >&5
25385 rm -f conftest.o conftest.s
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25389 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25392 if test x
$gcc_cv_as_section_has_align != xyes
; then
25393 case ",$enable_languages," in
25395 { $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
25396 $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;}
25403 # Test if the assembler supports the section flag 'e' for specifying
25404 # an excluded section.
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25406 $as_echo_n "checking assembler for .section with e... " >&6; }
25407 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25408 $as_echo_n "(cached) " >&6
25410 gcc_cv_as_section_has_e
=no
25411 if test $in_tree_gas = yes; then
25412 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25413 then gcc_cv_as_section_has_e
=yes
25415 elif test x
$gcc_cv_as != x
; then
25416 $as_echo '.section foo1,"e"
25417 .byte 0,0,0,0' > conftest.s
25418 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25420 (eval $ac_try) 2>&5
25422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25423 test $ac_status = 0; }; }
25425 gcc_cv_as_section_has_e
=yes
25427 echo "configure: failed program was" >&5
25430 rm -f conftest.o conftest.s
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25434 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25438 cat >>confdefs.h
<<_ACEOF
25439 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25444 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25445 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25446 $as_echo_n "(cached) " >&6
25448 gcc_cv_as_ix86_filds
=no
25449 if test x
$gcc_cv_as != x
; then
25450 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25451 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25453 (eval $ac_try) 2>&5
25455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25456 test $ac_status = 0; }; }
25458 gcc_cv_as_ix86_filds
=yes
25460 echo "configure: failed program was" >&5
25463 rm -f conftest.o conftest.s
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25467 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25468 if test $gcc_cv_as_ix86_filds = yes; then
25470 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25476 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25477 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25478 $as_echo_n "(cached) " >&6
25480 gcc_cv_as_ix86_fildq
=no
25481 if test x
$gcc_cv_as != x
; then
25482 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25483 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25485 (eval $ac_try) 2>&5
25487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25488 test $ac_status = 0; }; }
25490 gcc_cv_as_ix86_fildq
=yes
25492 echo "configure: failed program was" >&5
25495 rm -f conftest.o conftest.s
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25499 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25500 if test $gcc_cv_as_ix86_fildq = yes; then
25502 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25508 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25509 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25510 $as_echo_n "(cached) " >&6
25512 gcc_cv_as_ix86_cmov_sun_syntax
=no
25513 if test x
$gcc_cv_as != x
; then
25514 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25515 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25517 (eval $ac_try) 2>&5
25519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25520 test $ac_status = 0; }; }
25522 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25524 echo "configure: failed program was" >&5
25527 rm -f conftest.o conftest.s
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25531 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25532 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25534 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25540 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25541 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25542 $as_echo_n "(cached) " >&6
25544 gcc_cv_as_ix86_ffreep
=no
25545 if test x
$gcc_cv_as != x
; then
25546 $as_echo 'ffreep %st(1)' > conftest.s
25547 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25549 (eval $ac_try) 2>&5
25551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25552 test $ac_status = 0; }; }
25554 gcc_cv_as_ix86_ffreep
=yes
25556 echo "configure: failed program was" >&5
25559 rm -f conftest.o conftest.s
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25563 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25564 if test $gcc_cv_as_ix86_ffreep = yes; then
25566 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25572 $as_echo_n "checking assembler for .quad directive... " >&6; }
25573 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25574 $as_echo_n "(cached) " >&6
25576 gcc_cv_as_ix86_quad
=no
25577 if test x
$gcc_cv_as != x
; then
25578 $as_echo '.quad 0' > conftest.s
25579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25581 (eval $ac_try) 2>&5
25583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25584 test $ac_status = 0; }; }
25586 gcc_cv_as_ix86_quad
=yes
25588 echo "configure: failed program was" >&5
25591 rm -f conftest.o conftest.s
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25595 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25596 if test $gcc_cv_as_ix86_quad = yes; then
25598 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25604 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25605 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25606 $as_echo_n "(cached) " >&6
25608 gcc_cv_as_ix86_sahf
=no
25609 if test x
$gcc_cv_as != x
; then
25612 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25614 (eval $ac_try) 2>&5
25616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25617 test $ac_status = 0; }; }
25619 gcc_cv_as_ix86_sahf
=yes
25621 echo "configure: failed program was" >&5
25624 rm -f conftest.o conftest.s
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25628 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25629 if test $gcc_cv_as_ix86_sahf = yes; then
25631 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25637 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25638 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25639 $as_echo_n "(cached) " >&6
25641 gcc_cv_as_ix86_interunit_movq
=no
25642 if test x
$gcc_cv_as != x
; then
25645 movq %rax, %xmm0' > conftest.s
25646 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25648 (eval $ac_try) 2>&5
25650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25651 test $ac_status = 0; }; }
25653 gcc_cv_as_ix86_interunit_movq
=yes
25655 echo "configure: failed program was" >&5
25658 rm -f conftest.o conftest.s
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25662 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25666 cat >>confdefs.h
<<_ACEOF
25667 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25672 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25673 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25674 $as_echo_n "(cached) " >&6
25676 gcc_cv_as_ix86_hle
=no
25677 if test x
$gcc_cv_as != x
; then
25678 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25679 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25681 (eval $ac_try) 2>&5
25683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25684 test $ac_status = 0; }; }
25686 gcc_cv_as_ix86_hle
=yes
25688 echo "configure: failed program was" >&5
25691 rm -f conftest.o conftest.s
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25695 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25696 if test $gcc_cv_as_ix86_hle = yes; then
25698 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25704 $as_echo_n "checking assembler for swap suffix... " >&6; }
25705 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25706 $as_echo_n "(cached) " >&6
25708 gcc_cv_as_ix86_swap
=no
25709 if test x
$gcc_cv_as != x
; then
25710 $as_echo 'movl.s %esp, %ebp' > conftest.s
25711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25713 (eval $ac_try) 2>&5
25715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25716 test $ac_status = 0; }; }
25718 gcc_cv_as_ix86_swap
=yes
25720 echo "configure: failed program was" >&5
25723 rm -f conftest.o conftest.s
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25727 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25728 if test $gcc_cv_as_ix86_swap = yes; then
25730 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25736 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25737 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25738 $as_echo_n "(cached) " >&6
25740 gcc_cv_as_ix86_diff_sect_delta
=no
25741 if test x
$gcc_cv_as != x
; then
25742 $as_echo '.section .rodata
25748 .L2: nop' > conftest.s
25749 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25751 (eval $ac_try) 2>&5
25753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25754 test $ac_status = 0; }; }
25756 gcc_cv_as_ix86_diff_sect_delta
=yes
25758 echo "configure: failed program was" >&5
25761 rm -f conftest.o conftest.s
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25765 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25766 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25768 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25774 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25775 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25776 $as_echo_n "(cached) " >&6
25778 gcc_cv_as_ix86_rep_lock_prefix
=no
25779 if test x
$gcc_cv_as != x
; then
25780 $as_echo 'rep movsl
25785 lock addl %edi, (%eax,%esi)
25786 lock orl $0, (%esp)' > conftest.s
25787 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25789 (eval $ac_try) 2>&5
25791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25792 test $ac_status = 0; }; }
25794 gcc_cv_as_ix86_rep_lock_prefix
=yes
25796 echo "configure: failed program was" >&5
25799 rm -f conftest.o conftest.s
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25803 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25804 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25806 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25812 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25813 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25814 $as_echo_n "(cached) " >&6
25816 gcc_cv_as_ix86_ud2
=no
25817 if test x
$gcc_cv_as != x
; then
25818 $as_echo 'ud2' > conftest.s
25819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25821 (eval $ac_try) 2>&5
25823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25824 test $ac_status = 0; }; }
25826 gcc_cv_as_ix86_ud2
=yes
25828 echo "configure: failed program was" >&5
25831 rm -f conftest.o conftest.s
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25835 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25836 if test $gcc_cv_as_ix86_ud2 = yes; then
25838 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25843 # Enforce 32-bit output with gas and gld.
25844 if test x
$gas = xyes
; then
25845 as_ix86_gas_32_opt
="--32"
25847 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25848 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25849 ld_ix86_gld_32_opt
="-melf_i386_sol2"
25851 ld_ix86_gld_32_opt
="-melf_i386"
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25856 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25857 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25858 $as_echo_n "(cached) " >&6
25860 gcc_cv_as_ix86_tlsgdplt
=no
25861 if test x
$gcc_cv_as != x
; then
25862 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25863 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25865 (eval $ac_try) 2>&5
25867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25868 test $ac_status = 0; }; }
25870 if test x
$gcc_cv_ld != x \
25871 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
25872 gcc_cv_as_ix86_tlsgdplt
=yes
25876 echo "configure: failed program was" >&5
25879 rm -f conftest.o conftest.s
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25883 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25884 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25886 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25892 .section .tdata,"aw'$tls_section_flag'",@progbits
25894 .section .text,"ax",@progbits
25895 call tls_ld@tlsldmplt'
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25898 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25899 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25900 $as_echo_n "(cached) " >&6
25902 gcc_cv_as_ix86_tlsldmplt
=no
25903 if test x
$gcc_cv_as != x
; then
25904 $as_echo "$conftest_s" > conftest.s
25905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25907 (eval $ac_try) 2>&5
25909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25910 test $ac_status = 0; }; }
25912 if test x
$gcc_cv_ld != x \
25913 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
25914 gcc_cv_as_ix86_tlsldmplt
=yes
25918 echo "configure: failed program was" >&5
25921 rm -f conftest.o conftest.s
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25925 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25929 cat >>confdefs.h
<<_ACEOF
25930 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25935 .section .text,"ax",@progbits
25937 .type _start, @function
25939 leal value@tlsldm(%ebx), %eax
25940 call ___tls_get_addr@plt
25942 .section .tdata,"aw'$tls_section_flag'",@progbits
25943 .type value, @object
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25946 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25947 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25948 $as_echo_n "(cached) " >&6
25950 gcc_cv_as_ix86_tlsldm
=no
25951 if test x
$gcc_cv_as != x
; then
25952 $as_echo "$conftest_s" > conftest.s
25953 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25955 (eval $ac_try) 2>&5
25957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25958 test $ac_status = 0; }; }
25960 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25961 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25962 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25963 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25964 gcc_cv_as_ix86_tlsldm
=yes
25969 echo "configure: failed program was" >&5
25972 rm -f conftest.o conftest.s
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25976 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25980 cat >>confdefs.h
<<_ACEOF
25981 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
25995 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
25996 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
25997 $as_echo_n "(cached) " >&6
25999 gcc_cv_as_ix86_got32x
=no
26000 if test x
$gcc_cv_as != x
; then
26001 $as_echo "$conftest_s" > conftest.s
26002 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26004 (eval $ac_try) 2>&5
26006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26007 test $ac_status = 0; }; }
26009 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26010 && test x
$gcc_cv_readelf != x \
26011 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26012 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26013 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26014 if $gcc_cv_objdump -dw conftest
2>&1 \
26015 |
grep 0xffffff > /dev
/null
2>&1; then
26016 gcc_cv_as_ix86_got32x
=no
26018 gcc_cv_as_ix86_got32x
=yes
26023 echo "configure: failed program was" >&5
26026 rm -f conftest.o conftest.s
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26030 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26034 cat >>confdefs.h
<<_ACEOF
26035 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26040 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26041 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26042 $as_echo_n "(cached) " >&6
26044 gcc_cv_as_ix86_gotoff_in_data
=no
26045 if test $in_tree_gas = yes; then
26046 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26047 then gcc_cv_as_ix86_gotoff_in_data
=yes
26049 elif test x
$gcc_cv_as != x
; then
26054 .long .L0@GOTOFF' > conftest.s
26055 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26057 (eval $ac_try) 2>&5
26059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26060 test $ac_status = 0; }; }
26062 gcc_cv_as_ix86_gotoff_in_data
=yes
26064 echo "configure: failed program was" >&5
26067 rm -f conftest.o conftest.s
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26071 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26075 cat >>confdefs.h
<<_ACEOF
26076 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26081 .section .text,"ax",@progbits
26083 .type _start, @function
26085 leal ld@tlsldm(%ecx), %eax
26086 call *___tls_get_addr@GOT(%ecx)
26087 leal gd@tlsgd(%ecx), %eax
26088 call *___tls_get_addr@GOT(%ecx)
26090 .section .tdata,"aw'$tls_section_flag'",@progbits
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26099 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26100 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26101 $as_echo_n "(cached) " >&6
26103 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26104 if test x
$gcc_cv_as != x
; then
26105 $as_echo "$conftest_s" > conftest.s
26106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26108 (eval $ac_try) 2>&5
26110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26111 test $ac_status = 0; }; }
26113 if test x
$gcc_cv_ld != x \
26114 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26115 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26119 echo "configure: failed program was" >&5
26122 rm -f conftest.o conftest.s
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26126 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26130 cat >>confdefs.h
<<_ACEOF
26131 #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`
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26138 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26139 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26140 $as_echo_n "(cached) " >&6
26142 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26143 if test $in_tree_gas = yes; then
26144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26145 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26147 elif test x
$gcc_cv_as != x
; then
26149 addl r15 = @ltoffx(x#), gp
26151 ld8.mov r16 = [r15], x#' > conftest.s
26152 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26154 (eval $ac_try) 2>&5
26156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26157 test $ac_status = 0; }; }
26159 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26161 echo "configure: failed program was" >&5
26164 rm -f conftest.o conftest.s
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26168 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26169 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26171 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26183 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26184 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26185 $as_echo_n "(cached) " >&6
26187 gcc_cv_as_machine_directive
=no
26188 if test x
$gcc_cv_as != x
; then
26189 $as_echo ' .machine ppc7400' > conftest.s
26190 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26192 (eval $ac_try) 2>&5
26194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26195 test $ac_status = 0; }; }
26197 gcc_cv_as_machine_directive
=yes
26199 echo "configure: failed program was" >&5
26202 rm -f conftest.o conftest.s
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26206 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26209 if test x
$gcc_cv_as_machine_directive != xyes
; then
26210 echo "*** This target requires an assembler supporting \".machine\"" >&2
26211 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26212 test x
$build = x
$target && exit 1
26218 *-*-aix*) conftest_s
=' .machine "pwr5"
26221 *-*-darwin*) conftest_s
=' .text
26223 *) conftest_s
=' .machine power4
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26229 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26230 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26231 $as_echo_n "(cached) " >&6
26233 gcc_cv_as_powerpc_mfcrf
=no
26234 if test $in_tree_gas = yes; then
26235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26236 then gcc_cv_as_powerpc_mfcrf
=yes
26238 elif test x
$gcc_cv_as != x
; then
26239 $as_echo "$conftest_s" > conftest.s
26240 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26242 (eval $ac_try) 2>&5
26244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26245 test $ac_status = 0; }; }
26247 gcc_cv_as_powerpc_mfcrf
=yes
26249 echo "configure: failed program was" >&5
26252 rm -f conftest.o conftest.s
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26256 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26257 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26259 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26265 *-*-aix*) conftest_s
=' .machine "pwr5"
26268 *) conftest_s
=' .machine power5
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26274 $as_echo_n "checking assembler for popcntb support... " >&6; }
26275 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26276 $as_echo_n "(cached) " >&6
26278 gcc_cv_as_powerpc_popcntb
=no
26279 if test $in_tree_gas = yes; then
26280 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26281 then gcc_cv_as_powerpc_popcntb
=yes
26283 elif test x
$gcc_cv_as != x
; then
26284 $as_echo "$conftest_s" > conftest.s
26285 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26287 (eval $ac_try) 2>&5
26289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26290 test $ac_status = 0; }; }
26292 gcc_cv_as_powerpc_popcntb
=yes
26294 echo "configure: failed program was" >&5
26297 rm -f conftest.o conftest.s
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26301 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26302 if test $gcc_cv_as_powerpc_popcntb = yes; then
26304 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26310 *-*-aix*) conftest_s
=' .machine "pwr5x"
26313 *) conftest_s
=' .machine power5
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26319 $as_echo_n "checking assembler for fp round support... " >&6; }
26320 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26321 $as_echo_n "(cached) " >&6
26323 gcc_cv_as_powerpc_fprnd
=no
26324 if test $in_tree_gas = yes; then
26325 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26326 then gcc_cv_as_powerpc_fprnd
=yes
26328 elif test x
$gcc_cv_as != x
; then
26329 $as_echo "$conftest_s" > conftest.s
26330 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26332 (eval $ac_try) 2>&5
26334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26335 test $ac_status = 0; }; }
26337 gcc_cv_as_powerpc_fprnd
=yes
26339 echo "configure: failed program was" >&5
26342 rm -f conftest.o conftest.s
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26346 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26347 if test $gcc_cv_as_powerpc_fprnd = yes; then
26349 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26355 *-*-aix*) conftest_s
=' .machine "pwr6"
26358 *) conftest_s
=' .machine power6
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26364 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26365 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26366 $as_echo_n "(cached) " >&6
26368 gcc_cv_as_powerpc_mfpgpr
=no
26369 if test $in_tree_gas = yes; then
26370 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26371 then gcc_cv_as_powerpc_mfpgpr
=yes
26373 elif test x
$gcc_cv_as != x
; then
26374 $as_echo "$conftest_s" > conftest.s
26375 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26377 (eval $ac_try) 2>&5
26379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26380 test $ac_status = 0; }; }
26382 gcc_cv_as_powerpc_mfpgpr
=yes
26384 echo "configure: failed program was" >&5
26387 rm -f conftest.o conftest.s
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26391 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26392 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26394 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26400 *-*-aix*) conftest_s
=' .csect .text[PR]
26402 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26406 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26407 *) conftest_s
=' .text
26409 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26413 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26414 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26415 $as_echo_n "(cached) " >&6
26417 gcc_cv_as_powerpc_rel16
=no
26418 if test $in_tree_gas = yes; then
26419 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26420 then gcc_cv_as_powerpc_rel16
=yes
26422 elif test x
$gcc_cv_as != x
; then
26423 $as_echo "$conftest_s" > conftest.s
26424 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26426 (eval $ac_try) 2>&5
26428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26429 test $ac_status = 0; }; }
26431 gcc_cv_as_powerpc_rel16
=yes
26433 echo "configure: failed program was" >&5
26436 rm -f conftest.o conftest.s
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26440 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26441 if test $gcc_cv_as_powerpc_rel16 = yes; then
26443 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26449 *-*-aix*) conftest_s
=' .machine "pwr6"
26452 *) conftest_s
=' .machine power6
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26458 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26459 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26460 $as_echo_n "(cached) " >&6
26462 gcc_cv_as_powerpc_cmpb
=no
26463 if test $in_tree_gas = yes; then
26464 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26465 then gcc_cv_as_powerpc_cmpb
=yes
26467 elif test x
$gcc_cv_as != x
; then
26468 $as_echo "$conftest_s" > conftest.s
26469 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26471 (eval $ac_try) 2>&5
26473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26474 test $ac_status = 0; }; }
26476 gcc_cv_as_powerpc_cmpb
=yes
26478 echo "configure: failed program was" >&5
26481 rm -f conftest.o conftest.s
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26485 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26486 if test $gcc_cv_as_powerpc_cmpb = yes; then
26488 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26494 *-*-aix*) conftest_s
=' .machine "pwr6"
26497 *) conftest_s
=' .machine power6
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26503 $as_echo_n "checking assembler for decimal float support... " >&6; }
26504 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26505 $as_echo_n "(cached) " >&6
26507 gcc_cv_as_powerpc_dfp
=no
26508 if test $in_tree_gas = yes; then
26509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26510 then gcc_cv_as_powerpc_dfp
=yes
26512 elif test x
$gcc_cv_as != x
; then
26513 $as_echo "$conftest_s" > conftest.s
26514 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26516 (eval $ac_try) 2>&5
26518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26519 test $ac_status = 0; }; }
26521 gcc_cv_as_powerpc_dfp
=yes
26523 echo "configure: failed program was" >&5
26526 rm -f conftest.o conftest.s
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26530 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26531 if test $gcc_cv_as_powerpc_dfp = yes; then
26533 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26539 *-*-aix*) conftest_s
=' .machine "pwr7"
26542 *) conftest_s
=' .machine power7
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26548 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26549 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26550 $as_echo_n "(cached) " >&6
26552 gcc_cv_as_powerpc_vsx
=no
26553 if test $in_tree_gas = yes; then
26554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26555 then gcc_cv_as_powerpc_vsx
=yes
26557 elif test x
$gcc_cv_as != x
; then
26558 $as_echo "$conftest_s" > conftest.s
26559 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26561 (eval $ac_try) 2>&5
26563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26564 test $ac_status = 0; }; }
26566 gcc_cv_as_powerpc_vsx
=yes
26568 echo "configure: failed program was" >&5
26571 rm -f conftest.o conftest.s
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26575 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26576 if test $gcc_cv_as_powerpc_vsx = yes; then
26578 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26584 *-*-aix*) conftest_s
=' .machine "pwr7"
26587 *) conftest_s
=' .machine power7
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26593 $as_echo_n "checking assembler for popcntd support... " >&6; }
26594 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26595 $as_echo_n "(cached) " >&6
26597 gcc_cv_as_powerpc_popcntd
=no
26598 if test $in_tree_gas = yes; then
26599 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26600 then gcc_cv_as_powerpc_popcntd
=yes
26602 elif test x
$gcc_cv_as != x
; then
26603 $as_echo "$conftest_s" > conftest.s
26604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26606 (eval $ac_try) 2>&5
26608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26609 test $ac_status = 0; }; }
26611 gcc_cv_as_powerpc_popcntd
=yes
26613 echo "configure: failed program was" >&5
26616 rm -f conftest.o conftest.s
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26620 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26621 if test $gcc_cv_as_powerpc_popcntd = yes; then
26623 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26629 *-*-aix*) conftest_s
=' .machine "pwr8"
26630 .csect .text[PR]';;
26631 *) conftest_s
=' .machine power8
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26636 $as_echo_n "checking assembler for power8 support... " >&6; }
26637 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26638 $as_echo_n "(cached) " >&6
26640 gcc_cv_as_powerpc_power8
=no
26641 if test $in_tree_gas = yes; then
26642 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26643 then gcc_cv_as_powerpc_power8
=yes
26645 elif test x
$gcc_cv_as != x
; then
26646 $as_echo "$conftest_s" > conftest.s
26647 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26649 (eval $ac_try) 2>&5
26651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26652 test $ac_status = 0; }; }
26654 gcc_cv_as_powerpc_power8
=yes
26656 echo "configure: failed program was" >&5
26659 rm -f conftest.o conftest.s
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26663 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26664 if test $gcc_cv_as_powerpc_power8 = yes; then
26666 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26672 *-*-aix*) conftest_s
=' .machine "pwr9"
26673 .csect .text[PR]';;
26674 *) conftest_s
=' .machine power9
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26679 $as_echo_n "checking assembler for power9 support... " >&6; }
26680 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26681 $as_echo_n "(cached) " >&6
26683 gcc_cv_as_powerpc_power9
=no
26684 if test $in_tree_gas = yes; then
26685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26686 then gcc_cv_as_powerpc_power9
=yes
26688 elif test x
$gcc_cv_as != x
; then
26689 $as_echo "$conftest_s" > conftest.s
26690 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26692 (eval $ac_try) 2>&5
26694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26695 test $ac_status = 0; }; }
26697 gcc_cv_as_powerpc_power9
=yes
26699 echo "configure: failed program was" >&5
26702 rm -f conftest.o conftest.s
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26706 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26707 if test $gcc_cv_as_powerpc_power9 = yes; then
26709 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26715 *-*-aix*) conftest_s
=' .csect .text[PR]
26717 *) conftest_s
=' .text
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26722 $as_echo_n "checking assembler for lwsync support... " >&6; }
26723 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26724 $as_echo_n "(cached) " >&6
26726 gcc_cv_as_powerpc_lwsync
=no
26727 if test $in_tree_gas = yes; then
26728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26729 then gcc_cv_as_powerpc_lwsync
=yes
26731 elif test x
$gcc_cv_as != x
; then
26732 $as_echo "$conftest_s" > conftest.s
26733 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26735 (eval $ac_try) 2>&5
26737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26738 test $ac_status = 0; }; }
26740 gcc_cv_as_powerpc_lwsync
=yes
26742 echo "configure: failed program was" >&5
26745 rm -f conftest.o conftest.s
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26749 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26750 if test $gcc_cv_as_powerpc_lwsync = yes; then
26752 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26758 *-*-aix*) conftest_s
=' .machine "476"
26761 *) conftest_s
=' .machine "476"
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26767 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26768 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26769 $as_echo_n "(cached) " >&6
26771 gcc_cv_as_powerpc_dci
=no
26772 if test $in_tree_gas = yes; then
26773 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26774 then gcc_cv_as_powerpc_dci
=yes
26776 elif test x
$gcc_cv_as != x
; then
26777 $as_echo "$conftest_s" > conftest.s
26778 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26780 (eval $ac_try) 2>&5
26782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26783 test $ac_status = 0; }; }
26785 gcc_cv_as_powerpc_dci
=yes
26787 echo "configure: failed program was" >&5
26790 rm -f conftest.o conftest.s
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26794 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26795 if test $gcc_cv_as_powerpc_dci = yes; then
26797 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26803 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26804 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26805 $as_echo_n "(cached) " >&6
26807 gcc_cv_as_powerpc_gnu_attribute
=no
26808 if test $in_tree_gas = yes; then
26809 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26810 then gcc_cv_as_powerpc_gnu_attribute
=yes
26812 elif test x
$gcc_cv_as != x
; then
26813 $as_echo '.gnu_attribute 4,1' > conftest.s
26814 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26816 (eval $ac_try) 2>&5
26818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26819 test $ac_status = 0; }; }
26821 gcc_cv_as_powerpc_gnu_attribute
=yes
26823 echo "configure: failed program was" >&5
26826 rm -f conftest.o conftest.s
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26830 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26831 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26833 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26839 $as_echo_n "checking assembler for tls marker support... " >&6; }
26840 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26841 $as_echo_n "(cached) " >&6
26843 gcc_cv_as_powerpc_tls_markers
=no
26844 if test $in_tree_gas = yes; then
26845 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26846 then gcc_cv_as_powerpc_tls_markers
=yes
26848 elif test x
$gcc_cv_as != x
; then
26849 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26850 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26852 (eval $ac_try) 2>&5
26854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26855 test $ac_status = 0; }; }
26857 gcc_cv_as_powerpc_tls_markers
=yes
26859 echo "configure: failed program was" >&5
26862 rm -f conftest.o conftest.s
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26866 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26867 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26869 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26875 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26876 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26877 $as_echo_n "(cached) " >&6
26879 gcc_cv_as_powerpc_entry_markers
=no
26880 if test $in_tree_gas = yes; then
26881 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26882 then gcc_cv_as_powerpc_entry_markers
=yes
26884 elif test x
$gcc_cv_as != x
; then
26885 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26886 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26888 (eval $ac_try) 2>&5
26890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26891 test $ac_status = 0; }; }
26893 gcc_cv_as_powerpc_entry_markers
=yes
26895 echo "configure: failed program was" >&5
26898 rm -f conftest.o conftest.s
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26902 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26903 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26905 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26913 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26914 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26915 $as_echo_n "(cached) " >&6
26917 gcc_cv_as_aix_ref
=no
26918 if test $in_tree_gas = yes; then
26919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26920 then gcc_cv_as_aix_ref
=yes
26922 elif test x
$gcc_cv_as != x
; then
26923 $as_echo ' .csect stuff[rw]
26929 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26931 (eval $ac_try) 2>&5
26933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26934 test $ac_status = 0; }; }
26936 gcc_cv_as_aix_ref
=yes
26938 echo "configure: failed program was" >&5
26941 rm -f conftest.o conftest.s
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26945 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26946 if test $gcc_cv_as_aix_ref = yes; then
26948 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26954 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26955 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26956 $as_echo_n "(cached) " >&6
26958 gcc_cv_as_aix_dwloc
=no
26959 if test $in_tree_gas = yes; then
26960 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26961 then gcc_cv_as_aix_dwloc
=yes
26963 elif test x
$gcc_cv_as != x
; then
26964 $as_echo ' .dwsect 0xA0000
26968 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26970 (eval $ac_try) 2>&5
26972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26973 test $ac_status = 0; }; }
26975 gcc_cv_as_aix_dwloc
=yes
26977 echo "configure: failed program was" >&5
26980 rm -f conftest.o conftest.s
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26984 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26985 if test $gcc_cv_as_aix_dwloc = yes; then
26987 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26997 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26998 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26999 $as_echo_n "(cached) " >&6
27001 gcc_cv_as_mips_explicit_relocs
=no
27002 if test $in_tree_gas = yes; then
27003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27004 then gcc_cv_as_mips_explicit_relocs
=yes
27006 elif test x
$gcc_cv_as != x
; then
27007 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27008 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27010 (eval $ac_try) 2>&5
27012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27013 test $ac_status = 0; }; }
27015 gcc_cv_as_mips_explicit_relocs
=yes
27017 echo "configure: failed program was" >&5
27020 rm -f conftest.o conftest.s
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27024 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27025 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27026 if test x
$target_cpu_default = x
27027 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27028 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27034 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27035 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27036 $as_echo_n "(cached) " >&6
27038 gcc_cv_as_mips_no_shared
=no
27039 if test $in_tree_gas = yes; then
27040 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27041 then gcc_cv_as_mips_no_shared
=yes
27043 elif test x
$gcc_cv_as != x
; then
27044 $as_echo 'nop' > conftest.s
27045 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27047 (eval $ac_try) 2>&5
27049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27050 test $ac_status = 0; }; }
27052 gcc_cv_as_mips_no_shared
=yes
27054 echo "configure: failed program was" >&5
27057 rm -f conftest.o conftest.s
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27061 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27062 if test $gcc_cv_as_mips_no_shared = yes; then
27064 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27070 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27071 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27072 $as_echo_n "(cached) " >&6
27074 gcc_cv_as_mips_gnu_attribute
=no
27075 if test $in_tree_gas = yes; then
27076 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27077 then gcc_cv_as_mips_gnu_attribute
=yes
27079 elif test x
$gcc_cv_as != x
; then
27080 $as_echo '.gnu_attribute 4,1' > conftest.s
27081 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27083 (eval $ac_try) 2>&5
27085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27086 test $ac_status = 0; }; }
27088 gcc_cv_as_mips_gnu_attribute
=yes
27090 echo "configure: failed program was" >&5
27093 rm -f conftest.o conftest.s
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27097 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27098 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27100 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27106 $as_echo_n "checking assembler for .module support... " >&6; }
27107 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27108 $as_echo_n "(cached) " >&6
27110 gcc_cv_as_mips_dot_module
=no
27111 if test x
$gcc_cv_as != x
; then
27112 $as_echo '.module mips2
27113 .module fp=xx' > conftest.s
27114 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27116 (eval $ac_try) 2>&5
27118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27119 test $ac_status = 0; }; }
27121 gcc_cv_as_mips_dot_module
=yes
27123 echo "configure: failed program was" >&5
27126 rm -f conftest.o conftest.s
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27130 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27131 if test $gcc_cv_as_mips_dot_module = yes; then
27133 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27137 if test x
$gcc_cv_as_mips_dot_module = xno \
27138 && test x
$with_fp_32 != x
; then
27139 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27143 $as_echo_n "checking assembler for .micromips support... " >&6; }
27144 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27145 $as_echo_n "(cached) " >&6
27147 gcc_cv_as_micromips_support
=no
27148 if test x
$gcc_cv_as != x
; then
27149 $as_echo '.set micromips' > conftest.s
27150 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27152 (eval $ac_try) 2>&5
27154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27155 test $ac_status = 0; }; }
27157 gcc_cv_as_micromips_support
=yes
27159 echo "configure: failed program was" >&5
27162 rm -f conftest.o conftest.s
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27166 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27167 if test $gcc_cv_as_micromips_support = yes; then
27169 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27175 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27176 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27177 $as_echo_n "(cached) " >&6
27179 gcc_cv_as_mips_dtprelword
=no
27180 if test $in_tree_gas = yes; then
27181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27182 then gcc_cv_as_mips_dtprelword
=yes
27184 elif test x
$gcc_cv_as != x
; then
27185 $as_echo '.section .tdata,"awT",@progbits
27189 .dtprelword x+0x8000' > conftest.s
27190 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27192 (eval $ac_try) 2>&5
27194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27195 test $ac_status = 0; }; }
27197 gcc_cv_as_mips_dtprelword
=yes
27199 echo "configure: failed program was" >&5
27202 rm -f conftest.o conftest.s
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27206 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27207 if test $gcc_cv_as_mips_dtprelword = yes; then
27209 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27215 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27216 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27217 $as_echo_n "(cached) " >&6
27219 gcc_cv_as_mips_dspr1_mult
=no
27220 if test x
$gcc_cv_as != x
; then
27221 $as_echo ' .set mips32r2
27229 multu $ac3,$4,$5' > conftest.s
27230 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27232 (eval $ac_try) 2>&5
27234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27235 test $ac_status = 0; }; }
27237 gcc_cv_as_mips_dspr1_mult
=yes
27239 echo "configure: failed program was" >&5
27242 rm -f conftest.o conftest.s
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27246 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27247 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27249 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27255 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27256 gcc_cv_as_ld_jalr_reloc
=no
27257 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27258 if test $in_tree_ld = yes ; then
27259 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 \
27260 && test $in_tree_ld_is_elf = yes; then
27261 gcc_cv_as_ld_jalr_reloc
=yes
27263 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27264 echo ' .ent x' > conftest.s
27265 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27266 echo ' lw $25,%call16(y)($28)' >> conftest.s
27267 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27268 echo '1: jalr $25' >> conftest.s
27269 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27270 echo '1: jalr $25' >> conftest.s
27271 echo ' .end x' >> conftest.s
27272 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27273 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27274 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27275 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27276 gcc_cv_as_ld_jalr_reloc
=yes
27282 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27283 if test x
$target_cpu_default = x
; then
27284 target_cpu_default
=MASK_RELAX_PIC_CALLS
27286 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27290 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27293 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27294 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27295 $as_echo_n "(cached) " >&6
27297 gcc_cv_ld_mips_personality_relaxation
=no
27298 if test $in_tree_ld = yes ; then
27299 if test "$gcc_cv_gld_major_version" -eq 2 \
27300 -a "$gcc_cv_gld_minor_version" -ge 21 \
27301 -o "$gcc_cv_gld_major_version" -gt 2; then
27302 gcc_cv_ld_mips_personality_relaxation
=yes
27304 elif test x
$gcc_cv_as != x \
27305 -a x
$gcc_cv_ld != x \
27306 -a x
$gcc_cv_readelf != x
; then
27307 cat > conftest.s
<<EOF
27309 .cfi_personality 0x80,indirect_ptr
27316 .section .data,"aw",@progbits
27320 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27321 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27322 if $gcc_cv_readelf -d conftest
2>&1 \
27323 |
grep TEXTREL
> /dev
/null
2>&1; then
27325 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27326 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27329 gcc_cv_ld_mips_personality_relaxation
=yes
27333 rm -f conftest.s conftest.o conftest
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27336 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27337 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27339 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27344 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27345 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27346 $as_echo_n "(cached) " >&6
27348 gcc_cv_as_mips_nan
=no
27349 if test x
$gcc_cv_as != x
; then
27350 $as_echo '' > conftest.s
27351 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27353 (eval $ac_try) 2>&5
27355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27356 test $ac_status = 0; }; }
27358 gcc_cv_as_mips_nan
=yes
27360 echo "configure: failed program was" >&5
27363 rm -f conftest.o conftest.s
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27367 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27368 if test $gcc_cv_as_mips_nan = yes; then
27370 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27374 if test x
$gcc_cv_as_mips_nan = xno \
27375 && test x
$with_nan != x
; then
27376 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27381 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27382 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27383 $as_echo_n "(cached) " >&6
27385 gcc_cv_as_s390_gnu_attribute
=no
27386 if test $in_tree_gas = yes; then
27387 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27388 then gcc_cv_as_s390_gnu_attribute
=yes
27390 elif test x
$gcc_cv_as != x
; then
27391 $as_echo '.gnu_attribute 8,1' > conftest.s
27392 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27394 (eval $ac_try) 2>&5
27396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27397 test $ac_status = 0; }; }
27399 gcc_cv_as_s390_gnu_attribute
=yes
27401 echo "configure: failed program was" >&5
27404 rm -f conftest.o conftest.s
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27408 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27409 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27411 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27416 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27417 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27418 $as_echo_n "(cached) " >&6
27420 gcc_cv_as_s390_machine_machinemode
=no
27421 if test $in_tree_gas = yes; then
27422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27423 then gcc_cv_as_s390_machine_machinemode
=yes
27425 elif test x
$gcc_cv_as != x
; then
27426 $as_echo ' .machinemode push
27429 .machine pop' > conftest.s
27430 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27432 (eval $ac_try) 2>&5
27434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27435 test $ac_status = 0; }; }
27437 gcc_cv_as_s390_machine_machinemode
=yes
27439 echo "configure: failed program was" >&5
27442 rm -f conftest.o conftest.s
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27446 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27447 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27449 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27454 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27455 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27456 $as_echo_n "(cached) " >&6
27458 gcc_cv_as_s390_architecture_modifiers
=no
27459 if test $in_tree_gas = yes; then
27460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27461 then gcc_cv_as_s390_architecture_modifiers
=yes
27463 elif test x
$gcc_cv_as != x
; then
27464 $as_echo ' .machine z13+vx ' > conftest.s
27465 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27467 (eval $ac_try) 2>&5
27469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27470 test $ac_status = 0; }; }
27472 gcc_cv_as_s390_architecture_modifiers
=yes
27474 echo "configure: failed program was" >&5
27477 rm -f conftest.o conftest.s
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27481 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27482 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27484 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27491 # Mips and HP-UX need the GNU assembler.
27492 # Linux on IA64 might be able to use the Intel assembler.
27495 mips
*-*-* |
*-*-hpux* )
27496 if test x
$gas_flag = xyes \
27497 ||
test x
"$host" != x
"$build" \
27498 ||
test ! -x "$gcc_cv_as" \
27499 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27502 echo "*** This configuration requires the GNU assembler" >&2
27508 # ??? Not all targets support dwarf2 debug_line, even within a version
27509 # of gas. Moreover, we need to emit a valid instruction to trigger any
27510 # info to the output file. So, as supported targets are added to gas 2.11,
27511 # add some instruction here to (also) show we expect this might work.
27512 # ??? Once 2.11 is released, probably need to add first known working
27513 # version to the per-target configury.
27514 case "$cpu_type" in
27515 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27516 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27517 | visium | xstormy16 | xtensa
)
27527 if test x
"$insn" != x
; then
27529 .file 1 \"conftest.s\"
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27533 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27534 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27535 $as_echo_n "(cached) " >&6
27537 gcc_cv_as_dwarf2_debug_line
=no
27538 if test $in_tree_gas = yes; then
27539 if test $in_tree_gas_is_elf = yes \
27540 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27541 then gcc_cv_as_dwarf2_debug_line
=yes
27543 elif test x
$gcc_cv_as != x
; then
27544 $as_echo "$conftest_s" > conftest.s
27545 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27547 (eval $ac_try) 2>&5
27549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27550 test $ac_status = 0; }; }
27552 if test x
$gcc_cv_objdump != x \
27553 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27554 |
grep debug_line
> /dev
/null
2>&1; then
27555 gcc_cv_as_dwarf2_debug_line
=yes
27558 echo "configure: failed program was" >&5
27561 rm -f conftest.o conftest.s
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27565 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27569 # The .debug_line file table must be in the exact order that
27570 # we specified the files, since these indices are also used
27571 # by DW_AT_decl_file. Approximate this test by testing if
27572 # the assembler bitches if the same index is assigned twice.
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27574 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27575 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27576 $as_echo_n "(cached) " >&6
27578 gcc_cv_as_dwarf2_file_buggy
=no
27579 if test x
$gcc_cv_as != x
; then
27580 $as_echo ' .file 1 "foo.s"
27581 .file 1 "bar.s"' > conftest.s
27582 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27584 (eval $ac_try) 2>&5
27586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27587 test $ac_status = 0; }; }
27589 gcc_cv_as_dwarf2_file_buggy
=yes
27591 echo "configure: failed program was" >&5
27594 rm -f conftest.o conftest.s
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27598 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27602 if test $gcc_cv_as_dwarf2_debug_line = yes \
27603 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27605 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27610 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27611 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27612 $as_echo_n "(cached) " >&6
27614 gcc_cv_as_gdwarf2_flag
=no
27615 if test $in_tree_gas = yes; then
27616 if test $in_tree_gas_is_elf = yes \
27617 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27618 then gcc_cv_as_gdwarf2_flag
=yes
27620 elif test x
$gcc_cv_as != x
; then
27621 $as_echo "$insn" > conftest.s
27622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27624 (eval $ac_try) 2>&5
27626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27627 test $ac_status = 0; }; }
27629 gcc_cv_as_gdwarf2_flag
=yes
27631 echo "configure: failed program was" >&5
27634 rm -f conftest.o conftest.s
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27638 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27639 if test $gcc_cv_as_gdwarf2_flag = yes; then
27641 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27647 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27648 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27649 $as_echo_n "(cached) " >&6
27651 gcc_cv_as_gstabs_flag
=no
27652 if test $in_tree_gas = yes; then
27653 if test $in_tree_gas_is_elf = yes \
27654 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27655 then gcc_cv_as_gstabs_flag
=yes
27657 elif test x
$gcc_cv_as != x
; then
27658 $as_echo "$insn" > conftest.s
27659 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27661 (eval $ac_try) 2>&5
27663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27664 test $ac_status = 0; }; }
27666 gcc_cv_as_gstabs_flag
=yes
27668 echo "configure: failed program was" >&5
27671 rm -f conftest.o conftest.s
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27675 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27676 if test $gcc_cv_as_gstabs_flag = yes; then
27678 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27684 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27685 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27686 $as_echo_n "(cached) " >&6
27688 gcc_cv_as_debug_prefix_map_flag
=no
27689 if test $in_tree_gas = yes; then
27690 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27691 then gcc_cv_as_debug_prefix_map_flag
=yes
27693 elif test x
$gcc_cv_as != x
; then
27694 $as_echo "$insn" > conftest.s
27695 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27697 (eval $ac_try) 2>&5
27699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27700 test $ac_status = 0; }; }
27702 gcc_cv_as_debug_prefix_map_flag
=yes
27704 echo "configure: failed program was" >&5
27707 rm -f conftest.o conftest.s
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27711 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27712 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27714 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27721 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27722 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27723 $as_echo_n "(cached) " >&6
27725 gcc_cv_as_compress_debug
=no
27726 if test x
$gcc_cv_as != x
; then
27727 $as_echo '' > conftest.s
27728 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27730 (eval $ac_try) 2>&5
27732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27733 test $ac_status = 0; }; }
27735 # gas compiled without zlib cannot compress debug sections and warns
27736 # about it, but still exits successfully. So check for this, too.
27737 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27739 gcc_cv_as_compress_debug
=0
27740 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27741 # defaulting to the ELF gABI format.
27742 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
27744 gcc_cv_as_compress_debug
=2
27745 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27746 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27747 # Before binutils 2.26, gas only supported --compress-debug-options and
27748 # emitted the traditional GNU format.
27749 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27751 gcc_cv_as_compress_debug
=1
27752 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27753 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27755 gcc_cv_as_compress_debug
=0
27758 echo "configure: failed program was" >&5
27761 rm -f conftest.o conftest.s
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27765 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27769 cat >>confdefs.h
<<_ACEOF
27770 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27774 cat >>confdefs.h
<<_ACEOF
27775 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27779 cat >>confdefs.h
<<_ACEOF
27780 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27785 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27786 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27787 $as_echo_n "(cached) " >&6
27789 gcc_cv_as_lcomm_with_alignment
=no
27790 if test x
$gcc_cv_as != x
; then
27791 $as_echo '.lcomm bar,4,16' > conftest.s
27792 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27794 (eval $ac_try) 2>&5
27796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27797 test $ac_status = 0; }; }
27799 gcc_cv_as_lcomm_with_alignment
=yes
27801 echo "configure: failed program was" >&5
27804 rm -f conftest.o conftest.s
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27808 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27809 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27811 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27816 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27817 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27818 && test "$prefix" != "NONE"; then
27820 cat >>confdefs.h
<<_ACEOF
27821 #define PREFIX_INCLUDE_DIR "$prefix/include"
27826 # Determine the version of glibc, if any, used on the target.
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27828 $as_echo_n "checking for target glibc version... " >&6; }
27830 # Check whether --with-glibc-version was given.
27831 if test "${with_glibc_version+set}" = set; then :
27832 withval
=$with_glibc_version;
27833 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27834 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27835 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27837 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27841 glibc_version_major
=0
27842 glibc_version_minor
=0
27843 if test -f $target_header_dir/features.h \
27844 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27845 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27846 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27847 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27852 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27854 cat >>confdefs.h
<<_ACEOF
27855 #define TARGET_GLIBC_MAJOR $glibc_version_major
27859 cat >>confdefs.h
<<_ACEOF
27860 #define TARGET_GLIBC_MINOR $glibc_version_minor
27864 # Check whether --enable-gnu-unique-object was given.
27865 if test "${enable_gnu_unique_object+set}" = set; then :
27866 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27868 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27869 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27873 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27874 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27875 $as_echo_n "(cached) " >&6
27877 gcc_cv_as_gnu_unique_object
=no
27878 if test $in_tree_gas = yes; then
27879 if test $in_tree_gas_is_elf = yes \
27880 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27881 then gcc_cv_as_gnu_unique_object
=yes
27883 elif test x
$gcc_cv_as != x
; then
27884 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27885 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27887 (eval $ac_try) 2>&5
27889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27890 test $ac_status = 0; }; }
27892 gcc_cv_as_gnu_unique_object
=yes
27894 echo "configure: failed program was" >&5
27897 rm -f conftest.o conftest.s
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27901 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27902 if test $gcc_cv_as_gnu_unique_object = yes; then
27903 # We need to unquote above to to use the definition from config.gcc.
27904 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27906 if test $glibc_version_major -gt 2 \
27907 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27908 enable_gnu_unique_object
=yes
27915 if test x
$enable_gnu_unique_object = xyes
; then
27917 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27922 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27923 if test "${gcc_cv_as_line_zero+set}" = set; then :
27924 $as_echo_n "(cached) " >&6
27926 gcc_cv_as_line_zero
=no
27927 if test $in_tree_gas = yes; then
27928 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27929 then gcc_cv_as_line_zero
=yes
27931 elif test "x$gcc_cv_as" != x
; then
27932 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27933 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27935 (eval $ac_try) 2>&5
27937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27938 test $ac_status = 0; }; } &&
27939 test "x`cat conftest.out`" = x
27941 gcc_cv_as_line_zero
=yes
27943 echo "configure: failed program was" >&5
27945 echo "configure: error output was" >&5
27946 cat conftest.out
>&5
27948 rm -f conftest.o conftest.s conftest.out
27951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27952 $as_echo "$gcc_cv_as_line_zero" >&6; }
27953 if test "x$gcc_cv_as_line_zero" = xyes
; then
27955 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27960 $as_echo_n "checking support for thin archives... " >&6; }
27961 thin_archive_support
=no
27962 echo 'int main (void) { return 0; }' > conftest.c
27963 if ($AR --version |
sed 1q |
grep "GNU ar" \
27964 && $CC $CFLAGS -c conftest.c \
27965 && $AR rcT conftest.a conftest.o \
27966 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
27967 thin_archive_support
=yes
27969 rm -f conftest.c conftest.o conftest.a conftest
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27971 $as_echo "$thin_archive_support" >&6; }
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27975 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27976 gcc_cv_ld_eh_frame_hdr
=no
27977 if test $in_tree_ld = yes ; then
27978 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 \
27979 && test $in_tree_ld_is_elf = yes; then
27980 gcc_cv_ld_eh_frame_hdr
=yes
27982 elif test x
$gcc_cv_ld != x
; then
27983 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27984 # Check if linker supports --eh-frame-hdr option
27985 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
27986 gcc_cv_ld_eh_frame_hdr
=yes
27991 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27992 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27993 gcc_cv_ld_eh_frame_hdr
=yes
28000 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28002 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28006 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28009 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28010 gcc_cv_ld_eh_frame_ciev3
=no
28011 if test $in_tree_ld = yes ; then
28012 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 \
28013 && test $in_tree_ld_is_elf = yes; then
28014 gcc_cv_ld_eh_frame_ciev3
=yes
28016 elif test x
$gcc_cv_ld != x
; then
28017 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28018 gcc_cv_ld_eh_frame_ciev3
=yes
28019 if test 0"$ld_date" -lt 20040513; then
28020 if test -n "$ld_date"; then
28021 # If there was date string, but was earlier than 2004-05-13, fail
28022 gcc_cv_ld_eh_frame_ciev3
=no
28023 elif test "$ld_vers_major" -lt 2; then
28024 gcc_cv_ld_eh_frame_ciev3
=no
28025 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28026 gcc_cv_ld_eh_frame_ciev3
=no
28032 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28033 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28034 gcc_cv_ld_eh_frame_ciev3
=yes
28041 cat >>confdefs.h
<<_ACEOF
28042 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28046 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28049 $as_echo_n "checking linker position independent executable support... " >&6; }
28051 if test $in_tree_ld = yes ; then
28053 # Full PIE support on Solaris was only introduced in gld 2.26.
28054 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28055 *) gcc_gld_pie_min_version
=15 ;;
28057 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 \
28058 && test $in_tree_ld_is_elf = yes; then
28061 elif test x
$gcc_cv_ld != x
; then
28062 # Check if linker supports -pie option
28063 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
28067 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28068 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28075 *-*-solaris2.1
[1-9]*)
28076 # Solaris 11.x and Solaris 12 added PIE support.
28077 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28084 if test x
"$gcc_cv_ld_pie" = xyes
; then
28086 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28090 $as_echo "$gcc_cv_ld_pie" >&6; }
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28093 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28094 gcc_cv_ld_pie_copyreloc
=no
28095 if test $gcc_cv_ld_pie = yes ; then
28096 if test $in_tree_ld = yes ; then
28097 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
28098 gcc_cv_ld_pie_copyreloc
=yes
28100 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28101 # Check if linker supports -pie option with copy reloc
28103 i?
86-*-linux* | x86_64-
*-linux*)
28104 cat > conftest1.s
<<EOF
28107 .type a_glob, @object
28112 cat > conftest2.s
<<EOF
28115 .type main, @function
28117 movl %eax, a_glob(%rip)
28120 .section .data.rel,"aw",@progbits
28125 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28126 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28127 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28128 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28129 gcc_cv_ld_pie_copyreloc
=yes
28131 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28137 cat >>confdefs.h
<<_ACEOF
28138 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28142 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28145 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28146 gcc_cv_ld_eh_gc_sections
=no
28147 if test $in_tree_ld = yes ; then
28148 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 \
28149 && test $in_tree_ld_is_elf = yes; then
28150 gcc_cv_ld_eh_gc_sections
=yes
28152 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28153 cat > conftest.s
<<EOF
28156 .type _start, @function
28159 .size _start, .-_start
28160 .section .text.foo,"ax",@progbits
28161 .type foo, @function
28165 .section .gcc_except_table.foo,"a",@progbits
28168 .section .eh_frame,"a",@progbits
28171 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28172 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28173 |
grep "gc-sections option ignored" > /dev
/null
; then
28174 gcc_cv_ld_eh_gc_sections
=no
28175 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28176 |
grep gcc_except_table
> /dev
/null
; then
28177 gcc_cv_ld_eh_gc_sections
=yes
28178 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28179 if test x
$gcc_cv_as_comdat_group != xyes
; then
28180 gcc_cv_ld_eh_gc_sections
=no
28181 cat > conftest.s
<<EOF
28184 .type _start, @function
28187 .size _start, .-_start
28188 .section .gnu.linkonce.t.foo,"ax",@progbits
28189 .type foo, @function
28193 .section .gcc_except_table.foo,"a",@progbits
28196 .section .eh_frame,"a",@progbits
28199 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28200 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28201 |
grep "gc-sections option ignored" > /dev
/null
; then
28202 gcc_cv_ld_eh_gc_sections
=no
28203 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28204 |
grep gcc_except_table
> /dev
/null
; then
28205 gcc_cv_ld_eh_gc_sections
=yes
28211 rm -f conftest.s conftest.o conftest
28215 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28216 gcc_cv_ld_eh_gc_sections
=no
28219 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28221 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28225 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28228 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28229 gcc_cv_ld_eh_gc_sections_bug
=no
28230 if test $in_tree_ld = yes ; then
28231 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 \
28232 && test $in_tree_ld_is_elf = yes; then
28233 gcc_cv_ld_eh_gc_sections_bug
=yes
28235 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
28236 gcc_cv_ld_eh_gc_sections_bug
=yes
28237 cat > conftest.s
<<EOF
28240 .type _start, @function
28243 .size _start, .-_start
28244 .section .text.startup.foo,"ax",@progbits
28245 .type foo, @function
28249 .section .gcc_except_table.foo,"a",@progbits
28252 .section .eh_frame,"a",@progbits
28255 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28256 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28257 |
grep "gc-sections option ignored" > /dev
/null
; then
28259 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28260 |
grep gcc_except_table
> /dev
/null
; then
28261 gcc_cv_ld_eh_gc_sections_bug
=no
28264 rm -f conftest.s conftest.o conftest
28266 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28268 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28272 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28275 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28276 # gold/gld support compressed debug sections since binutils 2.19/2.21
28277 # In binutils 2.26, gld gained support for the ELF gABI format.
28278 if test $in_tree_ld = yes ; then
28279 gcc_cv_ld_compress_debug
=0
28280 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 \
28281 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28282 gcc_cv_ld_compress_debug
=2
28283 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28284 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 \
28285 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28286 gcc_cv_ld_compress_debug
=3
28287 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28288 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 \
28289 && test $in_tree_ld_is_elf = yes; then
28290 gcc_cv_ld_compress_debug
=1
28292 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28293 if test "$ld_vers_major" -lt 2 \
28294 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28295 gcc_cv_ld_compress_debug
=0
28296 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28297 gcc_cv_ld_compress_debug
=1
28299 gcc_cv_ld_compress_debug
=3
28300 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28302 if test $ld_is_gold = yes; then
28303 gcc_cv_ld_compress_debug
=2
28304 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28307 case "${target}" in
28309 # Introduced in Solaris 11.2.
28310 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28311 gcc_cv_ld_compress_debug
=3
28312 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28314 gcc_cv_ld_compress_debug
=0
28318 # Assume linkers other than GNU ld don't support compessed debug
28320 gcc_cv_ld_compress_debug
=0
28325 cat >>confdefs.h
<<_ACEOF
28326 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28330 cat >>confdefs.h
<<_ACEOF
28331 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28335 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28337 if test x
"$ld64_flag" = x
"yes"; then
28339 # Set defaults for possibly untestable items.
28340 gcc_cv_ld64_export_dynamic
=0
28342 if test "$build" = "$host"; then
28348 # On Darwin, because of FAT library support, it is often possible to execute
28349 # exes from compatible archs even when the host differs from the build system.
28350 case "$build","$host" in
28351 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28352 darwin_try_test
=1;;
28356 # If the configurer specified a minimum ld64 version to be supported, then use
28357 # that to determine feature support.
28358 if test x
"${gcc_cv_ld64_version}" != x
; then
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28360 $as_echo_n "checking ld64 specified version... " >&6; }
28361 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28363 $as_echo "$gcc_cv_ld64_major" >&6; }
28364 if test "$gcc_cv_ld64_major" -ge 236; then
28365 gcc_cv_ld64_export_dynamic
=1
28367 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28368 # If the version was not specified, try to find it.
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28370 $as_echo_n "checking linker version... " >&6; }
28371 if test x
"${gcc_cv_ld64_version}" = x
; then
28372 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28375 $as_echo "$gcc_cv_ld64_version" >&6; }
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28378 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28379 gcc_cv_ld64_export_dynamic
=1
28380 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28381 gcc_cv_ld64_export_dynamic
=0
28383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28384 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28387 if test x
"${gcc_cv_ld64_version}" != x
; then
28389 cat >>confdefs.h
<<_ACEOF
28390 #define LD64_VERSION "${gcc_cv_ld64_version}"
28396 cat >>confdefs.h
<<_ACEOF
28397 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28407 $as_echo_n "checking linker --as-needed support... " >&6; }
28408 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28409 $as_echo_n "(cached) " >&6
28411 gcc_cv_ld_as_needed
=no
28412 gcc_cv_ld_as_needed_option
='--as-needed'
28413 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28414 if test $in_tree_ld = yes ; then
28415 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 \
28416 && test $in_tree_ld_is_elf = yes; then
28417 gcc_cv_ld_as_needed
=yes
28419 elif test x
$gcc_cv_ld != x
; then
28420 # Check if linker supports --as-needed and --no-as-needed options
28421 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
28422 gcc_cv_ld_as_needed
=yes
28425 # Solaris 2 ld always supports -z ignore/-z record.
28427 gcc_cv_ld_as_needed
=yes
28428 gcc_cv_ld_as_needed_option
="-z ignore"
28429 gcc_cv_ld_no_as_needed_option
="-z record"
28434 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28435 # dl_iterate_phdr, i.e. since Solaris 11.
28437 *-*-solaris2.1
[1-9]*)
28439 i?
86-*-* | x86_64-
*-*)
28440 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28441 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28442 gcc_cv_ld_as_needed
=no
28448 gcc_cv_ld_as_needed
=no
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28454 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28455 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28457 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28460 cat >>confdefs.h
<<_ACEOF
28461 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28465 cat >>confdefs.h
<<_ACEOF
28466 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28472 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28473 saved_LDFLAGS
="$LDFLAGS"
28474 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28475 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28477 /* end confdefs.h. */
28478 int main(void) {return 0;}
28480 if ac_fn_cxx_try_link
"$LINENO"; then :
28481 gcc_cv_ld_clearcap
=yes; break
28483 gcc_cv_ld_clearcap
=no
28485 rm -f core conftest.err conftest.
$ac_objext \
28486 conftest
$ac_exeext conftest.
$ac_ext
28488 LDFLAGS
="$saved_LDFLAGS"
28489 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28491 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28493 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28497 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28503 emul_name
="-melf32lppc"
28506 emul_name
="-melf32ppc"
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28510 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28511 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28512 $as_echo_n "(cached) " >&6
28514 gcc_cv_ld_ppc_attr
=no
28515 if test x
"$ld_is_gold" = xyes
; then
28516 gcc_cv_ld_ppc_attr
=yes
28517 elif test $in_tree_ld = yes ; then
28518 if test "$gcc_cv_gld_major_version" -eq 2 \
28519 -a "$gcc_cv_gld_minor_version" -ge 28 \
28520 -o "$gcc_cv_gld_major_version" -gt 2; then
28521 gcc_cv_ld_ppc_attr
=yes
28523 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28524 # check that merging the long double .gnu_attribute doesn't warn
28525 cat > conftest1.s
<<EOF
28528 cat > conftest2.s
<<EOF
28531 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28532 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28533 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
28534 && test ! -s conftest.err
; then
28535 gcc_cv_ld_ppc_attr
=yes
28537 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28542 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28543 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
28545 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28551 case "$target:$tm_file" in
28552 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28555 emul_name
="-melf64lppc"
28558 emul_name
="-melf64ppc"
28561 emul_name
="-melf64ppc_fbsd"
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28565 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28566 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28567 $as_echo_n "(cached) " >&6
28569 gcc_cv_ld_no_dot_syms
=no
28570 if test x
"$ld_is_gold" = xyes
; then
28571 gcc_cv_ld_no_dot_syms
=yes
28572 elif test $in_tree_ld = yes ; then
28573 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
28574 gcc_cv_ld_no_dot_syms
=yes
28576 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28577 cat > conftest1.s
<<EOF
28581 cat > conftest2.s
<<EOF
28582 .section ".opd","aw"
28585 .type foo,@function
28587 .quad .LEfoo,.TOC.@tocbase,0
28593 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28594 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28595 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28596 gcc_cv_ld_no_dot_syms
=yes
28598 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28603 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28604 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28606 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28611 $as_echo_n "checking linker large toc support... " >&6; }
28612 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28613 $as_echo_n "(cached) " >&6
28615 gcc_cv_ld_large_toc
=no
28616 if test x
"$ld_is_gold" = xyes
; then
28617 gcc_cv_ld_large_toc
=yes
28618 elif test $in_tree_ld = yes ; then
28619 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
28620 gcc_cv_ld_large_toc
=yes
28622 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28623 cat > conftest.s
<<EOF
28624 .section ".tbss","awT",@nobits
28630 addis 9,13,ie0@got@tprel@ha
28631 ld 9,ie0@got@tprel@l(9)
28633 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28634 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28635 gcc_cv_ld_large_toc
=yes
28637 rm -f conftest conftest.o conftest.s
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28642 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28643 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28645 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28650 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28651 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28652 $as_echo_n "(cached) " >&6
28654 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28655 cat > conftest.s
<<EOF
28660 .section .data.rel.ro,"aw",@progbits
28665 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28666 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28667 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)) }'`
28669 rm -f conftest conftest.o conftest.s
28673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28674 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28675 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28677 cat >>confdefs.h
<<_ACEOF
28678 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28688 $as_echo_n "checking linker large toc support... " >&6; }
28689 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28690 $as_echo_n "(cached) " >&6
28692 gcc_cv_ld_large_toc
=no
28693 if test x
$gcc_cv_as != x
; then
28694 cat > conftest.s
<<EOF
28704 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28705 gcc_cv_ld_large_toc
=yes
28707 rm -f conftest conftest.o conftest.s
28711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28712 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28713 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28715 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28722 $as_echo_n "checking linker --build-id support... " >&6; }
28723 if test "${gcc_cv_ld_buildid+set}" = set; then :
28724 $as_echo_n "(cached) " >&6
28726 gcc_cv_ld_buildid
=no
28727 if test $in_tree_ld = yes ; then
28728 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28729 "$gcc_cv_gld_minor_version" -ge 18 -o \
28730 "$gcc_cv_gld_major_version" -gt 2 \
28731 && test $in_tree_ld_is_elf = yes; then
28732 gcc_cv_ld_buildid
=yes
28734 elif test x
$gcc_cv_ld != x
; then
28735 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
28736 gcc_cv_ld_buildid
=yes
28740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28741 $as_echo "$gcc_cv_ld_buildid" >&6; }
28742 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28744 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28748 # Check whether --enable-linker-build-id was given.
28749 if test "${enable_linker_build_id+set}" = set; then :
28750 enableval
=$enable_linker_build_id;
28752 enable_linker_build_id
=no
28756 if test x
"$enable_linker_build_id" = xyes
; then
28757 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28759 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28763 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28767 # In binutils 2.21, GNU ld gained support for new emulations fully
28768 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28770 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28771 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28772 $as_echo_n "(cached) " >&6
28774 gcc_cv_ld_sol2_emulation
=no
28775 if test $in_tree_ld = yes ; then
28776 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28777 "$gcc_cv_gld_minor_version" -ge 21 -o \
28778 "$gcc_cv_gld_major_version" -gt 2 \
28779 && test $in_tree_ld_is_elf = yes; then
28780 gcc_cv_ld_sol2_emulation
=yes
28782 elif test x
$gcc_cv_ld != x
; then
28783 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28784 grep _sol2
> /dev
/null
; then
28785 gcc_cv_ld_sol2_emulation
=yes
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28790 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28791 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28793 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28798 $as_echo_n "checking linker --sysroot support... " >&6; }
28799 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28800 $as_echo_n "(cached) " >&6
28802 gcc_cv_ld_sysroot
=no
28803 if test $in_tree_ld = yes ; then
28804 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
28805 gcc_cv_ld_sysroot
=yes
28807 elif test x
$gcc_cv_ld != x
; then
28808 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
28809 gcc_cv_ld_sysroot
=yes
28813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28814 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28815 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28817 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28823 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28825 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28826 if test "${gcc_cv_solaris_crts+set}" = set; then :
28827 $as_echo_n "(cached) " >&6
28829 gcc_cv_solaris_crts
=no
28830 if test x
$host != x
$target; then
28831 if test "x$with_sysroot" = xyes
; then
28832 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
28834 target_sysroot
="${with_sysroot}"
28837 target_libdir
="$target_sysroot/usr/lib"
28838 # At the time they were added, gcrt1.o became a symlink for backwards
28839 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28841 i?
86-*-solaris2* | x86_64-
*-solaris2*)
28842 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
28844 sparc
*-*-solaris2*)
28845 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
28849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28850 $as_echo "$gcc_cv_solaris_crts" >&6; }
28853 if test x
$gcc_cv_solaris_crts = xyes
; then
28855 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28859 # Test for stack protector support in target C library.
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28861 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28862 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28863 $as_echo_n "(cached) " >&6
28865 gcc_cv_libc_provides_ssp
=no
28868 # All versions of musl provide stack protector
28869 gcc_cv_libc_provides_ssp
=yes;;
28870 *-*-linux* |
*-*-kfreebsd*-gnu)
28871 # glibc 2.4 and later provides __stack_chk_fail and
28872 # either __stack_chk_guard, or TLS access to stack guard canary.
28874 if test $glibc_version_major -gt 2 \
28875 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28876 gcc_cv_libc_provides_ssp
=yes
28879 if test -f $target_header_dir/features.h \
28880 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28881 $target_header_dir/features.h
> /dev
/null
; then
28882 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28883 $target_header_dir/features.h
> /dev
/null
&& \
28884 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28885 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28886 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28887 gcc_cv_libc_provides_ssp
=yes
28889 # all versions of Bionic support stack protector
28890 elif test -f $target_header_dir/sys
/cdefs.h \
28891 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28892 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28893 gcc_cv_libc_provides_ssp
=yes
28898 # Avoid complicated tests (see
28899 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28900 # simply assert that glibc does provide this, which is true for all
28901 # realistically usable GNU/Hurd configurations.
28902 # All supported versions of musl provide it as well
28903 gcc_cv_libc_provides_ssp
=yes;;
28904 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
28905 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28906 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28907 gcc_cv_libc_provides_ssp
=yes
28909 echo "no __stack_chk_fail on this target"
28913 *) gcc_cv_libc_provides_ssp
=no
;;
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28917 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28919 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28921 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28925 # Check whether --enable-default-ssp was given.
28926 # Check whether --enable-default-ssp was given.
28927 if test "${enable_default_ssp+set}" = set; then :
28928 enableval
=$enable_default_ssp;
28929 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28931 ia64
*-*-*) enable_default_ssp
=no
;;
28932 *) enable_default_ssp
=$enableval ;;
28935 enable_default_ssp
=no
28938 enable_default_ssp
=no
28941 if test x
$enable_default_ssp = xyes
; then
28943 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28948 # Test for <sys/sdt.h> on the target.
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28951 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28953 if test -f $target_header_dir/sys
/sdt.h
; then
28956 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28960 $as_echo "$have_sys_sdt_h" >&6; }
28962 # Check if TFmode long double should be used by default or not.
28963 # Some glibc targets used DFmode long double, but with glibc 2.4
28964 # and later they can use TFmode.
28966 powerpc
*-*-linux* | \
28967 sparc
*-*-linux* | \
28971 # Check whether --with-long-double-128 was given.
28972 if test "${with_long_double_128+set}" = set; then :
28973 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
28976 if test $glibc_version_major -gt 2 \
28977 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28978 gcc_cv_target_ldbl128
=yes
28981 gcc_cv_target_ldbl128
=no
28982 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28983 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28984 && gcc_cv_target_ldbl128
=yes
28991 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28993 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28997 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28998 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28999 gcc_cv_libc_provides_hwcap_in_tcb
=no
29003 if test $glibc_version_major -gt 2 \
29004 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29005 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29009 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29011 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29016 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29017 gcc_cv_target_dl_iterate_phdr
=unknown
29019 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29020 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29021 # libdl there, both complicating its use and breaking compatibility
29022 # between Solaris 10 updates.
29023 *-*-solaris2.1
[1-9]*)
29024 # <link.h> needs both a dl_iterate_phdr declaration and support for
29025 # compilation with largefile support.
29026 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29027 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29028 gcc_cv_target_dl_iterate_phdr
=yes
29030 gcc_cv_target_dl_iterate_phdr
=no
29033 *-*-dragonfly* |
*-*-freebsd*)
29034 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29035 gcc_cv_target_dl_iterate_phdr
=yes
29037 gcc_cv_target_dl_iterate_phdr
=no
29041 gcc_cv_target_dl_iterate_phdr
=yes
29045 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29047 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29051 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29053 # We no longer support different GC mechanisms. Emit an error if
29054 # the user configures with --with-gc.
29056 # Check whether --with-gc was given.
29057 if test "${with_gc+set}" = set; then :
29058 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29062 # Libraries to use on the host. This will normally be set by the top
29063 # level Makefile. Here we simply capture the value for our Makefile.
29064 if test -z "${HOST_LIBS+set}"; then
29069 # Use the system's zlib library.
29071 # Use the system's zlib library.
29072 zlibdir
="-L\$(top_builddir)/../zlib"
29073 zlibinc
="-I\$(top_srcdir)/../zlib"
29075 # Check whether --with-system-zlib was given.
29076 if test "${with_system_zlib+set}" = set; then :
29077 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29090 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29091 # Check whether --enable-maintainer-mode was given.
29092 if test "${enable_maintainer_mode+set}" = set; then :
29093 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29100 $as_echo "$maintainer_mode" >&6; }
29102 if test "$maintainer_mode" = "yes"; then
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29110 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29111 # Check whether --enable-link-mutex was given.
29112 if test "${enable_link_mutex+set}" = set; then :
29113 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29119 $as_echo "$do_link_mutex" >&6; }
29121 if test "$do_link_mutex" = "yes"; then
29124 DO_LINK_MUTEX
=false
29132 # Make empty files to contain the specs and options for each language.
29133 # Then add #include lines to for a compiler that has specs and/or options.
29139 # These (without "all_") are set in each config-lang.in.
29140 # `language' must be a single word so is spelled singularly.
29143 all_outputs
='Makefile'
29144 # List of language makefile fragments.
29145 all_lang_makefrags
=
29146 # Additional files for gengtype
29147 all_gtfiles
="$target_gtfiles"
29149 # These are the languages that are set in --enable-languages,
29150 # and are available in the GCC tree.
29151 all_selected_languages
=
29153 # Add the language fragments.
29154 # Languages are added via two mechanisms. Some information must be
29155 # recorded in makefile variables, these are defined in config-lang.in.
29156 # We accumulate them and plug them into the main Makefile.
29157 # The other mechanism is a set of hooks for each of the main targets
29158 # like `clean', `install', etc.
29160 language_hooks
="Make-hooks"
29162 for lang
in ${srcdir}/*/config-lang.
in
29164 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29166 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29167 if test "x$lang_alias" = x
29169 echo "$lang doesn't set \$language." 1>&2
29172 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29173 subdirs
="$subdirs $subdir"
29175 # $gcc_subdir is where the gcc integration files are to be found
29176 # for a language, both for internal compiler purposes (compiler
29177 # sources implementing front-end to GCC tree converters), and for
29178 # build infrastructure purposes (Make-lang.in, etc.)
29180 # This will be <subdir> (relative to $srcdir) if a line like
29181 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29182 # is found in <langdir>/config-lang.in, and will remain <langdir>
29185 # Except for the language alias (fetched above), the regular
29186 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29187 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29188 # only this and the language alias.
29190 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29191 if [ "$gcc_subdir" = "" ]; then
29192 gcc_subdir
="$subdir"
29195 case ",$enable_languages," in
29197 all_selected_languages
="$all_selected_languages $lang_alias"
29198 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29199 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29210 .
${srcdir}/$gcc_subdir/config-lang.
in
29211 if test "x$language" = x
29213 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29218 case ",$enable_languages," in
29219 *,$lang_alias,*) ;;
29221 for i
in $subdir_requires; do
29222 test -f "${srcdir}/$i/config-lang.in" && continue
29230 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29231 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29232 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29233 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29235 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29236 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29238 all_languages
="$all_languages $language"
29239 all_compilers
="$all_compilers $compilers"
29240 all_outputs
="$all_outputs $outputs"
29241 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29242 case ",$enable_languages," in
29245 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29255 for language
in $all_selected_languages
29257 check_languages
="$check_languages check-$language"
29260 # We link each language in with a set of hooks, reached indirectly via
29261 # lang.${target}. Only do so for selected languages.
29265 target_list
="all.cross start.encap rest.encap tags \
29266 install-common install-man install-info install-pdf install-html dvi \
29267 pdf html uninstall info man srcextra srcman srcinfo \
29268 mostlyclean clean distclean maintainer-clean install-plugin"
29270 for t
in $target_list
29273 for lang
in $all_selected_languages
29277 echo "lang.$t: $x" >> Make-hooks
29281 # Option include files
29284 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29285 option_includes
="option-includes.mk"
29294 echo "dir ." > .gdbinit
29295 echo "dir ${srcdir}" >> .gdbinit
29296 if test x
$gdb_needs_out_file_path = xyes
29298 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29300 if test "x$subdirs" != x
; then
29303 echo "dir ${srcdir}/$s" >> .gdbinit
29306 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29307 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29309 # Put a breakpoint on __asan_report_error to help with debugging buffer
29312 *-fsanitize=address
*)
29313 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29317 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29321 # Find a directory in which to install a shared libgcc.
29323 # Check whether --enable-version-specific-runtime-libs was given.
29324 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29325 enableval
=$enable_version_specific_runtime_libs;
29329 # Substitute configuration variables
29393 if test x
${build} = x
${host} ; then
29394 if test x
${host} = x
${target} ; then
29395 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29397 echo "Links are now set up to build a cross-compiler" 1>&2
29398 echo " from ${host} to ${target}." 1>&2
29401 if test x
${host} = x
${target} ; then
29402 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29403 echo " for ${target}." 1>&2
29405 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29406 echo " from ${host} to ${target}." 1>&2
29415 if test "x${ISLLIBS}" != "x" ; then
29417 $as_echo "#define HAVE_isl 1" >>confdefs.h
29421 # Check whether isl_options_set_schedule_serialize_sccs is available;
29422 # it's new in isl 0.15.
29423 if test "x${ISLLIBS}" != "x" ; then
29424 saved_CXXFLAGS
="$CXXFLAGS"
29425 CXXFLAGS
="$CXXFLAGS $ISLINC $GMPINC"
29427 LIBS
="$LIBS $ISLLIBS $GMPLIBS"
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29430 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29432 /* end confdefs.h. */
29433 #include <isl/schedule.h>
29437 isl_options_set_schedule_serialize_sccs (NULL, 0);
29442 if ac_fn_cxx_try_link
"$LINENO"; then :
29443 ac_has_isl_options_set_schedule_serialize_sccs
=yes
29445 ac_has_isl_options_set_schedule_serialize_sccs
=no
29447 rm -f core conftest.err conftest.
$ac_objext \
29448 conftest
$ac_exeext conftest.
$ac_ext
29449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29450 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29453 CXXFLAGS
="$saved_CXXFLAGS"
29455 if test x
"$ac_has_isl_options_set_schedule_serialize_sccs" = x
"yes"; then
29457 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29462 # Check for plugin support
29463 # Check whether --enable-plugin was given.
29464 if test "${enable_plugin+set}" = set; then :
29465 enableval
=$enable_plugin; enable_plugin
=$enableval
29467 enable_plugin
=yes; default_plugin
=yes
29475 if test x
$build = x
$host; then
29476 export_sym_check
="nm${exeext} -g"
29477 elif test x
$host = x
$target; then
29478 export_sym_check
="$gcc_cv_nm -g"
29484 if test x
$build = x
$host; then
29485 export_sym_check
="objdump${exeext} -T"
29486 elif test x
$host = x
$target; then
29487 export_sym_check
="$gcc_cv_objdump -T"
29494 if test x
"$enable_plugin" = x
"yes"; then
29496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29497 $as_echo_n "checking for exported symbols... " >&6; }
29498 if test "x$export_sym_check" != x
; then
29499 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29500 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29501 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29502 : # No need to use a flag
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29504 $as_echo "yes" >&6; }
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29507 $as_echo "yes" >&6; }
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29509 $as_echo_n "checking for -rdynamic... " >&6; }
29510 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29511 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29512 plugin_rdynamic
=yes
29513 pluginlibs
="-rdynamic"
29518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29519 $as_echo "$plugin_rdynamic" >&6; }
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29523 $as_echo "unable to check" >&6; }
29528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29529 $as_echo_n "checking for library containing dlopen... " >&6; }
29530 if test "${ac_cv_search_dlopen+set}" = set; then :
29531 $as_echo_n "(cached) " >&6
29533 ac_func_search_save_LIBS
=$LIBS
29534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29535 /* end confdefs.h. */
29537 /* Override any GCC internal prototype to avoid an error.
29538 Use char because int might match the return type of a GCC
29539 builtin and then its argument prototype would still apply. */
29552 for ac_lib
in '' dl
; do
29553 if test -z "$ac_lib"; then
29554 ac_res
="none required"
29557 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29559 if ac_fn_cxx_try_link
"$LINENO"; then :
29560 ac_cv_search_dlopen
=$ac_res
29562 rm -f core conftest.err conftest.
$ac_objext \
29564 if test "${ac_cv_search_dlopen+set}" = set; then :
29568 if test "${ac_cv_search_dlopen+set}" = set; then :
29571 ac_cv_search_dlopen
=no
29573 rm conftest.
$ac_ext
29574 LIBS
=$ac_func_search_save_LIBS
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29577 $as_echo "$ac_cv_search_dlopen" >&6; }
29578 ac_res
=$ac_cv_search_dlopen
29579 if test "$ac_res" != no
; then :
29580 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29584 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29585 pluginlibs
="$pluginlibs -ldl"
29589 # Check that we can build shared objects with -fPIC -shared
29590 saved_LDFLAGS
="$LDFLAGS"
29591 saved_CFLAGS
="$CFLAGS"
29594 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29595 CFLAGS
="$CFLAGS -fPIC"
29596 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29599 CFLAGS
="$CFLAGS -fPIC"
29600 LDFLAGS
="$LDFLAGS -fPIC -shared"
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29604 $as_echo_n "checking for -fPIC -shared... " >&6; }
29605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29606 /* end confdefs.h. */
29616 if ac_fn_cxx_try_link
"$LINENO"; then :
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29618 $as_echo "yes" >&6; }; have_pic_shared
=yes
29620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29621 $as_echo "no" >&6; }; have_pic_shared
=no
29623 rm -f core conftest.err conftest.
$ac_objext \
29624 conftest
$ac_exeext conftest.
$ac_ext
29625 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29629 LDFLAGS
="$saved_LDFLAGS"
29630 CFLAGS
="$saved_CFLAGS"
29632 # If plugin support had been requested but not available, fail.
29633 if test x
"$enable_plugin" = x
"no" ; then
29634 if test x
"$default_plugin" != x
"yes"; then
29636 Building GCC with plugin support requires a host that supports
29637 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29644 if test x
"$enable_plugin" = x
"yes"; then
29646 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29651 # Enable --enable-host-shared
29652 # Check whether --enable-host-shared was given.
29653 if test "${enable_host_shared+set}" = set; then :
29654 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29663 # Check whether --enable-libquadmath-support was given.
29664 if test "${enable_libquadmath_support+set}" = set; then :
29665 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29667 ENABLE_LIBQUADMATH_SUPPORT
=yes
29670 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29672 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29677 # Specify what hash style to use by default.
29679 # Check whether --with-linker-hash-style was given.
29680 if test "${with_linker_hash_style+set}" = set; then :
29681 withval
=$with_linker_hash_style; case x
"$withval" in
29683 LINKER_HASH_STYLE
=sysv
29686 LINKER_HASH_STYLE
=gnu
29689 LINKER_HASH_STYLE
=both
29692 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29696 LINKER_HASH_STYLE
=''
29699 if test x
"${LINKER_HASH_STYLE}" != x
; then
29701 cat >>confdefs.h
<<_ACEOF
29702 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29707 # Specify what should be the default of -fdiagnostics-color option.
29709 # Check whether --with-diagnostics-color was given.
29710 if test "${with_diagnostics_color+set}" = set; then :
29711 withval
=$with_diagnostics_color; case x
"$withval" in
29713 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29716 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29719 DIAGNOSTICS_COLOR_DEFAULT
=-1
29722 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29725 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29729 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29733 cat >>confdefs.h
<<_ACEOF
29734 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29738 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29739 # of jit/jit-playback.c.
29740 cat > gcc-driver-name.h
<<EOF
29741 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29744 # Check whether --enable-default-pie was given.
29745 # Check whether --enable-default-pie was given.
29746 if test "${enable_default_pie+set}" = set; then :
29747 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29749 enable_default_pie
=no
29752 if test x
$enable_default_pie = xyes
; then
29754 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29759 # Check if -fno-PIE works.
29760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29761 $as_echo_n "checking for -fno-PIE option... " >&6; }
29762 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29763 $as_echo_n "(cached) " >&6
29765 saved_CXXFLAGS
="$CXXFLAGS"
29766 CXXFLAGS
="$CXXFLAGS -fno-PIE"
29767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29768 /* end confdefs.h. */
29769 int main(void) {return 0;}
29771 if ac_fn_cxx_try_compile
"$LINENO"; then :
29772 gcc_cv_c_no_fpie
=yes
29774 gcc_cv_c_no_fpie
=no
29776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29777 CXXFLAGS
="$saved_CXXFLAGS"
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29780 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29781 if test "$gcc_cv_c_no_fpie" = "yes"; then
29782 NO_PIE_CFLAGS
="-fno-PIE"
29786 # Check if -no-pie works.
29787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29788 $as_echo_n "checking for -no-pie option... " >&6; }
29789 if test "${gcc_cv_no_pie+set}" = set; then :
29790 $as_echo_n "(cached) " >&6
29792 saved_LDFLAGS
="$LDFLAGS"
29793 LDFLAGS
="$LDFLAGS -no-pie"
29794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29795 /* end confdefs.h. */
29796 int main(void) {return 0;}
29798 if ac_fn_cxx_try_link
"$LINENO"; then :
29803 rm -f core conftest.err conftest.
$ac_objext \
29804 conftest
$ac_exeext conftest.
$ac_ext
29805 LDFLAGS
="$saved_LDFLAGS"
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29808 $as_echo "$gcc_cv_no_pie" >&6; }
29809 if test "$gcc_cv_no_pie" = "yes"; then
29810 NO_PIE_FLAG
="-no-pie"
29814 # Check linker supports '-z bndplt'
29815 ld_bndplt_support
=no
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29817 $as_echo_n "checking linker -z bndplt option... " >&6; }
29818 if test x
"$ld_is_gold" = xno
; then
29819 if test $in_tree_ld = yes ; then
29820 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
29821 ld_bndplt_support
=yes
29823 elif test x
$gcc_cv_ld != x
; then
29824 # Check if linker supports -a bndplt option
29825 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '-z bndplt' > /dev
/null
; then
29826 ld_bndplt_support
=yes
29830 if test x
"$ld_bndplt_support" = xyes
; then
29832 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29836 $as_echo "$ld_bndplt_support" >&6; }
29838 # Check linker supports '--push-state'/'--pop-state'
29839 ld_pushpopstate_support
=no
29840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29841 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29842 if test x
"$ld_is_gold" = xno
; then
29843 if test $in_tree_ld = yes ; then
29844 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
29845 ld_pushpopstate_support
=yes
29847 elif test x
$gcc_cv_ld != x
; then
29848 # Check if linker supports --push-state/--pop-state options
29849 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '--push-state' > /dev
/null
; then
29850 ld_pushpopstate_support
=yes
29854 if test x
"$ld_pushpopstate_support" = xyes
; then
29856 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29860 $as_echo "$ld_pushpopstate_support" >&6; }
29862 # Configure the subdirectories
29863 # AC_CONFIG_SUBDIRS($subdirs)
29865 # Create the Makefile
29866 # and configure language subdirectories
29867 ac_config_files
="$ac_config_files $all_outputs"
29870 ac_config_commands
="$ac_config_commands default"
29872 cat >confcache
<<\_ACEOF
29873 # This file is a shell script that caches the results of configure
29874 # tests run on this system so they can be shared between configure
29875 # scripts and configure runs, see configure's option --config-cache.
29876 # It is not useful on other systems. If it contains results you don't
29877 # want to keep, you may remove or edit it.
29879 # config.status only pays attention to the cache file if you give it
29880 # the --recheck option to rerun configure.
29882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29884 # following values.
29888 # The following way of writing the cache mishandles newlines in values,
29889 # but we know of no workaround that is simple, portable, and efficient.
29890 # So, we kill variables containing newlines.
29891 # Ultrix sh set writes to stderr and can't be redirected directly,
29892 # and sets the high bit in the cache file unless we assign to the vars.
29894 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29895 eval ac_val
=\$
$ac_var
29899 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29900 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29903 _ | IFS | as_nl
) ;; #(
29904 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29905 *) { eval $ac_var=; unset $ac_var;} ;;
29911 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29912 *${as_nl}ac_space
=\
*)
29913 # `set' does not quote correctly, so add quotes: double-quote
29914 # substitution turns \\\\ into \\, and sed turns \\ into \.
29917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29920 # `set' quotes correctly as required by POSIX, so do not add quotes.
29921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29932 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29934 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29935 if test -w "$cache_file"; then
29936 test "x$cache_file" != "x/dev/null" &&
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29938 $as_echo "$as_me: updating cache $cache_file" >&6;}
29939 cat confcache
>$cache_file
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29942 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29947 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29948 # Let make expand exec_prefix.
29949 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29951 DEFS
=-DHAVE_CONFIG_H
29955 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29956 # 1. Remove the extension, and $U if already installed.
29957 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29958 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29959 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29960 # will be set to the directory where LIBOBJS objects are built.
29961 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29962 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29964 LIBOBJS
=$ac_libobjs
29966 LTLIBOBJS
=$ac_ltlibobjs
29971 : ${CONFIG_STATUS=./config.status}
29973 ac_clean_files_save
=$ac_clean_files
29974 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29976 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29978 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29980 # Generated by $as_me.
29981 # Run this file to recreate the current configuration.
29982 # Compiler output produced by configure, useful for debugging
29983 # configure, is in config.log if it exists.
29986 ac_cs_recheck=false
29989 SHELL=\${CONFIG_SHELL-$SHELL}
29992 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29993 ## -------------------- ##
29994 ## M4sh Initialization. ##
29995 ## -------------------- ##
29997 # Be more Bourne compatible
29998 DUALCASE
=1; export DUALCASE
# for MKS sh
29999 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30002 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30003 # is contrary to our usage. Disable this feature.
30004 alias -g '${1+"$@"}'='"$@"'
30005 setopt NO_GLOB_SUBST
30007 case `(set -o) 2>/dev/null` in #(
30019 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30020 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30023 # Prefer a ksh shell builtin over an external printf program on Solaris,
30024 # but without wasting forks for bash or zsh.
30025 if test -z "$BASH_VERSION$ZSH_VERSION" \
30026 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30027 as_echo='print
-r --'
30028 as_echo_n='print
-rn --'
30029 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30030 as_echo='printf %s
\n'
30031 as_echo_n='printf %s
'
30033 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30034 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30035 as_echo_n='/usr
/ucb
/echo -n'
30037 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30038 as_echo_n_body='eval
30042 expr "X$arg" : "X\\(.*\\)$as_nl";
30043 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30045 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30047 export as_echo_n_body
30048 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30050 export as_echo_body
30051 as_echo='sh
-c $as_echo_body as_echo
'
30054 # The user is always right.
30055 if test "${PATH_SEPARATOR+set}" != set; then
30057 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30058 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30065 # We need space, tab and new line, in precisely that order. Quoting is
30066 # there to prevent editors from complaining about space-tab.
30067 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30068 # splitting by setting IFS to empty value.)
30071 # Find who we are. Look in the path if we contain no directory separator.
30073 *[\\/]* ) as_myself=$0 ;;
30074 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30075 for as_dir in $PATH
30078 test -z "$as_dir" && as_dir=.
30079 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30085 # We did not find ourselves, most probably we were run as `sh COMMAND'
30086 # in which case we are not to be found in the path.
30087 if test "x$as_myself" = x
; then
30090 if test ! -f "$as_myself"; then
30091 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30095 # Unset variables that we do not need and which cause bugs (e.g. in
30096 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30097 # suppresses any "Segmentation fault" message there. '((' could
30098 # trigger a bug in pdksh 5.2.14.
30099 for as_var
in BASH_ENV ENV MAIL MAILPATH
30100 do eval test x\
${$as_var+set} = xset \
30101 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30114 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30117 # as_fn_error ERROR [LINENO LOG_FD]
30118 # ---------------------------------
30119 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30120 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30121 # script with status $?, using 1 if that was 0.
30124 as_status
=$?
; test $as_status -eq 0 && as_status
=1
30126 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30127 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30129 $as_echo "$as_me: error: $1" >&2
30130 as_fn_exit
$as_status
30134 # as_fn_set_status STATUS
30135 # -----------------------
30136 # Set $? to STATUS, without forking.
30137 as_fn_set_status
()
30140 } # as_fn_set_status
30142 # as_fn_exit STATUS
30143 # -----------------
30144 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30148 as_fn_set_status
$1
30154 # Portably unset VAR.
30157 { eval $1=; unset $1;}
30159 as_unset
=as_fn_unset
30160 # as_fn_append VAR VALUE
30161 # ----------------------
30162 # Append the text in VALUE to the end of the definition contained in VAR. Take
30163 # advantage of any shell optimizations that allow amortized linear growth over
30164 # repeated appends, instead of the typical quadratic growth present in naive
30166 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30167 eval 'as_fn_append ()
30178 # as_fn_arith ARG...
30179 # ------------------
30180 # Perform arithmetic evaluation on the ARGs, and store the result in the
30181 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30182 # must be portable across $(()) and expr.
30183 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30184 eval 'as_fn_arith ()
30191 as_val
=`expr "$@" || test $? -eq 1`
30196 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30197 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30203 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30204 as_basename
=basename
30209 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30215 as_me
=`$as_basename -- "$0" ||
30216 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30217 X"$0" : 'X\(//\)$' \| \
30218 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30220 sed '/^.*\/\([^/][^/]*\)\/*$/{
30234 # Avoid depending upon Character Ranges.
30235 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30236 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30237 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30238 as_cr_digits
='0123456789'
30239 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30241 ECHO_C
= ECHO_N
= ECHO_T
=
30242 case `echo -n x` in #(((((
30244 case `echo 'xy\c'` in
30245 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30247 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30254 rm -f conf$$ conf$$.exe conf$$.
file
30255 if test -d conf$$.dir
; then
30256 rm -f conf$$.dir
/conf$$.
file
30259 mkdir conf$$.dir
2>/dev
/null
30261 if (echo >conf$$.
file) 2>/dev
/null
; then
30262 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30264 # ... but there are two gotchas:
30265 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30266 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30267 # In both cases, we have to default to `cp -p'.
30268 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30270 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30278 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30279 rmdir conf$$.dir
2>/dev
/null
30284 # Create "$as_dir" as a directory, including parents if necessary.
30289 -*) as_dir
=.
/$as_dir;;
30291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30296 *) as_qdir
=$as_dir;;
30298 as_dirs
="'$as_qdir' $as_dirs"
30299 as_dir
=`$as_dirname -- "$as_dir" ||
30300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30301 X"$as_dir" : 'X\(//\)[^/]' \| \
30302 X"$as_dir" : 'X\(//\)$' \| \
30303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30304 $as_echo X"$as_dir" |
30305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30309 /^X\(\/\/\)[^/].*/{
30322 test -d "$as_dir" && break
30324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30329 if mkdir
-p .
2>/dev
/null
; then
30330 as_mkdir_p
='mkdir -p "$as_dir"'
30332 test -d .
/-p && rmdir .
/-p
30336 if test -x / >/dev
/null
2>&1; then
30337 as_test_x
='test -x'
30339 if ls -dL / >/dev
/null
2>&1; then
30346 if test -d "$1"; then
30352 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30353 ???[sx]*):;;*)false;;esac;fi
30357 as_executable_p
=$as_test_x
30359 # Sed expression to map a string onto a valid CPP name.
30360 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30362 # Sed expression to map a string onto a valid variable name.
30363 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30367 ## ----------------------------------- ##
30368 ## Main body of $CONFIG_STATUS script. ##
30369 ## ----------------------------------- ##
30371 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30374 # Save the log message, to keep $0 and so on meaningful, and to
30375 # report actual input values of CONFIG_FILES etc. instead of their
30376 # values after options handling.
30378 This file was extended by $as_me, which was
30379 generated by GNU Autoconf 2.64. Invocation command line was
30381 CONFIG_FILES = $CONFIG_FILES
30382 CONFIG_HEADERS = $CONFIG_HEADERS
30383 CONFIG_LINKS = $CONFIG_LINKS
30384 CONFIG_COMMANDS = $CONFIG_COMMANDS
30387 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30392 case $ac_config_files in *"
30393 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30396 case $ac_config_headers in *"
30397 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30402 # Files that config.status was made for.
30403 config_files="$ac_config_files"
30404 config_headers="$ac_config_headers"
30405 config_links="$ac_config_links"
30406 config_commands="$ac_config_commands"
30410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30412 \`$as_me' instantiates files and other configuration actions
30413 from templates according to the current configuration. Unless the files
30414 and actions are specified as TAGs, all are instantiated by default.
30416 Usage: $0 [OPTION]... [TAG]...
30418 -h, --help print this help, then exit
30419 -V, --version print version number and configuration settings, then exit
30420 -q, --quiet, --silent
30421 do not print progress messages
30422 -d, --debug don't remove temporary files
30423 --recheck update $as_me by reconfiguring in the same conditions
30424 --file=FILE[:TEMPLATE]
30425 instantiate the configuration file FILE
30426 --header=FILE[:TEMPLATE]
30427 instantiate the configuration header FILE
30429 Configuration files:
30432 Configuration headers:
30435 Configuration links:
30438 Configuration commands:
30441 Report bugs to the package provider."
30444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30447 configured by $0, generated by GNU Autoconf 2.64,
30448 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30450 Copyright (C) 2009 Free Software Foundation, Inc.
30451 This config.status script is free software; the Free Software Foundation
30452 gives unlimited permission to copy, distribute and modify it."
30457 test -n "\$AWK" || AWK=awk
30460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30461 # The default lists apply if the user does not specify any file.
30467 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30468 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30479 # Handling of the options.
30480 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30482 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30483 $as_echo "$ac_cs_version"; exit ;;
30484 --debug |
--debu |
--deb |
--de |
--d |
-d )
30486 --file |
--fil |
--fi |
--f )
30489 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30491 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30492 ac_need_defaults
=false
;;
30493 --header |
--heade |
--head |
--hea )
30496 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30498 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30499 ac_need_defaults
=false
;;
30501 # Conflict between --help and --header
30502 as_fn_error
"ambiguous option: \`$1'
30503 Try \`$0 --help' for more information.";;
30504 --help |
--hel |
-h )
30505 $as_echo "$ac_cs_usage"; exit ;;
30506 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30507 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30510 # This is an error.
30511 -*) as_fn_error
"unrecognized option: \`$1'
30512 Try \`$0 --help' for more information." ;;
30514 *) as_fn_append ac_config_targets
" $1"
30515 ac_need_defaults
=false
;;
30521 ac_configure_extra_args
=
30523 if $ac_cs_silent; then
30525 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30530 if \$ac_cs_recheck; then
30531 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30533 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30534 CONFIG_SHELL='$SHELL'
30535 export CONFIG_SHELL
30540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30544 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30545 ## Running $as_me. ##
30551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30555 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30556 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30563 # Handling of arguments.
30564 for ac_config_target
in $ac_config_targets
30566 case $ac_config_target in
30567 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30568 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30569 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30570 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30571 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30572 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30573 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30574 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30575 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30577 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30582 # If the user did not use the arguments to specify the items to instantiate,
30583 # then the envvar interface is used. Set only those that are not.
30584 # We use the long form for the default assignment because of an extremely
30585 # bizarre bug on SunOS 4.1.3.
30586 if $ac_need_defaults; then
30587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30589 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30590 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30593 # Have a temporary directory for convenience. Make it in the build tree
30594 # simply because there is no reason against having it here, and in addition,
30595 # creating and moving files from /tmp can sometimes cause problems.
30596 # Hook for its removal unless debugging.
30597 # Note that there is a small window in which the directory will not be cleaned:
30598 # after its creation but before its name has been assigned to `$tmp'.
30602 trap 'exit_status=$?
30603 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30605 trap 'as_fn_exit 1' 1 2 13 15
30607 # Create a (secure) tmp directory for tmp files.
30610 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30611 test -n "$tmp" && test -d "$tmp"
30614 tmp
=.
/conf$$
-$RANDOM
30615 (umask 077 && mkdir
"$tmp")
30616 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30618 # Set up the scripts for CONFIG_FILES section.
30619 # No need to generate them if there are no CONFIG_FILES.
30620 # This happens for instance with `./config.status config.h'.
30621 if test -n "$CONFIG_FILES"; then
30623 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30624 ac_cs_awk_getline
=:
30625 ac_cs_awk_pipe_init
=
30626 ac_cs_awk_read_file
='
30627 while ((getline aline < (F[key])) > 0)
30630 ac_cs_awk_pipe_fini
=
30632 ac_cs_awk_getline
=false
30633 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30634 ac_cs_awk_read_file
='
30636 print "cat " F[key] " &&"
30637 '$ac_cs_awk_pipe_init
30638 # The final `:' finishes the AND list.
30639 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30641 ac_cr
=`echo X | tr X '\015'`
30642 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30643 # But we know of no other shell where ac_cr would be empty at this
30644 # point, so we can use a bashism as a fallback.
30645 if test "x$ac_cr" = x
; then
30646 eval ac_cr
=\$
\'\\r
\'
30648 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30649 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30652 ac_cs_awk_cr
=$ac_cr
30655 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30658 # Create commands to substitute file output variables.
30660 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30661 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30662 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30665 } >conf$
$files.sh
&&
30666 . .
/conf$
$files.sh ||
30667 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30668 rm -f conf$
$files.sh
30671 echo "cat >conf$$subs.awk <<_ACEOF" &&
30672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30674 } >conf$$subs.sh ||
30675 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30676 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30678 for ac_last_try in false false false false false :; do
30679 . ./conf$$subs.sh ||
30680 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30682 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30683 if test $ac_delim_n = $ac_delim_num; then
30685 elif $ac_last_try; then
30686 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30688 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30691 rm -f conf$$subs.sh
30693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30694 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30698 s/^/S["/; s
/!.
*/"]=/
30708 s/\(.\{148\}\).*/\1/
30710 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30715 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30722 s/\(.\{148\}\).*/\1/
30724 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30728 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30733 ' <conf$$subs.awk | sed '
30738 ' >>$CONFIG_STATUS || ac_write_fail=1
30739 rm -f conf$$subs.awk
30740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30742 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30743 for (key in S) S_is_set[key] = 1
30745 \$ac_cs_awk_pipe_init
30749 nfields = split(line, field, "@
")
30751 len = length(field[1])
30752 for (i = 2; i < nfields; i++) {
30754 keylen = length(key)
30755 if (S_is_set[key]) {
30757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30758 len += length(value) + length(field[++i])
30763 if (nfields == 3 && !substed) {
30765 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30766 \$ac_cs_awk_read_file
30772 \$ac_cs_awk_pipe_fini
30775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30776 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30777 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30780 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30781 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30784 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30785 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30786 # trailing colons and then remove the whole line if VPATH becomes empty
30787 # (actually we leave an empty line to preserve line numbers).
30788 if test "x
$srcdir" = x.; then
30789 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30790 s/:*\$(srcdir):*/:/
30791 s/:*\${srcdir}:*/:/
30793 s/^\([^=]*=[ ]*\):*/\1/
30799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30800 fi # test -n "$CONFIG_FILES"
30802 # Set up the scripts for CONFIG_HEADERS section.
30803 # No need to generate them if there are no CONFIG_HEADERS.
30804 # This happens for instance with `./config.status Makefile'.
30805 if test -n "$CONFIG_HEADERS"; then
30806 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30810 # Transform confdefs.h into an awk script `defines.awk', embedded as
30811 # here-document in config.status, that substitutes the proper values into
30812 # config.h.in to produce config.h.
30814 # Create a delimiter string that does not exist in confdefs.h, to ease
30815 # handling of long lines.
30817 for ac_last_try in false false :; do
30818 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30819 if test -z "$ac_t"; then
30821 elif $ac_last_try; then
30822 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30824 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30828 # For the awk script, D is an array of macro values keyed by name,
30829 # likewise P contains macro parameters if any. Preserve backslash
30830 # newline sequences.
30832 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30834 s/.\{148\}/&'"$ac_delim"'/g
30837 s/^[ ]*#[ ]*define[ ][ ]*/ /
30844 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30846 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30850 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30851 D["\
1"]=" \
3\\\\\\n
"\\/p
30853 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30858 s/.\{148\}/&'"$ac_delim"'/g
30863 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30866 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30868 ' <confdefs.h | sed '
30869 s/'"$ac_delim"'/"\\\
30870 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30873 for (key in D) D_is_set[key] = 1
30876 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30878 split(line, arg, " ")
30879 if (arg[1] == "#") {
30883 defundef
= substr
(arg
[1], 2)
30886 split(mac1
, mac2
, "(") #)
30888 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30889 if (D_is_set
[macro
]) {
30890 # Preserve the white space surrounding the "#".
30891 print prefix
"define", macro P
[macro
] D
[macro
]
30894 # Replace #undef with comments. This is necessary, for example,
30895 # in the case of _POSIX_SOURCE, which is predefined and required
30896 # on some systems where configure will not decide to define it.
30897 if (defundef
== "undef") {
30898 print
"/*", prefix defundef
, macro
, "*/"
30906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30907 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30908 fi # test -n "$CONFIG_HEADERS"
30911 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30916 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30918 case $ac_mode$ac_tag in
30920 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30921 :[FH
]-) ac_tag
=-:-;;
30922 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30939 -) ac_f
="$tmp/stdin";;
30940 *) # Look for the file first in the build tree, then in the source tree
30941 # (if the path is not absolute). The absolute path cannot be DOS-style,
30942 # because $ac_f cannot contain `:'.
30946 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30948 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30950 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30951 as_fn_append ac_file_inputs
" '$ac_f'"
30954 # Let's still pretend it is `configure' which instantiates (i.e., don't
30955 # use $as_me), people would be surprised to read:
30956 # /* config.h. Generated by config.status. */
30957 configure_input
='Generated from '`
30958 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30960 if test x
"$ac_file" != x-
; then
30961 configure_input
="$ac_file. $configure_input"
30962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30963 $as_echo "$as_me: creating $ac_file" >&6;}
30965 # Neutralize special characters interpreted by sed in replacement strings.
30966 case $configure_input in #(
30967 *\
&* |
*\|
* |
*\\* )
30968 ac_sed_conf_input
=`$as_echo "$configure_input" |
30969 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30970 *) ac_sed_conf_input
=$configure_input;;
30974 *:-:* |
*:-) cat >"$tmp/stdin" \
30975 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30980 ac_dir
=`$as_dirname -- "$ac_file" ||
30981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30982 X"$ac_file" : 'X\(//\)[^/]' \| \
30983 X"$ac_file" : 'X\(//\)$' \| \
30984 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30985 $as_echo X"$ac_file" |
30986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30990 /^X\(\/\/\)[^/].*/{
31003 as_dir
="$ac_dir"; as_fn_mkdir_p
31007 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31009 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31010 # A ".." for each directory in $ac_dir_suffix.
31011 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31012 case $ac_top_builddir_sub in
31013 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31014 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31017 ac_abs_top_builddir
=$ac_pwd
31018 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31019 # for backward compatibility:
31020 ac_top_builddir
=$ac_top_build_prefix
31023 .
) # We are building in place.
31025 ac_top_srcdir
=$ac_top_builddir_sub
31026 ac_abs_top_srcdir
=$ac_pwd ;;
31027 [\\/]* | ?
:[\\/]* ) # Absolute name.
31028 ac_srcdir
=$srcdir$ac_dir_suffix;
31029 ac_top_srcdir
=$srcdir
31030 ac_abs_top_srcdir
=$srcdir ;;
31031 *) # Relative name.
31032 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31033 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31034 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31036 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31048 # If the template does not know about datarootdir, expand it.
31049 # FIXME: This hack should be removed a few years after 2.60.
31050 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31061 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31062 *datarootdir
*) ac_datarootdir_seen
=yes;;
31063 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31065 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31068 ac_datarootdir_hack='
31069 s&@datadir@&$datadir&g
31070 s&@docdir@&$docdir&g
31071 s&@infodir@&$infodir&g
31072 s&@localedir@&$localedir&g
31073 s&@mandir@&$mandir&g
31074 s&\\\${datarootdir}&$datarootdir&g' ;;
31078 # Neutralize VPATH when `$srcdir' = `.'.
31079 # Shell code in configure.ac might set extrasub.
31080 # FIXME: do we really want to maintain this feature?
31081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31082 ac_sed_extra="$ac_vpsub
31085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31087 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31088 s|@configure_input@|
$ac_sed_conf_input|
;t t
31089 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31090 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31091 s
&@srcdir@
&$ac_srcdir&;t t
31092 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31093 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31094 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31095 s
&@builddir@
&$ac_builddir&;t t
31096 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31097 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31098 $ac_datarootdir_hack
31100 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31101 if $ac_cs_awk_getline; then
31102 $AWK -f "$tmp/subs.
awk"
31104 $AWK -f "$tmp/subs.
awk" | $SHELL
31106 || as_fn_error "could not create
$ac_file" "$LINENO" 5
31108 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31109 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
31110 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31112 which seems to be undefined. Please make sure it is defined." >&5
31113 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31114 which seems to be undefined. Please make sure it is defined." >&2;}
31118 -) cat "$tmp/out" && rm -f "$tmp/out";;
31119 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31121 || as_fn_error "could not create $ac_file" "$LINENO" 5
31127 if test x"$ac_file" != x-; then
31129 $as_echo "/* $configure_input */" \
31130 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31131 } >"$tmp/config.h" \
31132 || as_fn_error "could not create $ac_file" "$LINENO" 5
31133 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31134 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31135 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31138 mv "$tmp/config.h" "$ac_file" \
31139 || as_fn_error "could not create $ac_file" "$LINENO" 5
31142 $as_echo "/* $configure_input */" \
31143 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31144 || as_fn_error "could not create -" "$LINENO" 5
31152 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31155 # Prefer the file from the source tree if names are identical.
31156 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31157 ac_source=$srcdir/$ac_source
31160 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31161 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31163 if test ! -r "$ac_source"; then
31164 as_fn_error "$ac_source: file not found" "$LINENO" 5
31168 # Try a relative symlink, then a hard link, then a copy.
31170 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31171 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31173 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31174 ln "$ac_source" "$ac_file" 2>/dev/null ||
31175 cp -p "$ac_source" "$ac_file" ||
31176 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31179 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31180 $as_echo "$as_me: executing $ac_file commands" >&6;}
31185 case $ac_file$ac_mode in
31186 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31188 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31189 for lang in $subdirs c-family common
31191 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31193 "as":F) chmod +x as ;;
31194 "collect-ld":F) chmod +x collect-ld ;;
31195 "nm":F) chmod +x nm ;;
31197 case ${CONFIG_HEADERS} in
31198 *auto-host.h:config.in*)
31201 # Make sure all the subdirs exist.
31202 for d in $subdirs doc build common c-family
31204 test -d $d || mkdir $d
31214 ac_clean_files=$ac_clean_files_save
31216 test $ac_write_fail = 0 ||
31217 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31220 # configure is writing to config.log, and then calls config.status.
31221 # config.status does its own redirection, appending to config.log.
31222 # Unfortunately, on DOS this fails, as config.log is still kept open
31223 # by configure, so config.status won't be able to
write to it
; its
31224 # output is simply discarded. So we exec the FD to /dev/null,
31225 # effectively closing config.log, so it can be properly (re)opened and
31226 # appended to by config.status. When coming back to configure, we
31227 # need to make the FD available again.
31228 if test "$no_create" != yes; then
31230 ac_config_status_args
=
31231 test "$silent" = yes &&
31232 ac_config_status_args
="$ac_config_status_args --quiet"
31234 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31236 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31237 # would make configure fail if this is the last instruction.
31238 $ac_cs_success || as_fn_exit $?
31240 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31242 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}