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
685 ORIGINAL_NM_FOR_TARGET
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 ORIGINAL_AS_FOR_TARGET
710 NO_PIE_FLAG_FOR_BUILD
711 NO_PIE_CFLAGS_FOR_BUILD
738 NATIVE_SYSTEM_HEADER_DIR
771 real_target_noncanonical
772 enable_as_accelerator
786 valgrind_path_defines
816 CROSS_SYSTEM_HEADER_DIR
817 TARGET_SYSTEM_ROOT_DEFINE
819 SYSROOT_CFLAGS_FOR_TARGET
864 program_transform_name
875 ac_subst_files
='option_includes
878 enable_option_checking
881 with_native_system_header_dir
886 enable_generated_files_in_srcdir
893 enable_build_format_warnings
897 enable_gather_detailed_mem_stats
898 enable_valgrind_annotations
917 enable_sjlj_exceptions
919 enable_leading_mingw64_underscores
922 enable_win32_registry
930 enable_gnu_indirect_function
931 enable_initfini_array
933 enable_fix_cortex_a53_835769
934 enable_fix_cortex_a53_843419
936 enable_gnu_unique_object
937 enable_linker_build_id
942 enable_maintainer_mode
944 enable_version_specific_runtime_libs
947 enable_libquadmath_support
948 with_linker_hash_style
949 with_diagnostics_color
952 ac_precious_vars
='build_alias
971 # Initialize some variables set by options.
973 ac_init_version
=false
974 ac_unrecognized_opts
=
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
985 program_transform_name
=s
,x
,x
,
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir
='${exec_prefix}/bin'
1000 sbindir
='${exec_prefix}/sbin'
1001 libexecdir
='${exec_prefix}/libexec'
1002 datarootdir
='${prefix}/share'
1003 datadir
='${datarootdir}'
1004 sysconfdir
='${prefix}/etc'
1005 sharedstatedir
='${prefix}/com'
1006 localstatedir
='${prefix}/var'
1007 includedir
='${prefix}/include'
1008 oldincludedir
='/usr/include'
1009 docdir
='${datarootdir}/doc/${PACKAGE}'
1010 infodir
='${datarootdir}/info'
1015 libdir
='${exec_prefix}/lib'
1016 localedir
='${datarootdir}/locale'
1017 mandir
='${datarootdir}/man'
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\
$ac_option
1031 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1041 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1043 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1044 bindir
=$ac_optarg ;;
1046 -build |
--build |
--buil |
--bui |
--bu)
1047 ac_prev
=build_alias
;;
1048 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1049 build_alias
=$ac_optarg ;;
1051 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1052 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1053 ac_prev
=cache_file
;;
1054 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1055 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1056 cache_file
=$ac_optarg ;;
1058 --config-cache |
-C)
1059 cache_file
=config.cache
;;
1061 -datadir |
--datadir |
--datadi |
--datad)
1063 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1064 datadir
=$ac_optarg ;;
1066 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1067 |
--dataroo |
--dataro |
--datar)
1068 ac_prev
=datarootdir
;;
1069 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1070 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1071 datarootdir
=$ac_optarg ;;
1073 -disable-* |
--disable-*)
1074 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1077 as_fn_error
"invalid feature name: $ac_useropt"
1078 ac_useropt_orig
=$ac_useropt
1079 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_
$ac_useropt"
1084 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085 ac_unrecognized_sep
=', ';;
1087 eval enable_
$ac_useropt=no
;;
1089 -docdir |
--docdir |
--docdi |
--doc |
--do)
1091 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1092 docdir
=$ac_optarg ;;
1094 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1096 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1097 dvidir
=$ac_optarg ;;
1099 -enable-* |
--enable-*)
1100 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1103 as_fn_error
"invalid feature name: $ac_useropt"
1104 ac_useropt_orig
=$ac_useropt
1105 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1108 "enable_
$ac_useropt"
1110 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111 ac_unrecognized_sep
=', ';;
1113 eval enable_
$ac_useropt=\
$ac_optarg ;;
1115 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1116 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1117 |
--exec |
--exe |
--ex)
1118 ac_prev
=exec_prefix
;;
1119 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1120 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1121 |
--exec=* |
--exe=* |
--ex=*)
1122 exec_prefix
=$ac_optarg ;;
1124 -gas |
--gas |
--ga |
--g)
1125 # Obsolete; use --with-gas.
1128 -help |
--help |
--hel |
--he |
-h)
1129 ac_init_help
=long
;;
1130 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1131 ac_init_help
=recursive
;;
1132 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1133 ac_init_help
=short
;;
1135 -host |
--host |
--hos |
--ho)
1136 ac_prev
=host_alias
;;
1137 -host=* |
--host=* |
--hos=* |
--ho=*)
1138 host_alias
=$ac_optarg ;;
1140 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1142 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1144 htmldir
=$ac_optarg ;;
1146 -includedir |
--includedir |
--includedi |
--included |
--include \
1147 |
--includ |
--inclu |
--incl |
--inc)
1148 ac_prev
=includedir
;;
1149 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1150 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1151 includedir
=$ac_optarg ;;
1153 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1155 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1156 infodir
=$ac_optarg ;;
1158 -libdir |
--libdir |
--libdi |
--libd)
1160 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1161 libdir
=$ac_optarg ;;
1163 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1164 |
--libexe |
--libex |
--libe)
1165 ac_prev
=libexecdir
;;
1166 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1167 |
--libexe=* |
--libex=* |
--libe=*)
1168 libexecdir
=$ac_optarg ;;
1170 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1171 ac_prev
=localedir
;;
1172 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1173 localedir
=$ac_optarg ;;
1175 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1176 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1177 ac_prev
=localstatedir
;;
1178 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1179 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1180 localstatedir
=$ac_optarg ;;
1182 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1184 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1185 mandir
=$ac_optarg ;;
1187 -nfp |
--nfp |
--nf)
1188 # Obsolete; use --without-fp.
1191 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1192 |
--no-cr |
--no-c |
-n)
1195 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1196 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1199 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1200 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1201 |
--oldin |
--oldi |
--old |
--ol |
--o)
1202 ac_prev
=oldincludedir
;;
1203 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1204 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1205 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1206 oldincludedir
=$ac_optarg ;;
1208 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1210 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1211 prefix
=$ac_optarg ;;
1213 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1214 |
--program-pre |
--program-pr |
--program-p)
1215 ac_prev
=program_prefix
;;
1216 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1217 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1218 program_prefix
=$ac_optarg ;;
1220 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1221 |
--program-suf |
--program-su |
--program-s)
1222 ac_prev
=program_suffix
;;
1223 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1224 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1225 program_suffix
=$ac_optarg ;;
1227 -program-transform-name |
--program-transform-name \
1228 |
--program-transform-nam |
--program-transform-na \
1229 |
--program-transform-n |
--program-transform- \
1230 |
--program-transform |
--program-transfor \
1231 |
--program-transfo |
--program-transf \
1232 |
--program-trans |
--program-tran \
1233 |
--progr-tra |
--program-tr |
--program-t)
1234 ac_prev
=program_transform_name
;;
1235 -program-transform-name=* |
--program-transform-name=* \
1236 |
--program-transform-nam=* |
--program-transform-na=* \
1237 |
--program-transform-n=* |
--program-transform-=* \
1238 |
--program-transform=* |
--program-transfor=* \
1239 |
--program-transfo=* |
--program-transf=* \
1240 |
--program-trans=* |
--program-tran=* \
1241 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1242 program_transform_name
=$ac_optarg ;;
1244 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1246 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1247 pdfdir
=$ac_optarg ;;
1249 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1251 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1254 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1255 |
-silent |
--silent |
--silen |
--sile |
--sil)
1258 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1260 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1262 sbindir
=$ac_optarg ;;
1264 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1265 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1266 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1268 ac_prev
=sharedstatedir
;;
1269 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1270 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1271 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1273 sharedstatedir
=$ac_optarg ;;
1275 -site |
--site |
--sit)
1277 -site=* |
--site=* |
--sit=*)
1280 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1282 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1283 srcdir
=$ac_optarg ;;
1285 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1286 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1287 ac_prev
=sysconfdir
;;
1288 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1289 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1290 sysconfdir
=$ac_optarg ;;
1292 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1293 ac_prev
=target_alias
;;
1294 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1295 target_alias
=$ac_optarg ;;
1297 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1300 -version |
--version |
--versio |
--versi |
--vers |
-V)
1301 ac_init_version
=: ;;
1304 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1307 as_fn_error
"invalid package name: $ac_useropt"
1308 ac_useropt_orig
=$ac_useropt
1309 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1314 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315 ac_unrecognized_sep
=', ';;
1317 eval with_
$ac_useropt=\
$ac_optarg ;;
1319 -without-* |
--without-*)
1320 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1323 as_fn_error
"invalid package name: $ac_useropt"
1324 ac_useropt_orig
=$ac_useropt
1325 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1330 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331 ac_unrecognized_sep
=', ';;
1333 eval with_
$ac_useropt=no
;;
1336 # Obsolete; use --with-x.
1339 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1340 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1341 ac_prev
=x_includes
;;
1342 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1343 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1344 x_includes
=$ac_optarg ;;
1346 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1347 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1348 ac_prev
=x_libraries
;;
1349 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1350 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1351 x_libraries
=$ac_optarg ;;
1353 -*) as_fn_error
"unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information."
1358 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1359 # Reject names that are not valid shell variable names.
1360 case $ac_envvar in #(
1361 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1362 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1364 eval $ac_envvar=\
$ac_optarg
1365 export $ac_envvar ;;
1368 # FIXME: should be removed in autoconf 3.0.
1369 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1371 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1372 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1378 if test -n "$ac_prev"; then
1379 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1380 as_fn_error
"missing argument to $ac_option"
1383 if test -n "$ac_unrecognized_opts"; then
1384 case $enable_option_checking in
1386 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391 # Check all directory arguments for consistency.
1392 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1397 eval ac_val
=\$
$ac_var
1398 # Remove trailing slashes.
1401 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\
$ac_val;;
1404 # Be sure to have absolute directory names.
1406 [\\/$
]* | ?
:[\\/]* ) continue;;
1407 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1409 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1417 target
=$target_alias
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x
; then
1421 if test "x$build_alias" = x
; then
1422 cross_compiling
=maybe
1423 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424 If a cross compiler is detected then cross compile mode will be used." >&2
1425 elif test "x$build_alias" != "x$host_alias"; then
1431 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1433 test "$silent" = yes && exec 6>/dev
/null
1436 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di
=`ls -di .` &&
1438 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error
"working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error
"pwd does not report name of working directory"
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted
=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir
=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1476 ac_srcdir_defaulted
=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1480 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1482 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1494 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1496 for ac_var
in $ac_precious_vars; do
1497 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1499 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1504 # Report the --help message.
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1510 \`configure' configures this package to adapt to many kinds of systems.
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1517 Defaults for the options are specified in brackets.
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1541 For better control, use the options below.
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1568 --program-prefix=PREFIX prepend PREFIX to installed program names
1569 --program-suffix=SUFFIX append SUFFIX to installed program names
1570 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1573 --build=BUILD configure
for building on BUILD
[guessed
]
1574 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1575 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1579 if test -n "$ac_init_help"; then
1584 --disable-option-checking ignore unrecognized
--enable/--with options
1585 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1586 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1587 --enable-generated-files-in-srcdir
1588 put copies of generated files
in source dir intended
1589 for creating
source tarballs
for users without
1590 texinfo bison or flex
1591 --disable-largefile omit support
for large files
1592 --disable-build-format-warnings
1593 don
't use -Wformat while building GCC
1594 --enable-werror-always enable -Werror despite compiler version
1595 --enable-checking[=LIST]
1596 enable expensive run-time checks. With LIST, enable
1597 only specific categories of checks. Categories are:
1598 yes,no,all,none,release. Flags are:
1599 assert,df,fold,gc,gcac,gimple,misc,
1600 rtlflag,rtl,runtime,tree,valgrind,types
1601 --enable-coverage[=LEVEL]
1602 enable compiler's code coverage collection. Use to
1603 measure compiler performance and
locate unused parts
1604 of the compiler. With LEVEL
, specify optimization.
1605 Values are opt
, noopt
, default is noopt
1606 --enable-gather-detailed-mem-stats
1607 enable detailed memory allocation stats gathering
1608 --enable-valgrind-annotations
1609 enable valgrind runtime interaction
1610 --enable-multilib enable library support
for multiple ABIs
1611 --enable-multiarch enable support
for multiarch paths
1612 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1613 --enable-decimal-float={no
,yes,bid
,dpd
}
1614 enable decimal float extension to C. Selecting
'bid'
1615 or
'dpd' choses
which decimal floating point format
1617 --enable-fixed-point enable fixed-point arithmetic extension to C
1618 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1620 --enable-tls enable or disable generation of tls code overriding
1621 the assembler check
for tls support
1622 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1623 GNU Objective-C runtime
1624 --disable-shared don't provide a shared libgcc
1625 --enable-languages=LIST specify
which front-ends to build
1626 --disable-rpath do not hardcode runtime library paths
1627 --enable-sjlj-exceptions
1628 arrange to use setjmp
/longjmp exception handling
1629 --enable-secureplt enable -msecure-plt by default
for PowerPC
1630 --enable-leading-mingw64-underscores
1631 enable leading underscores on
64 bit mingw targets
1632 --enable-cld enable -mcld by default
for 32bit x86
1633 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1635 --disable-win32-registry
1636 disable lookup of installation paths
in the Registry
1638 --enable-win32-registry enable registry lookup
(default
)
1639 --enable-win32-registry=KEY
1640 use KEY instead of GCC version as the last portion
1642 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1643 --enable-static[=PKGS
] build static libraries
[default
=yes]
1644 --enable-fast-install[=PKGS
]
1645 optimize
for fast installation
[default
=yes]
1646 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1647 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1648 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1649 --enable-gnu-indirect-function
1650 enable the use of the @gnu_indirect_function to
1652 --enable-initfini-array use .init_array
/.fini_array sections
1653 --enable-comdat enable COMDAT group support
1655 --enable-fix-cortex-a53-835769
1656 enable workaround
for AArch64 Cortex-A53 erratum
1658 --disable-fix-cortex-a53-835769
1659 disable workaround
for AArch64 Cortex-A53 erratum
1663 --enable-fix-cortex-a53-843419
1664 enable workaround
for AArch64 Cortex-A53 erratum
1666 --disable-fix-cortex-a53-843419
1667 disable workaround
for AArch64 Cortex-A53 erratum
1670 --enable-gnu-unique-object
1671 enable the use of the @gnu_unique_object ELF
1672 extension on glibc systems
1673 --enable-linker-build-id
1674 compiler will always pass
--build-id to linker
1675 --enable-default-ssp enable Stack Smashing Protection as default
1676 --enable-maintainer-mode
1677 enable make rules and dependencies not useful
(and
1678 sometimes confusing
) to the casual installer
1679 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1680 thrashing on the build machine
1681 --enable-version-specific-runtime-libs
1682 specify that runtime libraries should be installed
1683 in a compiler-specific directory
1684 --enable-plugin enable plugin support
1685 --enable-host-shared build
host code as shared libraries
1686 --disable-libquadmath-support
1687 disable libquadmath support
for Fortran
1688 --enable-default-pie enable Position Independent Executable as default
1691 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1692 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1693 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1694 --with-local-prefix=DIR specifies directory to put
local include
1695 --with-native-system-header-dir=dir
1696 use dir as the directory to
look for standard
1697 system header files
in. Defaults to
/usr
/include.
1698 --with-build-sysroot=sysroot
1699 use sysroot as the system root during the build
1700 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1701 --with-gxx-include-dir=DIR
1702 specifies directory to put g
++ header files
1703 --with-cpp-install-dir=DIR
1704 install the user visible C preprocessor
in DIR
1705 (relative to PREFIX
) as well as PREFIX
/bin
1706 --with-gnu-ld arrange to work with GNU ld
1707 --with-ld arrange to use the specified ld
(full pathname
)
1708 --with-demangler-in-ld try to use demangler
in GNU ld
1709 --with-gnu-as arrange to work with GNU as
1710 --with-as arrange to use the specified as
(full pathname
)
1711 --with-stabs arrange to use stabs instead of
host debug format
1712 --with-dwarf2 force the default debug format to be DWARF
2
1713 --with-specs=SPECS add SPECS to driver command-line processing
1714 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1715 --with-bugurl=URL Direct users to URL to report a bug
1716 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1717 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1718 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1719 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1720 --with-pic try to use only PIC/non-PIC objects [default=use
1722 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1723 --with-plugin-ld=[ARG] specify the plugin linker
1724 --with-glibc-version=M.N
1725 assume GCC used with glibc version M.N or later
1726 --with-long-double-128 use 128-bit long double by default
1727 --with-gc={page,zone} this option is not supported anymore. It used to
1728 choose the garbage collection mechanism to use with
1730 --with-system-zlib use installed libz
1731 --with-linker-hash-style={sysv,gnu,both}
1732 specify the linker hash style
1733 --with-diagnostics-color={never,auto,auto-if-env,always}
1734 specify the default of -fdiagnostics-color option
1735 auto-if-env stands for -fdiagnostics-color=auto if
1736 GCC_COLOR environment variable is present and
1737 -fdiagnostics-color=never otherwise
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1747 CXX C++ compiler command
1748 CXXFLAGS C++ compiler flags
1749 CXXCPP C++ preprocessor
1751 GMPLIBS How to link GMP
1752 GMPINC How to find GMP include files
1753 ISLLIBS How to link isl
1754 ISLINC How to find isl include files
1756 Use these variables to override the choices made by `configure' or to
help
1757 it to
find libraries and programs with nonstandard names
/locations.
1759 Report bugs to the package provider.
1764 if test "$ac_init_help" = "recursive"; then
1765 # If there are subdirs, report their specific --help.
1766 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1767 test -d "$ac_dir" ||
1768 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1773 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1775 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1776 # A ".." for each directory in $ac_dir_suffix.
1777 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1778 case $ac_top_builddir_sub in
1779 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1780 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1783 ac_abs_top_builddir
=$ac_pwd
1784 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1785 # for backward compatibility:
1786 ac_top_builddir
=$ac_top_build_prefix
1789 .
) # We are building in place.
1791 ac_top_srcdir
=$ac_top_builddir_sub
1792 ac_abs_top_srcdir
=$ac_pwd ;;
1793 [\\/]* | ?
:[\\/]* ) # Absolute name.
1794 ac_srcdir
=$srcdir$ac_dir_suffix;
1795 ac_top_srcdir
=$srcdir
1796 ac_abs_top_srcdir
=$srcdir ;;
1798 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1799 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1800 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1802 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1804 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1805 # Check for guested configure.
1806 if test -f "$ac_srcdir/configure.gnu"; then
1808 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1809 elif test -f "$ac_srcdir/configure"; then
1811 $SHELL "$ac_srcdir/configure" --help=recursive
1813 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1815 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1819 test -n "$ac_init_help" && exit $ac_status
1820 if $ac_init_version; then
1823 generated by GNU Autoconf
2.64
1825 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1826 This configure
script is free software
; the Free Software Foundation
1827 gives unlimited permission to copy
, distribute and modify it.
1832 ## ------------------------ ##
1833 ## Autoconf initialization. ##
1834 ## ------------------------ ##
1836 # ac_fn_c_try_compile LINENO
1837 # --------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_compile
()
1841 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1842 rm -f conftest.
$ac_objext
1843 if { { ac_try
="$ac_compile"
1845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872 } # ac_fn_c_try_compile
1874 # ac_fn_cxx_try_compile LINENO
1875 # ----------------------------
1876 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_compile ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext
1881 if { { ac_try="$ac_compile"
1883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1884 *) ac_try_echo
=$ac_try;;
1886 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_compile") 2>conftest.err
1890 if test -s conftest.err
; then
1891 grep -v '^ *+' conftest.err
>conftest.er1
1892 cat conftest.er1
>&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest.
$ac_objext; then :
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.
$ac_ext >&5
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1910 } # ac_fn_cxx_try_compile
1912 # ac_fn_cxx_try_cpp LINENO
1913 # ------------------------
1914 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_cxx_try_cpp
()
1917 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1918 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } >/dev/null && {
1934 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1935 test ! -s conftest.err
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947 } # ac_fn_cxx_try_cpp
1949 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # ---------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1954 ac_fn_cxx_check_header_mongrel ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1975 if ac_fn_cxx_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1978 ac_header_compiler=no
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1991 if ac_fn_cxx_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1994 ac_header_preproc=no
1996 rm -f conftest.err conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2026 eval "$3=\$ac_header_compiler"
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034 } # ac_fn_cxx_check_header_mongrel
2036 # ac_fn_cxx_try_run LINENO
2037 # ------------------------
2038 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2039 # that executables *can* be run.
2040 ac_fn_cxx_try_run ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if { { ac_try="$ac_link"
2045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2046 *) ac_try_echo
=$ac_try;;
2048 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 $as_echo "$ac_try_echo"; } >&5
2050 (eval "$ac_link") 2>&5
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2054 { { case "(($ac_try" in
2055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_try") 2>&5
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; }; }; then :
2066 $as_echo "$as_me: program exited with status $ac_status" >&5
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2070 ac_retval=$ac_status
2072 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076 } # ac_fn_cxx_try_run
2078 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2079 # ---------------------------------------------------------
2080 # Tests whether HEADER exists and can be compiled using the include files in
2081 # INCLUDES, setting the cache variable VAR accordingly.
2082 ac_fn_cxx_check_header_compile ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2088 $as_echo_n "(cached) " >&6
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2095 if ac_fn_cxx_try_compile "$LINENO"; then :
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107 } # ac_fn_cxx_check_header_compile
2109 # ac_fn_c_try_cpp LINENO
2110 # ----------------------
2111 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if { { ac_try="$ac_cpp conftest.$ac_ext"
2117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2118 *) ac_try_echo
=$ac_try;;
2120 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2124 if test -s conftest.err
; then
2125 grep -v '^ *+' conftest.err
>conftest.er1
2126 cat conftest.er1
>&5
2127 mv -f conftest.er1 conftest.err
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; } >/dev
/null
&& {
2131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2132 test ! -s conftest.err
2136 $as_echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.
$ac_ext >&5
2141 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2146 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2147 # ----------------------------------------------
2148 # Tries to find the compile-time value of EXPR in a program that includes
2149 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2151 ac_fn_cxx_compute_int
()
2153 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2154 if test "$cross_compiling" = yes; then
2155 # Depending upon the size, compute the lo and hi bounds.
2156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 static int test_array [1 - 2 * !(($2) >= 0)];
2169 if ac_fn_cxx_try_compile
"$LINENO"; then :
2172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2178 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2185 if ac_fn_cxx_try_compile
"$LINENO"; then :
2186 ac_hi
=$ac_mid; break
2188 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2189 if test $ac_lo -le $ac_mid; then
2193 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2204 static int test_array [1 - 2 * !(($2) < 0)];
2211 if ac_fn_cxx_try_compile
"$LINENO"; then :
2214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2220 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2227 if ac_fn_cxx_try_compile
"$LINENO"; then :
2228 ac_lo
=$ac_mid; break
2230 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2231 if test $ac_mid -le $ac_hi; then
2235 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2245 # Binary search between lo and hi bounds.
2246 while test "x$ac_lo" != "x$ac_hi"; do
2247 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2261 if ac_fn_cxx_try_compile
"$LINENO"; then :
2264 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2269 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2276 static long int longval () { return $2; }
2277 static unsigned long int ulongval () { return $2; }
2284 FILE *f = fopen ("conftest.val", "w");
2289 long int i = longval ();
2292 fprintf (f, "%ld", i);
2296 unsigned long int i = ulongval ();
2299 fprintf (f, "%lu", i);
2301 /* Do not output a trailing newline, as this causes \r\n confusion
2302 on some platforms. */
2303 return ferror (f) || fclose (f) != 0;
2309 if ac_fn_cxx_try_run
"$LINENO"; then :
2310 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2314 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2315 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2319 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2322 } # ac_fn_cxx_compute_int
2324 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2325 # ---------------------------------------------
2326 # Tests whether TYPE exists after having included INCLUDES, setting cache
2327 # variable VAR accordingly.
2328 ac_fn_cxx_check_type
()
2330 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332 $as_echo_n "checking for $2... " >&6; }
2333 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2349 if ac_fn_cxx_try_compile
"$LINENO"; then :
2350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2362 if ac_fn_cxx_try_compile
"$LINENO"; then :
2367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2376 } # ac_fn_cxx_check_type
2378 # ac_fn_c_find_intX_t LINENO BITS VAR
2379 # -----------------------------------
2380 # Finds a signed integer type with width BITS, setting cache variable VAR
2382 ac_fn_c_find_intX_t
()
2384 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2386 $as_echo_n "checking for int$2_t... " >&6; }
2387 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2388 $as_echo_n "(cached) " >&6
2391 for ac_type
in int
$2_t 'int' 'long int' \
2392 'long long int' 'short int' 'signed char'; do
2393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2395 $ac_includes_default
2399 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2406 if ac_fn_cxx_try_compile
"$LINENO"; then :
2407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2409 $ac_includes_default
2413 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2414 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2421 if ac_fn_cxx_try_compile
"$LINENO"; then :
2428 eval "$3=\$ac_type" ;;
2431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2435 if test "x$as_val" = x
""no
; then :
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2447 } # ac_fn_c_find_intX_t
2449 # ac_fn_cxx_try_link LINENO
2450 # -------------------------
2451 # Try to link conftest.$ac_ext, and return whether this succeeded.
2452 ac_fn_cxx_try_link
()
2454 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2455 rm -f conftest.
$ac_objext conftest
$ac_exeext
2456 if { { ac_try
="$ac_link"
2458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463 (eval "$ac_link") 2>conftest.err
2465 if test -s conftest.err; then
2466 grep -v '^ *+' conftest.err >conftest.er1
2467 cat conftest.er1 >&5
2468 mv -f conftest.er1 conftest.err
2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471 test $ac_status = 0; } && {
2472 test -z "$ac_cxx_werror_flag" ||
2473 test ! -s conftest.err
2474 } && test -s conftest$ac_exeext && {
2475 test "$cross_compiling" = yes ||
2476 $as_test_x conftest$ac_exeext
2480 $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2485 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2486 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2487 # interfere with the next link command; also delete a directory that is
2488 # left behind by Apple's compiler. We do this before executing the actions.
2489 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2493 } # ac_fn_cxx_try_link
2495 # ac_fn_c_find_uintX_t LINENO BITS VAR
2496 # ------------------------------------
2497 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2499 ac_fn_c_find_uintX_t ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2503 $as_echo_n "checking for uint$2_t... " >&6; }
2504 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2505 $as_echo_n "(cached) " >&6
2508 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2509 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 $ac_includes_default
2516 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2523 if ac_fn_cxx_try_compile "$LINENO"; then :
2528 eval "$3=\$ac_type" ;;
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2533 if test "x$as_val" = x""no; then :
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2545 } # ac_fn_c_find_uintX_t
2547 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2548 # ------------------------------------------------
2549 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2550 ac_fn_cxx_check_header_preproc ()
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2554 $as_echo_n "checking for $2... " >&6; }
2555 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2556 $as_echo_n "(cached) " >&6
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2562 if ac_fn_cxx_try_cpp "$LINENO"; then :
2567 rm -f conftest.err conftest.$ac_ext
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2571 $as_echo "$ac_res" >&6; }
2572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2574 } # ac_fn_cxx_check_header_preproc
2576 # ac_fn_cxx_check_func LINENO FUNC VAR
2577 # ------------------------------------
2578 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2579 ac_fn_cxx_check_func ()
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2583 $as_echo_n "checking for $2... " >&6; }
2584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2585 $as_echo_n "(cached) " >&6
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2589 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2591 #define $2 innocuous_$2
2593 /* System header to define __stub macros and hopefully few prototypes,
2594 which can conflict with char $2 (); below.
2595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2596 <limits.h> exists even on freestanding compilers. */
2599 # include <limits.h>
2601 # include <assert.h>
2606 /* Override any GCC internal prototype to avoid an error.
2607 Use char because int might match the return type of a GCC
2608 builtin and then its argument prototype would still apply. */
2613 /* The GNU C library defines this for functions which it implements
2614 to always fail with ENOSYS. Some functions are actually named
2615 something starting with __ and the normal name is an alias. */
2616 #if defined __stub_$2 || defined __stub___$2
2628 if ac_fn_cxx_try_link "$LINENO"; then :
2633 rm -f core conftest.err conftest.$ac_objext \
2634 conftest$ac_exeext conftest.$ac_ext
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638 $as_echo "$ac_res" >&6; }
2639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2641 } # ac_fn_cxx_check_func
2643 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2644 # --------------------------------------
2645 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2646 ac_fn_cxx_check_decl ()
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2650 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2652 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2654 $as_echo_n "(cached) " >&6
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h. */
2662 #ifndef $as_decl_name
2664 (void) $as_decl_use;
2666 (void) $as_decl_name;
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2683 $as_echo "$ac_res" >&6; }
2684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2686 } # ac_fn_cxx_check_decl
2688 # ac_fn_c_try_link LINENO
2689 # -----------------------
2690 # Try to link conftest.$ac_ext, and return whether this succeeded.
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 rm -f conftest.$ac_objext conftest$ac_exeext
2695 if { { ac_try="$ac_link"
2697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2698 *) ac_try_echo
=$ac_try;;
2700 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_link") 2>conftest.err
2704 if test -s conftest.err
; then
2705 grep -v '^ *+' conftest.err
>conftest.er1
2706 cat conftest.er1
>&5
2707 mv -f conftest.er1 conftest.err
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2710 test $ac_status = 0; } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest
$ac_exeext && {
2714 test "$cross_compiling" = yes ||
2715 $as_test_x conftest
$ac_exeext
2719 $as_echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.
$ac_ext >&5
2724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2726 # interfere with the next link command; also delete a directory that is
2727 # left behind by Apple's compiler. We do this before executing the actions.
2728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2729 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2732 } # ac_fn_c_try_link
2734 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2735 # ----------------------------------------------
2736 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2737 ac_fn_c_check_header_preproc
()
2739 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2741 $as_echo_n "checking for $2... " >&6; }
2742 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2743 $as_echo_n "(cached) " >&6
2745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2749 if ac_fn_c_try_cpp
"$LINENO"; then :
2754 rm -f conftest.err conftest.
$ac_ext
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 $as_echo "$ac_res" >&6; }
2759 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2761 } # ac_fn_c_check_header_preproc
2763 # ac_fn_c_check_func LINENO FUNC VAR
2764 # ----------------------------------
2765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2766 ac_fn_c_check_func
()
2768 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2770 $as_echo_n "checking for $2... " >&6; }
2771 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2772 $as_echo_n "(cached) " >&6
2774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2778 #define $2 innocuous_$2
2780 /* System header to define __stub macros and hopefully few prototypes,
2781 which can conflict with char $2 (); below.
2782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2783 <limits.h> exists even on freestanding compilers. */
2786 # include <limits.h>
2788 # include <assert.h>
2793 /* Override any GCC internal prototype to avoid an error.
2794 Use char because int might match the return type of a GCC
2795 builtin and then its argument prototype would still apply. */
2800 /* The GNU C library defines this for functions which it implements
2801 to always fail with ENOSYS. Some functions are actually named
2802 something starting with __ and the normal name is an alias. */
2803 #if defined __stub_$2 || defined __stub___$2
2815 if ac_fn_c_try_link
"$LINENO"; then :
2820 rm -f core conftest.err conftest.
$ac_objext \
2821 conftest
$ac_exeext conftest.
$ac_ext
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2825 $as_echo "$ac_res" >&6; }
2826 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2828 } # ac_fn_c_check_func
2829 cat >config.log
<<_ACEOF
2830 This file contains any messages produced by compilers while
2831 running configure, to aid debugging if configure makes a mistake.
2833 It was created by $as_me, which was
2834 generated by GNU Autoconf 2.64. Invocation command line was
2846 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2847 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2848 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2849 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2850 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2852 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2853 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2855 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2856 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2857 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2858 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2859 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2860 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2861 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir
=.
2870 $as_echo "PATH: $as_dir"
2886 # Keep a trace of the command line.
2887 # Strip out --no-create and --no-recursion so they do not pile up.
2888 # Strip out --silent because we don't want to record it for future runs.
2889 # Also quote any args containing shell meta-characters.
2890 # Make two passes to allow for proper duplicate-argument suppression.
2894 ac_must_keep_next
=false
2900 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2901 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2902 |
-silent |
--silent |
--silen |
--sile |
--sil)
2905 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2908 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2910 as_fn_append ac_configure_args1
" '$ac_arg'"
2911 if test $ac_must_keep_next = true
; then
2912 ac_must_keep_next
=false
# Got value, back to normal.
2915 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2916 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2917 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2918 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2919 case "$ac_configure_args0 " in
2920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2923 -* ) ac_must_keep_next
=true
;;
2926 as_fn_append ac_configure_args
" '$ac_arg'"
2931 { ac_configure_args0
=; unset ac_configure_args0
;}
2932 { ac_configure_args1
=; unset ac_configure_args1
;}
2934 # When interrupted or exit'd, cleanup temporary files, and complete
2935 # config.log. We remove comments because anyway the quotes in there
2936 # would cause problems or look ugly.
2937 # WARNING: Use '\'' to represent an apostrophe within the trap.
2938 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2939 trap 'exit_status=$?
2940 # Save into config.log some information that might help in debugging.
2945 ## ---------------- ##
2946 ## Cache variables. ##
2947 ## ---------------- ##
2950 # The following way of writing the cache mishandles newlines in values,
2952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2953 eval ac_val=\$$ac_var
2957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2961 _ | IFS | as_nl) ;; #(
2962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2963 *) { eval $ac_var=; unset $ac_var;} ;;
2968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2969 *${as_nl}ac_space=\ *)
2971 "s/'\''/'\''\\\\'\'''\''/g;
2972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2983 ## ----------------- ##
2984 ## Output variables. ##
2985 ## ----------------- ##
2988 for ac_var in $ac_subst_vars
2990 eval ac_val=\$$ac_var
2992 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2994 $as_echo "$ac_var='\''$ac_val'\''"
2998 if test -n "$ac_subst_files"; then
3000 ## ------------------- ##
3001 ## File substitutions. ##
3002 ## ------------------- ##
3005 for ac_var
in $ac_subst_files
3007 eval ac_val
=\$
$ac_var
3009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3011 $as_echo "$ac_var='\''$ac_val'\''"
3016 if test -s confdefs.h; then
3026 test "$ac_signal" != 0 &&
3027 $as_echo "$as_me: caught signal $ac_signal"
3028 $as_echo "$as_me: exit $exit_status"
3030 rm -f core *.core core.conftest.* &&
3031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3034 for ac_signal
in 1 2 13 15; do
3035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3040 rm -f -r conftest
* confdefs.h
3042 $as_echo "/* confdefs.h */" > confdefs.h
3044 # Predefined preprocessor variables.
3046 cat >>confdefs.h
<<_ACEOF
3047 #define PACKAGE_NAME "$PACKAGE_NAME"
3050 cat >>confdefs.h
<<_ACEOF
3051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3054 cat >>confdefs.h
<<_ACEOF
3055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3058 cat >>confdefs.h
<<_ACEOF
3059 #define PACKAGE_STRING "$PACKAGE_STRING"
3062 cat >>confdefs.h
<<_ACEOF
3063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3066 cat >>confdefs.h
<<_ACEOF
3067 #define PACKAGE_URL "$PACKAGE_URL"
3071 # Let the site file select an alternate cache file if it wants to.
3072 # Prefer an explicitly selected file to automatically selected ones.
3075 if test -n "$CONFIG_SITE"; then
3076 ac_site_file1
=$CONFIG_SITE
3077 elif test "x$prefix" != xNONE
; then
3078 ac_site_file1
=$prefix/share
/config.site
3079 ac_site_file2
=$prefix/etc
/config.site
3081 ac_site_file1
=$ac_default_prefix/share
/config.site
3082 ac_site_file2
=$ac_default_prefix/etc
/config.site
3084 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3086 test "x$ac_site_file" = xNONE
&& continue
3087 if test -r "$ac_site_file"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3089 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3090 sed 's/^/| /' "$ac_site_file" >&5
3095 if test -r "$cache_file"; then
3096 # Some versions of bash will fail to source /dev/null (special
3097 # files actually), so we avoid doing that.
3098 if test -f "$cache_file"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3100 $as_echo "$as_me: loading cache $cache_file" >&6;}
3102 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3103 *) .
"./$cache_file";;
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3108 $as_echo "$as_me: creating cache $cache_file" >&6;}
3112 # Check that the precious variables saved in the cache have kept the same
3114 ac_cache_corrupted
=false
3115 for ac_var
in $ac_precious_vars; do
3116 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3117 eval ac_new_set
=\
$ac_env_${ac_var}_set
3118 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3119 eval ac_new_val
=\
$ac_env_${ac_var}_value
3120 case $ac_old_set,$ac_new_set in
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3124 ac_cache_corrupted
=: ;;
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3128 ac_cache_corrupted
=: ;;
3131 if test "x$ac_old_val" != "x$ac_new_val"; then
3132 # differences in whitespace do not lead to failure.
3133 ac_old_val_w
=`echo x $ac_old_val`
3134 ac_new_val_w
=`echo x $ac_new_val`
3135 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3137 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3138 ac_cache_corrupted
=:
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3141 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3142 eval $ac_var=\
$ac_old_val
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3145 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3147 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3150 # Pass precious variables to config.status.
3151 if test "$ac_new_set" = set; then
3153 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3154 *) ac_arg
=$ac_var=$ac_new_val ;;
3156 case " $ac_configure_args " in
3157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3158 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3162 if $ac_cache_corrupted; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3166 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3167 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3169 ## -------------------- ##
3170 ## Main body of script. ##
3171 ## -------------------- ##
3174 ac_cpp
='$CPP $CPPFLAGS'
3175 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3184 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3187 gcc_version
=`cat $srcdir/BASE-VER`
3189 # Determine the host, build, and target systems
3191 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3192 for ac_t
in install-sh
install.sh shtool
; do
3193 if test -f "$ac_dir/$ac_t"; then
3195 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3200 if test -z "$ac_aux_dir"; then
3201 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3204 # These three variables are undocumented and unsupported,
3205 # and are intended to be withdrawn in a future Autoconf release.
3206 # They can cause serious problems if a builder's source tree is in a directory
3207 # whose full name contains unusual characters.
3208 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3209 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3210 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3213 # Make sure we can run config.sub.
3214 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3215 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3218 $as_echo_n "checking build system type... " >&6; }
3219 if test "${ac_cv_build+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3222 ac_build_alias
=$build_alias
3223 test "x$ac_build_alias" = x
&&
3224 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3225 test "x$ac_build_alias" = x
&&
3226 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3227 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3228 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3232 $as_echo "$ac_cv_build" >&6; }
3233 case $ac_cv_build in
3235 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3238 ac_save_IFS
=$IFS; IFS
='-'
3244 # Remember, the first character of IFS is used to create $*,
3245 # except with old shells:
3248 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3252 $as_echo_n "checking host system type... " >&6; }
3253 if test "${ac_cv_host+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3256 if test "x$host_alias" = x
; then
3257 ac_cv_host
=$ac_cv_build
3259 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3260 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3265 $as_echo "$ac_cv_host" >&6; }
3268 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3271 ac_save_IFS
=$IFS; IFS
='-'
3277 # Remember, the first character of IFS is used to create $*,
3278 # except with old shells:
3281 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3285 $as_echo_n "checking target system type... " >&6; }
3286 if test "${ac_cv_target+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3289 if test "x$target_alias" = x
; then
3290 ac_cv_target
=$ac_cv_host
3292 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3293 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3298 $as_echo "$ac_cv_target" >&6; }
3299 case $ac_cv_target in
3301 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3303 target
=$ac_cv_target
3304 ac_save_IFS
=$IFS; IFS
='-'
3310 # Remember, the first character of IFS is used to create $*,
3311 # except with old shells:
3314 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3317 # The aliases save the names the user supplied, while $host etc.
3318 # will get canonicalized.
3319 test -n "$target_alias" &&
3320 test "$program_prefix$program_suffix$program_transform_name" = \
3322 program_prefix
=${target_alias}-
3324 # Determine the noncanonical target name, for directory use.
3325 case ${build_alias} in
3326 "") build_noncanonical
=${build} ;;
3327 *) build_noncanonical
=${build_alias} ;;
3330 case ${host_alias} in
3331 "") host_noncanonical
=${build_noncanonical} ;;
3332 *) host_noncanonical
=${host_alias} ;;
3335 case ${target_alias} in
3336 "") target_noncanonical
=${host_noncanonical} ;;
3337 *) target_noncanonical
=${target_alias} ;;
3343 # Used for constructing correct paths for offload compilers.
3344 real_target_noncanonical
=${target_noncanonical}
3347 # Determine the target- and build-specific subdirectories
3349 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3350 # have matching libraries, they should use host libraries: Makefile.tpl
3351 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3352 # However, they still use the build modules, because the corresponding
3353 # host modules (e.g. bison) are only built for the host when bootstrap
3355 # - build_subdir is where we find build modules, and never changes.
3356 # - build_libsubdir is where we find build libraries, and can be overridden.
3358 # Prefix 'build-' so this never conflicts with target_subdir.
3359 build_subdir
="build-${build_noncanonical}"
3361 # Check whether --with-build-libsubdir was given.
3362 if test "${with_build_libsubdir+set}" = set; then :
3363 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3365 build_libsubdir
="$build_subdir"
3368 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3369 if ( test $srcdir = .
&& test -d gcc
) \
3370 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3371 host_subdir
="host-${host_noncanonical}"
3376 target_subdir
=${target_noncanonical}
3379 # Set program_transform_name
3380 test "$program_prefix" != NONE
&&
3381 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3382 # Use a double $ so make ignores it.
3383 test "$program_suffix" != NONE
&&
3384 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3385 # Double any \ or $.
3386 # By default was `s,x,x', remove it if useless.
3387 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3388 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3391 # Check for bogus environment variables.
3392 # Test if LIBRARY_PATH contains the notation for the current directory
3393 # since this would lead to problems installing/building glibc.
3394 # LIBRARY_PATH contains the current directory if one of the following
3396 # - one of the terminals (":" and ";") is the first or last sign
3397 # - two terminals occur directly after each other
3398 # - the path contains an element with a dot in it
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3400 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3401 case ${LIBRARY_PATH} in
3402 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3403 library_path_setting
="contains current directory"
3406 library_path_setting
="ok"
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3410 $as_echo "$library_path_setting" >&6; }
3411 if test "$library_path_setting" != "ok"; then
3413 *** LIBRARY_PATH shouldn't contain the current directory when
3414 *** building gcc. Please change the environment variable
3415 *** and run configure again." "$LINENO" 5
3418 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3419 # since this would lead to problems installing/building glibc.
3420 # GCC_EXEC_PREFIX contains the current directory if one of the following
3422 # - one of the terminals (":" and ";") is the first or last sign
3423 # - two terminals occur directly after each other
3424 # - the path contains an element with a dot in it
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3426 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3427 case ${GCC_EXEC_PREFIX} in
3428 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3429 gcc_exec_prefix_setting
="contains current directory"
3432 gcc_exec_prefix_setting
="ok"
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3436 $as_echo "$gcc_exec_prefix_setting" >&6; }
3437 if test "$gcc_exec_prefix_setting" != "ok"; then
3439 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3440 *** building gcc. Please change the environment variable
3441 *** and run configure again." "$LINENO" 5
3448 # Specify the local prefix
3451 # Check whether --with-local-prefix was given.
3452 if test "${with_local_prefix+set}" = set; then :
3453 withval
=$with_local_prefix; case "${withval}" in
3454 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3456 *) local_prefix
=$with_local_prefix ;;
3461 # Default local prefix if it is empty
3462 if test x
$local_prefix = x
; then
3463 local_prefix
=/usr
/local
3467 # Check whether --with-native-system-header-dir was given.
3468 if test "${with_native_system_header_dir+set}" = set; then :
3469 withval
=$with_native_system_header_dir;
3470 case ${with_native_system_header_dir} in
3471 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3472 /* |
[A-Za-z
]:[\\/]*) ;;
3473 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3475 configured_native_system_header_dir
="${withval}"
3478 configured_native_system_header_dir
=
3483 # Check whether --with-build-sysroot was given.
3484 if test "${with_build_sysroot+set}" = set; then :
3485 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3486 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3489 SYSROOT_CFLAGS_FOR_TARGET
=
3494 if test "x$prefix" = xNONE
; then
3495 test_prefix
=/usr
/local
3499 if test "x$exec_prefix" = xNONE
; then
3500 test_exec_prefix
=$test_prefix
3502 test_exec_prefix
=$exec_prefix
3506 # Check whether --with-sysroot was given.
3507 if test "${with_sysroot+set}" = set; then :
3508 withval
=$with_sysroot;
3509 case ${with_sysroot} in
3511 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3513 case ${with_sysroot} in
3514 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3515 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3518 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3519 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3521 case ${TARGET_SYSTEM_ROOT} in
3522 "${test_prefix}"|
"${test_prefix}/"*|\
3523 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3524 '${prefix}'|
'${prefix}/'*|\
3525 '${exec_prefix}'|
'${exec_prefix}/'*)
3526 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3527 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3534 TARGET_SYSTEM_ROOT_DEFINE
=
3535 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3543 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3544 # passed in by the toplevel make and thus we'd get different behavior
3545 # depending on where we built the sources.
3546 gcc_gxx_include_dir
=
3547 # Specify the g++ header file directory
3549 # Check whether --with-gxx-include-dir was given.
3550 if test "${with_gxx_include_dir+set}" = set; then :
3551 withval
=$with_gxx_include_dir; case "${withval}" in
3552 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3554 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3559 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3560 if test x
${gcc_gxx_include_dir} = x
; then
3561 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3562 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3564 libstdcxx_incdir
='include/c++/$(version)'
3565 if test x
$host != x
$target; then
3566 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3568 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3572 gcc_gxx_include_dir_add_sysroot
=0
3573 if test "${with_sysroot+set}" = set; then
3574 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3575 if test "${gcc_gxx_without_sysroot}"; then
3576 if test x
${with_sysroot} != x
/; then
3577 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3579 gcc_gxx_include_dir_add_sysroot
=1
3584 # Check whether --with-cpp_install_dir was given.
3585 if test "${with_cpp_install_dir+set}" = set; then :
3586 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3587 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3588 elif test x
$withval != xno
; then
3589 cpp_install_dir
=$withval
3594 # We would like to our source tree to be readonly. However when releases or
3595 # pre-releases are generated, the flex/bison generated files as well as the
3596 # various formats of manuals need to be included along with the rest of the
3597 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3601 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3602 # Check whether --enable-generated-files-in-srcdir was given.
3603 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3604 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3606 generated_files_in_srcdir
=no
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3611 $as_echo "$generated_files_in_srcdir" >&6; }
3613 if test "$generated_files_in_srcdir" = "yes"; then
3620 # -------------------
3621 # Find default linker
3622 # -------------------
3626 # Check whether --with-gnu-ld was given.
3627 if test "${with_gnu_ld+set}" = set; then :
3628 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3634 # With pre-defined ld
3636 # Check whether --with-ld was given.
3637 if test "${with_ld+set}" = set; then :
3638 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3641 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3642 if test ! -x "$DEFAULT_LINKER"; then
3643 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3644 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3648 cat >>confdefs.h
<<_ACEOF
3649 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3655 $as_echo_n "checking whether a default linker was specified... " >&6; }
3656 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3657 if test x
"$gnu_ld_flag" = x
"no"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3659 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3662 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3669 # With demangler in GNU ld
3671 # Check whether --with-demangler-in-ld was given.
3672 if test "${with_demangler_in_ld+set}" = set; then :
3673 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3679 # ----------------------
3680 # Find default assembler
3681 # ----------------------
3685 # Check whether --with-gnu-as was given.
3686 if test "${with_gnu_as+set}" = set; then :
3687 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3694 # Check whether --with-as was given.
3695 if test "${with_as+set}" = set; then :
3696 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3699 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3700 if test ! -x "$DEFAULT_ASSEMBLER"; then
3701 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3702 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3706 cat >>confdefs.h
<<_ACEOF
3707 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3713 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3714 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3715 if test x
"$gas_flag" = x
"no"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3717 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3720 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3731 # If a non-executable a.out is present (e.g. created by GNU as above even if
3732 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3733 # file, even when creating an executable, so an execution test fails.
3734 # Remove possible default executable files to avoid this.
3736 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3737 # Autoconf includes it.
3738 rm -f a.out a.exe b.out
3740 # Find the native compiler
3742 ac_cpp
='$CPP $CPPFLAGS'
3743 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3748 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_CC+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3754 if test -n "$CC"; then
3755 ac_cv_prog_CC
="$CC" # Let the user override the test.
3757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir
=.
3762 for ac_exec_ext
in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 if test -n "$CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777 $as_echo "$CC" >&6; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3785 if test -z "$ac_cv_prog_CC"; then
3787 # Extract the first word of "gcc", so it can be a program name with args.
3788 set dummy gcc
; ac_word
=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3801 test -z "$as_dir" && as_dir
=.
3802 for ac_exec_ext
in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_ac_ct_CC
="gcc"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3823 if test "x$ac_ct_CC" = x
; then
3826 case $cross_compiling:$ac_tool_warned in
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830 ac_tool_warned
=yes ;;
3838 if test -z "$CC"; then
3839 if test -n "$ac_tool_prefix"; then
3840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3841 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if test "${ac_cv_prog_CC+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC
="$CC" # Let the user override the test.
3850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3854 test -z "$as_dir" && as_dir
=.
3855 for ac_exec_ext
in '' $ac_executable_extensions; do
3856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 if test -n "$CC"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870 $as_echo "$CC" >&6; }
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3879 if test -z "$CC"; then
3880 # Extract the first word of "cc", so it can be a program name with args.
3881 set dummy cc
; ac_word
=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_CC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3887 if test -n "$CC"; then
3888 ac_cv_prog_CC
="$CC" # Let the user override the test.
3891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir
=.
3896 for ac_exec_ext
in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3899 ac_prog_rejected
=yes
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 if test $ac_prog_rejected = yes; then
3911 # We found a bogon in the path, so make sure we never use it.
3912 set dummy
$ac_cv_prog_CC
3914 if test $# != 0; then
3915 # We chose a different compiler from the bogus one.
3916 # However, it has the same basename, so the bogon will be chosen
3917 # first if we set CC to just the basename; use the full file name.
3919 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3925 if test -n "$CC"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3927 $as_echo "$CC" >&6; }
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3935 if test -z "$CC"; then
3936 if test -n "$ac_tool_prefix"; then
3937 for ac_prog
in cl.exe
3939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3940 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if test "${ac_cv_prog_CC+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3946 if test -n "$CC"; then
3947 ac_cv_prog_CC
="$CC" # Let the user override the test.
3949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3953 test -z "$as_dir" && as_dir
=.
3954 for ac_exec_ext
in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 if test -n "$CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969 $as_echo "$CC" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3976 test -n "$CC" && break
3979 if test -z "$CC"; then
3981 for ac_prog
in cl.exe
3983 # Extract the first word of "$ac_prog", so it can be a program name with args.
3984 set dummy
$ac_prog; ac_word
=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3990 if test -n "$ac_ct_CC"; then
3991 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3997 test -z "$as_dir" && as_dir
=.
3998 for ac_exec_ext
in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_ac_ct_CC
="$ac_prog"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4011 if test -n "$ac_ct_CC"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4013 $as_echo "$ac_ct_CC" >&6; }
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4020 test -n "$ac_ct_CC" && break
4023 if test "x$ac_ct_CC" = x
; then
4026 case $cross_compiling:$ac_tool_warned in
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4030 ac_tool_warned
=yes ;;
4039 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error
"no acceptable C compiler found in \$PATH
4042 See \`config.log' for more details." "$LINENO" 5; }
4044 # Provide some information about the compiler.
4045 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4048 for ac_option
in --version -v -V -qversion; do
4049 { { ac_try
="$ac_compiler $ac_option >&5"
4051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4058 if test -s conftest.err; then
4060 ... rest of stderr output deleted ...
4061 10q' conftest.err >conftest.er1
4062 cat conftest.er1 >&5
4063 rm -f conftest.er1 conftest.err
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4080 ac_clean_files_save=$ac_clean_files
4081 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4082 # Try to create an executable without -o first, disregard a.out.
4083 # It will help us diagnose broken compilers, and finding out an intuition
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4086 $as_echo_n "checking for C compiler default output file name... " >&6; }
4087 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4089 # The possible output files:
4090 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4093 for ac_file in $ac_files
4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4097 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4102 if { { ac_try="$ac_link_default"
4104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4105 *) ac_try_echo
=$ac_try;;
4107 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108 $as_echo "$ac_try_echo"; } >&5
4109 (eval "$ac_link_default") 2>&5
4111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }; then :
4113 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4114 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4115 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4116 # so that the user can short-circuit this test for compilers unknown to
4118 for ac_file
in $ac_files ''
4120 test -f "$ac_file" ||
continue
4122 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4125 # We found the default executable, but exeext='' is most
4129 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4131 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4133 # We set ac_cv_exeext here because the later test for it is not
4134 # safe: cross compilers may not add the suffix if given an `-o'
4135 # argument, so we may need to know it at that point already.
4136 # Even if this section looks crufty: it has the advantage of
4143 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4149 $as_echo "$ac_file" >&6; }
4150 if test -z "$ac_file"; then :
4151 $as_echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.
$ac_ext >&5
4154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4156 { as_fn_set_status
77
4157 as_fn_error
"C compiler cannot create executables
4158 See \`config.log' for more details." "$LINENO" 5; }; }
4160 ac_exeext
=$ac_cv_exeext
4162 # Check that the compiler produces executables we can run. If not, either
4163 # the compiler is broken, or we cross compile.
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4165 $as_echo_n "checking whether the C compiler works... " >&6; }
4166 # If not cross compiling, check that we can run a simple program.
4167 if test "$cross_compiling" != yes; then
4168 if { ac_try
='./$ac_file'
4169 { { case "(($ac_try" in
4170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174 $as_echo "$ac_try_echo"; } >&5
4175 (eval "$ac_try") 2>&5
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; }; then
4181 if test "$cross_compiling" = maybe; then
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error "cannot run C compiled programs.
4187 If you meant to cross compile
, use \
`--host'.
4188 See \`config.log
' for more details." "$LINENO" 5; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4193 $as_echo "yes" >&6; }
4195 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4196 ac_clean_files=$ac_clean_files_save
4197 # Check that the compiler produces executables we can run. If not, either
4198 # the compiler is broken, or we cross compile.
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4200 $as_echo_n "checking whether we are cross compiling... " >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4202 $as_echo "$cross_compiling" >&6; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4205 $as_echo_n "checking for suffix of executables... " >&6; }
4206 if { { ac_try="$ac_link"
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_link") 2>&5
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }; then :
4217 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4218 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4219 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4221 for ac_file
in conftest.exe conftest conftest.
*; do
4222 test -f "$ac_file" ||
continue
4224 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4225 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4233 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4234 See \`config.log' for more details." "$LINENO" 5; }
4236 rm -f conftest
$ac_cv_exeext
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4238 $as_echo "$ac_cv_exeext" >&6; }
4240 rm -f conftest.
$ac_ext
4241 EXEEXT
=$ac_cv_exeext
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4244 $as_echo_n "checking for suffix of object files... " >&6; }
4245 if test "${ac_cv_objext+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4259 rm -f conftest.o conftest.obj
4260 if { { ac_try
="$ac_compile"
4262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4266 $as_echo "$ac_try_echo"; } >&5
4267 (eval "$ac_compile") 2>&5
4269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270 test $ac_status = 0; }; then :
4271 for ac_file in conftest.o conftest.obj conftest.*; do
4272 test -f "$ac_file" || continue;
4274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4280 $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error "cannot compute suffix of object files
: cannot compile
4286 See \
`config.log' for more details." "$LINENO" 5; }
4288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4291 $as_echo "$ac_cv_objext" >&6; }
4292 OBJEXT=$ac_cv_objext
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4295 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4296 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4313 if ac_fn_c_try_compile "$LINENO"; then :
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4323 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4324 if test $ac_compiler_gnu = yes; then
4329 ac_test_CFLAGS=${CFLAGS+set}
4330 ac_save_CFLAGS=$CFLAGS
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4332 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4333 if test "${ac_cv_prog_cc_g+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4336 ac_save_c_werror_flag=$ac_c_werror_flag
4337 ac_c_werror_flag=yes
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4351 if ac_fn_c_try_compile "$LINENO"; then :
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4366 if ac_fn_c_try_compile "$LINENO"; then :
4369 ac_c_werror_flag=$ac_save_c_werror_flag
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4382 if ac_fn_c_try_compile "$LINENO"; then :
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 ac_c_werror_flag=$ac_save_c_werror_flag
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4393 $as_echo "$ac_cv_prog_cc_g" >&6; }
4394 if test "$ac_test_CFLAGS" = set; then
4395 CFLAGS=$ac_save_CFLAGS
4396 elif test $ac_cv_prog_cc_g = yes; then
4397 if test "$GCC" = yes; then
4403 if test "$GCC" = yes; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4410 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4411 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4414 ac_cv_prog_cc_c89=no
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4420 #include <sys/types.h>
4421 #include <sys/stat.h>
4422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4423 struct buf { int x; };
4424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4425 static char *e (p, i)
4431 static char *f (char * (*g) (char **, int), char **p, ...)
4436 s = g (p, va_arg (v,int));
4441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4442 function prototypes and stuff, but not '\xHH' hex character constants.
4443 These don't provoke an error unfortunately, instead are silently treated
4444 as 'x'. The following induces an error, until -std is added to get
4445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4446 array size at least. It's necessary to write '\x00'==0 to get something
4447 that's true only with -std. */
4448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4450 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4451 inside strings and character constants. */
4453 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4455 int test (int i, double x);
4456 struct s1 {int (*f) (int a);};
4457 struct s2 {int (*f) (double a);};
4458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4464 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4469 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4470 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4472 CC="$ac_save_CC $ac_arg"
4473 if ac_fn_c_try_compile "$LINENO"; then :
4474 ac_cv_prog_cc_c89=$ac_arg
4476 rm -f core conftest.err conftest.$ac_objext
4477 test "x$ac_cv_prog_cc_c89" != "xno" && break
4479 rm -f conftest.$ac_ext
4484 case "x$ac_cv_prog_cc_c89" in
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4487 $as_echo "none needed" >&6; } ;;
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4490 $as_echo "unsupported" >&6; } ;;
4492 CC="$CC $ac_cv_prog_cc_c89"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4494 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4496 if test "x$ac_cv_prog_cc_c89" != xno; then :
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507 ac_cpp='$CXXCPP $CPPFLAGS'
4508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4511 if test -z "$CXX"; then
4512 if test -n "$CCC"; then
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_CXX+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4525 if test -n "$CXX"; then
4526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 if test -n "$CXX"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4548 $as_echo "$CXX" >&6; }
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4555 test -n "$CXX" && break
4558 if test -z "$CXX"; then
4560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy $ac_prog; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4569 if test -n "$ac_ct_CXX"; then
4570 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CXX="$ac_prog"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4590 if test -n "$ac_ct_CXX"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4592 $as_echo "$ac_ct_CXX" >&6; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4599 test -n "$ac_ct_CXX" && break
4602 if test "x$ac_ct_CXX" = x; then
4605 case $cross_compiling:$ac_tool_warned in
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4617 # Provide some information about the compiler.
4618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4621 for ac_option in --version -v -V -qversion; do
4622 { { ac_try="$ac_compiler $ac_option >&5"
4624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4625 *) ac_try_echo
=$ac_try;;
4627 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4631 if test -s conftest.err
; then
4633 ... rest of stderr output deleted ...
4634 10q' conftest.err
>conftest.er1
4635 cat conftest.er1
>&5
4636 rm -f conftest.er1 conftest.err
4638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4639 test $ac_status = 0; }
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4643 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4661 if ac_fn_cxx_try_compile
"$LINENO"; then :
4666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4667 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4671 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4672 if test $ac_compiler_gnu = yes; then
4677 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4678 ac_save_CXXFLAGS
=$CXXFLAGS
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4680 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4681 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4684 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4685 ac_cxx_werror_flag
=yes
4688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4699 if ac_fn_cxx_try_compile
"$LINENO"; then :
4700 ac_cv_prog_cxx_g
=yes
4703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4714 if ac_fn_cxx_try_compile
"$LINENO"; then :
4717 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4730 if ac_fn_cxx_try_compile
"$LINENO"; then :
4731 ac_cv_prog_cxx_g
=yes
4733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4738 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4741 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4742 if test "$ac_test_CXXFLAGS" = set; then
4743 CXXFLAGS
=$ac_save_CXXFLAGS
4744 elif test $ac_cv_prog_cxx_g = yes; then
4745 if test "$GXX" = yes; then
4751 if test "$GXX" = yes; then
4758 ac_cpp
='$CPP $CPPFLAGS'
4759 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4766 if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4768 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4774 if test -n "$GNATBIND"; then
4775 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4781 test -z "$as_dir" && as_dir
=.
4782 for ac_exec_ext
in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 GNATBIND
=$ac_cv_prog_GNATBIND
4795 if test -n "$GNATBIND"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4797 $as_echo "$GNATBIND" >&6; }
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4805 if test -z "$ac_cv_prog_GNATBIND"; then
4806 ac_ct_GNATBIND
=$GNATBIND
4807 # Extract the first word of "gnatbind", so it can be a program name with args.
4808 set dummy gnatbind
; ac_word
=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4814 if test -n "$ac_ct_GNATBIND"; then
4815 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4821 test -z "$as_dir" && as_dir
=.
4822 for ac_exec_ext
in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4835 if test -n "$ac_ct_GNATBIND"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4837 $as_echo "$ac_ct_GNATBIND" >&6; }
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4843 if test "x$ac_ct_GNATBIND" = x
; then
4846 case $cross_compiling:$ac_tool_warned in
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4850 ac_tool_warned
=yes ;;
4852 GNATBIND
=$ac_ct_GNATBIND
4855 GNATBIND
="$ac_cv_prog_GNATBIND"
4858 if test -n "$ac_tool_prefix"; then
4859 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4860 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4866 if test -n "$GNATMAKE"; then
4867 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir
=.
4874 for ac_exec_ext
in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 GNATMAKE
=$ac_cv_prog_GNATMAKE
4887 if test -n "$GNATMAKE"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4889 $as_echo "$GNATMAKE" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4897 if test -z "$ac_cv_prog_GNATMAKE"; then
4898 ac_ct_GNATMAKE
=$GNATMAKE
4899 # Extract the first word of "gnatmake", so it can be a program name with args.
4900 set dummy gnatmake
; ac_word
=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4906 if test -n "$ac_ct_GNATMAKE"; then
4907 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir
=.
4914 for ac_exec_ext
in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4927 if test -n "$ac_ct_GNATMAKE"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4929 $as_echo "$ac_ct_GNATMAKE" >&6; }
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4935 if test "x$ac_ct_GNATMAKE" = x
; then
4938 case $cross_compiling:$ac_tool_warned in
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned
=yes ;;
4944 GNATMAKE
=$ac_ct_GNATMAKE
4947 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4951 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4952 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4955 cat >conftest.adb
<<EOF
4956 procedure conftest is begin null; end conftest;
4958 acx_cv_cc_gcc_supports_ada
=no
4959 # There is a bug in old released versions of GCC which causes the
4960 # driver to exit successfully when the appropriate language module
4961 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4962 # Therefore we must check for the error message as well as an
4963 # unsuccessful exit.
4964 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4965 # given a .adb file, but produce no object file. So we must check
4966 # if an object file was really produced to guard against this.
4967 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4968 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4969 acx_cv_cc_gcc_supports_ada
=yes
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4974 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4976 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4983 # Do configure tests with the C++ compiler, since that's what we build with.
4985 ac_cpp
='$CXXCPP $CPPFLAGS'
4986 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4991 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4992 # optimizations to be activated explicitly by the toplevel.
4994 */prev-gcc
/xgcc
*) ;;
4995 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4996 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5001 # Determine PICFLAG for target gnatlib.
5007 # PIC is the default on some targets or must not be used.
5009 # For darwin, common symbols are not allowed in MH_DYLIB files
5011 # If we are using a compiler supporting mdynamic-no-pic
5012 # and the option has been tested as safe to add, then cancel
5013 # it here, since the code generated is incompatible with shared
5015 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5016 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5020 # PIC is the default.
5023 # PIC is the default for 64-bit PA HP-UX.
5025 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5027 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5029 i
[34567]86-*-interix[3-9]*)
5030 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5031 # Instead, we relocate shared libraries at runtime.
5033 i
[34567]86-*-nto-qnx*)
5034 # QNX uses GNU C++, but need to define -shared option too, otherwise
5036 PICFLAG_FOR_TARGET
='-fPIC -shared'
5038 i
[34567]86-pc-msdosdjgpp*)
5039 # DJGPP does not support shared libraries at all.
5042 # On IA64 HP-UX, PIC is the default but the pic flag
5043 # sets the default TLS model and affects inlining.
5044 PICFLAG_FOR_TARGET
=-fPIC
5047 # PIC is the default.
5049 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5050 # All AIX code is PIC.
5053 # Some targets support both -fPIC and -fpic, but prefer the latter.
5055 i
[34567]86-*-* | x86_64-
*-*)
5056 PICFLAG_FOR_TARGET
=-fpic
5058 # FIXME: Override -fPIC default in libgcc only?
5059 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5060 PICFLAG_FOR_TARGET
=-fpic
5062 # FIXME: Simplify to sh*-*-netbsd*?
5063 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5064 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5065 PICFLAG_FOR_TARGET
=-fpic
5067 # Default to -fPIC unless specified otherwise.
5069 PICFLAG_FOR_TARGET
=-fPIC
5073 # If the user explicitly uses -fpic/-fPIC, keep that.
5074 case "${CFLAGS_FOR_TARGET}" in
5076 PICFLAG_FOR_TARGET
=-fpic
5079 PICFLAG_FOR_TARGET
=-fPIC
5085 # -------------------------
5086 # Check C compiler features
5087 # -------------------------
5091 ac_cpp
='$CXXCPP $CPPFLAGS'
5092 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5096 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5097 if test -z "$CXXCPP"; then
5098 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5101 # Double quotes because CXXCPP needs to be expanded
5102 for CXXCPP
in "$CXX -E" "/lib/cpp"
5105 for ac_cxx_preproc_warn_flag
in '' yes
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5116 # include <limits.h>
5118 # include <assert.h>
5122 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5125 # Broken: fails on valid input.
5128 rm -f conftest.err conftest.
$ac_ext
5130 # OK, works on sane cases. Now check whether nonexistent headers
5131 # can be detected and how.
5132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #include <ac_nonexistent.h>
5136 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5137 # Broken: success on invalid input.
5140 # Passes both tests.
5144 rm -f conftest.err conftest.
$ac_ext
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.err conftest.
$ac_ext
5149 if $ac_preproc_ok; then :
5154 ac_cv_prog_CXXCPP
=$CXXCPP
5157 CXXCPP
=$ac_cv_prog_CXXCPP
5159 ac_cv_prog_CXXCPP
=$CXXCPP
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5162 $as_echo "$CXXCPP" >&6; }
5164 for ac_cxx_preproc_warn_flag
in '' yes
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5175 # include <limits.h>
5177 # include <assert.h>
5181 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5184 # Broken: fails on valid input.
5187 rm -f conftest.err conftest.
$ac_ext
5189 # OK, works on sane cases. Now check whether nonexistent headers
5190 # can be detected and how.
5191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #include <ac_nonexistent.h>
5195 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5196 # Broken: success on invalid input.
5199 # Passes both tests.
5203 rm -f conftest.err conftest.
$ac_ext
5206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 rm -f conftest.err conftest.
$ac_ext
5208 if $ac_preproc_ok; then :
5211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5213 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5214 See \`config.log' for more details." "$LINENO" 5; }
5218 ac_cpp
='$CXXCPP $CPPFLAGS'
5219 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5225 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5226 if test "${ac_cv_path_GREP+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5229 if test -z "$GREP"; then
5230 ac_path_GREP_found
=false
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5233 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5236 test -z "$as_dir" && as_dir
=.
5237 for ac_prog
in grep ggrep
; do
5238 for ac_exec_ext
in '' $ac_executable_extensions; do
5239 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5240 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5241 # Check for GNU ac_path_GREP and select it if it is found.
5242 # Check for GNU $ac_path_GREP
5243 case `"$ac_path_GREP" --version 2>&1` in
5245 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5248 $as_echo_n 0123456789 >"conftest.in"
5251 cat "conftest.in" "conftest.in" >"conftest.tmp"
5252 mv "conftest.tmp" "conftest.in"
5253 cp "conftest.in" "conftest.nl"
5254 $as_echo 'GREP' >> "conftest.nl"
5255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5256 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5257 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5259 # Best one so far, save it but keep looking for a better one
5260 ac_cv_path_GREP
="$ac_path_GREP"
5261 ac_path_GREP_max
=$ac_count
5263 # 10*(2^10) chars as input seems more than enough
5264 test $ac_count -gt 10 && break
5266 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5269 $ac_path_GREP_found && break 3
5274 if test -z "$ac_cv_path_GREP"; then
5275 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5278 ac_cv_path_GREP
=$GREP
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5283 $as_echo "$ac_cv_path_GREP" >&6; }
5284 GREP
="$ac_cv_path_GREP"
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5288 $as_echo_n "checking for egrep... " >&6; }
5289 if test "${ac_cv_path_EGREP+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5292 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5293 then ac_cv_path_EGREP
="$GREP -E"
5295 if test -z "$EGREP"; then
5296 ac_path_EGREP_found
=false
5297 # Loop through the user's path and test for each of PROGNAME-LIST
5298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5299 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5302 test -z "$as_dir" && as_dir
=.
5303 for ac_prog
in egrep; do
5304 for ac_exec_ext
in '' $ac_executable_extensions; do
5305 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5307 # Check for GNU ac_path_EGREP and select it if it is found.
5308 # Check for GNU $ac_path_EGREP
5309 case `"$ac_path_EGREP" --version 2>&1` in
5311 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5314 $as_echo_n 0123456789 >"conftest.in"
5317 cat "conftest.in" "conftest.in" >"conftest.tmp"
5318 mv "conftest.tmp" "conftest.in"
5319 cp "conftest.in" "conftest.nl"
5320 $as_echo 'EGREP' >> "conftest.nl"
5321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5322 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5323 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5325 # Best one so far, save it but keep looking for a better one
5326 ac_cv_path_EGREP
="$ac_path_EGREP"
5327 ac_path_EGREP_max
=$ac_count
5329 # 10*(2^10) chars as input seems more than enough
5330 test $ac_count -gt 10 && break
5332 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5335 $ac_path_EGREP_found && break 3
5340 if test -z "$ac_cv_path_EGREP"; then
5341 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5344 ac_cv_path_EGREP
=$EGREP
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5350 $as_echo "$ac_cv_path_EGREP" >&6; }
5351 EGREP
="$ac_cv_path_EGREP"
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5355 $as_echo_n "checking for ANSI C header files... " >&6; }
5356 if test "${ac_cv_header_stdc+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5374 if ac_fn_cxx_try_compile
"$LINENO"; then :
5375 ac_cv_header_stdc
=yes
5377 ac_cv_header_stdc
=no
5379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5381 if test $ac_cv_header_stdc = yes; then
5382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5389 $EGREP "memchr" >/dev
/null
2>&1; then :
5392 ac_cv_header_stdc
=no
5398 if test $ac_cv_header_stdc = yes; then
5399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5406 $EGREP "free" >/dev
/null
2>&1; then :
5409 ac_cv_header_stdc
=no
5415 if test $ac_cv_header_stdc = yes; then
5416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5417 if test "$cross_compiling" = yes; then :
5420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5424 #if ((' ' & 0x0FF) == 0x020)
5425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5428 # define ISLOWER(c) \
5429 (('a' <= (c) && (c) <= 'i') \
5430 || ('j' <= (c) && (c) <= 'r') \
5431 || ('s' <= (c) && (c) <= 'z'))
5432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5440 for (i = 0; i < 256; i++)
5441 if (XOR (islower (i), ISLOWER (i))
5442 || toupper (i) != TOUPPER (i))
5447 if ac_fn_cxx_try_run
"$LINENO"; then :
5450 ac_cv_header_stdc
=no
5452 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5453 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5459 $as_echo "$ac_cv_header_stdc" >&6; }
5460 if test $ac_cv_header_stdc = yes; then
5462 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5466 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5467 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5468 inttypes.h stdint.h unistd.h
5470 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5473 eval as_val
=\$
$as_ac_Header
5474 if test "x$as_val" = x
""yes; then :
5475 cat >>confdefs.h
<<_ACEOF
5476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5485 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5486 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5493 if test "$MINIX" = yes; then
5495 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5498 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5501 $as_echo "#define _MINIX 1" >>confdefs.h
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5507 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5508 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5514 # define __EXTENSIONS__ 1
5515 $ac_includes_default
5524 if ac_fn_cxx_try_compile
"$LINENO"; then :
5525 ac_cv_safe_to_define___extensions__
=yes
5527 ac_cv_safe_to_define___extensions__
=no
5529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5532 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5533 test $ac_cv_safe_to_define___extensions__ = yes &&
5534 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5536 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5538 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5540 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5542 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5546 ac_cpp
='$CPP $CPPFLAGS'
5547 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5551 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5552 # On Suns, sometimes $CPP names a directory.
5553 if test -n "$CPP" && test -d "$CPP"; then
5556 if test -z "$CPP"; then
5557 if test "${ac_cv_prog_CPP+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5560 # Double quotes because CPP needs to be expanded
5561 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5564 for ac_c_preproc_warn_flag
in '' yes
5566 # Use a header file that comes with gcc, so configuring glibc
5567 # with a fresh cross-compiler works.
5568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5569 # <limits.h> exists even on freestanding compilers.
5570 # On the NeXT, cc -E runs the code through the compiler's parser,
5571 # not just through cpp. "Syntax error" is here to catch this case.
5572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5575 # include <limits.h>
5577 # include <assert.h>
5581 if ac_fn_c_try_cpp
"$LINENO"; then :
5584 # Broken: fails on valid input.
5587 rm -f conftest.err conftest.
$ac_ext
5589 # OK, works on sane cases. Now check whether nonexistent headers
5590 # can be detected and how.
5591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #include <ac_nonexistent.h>
5595 if ac_fn_c_try_cpp
"$LINENO"; then :
5596 # Broken: success on invalid input.
5599 # Passes both tests.
5603 rm -f conftest.err conftest.
$ac_ext
5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5607 rm -f conftest.err conftest.
$ac_ext
5608 if $ac_preproc_ok; then :
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5621 $as_echo "$CPP" >&6; }
5623 for ac_c_preproc_warn_flag
in '' yes
5625 # Use a header file that comes with gcc, so configuring glibc
5626 # with a fresh cross-compiler works.
5627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628 # <limits.h> exists even on freestanding compilers.
5629 # On the NeXT, cc -E runs the code through the compiler's parser,
5630 # not just through cpp. "Syntax error" is here to catch this case.
5631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5634 # include <limits.h>
5636 # include <assert.h>
5640 if ac_fn_c_try_cpp
"$LINENO"; then :
5643 # Broken: fails on valid input.
5646 rm -f conftest.err conftest.
$ac_ext
5648 # OK, works on sane cases. Now check whether nonexistent headers
5649 # can be detected and how.
5650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include <ac_nonexistent.h>
5654 if ac_fn_c_try_cpp
"$LINENO"; then :
5655 # Broken: success on invalid input.
5658 # Passes both tests.
5662 rm -f conftest.err conftest.
$ac_ext
5665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5666 rm -f conftest.err conftest.
$ac_ext
5667 if $ac_preproc_ok; then :
5670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5672 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5673 See \`config.log' for more details." "$LINENO" 5; }
5677 ac_cpp
='$CXXCPP $CPPFLAGS'
5678 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5683 $as_echo_n "checking for inline... " >&6; }
5684 if test "${ac_cv_c_inline+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5688 for ac_kw
in inline __inline__ __inline
; do
5689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5693 static $ac_kw foo_t static_foo () {return 0; }
5694 $ac_kw foo_t foo () {return 0; }
5698 if ac_fn_cxx_try_compile
"$LINENO"; then :
5699 ac_cv_c_inline
=$ac_kw
5701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5702 test "$ac_cv_c_inline" != no
&& break
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5707 $as_echo "$ac_cv_c_inline" >&6; }
5709 case $ac_cv_c_inline in
5712 case $ac_cv_c_inline in
5714 *) ac_val
=$ac_cv_c_inline;;
5716 cat >>confdefs.h
<<_ACEOF
5718 #define inline $ac_val
5725 # Check whether --enable-largefile was given.
5726 if test "${enable_largefile+set}" = set; then :
5727 enableval
=$enable_largefile;
5730 if test "$enable_largefile" != no
; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5733 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5734 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5737 ac_cv_sys_largefile_CC
=no
5738 if test "$GCC" != yes; then
5741 # IRIX 6.2 and later do not support large files by default,
5742 # so use the C compiler's -n32 option if that helps.
5743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 /* Check that off_t can represent 2**63 - 1 correctly.
5747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5748 since some C++ compilers masquerading as C compilers
5749 incorrectly reject 9223372036854775807. */
5750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5752 && LARGE_OFF_T % 2147483647 == 1)
5762 if ac_fn_cxx_try_compile
"$LINENO"; then :
5765 rm -f core conftest.err conftest.
$ac_objext
5767 if ac_fn_cxx_try_compile
"$LINENO"; then :
5768 ac_cv_sys_largefile_CC
=' -n32'; break
5770 rm -f core conftest.err conftest.
$ac_objext
5774 rm -f conftest.
$ac_ext
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5778 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5779 if test "$ac_cv_sys_largefile_CC" != no
; then
5780 CC
=$CC$ac_cv_sys_largefile_CC
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5784 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5785 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5786 $as_echo_n "(cached) " >&6
5789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <sys/types.h>
5792 /* Check that off_t can represent 2**63 - 1 correctly.
5793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5794 since some C++ compilers masquerading as C compilers
5795 incorrectly reject 9223372036854775807. */
5796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5798 && LARGE_OFF_T % 2147483647 == 1)
5808 if ac_fn_cxx_try_compile
"$LINENO"; then :
5809 ac_cv_sys_file_offset_bits
=no
; break
5811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 #define _FILE_OFFSET_BITS 64
5815 #include <sys/types.h>
5816 /* Check that off_t can represent 2**63 - 1 correctly.
5817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5818 since some C++ compilers masquerading as C compilers
5819 incorrectly reject 9223372036854775807. */
5820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5822 && LARGE_OFF_T % 2147483647 == 1)
5832 if ac_fn_cxx_try_compile
"$LINENO"; then :
5833 ac_cv_sys_file_offset_bits
=64; break
5835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5836 ac_cv_sys_file_offset_bits
=unknown
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5841 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5842 case $ac_cv_sys_file_offset_bits in #(
5845 cat >>confdefs.h
<<_ACEOF
5846 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5851 if test $ac_cv_sys_file_offset_bits = unknown
; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5853 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5854 if test "${ac_cv_sys_large_files+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 #include <sys/types.h>
5861 /* Check that off_t can represent 2**63 - 1 correctly.
5862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5863 since some C++ compilers masquerading as C compilers
5864 incorrectly reject 9223372036854775807. */
5865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5867 && LARGE_OFF_T % 2147483647 == 1)
5877 if ac_fn_cxx_try_compile
"$LINENO"; then :
5878 ac_cv_sys_large_files
=no
; break
5880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 #define _LARGE_FILES 1
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5901 if ac_fn_cxx_try_compile
"$LINENO"; then :
5902 ac_cv_sys_large_files
=1; break
5904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5905 ac_cv_sys_large_files
=unknown
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5910 $as_echo "$ac_cv_sys_large_files" >&6; }
5911 case $ac_cv_sys_large_files in #(
5914 cat >>confdefs.h
<<_ACEOF
5915 #define _LARGE_FILES $ac_cv_sys_large_files
5924 # sizeof(char) is 1 by definition.
5925 # The cast to long int works around a bug in the HP C Compiler
5926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5928 # This bug is HP SR number 8606223364.
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5930 $as_echo_n "checking size of void *... " >&6; }
5931 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5934 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5937 if test "$ac_cv_type_void_p" = yes; then
5938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 { as_fn_set_status
77
5941 as_fn_error
"cannot compute sizeof (void *)
5942 See \`config.log' for more details." "$LINENO" 5; }; }
5944 ac_cv_sizeof_void_p
=0
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5950 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5954 cat >>confdefs.h
<<_ACEOF
5955 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5959 # The cast to long int works around a bug in the HP C Compiler
5960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5962 # This bug is HP SR number 8606223364.
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5964 $as_echo_n "checking size of short... " >&6; }
5965 if test "${ac_cv_sizeof_short+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5968 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5971 if test "$ac_cv_type_short" = yes; then
5972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974 { as_fn_set_status
77
5975 as_fn_error
"cannot compute sizeof (short)
5976 See \`config.log' for more details." "$LINENO" 5; }; }
5978 ac_cv_sizeof_short
=0
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5984 $as_echo "$ac_cv_sizeof_short" >&6; }
5988 cat >>confdefs.h
<<_ACEOF
5989 #define SIZEOF_SHORT $ac_cv_sizeof_short
5993 # The cast to long int works around a bug in the HP C Compiler
5994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5996 # This bug is HP SR number 8606223364.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5998 $as_echo_n "checking size of int... " >&6; }
5999 if test "${ac_cv_sizeof_int+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6002 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6005 if test "$ac_cv_type_int" = yes; then
6006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { as_fn_set_status
77
6009 as_fn_error
"cannot compute sizeof (int)
6010 See \`config.log' for more details." "$LINENO" 5; }; }
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6018 $as_echo "$ac_cv_sizeof_int" >&6; }
6022 cat >>confdefs.h
<<_ACEOF
6023 #define SIZEOF_INT $ac_cv_sizeof_int
6027 # The cast to long int works around a bug in the HP C Compiler
6028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6030 # This bug is HP SR number 8606223364.
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6032 $as_echo_n "checking size of long... " >&6; }
6033 if test "${ac_cv_sizeof_long+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6036 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6039 if test "$ac_cv_type_long" = yes; then
6040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6042 { as_fn_set_status
77
6043 as_fn_error
"cannot compute sizeof (long)
6044 See \`config.log' for more details." "$LINENO" 5; }; }
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6052 $as_echo "$ac_cv_sizeof_long" >&6; }
6056 cat >>confdefs.h
<<_ACEOF
6057 #define SIZEOF_LONG $ac_cv_sizeof_long
6061 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6062 if test "x$ac_cv_type_long_long" = x
""yes; then :
6064 cat >>confdefs.h
<<_ACEOF
6065 #define HAVE_LONG_LONG 1
6068 # The cast to long int works around a bug in the HP C Compiler
6069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6071 # This bug is HP SR number 8606223364.
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6073 $as_echo_n "checking size of long long... " >&6; }
6074 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6077 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6080 if test "$ac_cv_type_long_long" = yes; then
6081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6083 { as_fn_set_status
77
6084 as_fn_error
"cannot compute sizeof (long long)
6085 See \`config.log' for more details." "$LINENO" 5; }; }
6087 ac_cv_sizeof_long_long
=0
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6093 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6097 cat >>confdefs.h
<<_ACEOF
6098 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6104 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6105 case $ac_cv_c_int8_t in #(
6109 cat >>confdefs.h
<<_ACEOF
6110 #define int8_t $ac_cv_c_int8_t
6115 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6116 case $ac_cv_c_int16_t in #(
6120 cat >>confdefs.h
<<_ACEOF
6121 #define int16_t $ac_cv_c_int16_t
6126 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6127 case $ac_cv_c_int32_t in #(
6131 cat >>confdefs.h
<<_ACEOF
6132 #define int32_t $ac_cv_c_int32_t
6137 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6138 case $ac_cv_c_int64_t in #(
6142 cat >>confdefs.h
<<_ACEOF
6143 #define int64_t $ac_cv_c_int64_t
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6150 $as_echo_n "checking for long long int... " >&6; }
6151 if test "${ac_cv_type_long_long_int+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6157 /* For now, do not test the preprocessor; as of 2007 there are too many
6158 implementations with broken preprocessors. Perhaps this can
6159 be revisited in 2012. In the meantime, code should not expect
6160 #if to work with literals wider than 32 bits. */
6161 /* Test literals. */
6162 long long int ll = 9223372036854775807ll;
6163 long long int nll = -9223372036854775807LL;
6164 unsigned long long int ull = 18446744073709551615ULL;
6165 /* Test constant expressions. */
6166 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6168 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6174 /* Test availability of runtime routines for shift and division. */
6175 long long int llmax = 9223372036854775807ll;
6176 unsigned long long int ullmax = 18446744073709551615ull;
6177 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6178 | (llmax / ll) | (llmax % ll)
6179 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6180 | (ullmax / ull) | (ullmax % ull));
6186 if ac_fn_cxx_try_link
"$LINENO"; then :
6187 if test "$cross_compiling" = yes; then :
6188 ac_cv_type_long_long_int
=yes
6190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6195 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6196 # define LLONG_MAX (HALF - 1 + HALF)
6201 long long int n = 1;
6205 long long int m = n << i;
6208 if (LLONG_MAX / 2 < m)
6216 if ac_fn_cxx_try_run
"$LINENO"; then :
6217 ac_cv_type_long_long_int
=yes
6219 ac_cv_type_long_long_int
=no
6221 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6222 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6226 ac_cv_type_long_long_int
=no
6228 rm -f core conftest.err conftest.
$ac_objext \
6229 conftest
$ac_exeext conftest.
$ac_ext
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6232 $as_echo "$ac_cv_type_long_long_int" >&6; }
6233 if test $ac_cv_type_long_long_int = yes; then
6235 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6241 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6242 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6244 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6247 test $ac_cv_type_long_long_int = yes \
6248 && ac_type
='long long int' \
6249 || ac_type
='long int'
6251 cat >>confdefs.h
<<_ACEOF
6252 #define intmax_t $ac_type
6259 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6260 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6262 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6265 for ac_type
in 'int' 'long int' 'long long int'; do
6266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 $ac_includes_default
6272 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6279 if ac_fn_cxx_try_compile
"$LINENO"; then :
6281 cat >>confdefs.h
<<_ACEOF
6282 #define intptr_t $ac_type
6287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6288 test -z "$ac_type" && break
6293 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6294 case $ac_cv_c_uint8_t in #(
6298 $as_echo "#define _UINT8_T 1" >>confdefs.h
6301 cat >>confdefs.h
<<_ACEOF
6302 #define uint8_t $ac_cv_c_uint8_t
6307 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6308 case $ac_cv_c_uint16_t in #(
6313 cat >>confdefs.h
<<_ACEOF
6314 #define uint16_t $ac_cv_c_uint16_t
6319 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6320 case $ac_cv_c_uint32_t in #(
6324 $as_echo "#define _UINT32_T 1" >>confdefs.h
6327 cat >>confdefs.h
<<_ACEOF
6328 #define uint32_t $ac_cv_c_uint32_t
6333 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6334 case $ac_cv_c_uint64_t in #(
6338 $as_echo "#define _UINT64_T 1" >>confdefs.h
6341 cat >>confdefs.h
<<_ACEOF
6342 #define uint64_t $ac_cv_c_uint64_t
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6349 $as_echo_n "checking for unsigned long long int... " >&6; }
6350 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6356 /* For now, do not test the preprocessor; as of 2007 there are too many
6357 implementations with broken preprocessors. Perhaps this can
6358 be revisited in 2012. In the meantime, code should not expect
6359 #if to work with literals wider than 32 bits. */
6360 /* Test literals. */
6361 long long int ll = 9223372036854775807ll;
6362 long long int nll = -9223372036854775807LL;
6363 unsigned long long int ull = 18446744073709551615ULL;
6364 /* Test constant expressions. */
6365 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6367 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6373 /* Test availability of runtime routines for shift and division. */
6374 long long int llmax = 9223372036854775807ll;
6375 unsigned long long int ullmax = 18446744073709551615ull;
6376 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6377 | (llmax / ll) | (llmax % ll)
6378 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6379 | (ullmax / ull) | (ullmax % ull));
6385 if ac_fn_cxx_try_link
"$LINENO"; then :
6386 ac_cv_type_unsigned_long_long_int
=yes
6388 ac_cv_type_unsigned_long_long_int
=no
6390 rm -f core conftest.err conftest.
$ac_objext \
6391 conftest
$ac_exeext conftest.
$ac_ext
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6394 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6395 if test $ac_cv_type_unsigned_long_long_int = yes; then
6397 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6403 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6404 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6406 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6409 test $ac_cv_type_unsigned_long_long_int = yes \
6410 && ac_type
='unsigned long long int' \
6411 || ac_type
='unsigned long int'
6413 cat >>confdefs.h
<<_ACEOF
6414 #define uintmax_t $ac_type
6421 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6422 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6424 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6427 for ac_type
in 'unsigned int' 'unsigned long int' \
6428 'unsigned long long int'; do
6429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 $ac_includes_default
6435 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6442 if ac_fn_cxx_try_compile
"$LINENO"; then :
6444 cat >>confdefs.h
<<_ACEOF
6445 #define uintptr_t $ac_type
6450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6451 test -z "$ac_type" && break
6468 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6469 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6472 # check what underlying integer type int64_t uses
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6474 $as_echo_n "checking for int64_t underlying type... " >&6; }
6475 if test "${ac_cv_int64_t_type+set}" = set; then :
6476 $as_echo_n "(cached) " >&6
6479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6482 #ifdef HAVE_STDINT_H
6485 template <typename T> struct X { };
6487 struct X<long> { typedef long t; };
6497 if ac_fn_cxx_try_compile
"$LINENO"; then :
6498 ac_cv_int64_t_type
=long
6500 ac_cv_int64_t_type
="long long"
6502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6505 $as_echo "$ac_cv_int64_t_type" >&6; }
6506 if test "$ac_cv_int64_t_type" = "long"; then
6508 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6514 #ifdef HAVE_STDINT_H
6517 template <typename T> struct X { };
6519 struct X<long long> { typedef long long t; };
6529 if ac_fn_cxx_try_compile
"$LINENO"; then :
6532 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6538 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6539 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6551 int a, b; std::swap(a,b);
6556 if ac_fn_cxx_try_compile
"$LINENO"; then :
6557 ac_cv_std_swap_in_utility
=yes
6559 ac_cv_std_swap_in_utility
=no
6561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6564 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6565 if test $ac_cv_std_swap_in_utility = yes; then
6567 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6571 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6572 # If the host compiler is affected by the bug, and we build with optimization
6573 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6574 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6575 # Since there is no reliable feature check for the presence of this bug,
6576 # we simply use a GCC version number check. (This should never trigger for
6577 # stages 2 or 3 of a native bootstrap.)
6579 if test "$GCC" = yes; then
6580 saved_CXXFLAGS
="$CXXFLAGS"
6582 # The following test compilation will succeed if and only if $CXX accepts
6583 # -fno-strict-aliasing *and* is older than GCC 4.3.
6584 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6586 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6590 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6591 #error compiler not affected by placement new aliasing bug
6595 if ac_fn_cxx_try_compile
"$LINENO"; then :
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6597 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6604 CXXFLAGS
="$saved_CXXFLAGS"
6610 # ---------------------
6611 # Warnings and checking
6612 # ---------------------
6614 # Check $CC warning features (if it's GCC).
6615 # We want to use -pedantic, but we don't want warnings about
6618 # * overlong strings
6619 # * C++11 narrowing conversions in { }
6620 # So, we only use -pedantic if we can disable those warnings.
6622 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6623 # Check whether --enable-build-format-warnings was given.
6624 if test "${enable_build_format_warnings+set}" = set; then :
6625 enableval
=$enable_build_format_warnings;
6627 enable_build_format_warnings
=yes
6630 if test $enable_build_format_warnings = no
; then :
6636 ac_cpp
='$CXXCPP $CPPFLAGS'
6637 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6642 save_CXXFLAGS
="$CXXFLAGS"
6643 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6644 # Do the check with the no- prefix removed since gcc silently
6645 # accepts any -Wno-* option on purpose
6646 case $real_option in
6647 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6648 *) option
=$real_option ;;
6650 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6653 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6654 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6655 $as_echo_n "(cached) " >&6
6658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6669 if ac_fn_cxx_try_compile
"$LINENO"; then :
6670 eval "$as_acx_Woption=yes"
6672 eval "$as_acx_Woption=no"
6674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6677 eval ac_res
=\$
$as_acx_Woption
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6679 $as_echo "$ac_res" >&6; }
6680 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6681 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6684 CXXFLAGS
="$save_CXXFLAGS"
6686 ac_cpp
='$CXXCPP $CPPFLAGS'
6687 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6694 ac_cpp
='$CPP $CPPFLAGS'
6695 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6696 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6700 save_CFLAGS
="$CFLAGS"
6701 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6702 # Do the check with the no- prefix removed since gcc silently
6703 # accepts any -Wno-* option on purpose
6704 case $real_option in
6705 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6706 *) option
=$real_option ;;
6708 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6711 $as_echo_n "checking whether $CC supports $option... " >&6; }
6712 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6713 $as_echo_n "(cached) " >&6
6716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6727 if ac_fn_c_try_compile
"$LINENO"; then :
6728 eval "$as_acx_Woption=yes"
6730 eval "$as_acx_Woption=no"
6732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6735 eval ac_res
=\$
$as_acx_Woption
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6737 $as_echo "$ac_res" >&6; }
6738 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6739 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6742 CFLAGS
="$save_CFLAGS"
6744 ac_cpp
='$CXXCPP $CPPFLAGS'
6745 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6751 ac_cpp
='$CXXCPP $CPPFLAGS'
6752 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6753 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6754 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6757 save_CXXFLAGS
="$CXXFLAGS"
6758 for real_option
in -Wmissing-format-attribute; do
6759 # Do the check with the no- prefix removed since gcc silently
6760 # accepts any -Wno-* option on purpose
6761 case $real_option in
6762 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6763 *) option
=$real_option ;;
6765 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6768 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6769 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6770 $as_echo_n "(cached) " >&6
6773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6784 if ac_fn_cxx_try_compile
"$LINENO"; then :
6785 eval "$as_acx_Woption=yes"
6787 eval "$as_acx_Woption=no"
6789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6792 eval ac_res
=\$
$as_acx_Woption
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6794 $as_echo "$ac_res" >&6; }
6795 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6796 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6799 CXXFLAGS
="$save_CXXFLAGS"
6801 ac_cpp
='$CXXCPP $CPPFLAGS'
6802 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6808 ac_cpp
='$CXXCPP $CPPFLAGS'
6809 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6810 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6811 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6813 save_CXXFLAGS
="$CXXFLAGS"
6814 for real_option
in -Woverloaded-virtual; do
6815 # Do the check with the no- prefix removed since gcc silently
6816 # accepts any -Wno-* option on purpose
6817 case $real_option in
6818 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6819 *) option
=$real_option ;;
6821 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6824 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6825 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6826 $as_echo_n "(cached) " >&6
6829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6840 if ac_fn_cxx_try_compile
"$LINENO"; then :
6841 eval "$as_acx_Woption=yes"
6843 eval "$as_acx_Woption=no"
6845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6848 eval ac_res
=\$
$as_acx_Woption
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6850 $as_echo "$ac_res" >&6; }
6851 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6852 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6855 CXXFLAGS
="$save_CXXFLAGS"
6857 ac_cpp
='$CXXCPP $CPPFLAGS'
6858 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6859 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6860 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6864 ac_cpp
='$CPP $CPPFLAGS'
6865 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6870 save_CFLAGS
="$CFLAGS"
6871 for real_option
in -Wold-style-definition -Wc++-compat; do
6872 # Do the check with the no- prefix removed since gcc silently
6873 # accepts any -Wno-* option on purpose
6874 case $real_option in
6875 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6876 *) option
=$real_option ;;
6878 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6881 $as_echo_n "checking whether $CC supports $option... " >&6; }
6882 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6883 $as_echo_n "(cached) " >&6
6886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6897 if ac_fn_c_try_compile
"$LINENO"; then :
6898 eval "$as_acx_Woption=yes"
6900 eval "$as_acx_Woption=no"
6902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6905 eval ac_res
=\$
$as_acx_Woption
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6907 $as_echo "$ac_res" >&6; }
6908 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6909 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6912 CFLAGS
="$save_CFLAGS"
6914 ac_cpp
='$CXXCPP $CPPFLAGS'
6915 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6916 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6917 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6921 ac_cpp
='$CXXCPP $CPPFLAGS'
6922 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6926 # Do the check with the no- prefix removed from the warning options
6927 # since gcc silently accepts any -Wno-* option on purpose
6928 if test "$GXX" = yes; then :
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6930 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6931 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
6934 save_CXXFLAGS
="$CXXFLAGS"
6935 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6947 if ac_fn_cxx_try_compile
"$LINENO"; then :
6948 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6950 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6953 CXXFLAGS
="$save_CXXFLAGS"
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6956 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6957 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6958 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6963 ac_cpp
='$CXXCPP $CPPFLAGS'
6964 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6970 ac_cpp
='$CXXCPP $CPPFLAGS'
6971 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6975 # Check whether --enable-werror-always was given.
6976 if test "${enable_werror_always+set}" = set; then :
6977 enableval
=$enable_werror_always;
6979 enable_werror_always
=no
6982 if test $enable_werror_always = yes; then :
6983 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6987 ac_cpp
='$CXXCPP $CPPFLAGS'
6988 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6989 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6990 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6994 # The above macros do nothing if the compiler is not GCC. However, the
6995 # Makefile has more goo to add other flags, so these variables are used
6996 # to enable warnings only for GCC.
6999 if test "x$GCC" = "xyes"; then
7000 warn_cflags
='$(GCC_WARN_CFLAGS)'
7001 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7006 # Disable exceptions and RTTI if building with g++
7008 ac_cpp
='$CPP $CPPFLAGS'
7009 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7014 save_CFLAGS
="$CFLAGS"
7015 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7016 # Do the check with the no- prefix removed since gcc silently
7017 # accepts any -Wno-* option on purpose
7018 case $real_option in
7019 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7020 *) option
=$real_option ;;
7022 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7025 $as_echo_n "checking whether $CC supports $option... " >&6; }
7026 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7027 $as_echo_n "(cached) " >&6
7030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7041 if ac_fn_c_try_compile
"$LINENO"; then :
7042 eval "$as_acx_Woption=yes"
7044 eval "$as_acx_Woption=no"
7046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7049 eval ac_res
=\$
$as_acx_Woption
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7051 $as_echo "$ac_res" >&6; }
7052 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7053 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7056 CFLAGS
="$save_CFLAGS"
7058 ac_cpp
='$CXXCPP $CPPFLAGS'
7059 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7065 # Enable expensive internal checks
7067 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7071 # Check whether --enable-checking was given.
7072 if test "${enable_checking+set}" = set; then :
7073 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7076 # Determine the default checks.
7077 if test x
$is_release = x
; then
7078 ac_checking_flags
=yes
7080 ac_checking_flags
=release
7084 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7085 for check
in release
$ac_checking_flags
7088 # these set all the flags to specific states
7089 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7090 ac_fold_checking
= ; ac_gc_checking
=1 ;
7091 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7092 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7093 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7094 ac_types_checking
=1 ;;
7095 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7096 ac_fold_checking
= ; ac_gc_checking
= ;
7097 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7098 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7099 ac_tree_checking
= ; ac_valgrind_checking
= ;
7100 ac_types_checking
= ;;
7101 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7102 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7103 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7104 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7105 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7106 ac_types_checking
=1 ;;
7107 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7108 ac_fold_checking
= ; ac_gc_checking
= ;
7109 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7110 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7111 ac_tree_checking
= ; ac_valgrind_checking
= ;
7112 ac_types_checking
= ;;
7113 # these enable particular checks
7114 assert
) ac_assert_checking
=1 ;;
7115 df
) ac_df_checking
=1 ;;
7116 fold) ac_fold_checking
=1 ;;
7117 gc
) ac_gc_checking
=1 ;;
7118 gcac
) ac_gc_always_collect
=1 ;;
7119 gimple
) ac_gimple_checking
=1 ;;
7120 misc
) ac_checking
=1 ;;
7121 rtl
) ac_rtl_checking
=1 ;;
7122 rtlflag
) ac_rtlflag_checking
=1 ;;
7123 runtime
) ac_runtime_checking
=1 ;;
7124 tree
) ac_tree_checking
=1 ;;
7125 types
) ac_types_checking
=1 ;;
7126 valgrind
) ac_valgrind_checking
=1 ;;
7127 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7133 if test x
$ac_checking != x
; then
7135 $as_echo "#define CHECKING_P 1" >>confdefs.h
7137 nocommon_flag
=-fno-common
7139 $as_echo "#define CHECKING_P 0" >>confdefs.h
7143 if test x
$ac_df_checking != x
; then
7145 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7148 if test x
$ac_assert_checking != x
; then
7150 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7153 if test x
$ac_gimple_checking != x
; then
7155 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7159 if test x
$ac_runtime_checking != x
; then
7161 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7164 if test x
$ac_tree_checking != x
; then
7166 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7170 if test x
$ac_types_checking != x
; then
7172 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7176 if test x
$ac_rtl_checking != x
; then
7178 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7181 if test x
$ac_rtlflag_checking != x
; then
7183 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7186 if test x
$ac_gc_checking != x
; then
7188 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7191 if test x
$ac_gc_always_collect != x
; then
7193 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7196 if test x
$ac_fold_checking != x
; then
7198 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7201 valgrind_path_defines
=
7204 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7205 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7213 # It is certainly possible that there's valgrind but no valgrind.h.
7214 # GCC relies on making annotations so we must have both.
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7216 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219 #include <valgrind/memcheck.h>
7220 #ifndef VALGRIND_DISCARD
7221 #error VALGRIND_DISCARD not defined
7224 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7225 gcc_cv_header_valgrind_memcheck_h
=yes
7227 gcc_cv_header_valgrind_memcheck_h
=no
7229 rm -f conftest.err conftest.
$ac_ext
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7231 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7233 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236 #include <memcheck.h>
7237 #ifndef VALGRIND_DISCARD
7238 #error VALGRIND_DISCARD not defined
7241 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7242 gcc_cv_header_memcheck_h
=yes
7244 gcc_cv_header_memcheck_h
=no
7246 rm -f conftest.err conftest.
$ac_ext
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7248 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7249 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7251 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7254 if test $gcc_cv_header_memcheck_h = yes; then
7256 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7260 if test x
$ac_valgrind_checking != x
; then
7262 # Prepare PATH_SEPARATOR.
7263 # The user is always right.
7264 if test "${PATH_SEPARATOR+set}" != set; then
7265 echo "#! /bin/sh" >conf$$.sh
7266 echo "exit 0" >>conf$$.sh
7268 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7276 # Find out how to test for executable files. Don't use a zero-byte file,
7277 # as systems may use methods other than mode bits to determine executability.
7278 cat >conf$$.
file <<_ASEOF
7282 chmod +x conf$$.
file
7283 if test -x conf$$.
file >/dev
/null
2>&1; then
7284 ac_executable_p
="test -x"
7286 ac_executable_p
="test -f"
7290 # Extract the first word of "valgrind", so it can be a program name with args.
7291 set dummy valgrind
; ac_word
=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7295 $as_echo_n "(cached) " >&6
7297 case "$valgrind_path" in
7299 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7302 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7303 for ac_dir
in $PATH; do
7305 test -z "$ac_dir" && ac_dir
=.
7306 for ac_exec_ext
in '' $ac_executable_extensions; do
7307 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7308 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7309 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7319 valgrind_path
="$ac_cv_path_valgrind_path"
7320 if test -n "$valgrind_path"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7322 $as_echo "$valgrind_path" >&6; }
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7328 if test "x$valgrind_path" = "x" \
7329 ||
(test $have_valgrind_h = no \
7330 && test $gcc_cv_header_memcheck_h = no \
7331 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7332 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7334 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7335 valgrind_command
="$valgrind_path -q"
7337 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7343 # Enable code coverage collection
7344 # Check whether --enable-coverage was given.
7345 if test "${enable_coverage+set}" = set; then :
7346 enableval
=$enable_coverage; case "${enableval}" in
7348 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7351 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7354 # a.k.a. --disable-coverage
7358 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7367 # Check whether --enable-gather-detailed-mem-stats was given.
7368 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7369 enableval
=$enable_gather_detailed_mem_stats;
7371 enable_gather_detailed_mem_stats
=no
7374 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7376 cat >>confdefs.h
<<_ACEOF
7377 #define GATHER_STATISTICS $gather_stats
7381 # Check whether --enable-valgrind-annotations was given.
7382 if test "${enable_valgrind_annotations+set}" = set; then :
7383 enableval
=$enable_valgrind_annotations;
7385 enable_valgrind_annotations
=no
7388 if test x
$enable_valgrind_annotations != xno \
7389 ||
test x
$ac_valgrind_checking != x
; then
7390 if (test $have_valgrind_h = no \
7391 && test $gcc_cv_header_memcheck_h = no \
7392 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7393 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7396 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7400 # -------------------------------
7401 # Miscenalleous configure options
7402 # -------------------------------
7406 # Check whether --with-stabs was given.
7407 if test "${with_stabs+set}" = set; then :
7408 withval
=$with_stabs; stabs
="$with_stabs"
7414 # Determine whether or not multilibs are enabled.
7415 # Check whether --enable-multilib was given.
7416 if test "${enable_multilib+set}" = set; then :
7417 enableval
=$enable_multilib;
7424 # Determine whether or not multiarch is enabled.
7425 # Check whether --enable-multiarch was given.
7426 if test "${enable_multiarch+set}" = set; then :
7427 enableval
=$enable_multiarch; case "${enableval}" in
7428 yes|no|auto
) enable_multiarch
=$enableval;;
7429 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7432 enable_multiarch
=auto
7435 if test x
${enable_multiarch} = xauto
; then
7436 if test x
${with_native_system_header_dir} != x
; then
7437 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7440 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7441 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7446 $as_echo_n "checking for multiarch configuration... " >&6; }
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7449 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7451 # needed for setting the multiarch name for soft-float/hard-float ABIs
7455 # Enable __cxa_atexit for C++.
7456 # Check whether --enable-__cxa_atexit was given.
7457 if test "${enable___cxa_atexit+set}" = set; then :
7458 enableval
=$enable___cxa_atexit;
7462 # Enable C extension for decimal float if target supports it.
7464 # Check whether --enable-decimal-float was given.
7465 if test "${enable_decimal_float+set}" = set; then :
7466 enableval
=$enable_decimal_float;
7467 case $enable_decimal_float in
7468 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7469 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7470 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7476 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7477 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7478 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7479 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7480 enable_decimal_float
=yes
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7484 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7485 enable_decimal_float
=no
7492 # x86's use BID format instead of DPD
7493 case x
$enable_decimal_float in
7496 i?
86*-*-* | x86_64
*-*-*)
7497 enable_decimal_float
=bid
7500 enable_decimal_float
=dpd
7503 default_decimal_float
=$enable_decimal_float
7506 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7507 # dependency on libdecnumber.
7508 default_decimal_float
=dpd
7515 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7517 cat >>confdefs.h
<<_ACEOF
7518 #define ENABLE_DECIMAL_FLOAT $dfp
7522 # Use default_decimal_float for dependency.
7523 enable_decimal_float
=$default_decimal_float
7525 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7527 cat >>confdefs.h
<<_ACEOF
7528 #define ENABLE_DECIMAL_BID_FORMAT $bid
7532 # Enable C extension for fixed-point arithmetic.
7533 # Check whether --enable-fixed-point was given.
7534 if test "${enable_fixed_point+set}" = set; then :
7535 enableval
=$enable_fixed_point;
7540 enable_fixed_point
=yes
7544 enable_fixed_point
=yes
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7548 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7549 enable_fixed_point
=no
7557 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7559 cat >>confdefs.h
<<_ACEOF
7560 #define ENABLE_FIXED_POINT $fixedpoint
7565 # Pass with no value to take the default
7566 # Pass with a value to specify a thread package
7567 # Check whether --enable-threads was given.
7568 if test "${enable_threads+set}" = set; then :
7569 enableval
=$enable_threads;
7575 # Check whether --enable-tls was given.
7576 if test "${enable_tls+set}" = set; then :
7577 enableval
=$enable_tls;
7580 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7581 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7589 # Check whether --enable-objc-gc was given.
7590 if test "${enable_objc_gc+set}" = set; then :
7591 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7602 # Check whether --with-dwarf2 was given.
7603 if test "${with_dwarf2+set}" = set; then :
7604 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7610 # Check whether --enable-shared was given.
7611 if test "${enable_shared+set}" = set; then :
7612 enableval
=$enable_shared;
7613 case $enable_shared in
7617 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7618 for pkg
in $enableval; do
7619 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7634 # Check whether --with-specs was given.
7635 if test "${with_specs+set}" = set; then :
7636 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7646 # Check whether --with-pkgversion was given.
7647 if test "${with_pkgversion+set}" = set; then :
7648 withval
=$with_pkgversion; case "$withval" in
7649 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7651 *) PKGVERSION
="($withval) " ;;
7662 # Check whether --with-bugurl was given.
7663 if test "${with_bugurl+set}" = set; then :
7664 withval
=$with_bugurl; case "$withval" in
7665 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7668 *) BUGURL
="$withval"
7672 BUGURL
="http://gcc.gnu.org/bugs.html"
7682 REPORT_BUGS_TO
="<$BUGURL>"
7683 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7690 # Sanity check enable_languages in case someone does not run the toplevel
7691 # configure # script.
7692 # Check whether --enable-languages was given.
7693 if test "${enable_languages+set}" = set; then :
7694 enableval
=$enable_languages; case ,${enable_languages}, in
7696 # go safe -- we cannot be much sure without the toplevel
7698 # analysis of which target libs are present and usable
7702 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7707 enable_languages
=c
,${enable_languages}
7715 if test x
"$enable_as_accelerator_for" != x
; then
7717 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7719 enable_as_accelerator
=yes
7722 # In this case we expect offload compiler to be built as native, so we
7723 # need to rename the driver to avoid clashes with host's drivers.
7724 program_transform_name
="s&^&${target}-&" ;;
7726 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7727 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7728 accel_dir_suffix
=/accel
/${target_noncanonical}
7729 real_target_noncanonical
=${enable_as_accelerator_for}
7735 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7736 tgt
=`echo $tgt | sed 's/=.*//'`
7738 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7744 if test x
"$offload_targets" = x
; then
7745 offload_targets
=$tgt
7747 offload_targets
="$offload_targets,$tgt"
7751 cat >>confdefs.h
<<_ACEOF
7752 #define OFFLOAD_TARGETS "$offload_targets"
7755 if test x
"$enable_offloading" != x
; then
7757 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7761 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7765 if test x
"$enable_hsa" = x1
; then
7767 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7772 # Check whether --with-multilib-list was given.
7773 if test "${with_multilib_list+set}" = set; then :
7774 withval
=$with_multilib_list; :
7776 with_multilib_list
=default
7780 # -------------------------
7781 # Checks for other programs
7782 # -------------------------
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7785 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7787 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7788 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7789 $as_echo_n "(cached) " >&6
7791 cat >conftest.
make <<\_ACEOF
7794 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7797 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7799 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7801 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7805 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7807 $as_echo "yes" >&6; }
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7812 SET_MAKE
="MAKE=${MAKE-make}"
7816 # Find some useful tools
7817 for ac_prog
in gawk mawk nawk
awk
7819 # Extract the first word of "$ac_prog", so it can be a program name with args.
7820 set dummy
$ac_prog; ac_word
=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if test "${ac_cv_prog_AWK+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7826 if test -n "$AWK"; then
7827 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7833 test -z "$as_dir" && as_dir
=.
7834 for ac_exec_ext
in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_AWK
="$ac_prog"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 if test -n "$AWK"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7849 $as_echo "$AWK" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7856 test -n "$AWK" && break
7859 # We need awk to create options.c and options.h.
7860 # Bail out if it's missing.
7862 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7866 $as_echo_n "checking whether ln -s works... " >&6; }
7867 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
7870 rm -f conftestdata_t
7871 echo >conftestdata_f
7872 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7874 gcc_cv_prog_LN_S
="ln -s"
7876 if ln conftestdata_f conftestdata_t
2>/dev
/null
7880 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7882 gcc_cv_prog_LN_S
="cp -p"
7888 rm -f conftestdata_f conftestdata_t
7891 LN_S
="$gcc_cv_prog_LN_S"
7892 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7894 $as_echo "yes" >&6; }
7896 if test "$gcc_cv_prog_LN_S" = "ln"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7898 $as_echo "no, using ln" >&6; }
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7901 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7906 $as_echo_n "checking whether ln works... " >&6; }
7907 if test "${acx_cv_prog_LN+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7910 rm -f conftestdata_t
7911 echo >conftestdata_f
7912 if ln conftestdata_f conftestdata_t
2>/dev
/null
7918 rm -f conftestdata_f conftestdata_t
7921 if test $acx_cv_prog_LN = no
; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7924 $as_echo "no, using $LN" >&6; }
7926 LN
="$acx_cv_prog_LN"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7928 $as_echo "yes" >&6; }
7931 if test -n "$ac_tool_prefix"; then
7932 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7933 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7939 if test -n "$RANLIB"; then
7940 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7946 test -z "$as_dir" && as_dir
=.
7947 for ac_exec_ext
in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 RANLIB
=$ac_cv_prog_RANLIB
7960 if test -n "$RANLIB"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7962 $as_echo "$RANLIB" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7970 if test -z "$ac_cv_prog_RANLIB"; then
7971 ac_ct_RANLIB
=$RANLIB
7972 # Extract the first word of "ranlib", so it can be a program name with args.
7973 set dummy ranlib
; ac_word
=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7979 if test -n "$ac_ct_RANLIB"; then
7980 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7986 test -z "$as_dir" && as_dir
=.
7987 for ac_exec_ext
in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8000 if test -n "$ac_ct_RANLIB"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8002 $as_echo "$ac_ct_RANLIB" >&6; }
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8008 if test "x$ac_ct_RANLIB" = x
; then
8011 case $cross_compiling:$ac_tool_warned in
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8015 ac_tool_warned
=yes ;;
8017 RANLIB
=$ac_ct_RANLIB
8020 RANLIB
="$ac_cv_prog_RANLIB"
8026 # Find a good install program. We prefer a C program (faster),
8027 # so one script is as good as another. But avoid the broken or
8028 # incompatible versions:
8029 # SysV /etc/install, /usr/sbin/install
8030 # SunOS /usr/etc/install
8031 # IRIX /sbin/install
8033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8035 # ./install, which can be erroneously created by make from ./install.sh.
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8037 $as_echo_n "checking for a BSD compatible install... " >&6; }
8038 if test -z "$INSTALL"; then
8039 if test "${ac_cv_path_install+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
8042 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8043 for ac_dir
in $PATH; do
8044 # Account for people who put trailing slashes in PATH elements.
8046 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8048 # OSF1 and SCO ODT 3.0 have their own names for install.
8049 for ac_prog
in ginstall scoinst
install; do
8050 if test -f $ac_dir/$ac_prog; then
8051 if test $ac_prog = install &&
8052 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8053 # AIX install. It has an incompatible calling convention.
8054 # OSF/1 installbsd also uses dspmsg, but is usable.
8057 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8068 if test "${ac_cv_path_install+set}" = set; then
8069 INSTALL
="$ac_cv_path_install"
8071 # As a last resort, use the slow shell script. We don't cache a
8072 # path for INSTALL within a source directory, because that will
8073 # break other packages using the cache if that directory is
8074 # removed, or if the path is relative.
8075 INSTALL
="$ac_install_sh"
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8079 $as_echo "$INSTALL" >&6; }
8081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8082 # It thinks the first close brace ends the variable substitution.
8083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8085 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8088 # See if cmp has --ignore-initial.
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8090 $as_echo_n "checking for cmp's capabilities... " >&6; }
8091 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
8096 gcc_cv_prog_cmp_skip
=slowcompare
8097 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8098 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8101 gcc_cv_prog_cmp_skip
=gnucompare
8104 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8105 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8106 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8109 gcc_cv_prog_cmp_skip
=fastcompare
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8117 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8118 make_compare_target
=$gcc_cv_prog_cmp_skip
8122 # See if we have the mktemp command.
8123 # Extract the first word of "mktemp", so it can be a program name with args.
8124 set dummy mktemp
; ac_word
=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8128 $as_echo_n "(cached) " >&6
8130 if test -n "$have_mktemp_command"; then
8131 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8137 test -z "$as_dir" && as_dir
=.
8138 for ac_exec_ext
in '' $ac_executable_extensions; do
8139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8140 ac_cv_prog_have_mktemp_command
="yes"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8151 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8152 if test -n "$have_mktemp_command"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8154 $as_echo "$have_mktemp_command" >&6; }
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8162 # See if makeinfo has been installed and is modern enough
8163 # that we can use it.
8165 # Extract the first word of "makeinfo", so it can be a program name with args.
8166 set dummy makeinfo
; ac_word
=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
8172 if test -n "$MAKEINFO"; then
8173 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8179 test -z "$as_dir" && as_dir
=.
8180 for ac_exec_ext
in '' $ac_executable_extensions; do
8181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8182 ac_cv_prog_MAKEINFO
="makeinfo"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 MAKEINFO
=$ac_cv_prog_MAKEINFO
8193 if test -n "$MAKEINFO"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8195 $as_echo "$MAKEINFO" >&6; }
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8202 if test -n "$MAKEINFO"; then
8203 # Found it, now check the version.
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8205 $as_echo_n "checking for modern makeinfo... " >&6; }
8206 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8209 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8210 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8212 case $ac_prog_version in
8213 '') gcc_cv_prog_makeinfo_modern
=no
;;
8214 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8215 *) gcc_cv_prog_makeinfo_modern
=no
;;
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8220 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8222 gcc_cv_prog_makeinfo_modern
=no
8224 if test $gcc_cv_prog_makeinfo_modern = no
; then
8225 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8228 if test $gcc_cv_prog_makeinfo_modern = no
; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8230 *** Makeinfo is missing or too old.
8231 *** Info documentation will not be built." >&5
8232 $as_echo "$as_me: WARNING:
8233 *** Makeinfo is missing or too old.
8234 *** Info documentation will not be built." >&2;}
8241 # Is pod2man recent enough to regenerate manpages?
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8243 $as_echo_n "checking for recent Pod::Man... " >&6; }
8244 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8246 $as_echo "yes" >&6; }
8247 GENERATED_MANPAGES
=generated-manpages
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8255 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8260 # Extract the first word of "$ac_prog", so it can be a program name with args.
8261 set dummy
$ac_prog; ac_word
=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_prog_FLEX+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8267 if test -n "$FLEX"; then
8268 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8274 test -z "$as_dir" && as_dir
=.
8275 for ac_exec_ext
in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277 ac_cv_prog_FLEX
="$ac_prog"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 FLEX
=$ac_cv_prog_FLEX
8288 if test -n "$FLEX"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8290 $as_echo "$FLEX" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8297 test -n "$FLEX" && break
8299 test -n "$FLEX" || FLEX
="$MISSING flex"
8303 for ac_prog
in bison
8305 # Extract the first word of "$ac_prog", so it can be a program name with args.
8306 set dummy
$ac_prog; ac_word
=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if test "${ac_cv_prog_BISON+set}" = set; then :
8310 $as_echo_n "(cached) " >&6
8312 if test -n "$BISON"; then
8313 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8319 test -z "$as_dir" && as_dir
=.
8320 for ac_exec_ext
in '' $ac_executable_extensions; do
8321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322 ac_cv_prog_BISON
="$ac_prog"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 BISON
=$ac_cv_prog_BISON
8333 if test -n "$BISON"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8335 $as_echo "$BISON" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8342 test -n "$BISON" && break
8344 test -n "$BISON" || BISON
="$MISSING bison"
8347 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8348 # check for build == host before using them.
8351 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8352 && test -d ..
/binutils
; then
8353 NM
='${objdir}/../binutils/nm-new'
8355 # Extract the first word of "nm", so it can be a program name with args.
8356 set dummy nm
; ac_word
=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_NM+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8362 if test -n "$NM"; then
8363 ac_cv_prog_NM
="$NM" # Let the user override the test.
8365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8369 test -z "$as_dir" && as_dir
=.
8370 for ac_exec_ext
in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8384 if test -n "$NM"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8386 $as_echo "$NM" >&6; }
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8396 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8397 && test -d ..
/binutils
; then
8398 AR
='${objdir}/../binutils/ar'
8400 # Extract the first word of "ar", so it can be a program name with args.
8401 set dummy
ar; ac_word
=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_prog_AR+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8407 if test -n "$AR"; then
8408 ac_cv_prog_AR
="$AR" # Let the user override the test.
8410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8414 test -z "$as_dir" && as_dir
=.
8415 for ac_exec_ext
in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8429 if test -n "$AR"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8431 $as_echo "$AR" >&6; }
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8440 # The jit documentation looks better if built with sphinx, but can be
8441 # built with texinfo if sphinx is not available.
8442 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8443 # Extract the first word of "sphinx-build", so it can be a program name with args.
8444 set dummy sphinx-build
; ac_word
=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8448 $as_echo_n "(cached) " >&6
8450 if test -n "$doc_build_sys"; then
8451 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8457 test -z "$as_dir" && as_dir
=.
8458 for ac_exec_ext
in '' $ac_executable_extensions; do
8459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8460 ac_cv_prog_doc_build_sys
="sphinx"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8471 doc_build_sys
=$ac_cv_prog_doc_build_sys
8472 if test -n "$doc_build_sys"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8474 $as_echo "$doc_build_sys" >&6; }
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8482 # --------------------
8483 # Checks for C headers
8484 # --------------------
8486 # Need to reject headers which give warnings, so that the -Werror bootstrap
8487 # works later. *sigh* This needs to come before all header checks.
8489 ac_c_preproc_warn_flag
=yes
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8492 $as_echo_n "checking for ANSI C header files... " >&6; }
8493 if test "${ac_cv_header_stdc+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8511 if ac_fn_cxx_try_compile
"$LINENO"; then :
8512 ac_cv_header_stdc
=yes
8514 ac_cv_header_stdc
=no
8516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8518 if test $ac_cv_header_stdc = yes; then
8519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8526 $EGREP "memchr" >/dev
/null
2>&1; then :
8529 ac_cv_header_stdc
=no
8535 if test $ac_cv_header_stdc = yes; then
8536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8543 $EGREP "free" >/dev
/null
2>&1; then :
8546 ac_cv_header_stdc
=no
8552 if test $ac_cv_header_stdc = yes; then
8553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8554 if test "$cross_compiling" = yes; then :
8557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8561 #if ((' ' & 0x0FF) == 0x020)
8562 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8563 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8565 # define ISLOWER(c) \
8566 (('a' <= (c) && (c) <= 'i') \
8567 || ('j' <= (c) && (c) <= 'r') \
8568 || ('s' <= (c) && (c) <= 'z'))
8569 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8572 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8577 for (i = 0; i < 256; i++)
8578 if (XOR (islower (i), ISLOWER (i))
8579 || toupper (i) != TOUPPER (i))
8584 if ac_fn_cxx_try_run
"$LINENO"; then :
8587 ac_cv_header_stdc
=no
8589 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8590 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8596 $as_echo "$ac_cv_header_stdc" >&6; }
8597 if test $ac_cv_header_stdc = yes; then
8599 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8604 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8605 if test "${ac_cv_header_time+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 #include <sys/types.h>
8611 #include <sys/time.h>
8617 if ((struct tm *) 0)
8623 if ac_fn_cxx_try_compile
"$LINENO"; then :
8624 ac_cv_header_time
=yes
8626 ac_cv_header_time
=no
8628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8631 $as_echo "$ac_cv_header_time" >&6; }
8632 if test $ac_cv_header_time = yes; then
8634 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8639 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8640 if test "${gcc_cv_header_string+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8646 #include <strings.h>
8655 if ac_fn_cxx_try_compile
"$LINENO"; then :
8656 gcc_cv_header_string
=yes
8658 gcc_cv_header_string
=no
8660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8663 $as_echo "$gcc_cv_header_string" >&6; }
8664 if test $gcc_cv_header_string = yes; then
8666 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8671 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8672 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8673 $as_echo_n "(cached) " >&6
8675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 #include <sys/types.h>
8678 #include <sys/wait.h>
8680 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8683 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8691 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8696 if ac_fn_cxx_try_compile
"$LINENO"; then :
8697 ac_cv_header_sys_wait_h
=yes
8699 ac_cv_header_sys_wait_h
=no
8701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8704 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8705 if test $ac_cv_header_sys_wait_h = yes; then
8707 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8712 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8713 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8714 $as_echo_n "(cached) " >&6
8716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718 #include <sys/types.h>
8719 #include <termios.h>
8725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8726 $EGREP "yes" >/dev
/null
2>&1; then :
8727 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8729 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8735 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8737 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8739 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8740 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 #include <sys/types.h>
8746 #include <sys/ioctl.h>
8752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8753 $EGREP "yes" >/dev
/null
2>&1; then :
8754 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8756 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8762 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8764 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8766 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8771 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8772 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8773 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8774 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8776 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8777 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8778 eval as_val
=\$
$as_ac_Header
8779 if test "x$as_val" = x
""yes; then :
8780 cat >>confdefs.h
<<_ACEOF
8781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8788 # Check for thread headers.
8789 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8790 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8796 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8797 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8804 # These tests can't be done till we know if we have limits.h.
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8806 $as_echo_n "checking for CHAR_BIT... " >&6; }
8807 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8808 $as_echo_n "(cached) " >&6
8810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812 #ifdef HAVE_LIMITS_H
8819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8820 $EGREP "found" >/dev
/null
2>&1; then :
8821 gcc_cv_decl_char_bit
=yes
8823 gcc_cv_decl_char_bit
=no
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8830 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8831 if test $gcc_cv_decl_char_bit = no
; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8833 $as_echo_n "checking number of bits in a byte... " >&6; }
8834 if test "${gcc_cv_c_nbby+set}" = set; then :
8835 $as_echo_n "(cached) " >&6
8839 while test $i -lt 65; do
8840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8847 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8848 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8854 if ac_fn_cxx_try_compile
"$LINENO"; then :
8855 gcc_cv_c_nbby
=$i; break
8857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8860 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8864 $as_echo "$gcc_cv_c_nbby" >&6; }
8865 if test $gcc_cv_c_nbby = failed
; then
8866 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8869 cat >>confdefs.h
<<_ACEOF
8870 #define CHAR_BIT $gcc_cv_c_nbby
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8876 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8877 if test "${ac_cv_c_bigendian+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
8880 ac_cv_c_bigendian
=unknown
8881 # See if we're dealing with a universal compiler.
8882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 #ifndef __APPLE_CC__
8885 not a universal capable compiler
8890 if ac_fn_cxx_try_compile
"$LINENO"; then :
8892 # Check for potential -arch flags. It is not universal unless
8893 # there are at least two -arch flags with different values.
8896 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8897 if test -n "$ac_prev"; then
8899 i?
86 | x86_64 | ppc | ppc64
)
8900 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8903 ac_cv_c_bigendian
=universal
8909 elif test "x$ac_word" = "x-arch"; then
8914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8915 if test $ac_cv_c_bigendian = unknown
; then
8916 # See if sys/param.h defines the BYTE_ORDER macro.
8917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8919 #include <sys/types.h>
8920 #include <sys/param.h>
8925 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8926 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8935 if ac_fn_cxx_try_compile
"$LINENO"; then :
8936 # It does; now see whether it defined to BIG_ENDIAN or not.
8937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8939 #include <sys/types.h>
8940 #include <sys/param.h>
8945 #if BYTE_ORDER != BIG_ENDIAN
8953 if ac_fn_cxx_try_compile
"$LINENO"; then :
8954 ac_cv_c_bigendian
=yes
8956 ac_cv_c_bigendian
=no
8958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8962 if test $ac_cv_c_bigendian = unknown
; then
8963 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8971 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8979 if ac_fn_cxx_try_compile
"$LINENO"; then :
8980 # It does; now see whether it defined to _BIG_ENDIAN or not.
8981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8996 if ac_fn_cxx_try_compile
"$LINENO"; then :
8997 ac_cv_c_bigendian
=yes
8999 ac_cv_c_bigendian
=no
9001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9005 if test $ac_cv_c_bigendian = unknown
; then
9006 # Compile a test program.
9007 if test "$cross_compiling" = yes; then :
9008 # Try to guess by grepping values from an object file.
9009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9011 short int ascii_mm[] =
9012 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9013 short int ascii_ii[] =
9014 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9015 int use_ascii (int i) {
9016 return ascii_mm[i] + ascii_ii[i];
9018 short int ebcdic_ii[] =
9019 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9020 short int ebcdic_mm[] =
9021 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9022 int use_ebcdic (int i) {
9023 return ebcdic_mm[i] + ebcdic_ii[i];
9030 return use_ascii (foo) == use_ebcdic (foo);
9035 if ac_fn_cxx_try_compile
"$LINENO"; then :
9036 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9037 ac_cv_c_bigendian
=yes
9039 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9040 if test "$ac_cv_c_bigendian" = unknown
; then
9041 ac_cv_c_bigendian
=no
9043 # finding both strings is unlikely to happen, but who knows?
9044 ac_cv_c_bigendian
=unknown
9048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9052 $ac_includes_default
9057 /* Are we little or big endian? From Harbison&Steele. */
9061 char c[sizeof (long int)];
9064 return u.c[sizeof (long int) - 1] == 1;
9070 if ac_fn_cxx_try_run
"$LINENO"; then :
9071 ac_cv_c_bigendian
=no
9073 ac_cv_c_bigendian
=yes
9075 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9076 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9082 $as_echo "$ac_cv_c_bigendian" >&6; }
9083 case $ac_cv_c_bigendian in #(
9085 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9091 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9095 as_fn_error
"unknown endianness
9096 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9100 # ----------------------
9101 # Checks for C++ headers
9102 # ----------------------
9105 ac_cpp
='$CXXCPP $CPPFLAGS'
9106 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9107 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9108 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9110 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9111 if test -z "$CXXCPP"; then
9112 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9115 # Double quotes because CXXCPP needs to be expanded
9116 for CXXCPP
in "$CXX -E" "/lib/cpp"
9119 for ac_cxx_preproc_warn_flag
in '' yes
9121 # Use a header file that comes with gcc, so configuring glibc
9122 # with a fresh cross-compiler works.
9123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9124 # <limits.h> exists even on freestanding compilers.
9125 # On the NeXT, cc -E runs the code through the compiler's parser,
9126 # not just through cpp. "Syntax error" is here to catch this case.
9127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9130 # include <limits.h>
9132 # include <assert.h>
9136 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9139 # Broken: fails on valid input.
9142 rm -f conftest.err conftest.
$ac_ext
9144 # OK, works on sane cases. Now check whether nonexistent headers
9145 # can be detected and how.
9146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9148 #include <ac_nonexistent.h>
9150 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9151 # Broken: success on invalid input.
9154 # Passes both tests.
9158 rm -f conftest.err conftest.
$ac_ext
9161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9162 rm -f conftest.err conftest.
$ac_ext
9163 if $ac_preproc_ok; then :
9168 ac_cv_prog_CXXCPP
=$CXXCPP
9171 CXXCPP
=$ac_cv_prog_CXXCPP
9173 ac_cv_prog_CXXCPP
=$CXXCPP
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9176 $as_echo "$CXXCPP" >&6; }
9178 for ac_cxx_preproc_warn_flag
in '' yes
9180 # Use a header file that comes with gcc, so configuring glibc
9181 # with a fresh cross-compiler works.
9182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9183 # <limits.h> exists even on freestanding compilers.
9184 # On the NeXT, cc -E runs the code through the compiler's parser,
9185 # not just through cpp. "Syntax error" is here to catch this case.
9186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9189 # include <limits.h>
9191 # include <assert.h>
9195 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9198 # Broken: fails on valid input.
9201 rm -f conftest.err conftest.
$ac_ext
9203 # OK, works on sane cases. Now check whether nonexistent headers
9204 # can be detected and how.
9205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 #include <ac_nonexistent.h>
9209 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9210 # Broken: success on invalid input.
9213 # Passes both tests.
9217 rm -f conftest.err conftest.
$ac_ext
9220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9221 rm -f conftest.err conftest.
$ac_ext
9222 if $ac_preproc_ok; then :
9225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9228 See \`config.log' for more details." >&5
9229 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9230 See \`config.log' for more details." >&2;}; }
9234 ac_cpp
='$CXXCPP $CPPFLAGS'
9235 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9236 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9237 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9240 for ac_header
in unordered_map
9242 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9243 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9244 cat >>confdefs.h
<<_ACEOF
9245 #define HAVE_UNORDERED_MAP 1
9251 for ac_header
in tr1/unordered_map
9253 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9254 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9255 cat >>confdefs.h
<<_ACEOF
9256 #define HAVE_TR1_UNORDERED_MAP 1
9262 for ac_header
in ext
/hash_map
9264 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9265 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9266 cat >>confdefs.h
<<_ACEOF
9267 #define HAVE_EXT_HASH_MAP 1
9275 # Dependency checking.
9278 rm -rf .tst
2>/dev
/null
9279 mkdir .tst
2>/dev
/null
9280 if test -d .tst
; then
9285 rmdir .tst
2>/dev
/null
9287 DEPDIR
="${am__leading_dot}deps"
9289 ac_config_commands
="$ac_config_commands depdir"
9292 ac_config_commands
="$ac_config_commands gccdepdir"
9295 depcc
="$CXX" am_compiler_list
=
9297 am_depcomp
=$ac_aux_dir/depcomp
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9299 $as_echo_n "checking dependency style of $depcc... " >&6; }
9300 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
9303 if test -f "$am_depcomp"; then
9304 # We make a subdir and do the tests there. Otherwise we can end up
9305 # making bogus files that we don't know about and never remove. For
9306 # instance it was reported that on HP-UX the gcc test will end up
9307 # making a dummy file named `D' -- because `-MD' means `put the output
9310 # Copy depcomp to subdir because otherwise we won't find it if we're
9311 # using a relative directory.
9312 cp "$am_depcomp" conftest.dir
9314 # We will build objects and dependencies in a subdirectory because
9315 # it helps to detect inapplicable dependency modes. For instance
9316 # both Tru64's cc and ICC support -MD to output dependencies as a
9317 # side effect of compilation, but ICC will put the dependencies in
9318 # the current directory while Tru64 will put them in the object
9322 am_cv_CXX_dependencies_compiler_type
=none
9323 if test "$am_compiler_list" = ""; then
9324 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9326 for depmode
in $am_compiler_list; do
9327 if test $depmode = none
; then break; fi
9329 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9330 # Setup a source with many dependencies, because some compilers
9331 # like to wrap large dependency lists on column 80 (with \), and
9332 # we should not choose a depcomp mode which is confused by this.
9334 # We need to recreate these files for each test, as the compiler may
9335 # overwrite some of them when testing with obscure command lines.
9336 # This happens at least with the AIX C compiler.
9338 for i
in 1 2 3 4 5 6; do
9339 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9340 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9341 # Solaris 8's {/usr,}/bin/sh.
9342 touch sub
/conftst
$i.h
9344 echo "include sub/conftest.Po" > confmf
9346 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9347 # mode. It turns out that the SunPro C++ compiler does not properly
9348 # handle `-M -o', and we need to detect this.
9349 depcmd
="depmode=$depmode \
9350 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9351 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9352 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9353 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9354 if env
$depcmd > conftest.err
2>&1 &&
9355 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9356 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9357 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9358 # icc doesn't choke on unknown options, it will just issue warnings
9359 # or remarks (even with -Werror). So we grep stderr for any message
9360 # that says an option was ignored or not supported.
9361 # When given -MP, icc 7.0 and 7.1 complain thusly:
9362 # icc: Command line warning: ignoring option '-M'; no argument required
9363 # The diagnosis changed in icc 8.0:
9364 # icc: Command line remark: option '-MP' not supported
9365 if (grep 'ignoring option' conftest.err ||
9366 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9367 am_cv_CXX_dependencies_compiler_type
=$depmode
9368 $as_echo "$as_me:$LINENO: success" >&5
9372 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9373 sed -e 's/^/| /' < conftest.err
>&5
9379 am_cv_CXX_dependencies_compiler_type
=none
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9384 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9385 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9386 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9387 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9397 # These libraries may be used by collect2.
9398 # We may need a special search path to get them linked.
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9400 $as_echo_n "checking for collect2 libraries... " >&6; }
9401 if test "${gcc_cv_collect2_libs+set}" = set; then :
9402 $as_echo_n "(cached) " >&6
9405 for libs
in '' -lld -lmld \
9406 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9407 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9413 /* Override any GCC internal prototype to avoid an error.
9414 Use char because int might match the return type of a GCC
9415 builtin and then its argument prototype would still apply. */
9428 if ac_fn_cxx_try_link
"$LINENO"; then :
9429 gcc_cv_collect2_libs
="$libs"; break
9431 rm -f core conftest.err conftest.
$ac_objext \
9432 conftest
$ac_exeext conftest.
$ac_ext
9435 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9438 $as_echo "$gcc_cv_collect2_libs" >&6; }
9439 case $gcc_cv_collect2_libs in
9441 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9445 # When building Ada code on Alpha, we need exc_resume which is usually in
9446 # -lexc. So test for it.
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9450 $as_echo_n "checking for library containing exc_resume... " >&6; }
9451 if test "${ac_cv_search_exc_resume+set}" = set; then :
9452 $as_echo_n "(cached) " >&6
9454 ac_func_search_save_LIBS
=$LIBS
9455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9458 /* Override any GCC internal prototype to avoid an error.
9459 Use char because int might match the return type of a GCC
9460 builtin and then its argument prototype would still apply. */
9468 return exc_resume ();
9473 for ac_lib
in '' exc
; do
9474 if test -z "$ac_lib"; then
9475 ac_res
="none required"
9478 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9480 if ac_fn_cxx_try_link
"$LINENO"; then :
9481 ac_cv_search_exc_resume
=$ac_res
9483 rm -f core conftest.err conftest.
$ac_objext \
9485 if test "${ac_cv_search_exc_resume+set}" = set; then :
9489 if test "${ac_cv_search_exc_resume+set}" = set; then :
9492 ac_cv_search_exc_resume
=no
9495 LIBS
=$ac_func_search_save_LIBS
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9498 $as_echo "$ac_cv_search_exc_resume" >&6; }
9499 ac_res
=$ac_cv_search_exc_resume
9500 if test "$ac_res" != no
; then :
9501 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9509 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9513 $as_echo_n "checking for library containing kstat_open... " >&6; }
9514 if test "${ac_cv_search_kstat_open+set}" = set; then :
9515 $as_echo_n "(cached) " >&6
9517 ac_func_search_save_LIBS
=$LIBS
9518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9521 /* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9531 return kstat_open ();
9536 for ac_lib
in '' kstat
; do
9537 if test -z "$ac_lib"; then
9538 ac_res
="none required"
9541 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9543 if ac_fn_cxx_try_link
"$LINENO"; then :
9544 ac_cv_search_kstat_open
=$ac_res
9546 rm -f core conftest.err conftest.
$ac_objext \
9548 if test "${ac_cv_search_kstat_open+set}" = set; then :
9552 if test "${ac_cv_search_kstat_open+set}" = set; then :
9555 ac_cv_search_kstat_open
=no
9558 LIBS
=$ac_func_search_save_LIBS
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9561 $as_echo "$ac_cv_search_kstat_open" >&6; }
9562 ac_res
=$ac_cv_search_kstat_open
9563 if test "$ac_res" != no
; then :
9564 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9568 EXTRA_GCC_LIBS
="$LIBS"
9572 # Some systems put ldexp and frexp in libm instead of libc; assume
9573 # they're both in the same place. jcf-dump needs them.
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9577 $as_echo_n "checking for library containing ldexp... " >&6; }
9578 if test "${ac_cv_search_ldexp+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
9581 ac_func_search_save_LIBS
=$LIBS
9582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9585 /* Override any GCC internal prototype to avoid an error.
9586 Use char because int might match the return type of a GCC
9587 builtin and then its argument prototype would still apply. */
9600 for ac_lib
in '' m
; do
9601 if test -z "$ac_lib"; then
9602 ac_res
="none required"
9605 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9607 if ac_fn_cxx_try_link
"$LINENO"; then :
9608 ac_cv_search_ldexp
=$ac_res
9610 rm -f core conftest.err conftest.
$ac_objext \
9612 if test "${ac_cv_search_ldexp+set}" = set; then :
9616 if test "${ac_cv_search_ldexp+set}" = set; then :
9619 ac_cv_search_ldexp
=no
9622 LIBS
=$ac_func_search_save_LIBS
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9625 $as_echo "$ac_cv_search_ldexp" >&6; }
9626 ac_res
=$ac_cv_search_ldexp
9627 if test "$ac_res" != no
; then :
9628 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9636 # Use <inttypes.h> only if it exists,
9637 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9640 $as_echo_n "checking for inttypes.h... " >&6; }
9641 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9642 $as_echo_n "(cached) " >&6
9644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9645 /* end confdefs.h. */
9646 #define __STDC_FORMAT_MACROS
9647 #include <sys/types.h>
9648 #include <inttypes.h>
9660 if ac_fn_cxx_try_compile
"$LINENO"; then :
9661 gcc_cv_header_inttypes_h
=yes
9663 gcc_cv_header_inttypes_h
=no
9665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9669 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9670 if test $gcc_cv_header_inttypes_h = yes; then
9672 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9678 for ac_func
in times clock kill getrlimit setrlimit atoq \
9679 popen sysconf strsignal getrusage nl_langinfo \
9680 gettimeofday mbstowcs wcswidth mmap setlocale \
9681 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
9683 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9684 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9685 eval as_val
=\$
$as_ac_var
9686 if test "x$as_val" = x
""yes; then :
9687 cat >>confdefs.h
<<_ACEOF
9688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9695 if test x
$ac_cv_func_mbstowcs = xyes
; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9697 $as_echo_n "checking whether mbstowcs works... " >&6; }
9698 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9699 $as_echo_n "(cached) " >&6
9701 if test "$cross_compiling" = yes; then :
9702 gcc_cv_func_mbstowcs_works
=yes
9704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9713 if ac_fn_cxx_try_run
"$LINENO"; then :
9714 gcc_cv_func_mbstowcs_works
=yes
9716 gcc_cv_func_mbstowcs_works
=no
9718 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9719 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9724 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9725 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9727 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9732 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9733 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9737 cat >>confdefs.h
<<_ACEOF
9743 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9744 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9748 cat >>confdefs.h
<<_ACEOF
9749 #define caddr_t char *
9756 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9757 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9758 gcc_header_sys_mman_h
=yes
9760 gcc_header_sys_mman_h
=no
9763 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9764 if test "x$ac_cv_func_mmap" = x
""yes; then :
9770 if test "$gcc_header_sys_mman_h" != yes \
9771 ||
test "$gcc_func_mmap" != yes; then
9772 gcc_cv_func_mmap_file
=no
9773 gcc_cv_func_mmap_dev_zero
=no
9774 gcc_cv_func_mmap_anon
=no
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9777 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9778 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9779 $as_echo_n "(cached) " >&6
9781 # Add a system to this blacklist if
9782 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9783 # memory area containing the same data that you'd get if you applied
9784 # read() to the same fd. The only system known to have a problem here
9785 # is VMS, where text files have record structure.
9788 gcc_cv_func_mmap_file
=no
;;
9790 gcc_cv_func_mmap_file
=yes;;
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9794 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9796 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9797 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9798 $as_echo_n "(cached) " >&6
9800 # Add a system to this blacklist if it has mmap() but /dev/zero
9801 # does not exist, or if mmapping /dev/zero does not give anonymous
9802 # zeroed pages with both the following properties:
9803 # 1. If you map N consecutive pages in with one call, and then
9804 # unmap any subset of those pages, the pages that were not
9805 # explicitly unmapped remain accessible.
9806 # 2. If you map two adjacent blocks of memory and then unmap them
9807 # both at once, they must both go away.
9808 # Systems known to be in this category are Windows (all variants),
9811 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9812 gcc_cv_func_mmap_dev_zero
=no
;;
9814 gcc_cv_func_mmap_dev_zero
=yes;;
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9818 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9820 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9822 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9823 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9828 #include <sys/types.h>
9829 #include <sys/mman.h>
9832 #ifndef MAP_ANONYMOUS
9833 #define MAP_ANONYMOUS MAP_ANON
9839 int n = MAP_ANONYMOUS;
9844 if ac_fn_cxx_try_compile
"$LINENO"; then :
9845 gcc_cv_decl_map_anon
=yes
9847 gcc_cv_decl_map_anon
=no
9849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9852 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9854 if test $gcc_cv_decl_map_anon = no
; then
9855 gcc_cv_func_mmap_anon
=no
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9858 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9859 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9860 $as_echo_n "(cached) " >&6
9862 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9863 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9864 # doesn't give anonymous zeroed pages with the same properties listed
9865 # above for use of /dev/zero.
9866 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9868 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9869 gcc_cv_func_mmap_anon
=no
;;
9871 gcc_cv_func_mmap_anon
=yes;;
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9875 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9879 if test $gcc_cv_func_mmap_file = yes; then
9881 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9884 if test $gcc_cv_func_mmap_dev_zero = yes; then
9886 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9889 if test $gcc_cv_func_mmap_anon = yes; then
9891 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9898 # Under VMS, vfork works very differently than on Unix. The standard test
9899 # won't work, and it isn't easily adaptable. It makes more sense to
9901 ac_cv_func_vfork_works
=yes
9904 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9905 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9909 cat >>confdefs.h
<<_ACEOF
9915 for ac_header
in vfork.h
9917 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9918 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9919 cat >>confdefs.h
<<_ACEOF
9920 #define HAVE_VFORK_H 1
9926 for ac_func
in fork vfork
9928 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9929 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9930 eval as_val
=\$
$as_ac_var
9931 if test "x$as_val" = x
""yes; then :
9932 cat >>confdefs.h
<<_ACEOF
9933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9939 if test "x$ac_cv_func_fork" = xyes
; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9941 $as_echo_n "checking for working fork... " >&6; }
9942 if test "${ac_cv_func_fork_works+set}" = set; then :
9943 $as_echo_n "(cached) " >&6
9945 if test "$cross_compiling" = yes; then :
9946 ac_cv_func_fork_works
=cross
9948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9950 $ac_includes_default
9955 /* By Ruediger Kuhlmann. */
9962 if ac_fn_cxx_try_run
"$LINENO"; then :
9963 ac_cv_func_fork_works
=yes
9965 ac_cv_func_fork_works
=no
9967 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9968 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9973 $as_echo "$ac_cv_func_fork_works" >&6; }
9976 ac_cv_func_fork_works
=$ac_cv_func_fork
9978 if test "x$ac_cv_func_fork_works" = xcross
; then
9980 *-*-amigaos* |
*-*-msdosdjgpp*)
9981 # Override, as these systems have only a dummy fork() stub
9982 ac_cv_func_fork_works
=no
9985 ac_cv_func_fork_works
=yes
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9989 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9991 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9992 if test "x$ac_cv_func_vfork" = xyes
; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9994 $as_echo_n "checking for working vfork... " >&6; }
9995 if test "${ac_cv_func_vfork_works+set}" = set; then :
9996 $as_echo_n "(cached) " >&6
9998 if test "$cross_compiling" = yes; then :
9999 ac_cv_func_vfork_works
=cross
10001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10003 /* Thanks to Paul Eggert for this test. */
10004 $ac_includes_default
10005 #include <sys/wait.h>
10006 #ifdef HAVE_VFORK_H
10007 # include <vfork.h>
10009 /* On some sparc systems, changes by the child to local and incoming
10010 argument registers are propagated back to the parent. The compiler
10011 is told about this with #include <vfork.h>, but some compilers
10012 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10013 static variable whose address is put into a register that is
10014 clobbered by the vfork. */
10017 sparc_address_test (int arg)
10019 sparc_address_test (arg) int arg;
10022 static pid_t child;
10040 pid_t parent = getpid ();
10043 sparc_address_test (0);
10048 /* Here is another test for sparc vfork register problems. This
10049 test uses lots of local variables, at least as many local
10050 variables as main has allocated so far including compiler
10051 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10052 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10053 reuse the register of parent for one of the local variables,
10054 since it will think that parent can't possibly be used any more
10055 in this routine. Assigning to the local variable will thus
10056 munge parent in the parent process. */
10058 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10059 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10060 /* Convince the compiler that p..p7 are live; otherwise, it might
10061 use the same hardware register for all 8 local variables. */
10062 if (p != p1 || p != p2 || p != p3 || p != p4
10063 || p != p5 || p != p6 || p != p7)
10066 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10067 from child file descriptors. If the child closes a descriptor
10068 before it execs or exits, this munges the parent's descriptor
10069 as well. Test for this by closing stdout in the child. */
10070 _exit(close(fileno(stdout)) != 0);
10075 while (wait(&status) != child)
10078 /* Was there some problem with vforking? */
10081 /* Did the child fail? (This shouldn't happen.) */
10084 /* Did the vfork/compiler bug occur? */
10085 || parent != getpid()
10087 /* Did the file descriptor bug occur? */
10088 || fstat(fileno(stdout), &st) != 0
10093 if ac_fn_cxx_try_run
"$LINENO"; then :
10094 ac_cv_func_vfork_works
=yes
10096 ac_cv_func_vfork_works
=no
10098 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10099 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10104 $as_echo "$ac_cv_func_vfork_works" >&6; }
10107 if test "x$ac_cv_func_fork_works" = xcross
; then
10108 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10110 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10113 if test "x$ac_cv_func_vfork_works" = xyes
; then
10115 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10119 $as_echo "#define vfork fork" >>confdefs.h
10122 if test "x$ac_cv_func_fork_works" = xyes
; then
10124 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10130 if test "X$prefix" = "XNONE"; then
10131 acl_final_prefix
="$ac_default_prefix"
10133 acl_final_prefix
="$prefix"
10135 if test "X$exec_prefix" = "XNONE"; then
10136 acl_final_exec_prefix
='${prefix}'
10138 acl_final_exec_prefix
="$exec_prefix"
10140 acl_save_prefix
="$prefix"
10141 prefix
="$acl_final_prefix"
10142 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10143 prefix
="$acl_save_prefix"
10146 # Check whether --with-gnu-ld was given.
10147 if test "${with_gnu_ld+set}" = set; then :
10148 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10153 # Prepare PATH_SEPARATOR.
10154 # The user is always right.
10155 if test "${PATH_SEPARATOR+set}" != set; then
10156 echo "#! /bin/sh" >conf$$.sh
10157 echo "exit 0" >>conf$$.sh
10159 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10167 if test "$GCC" = yes; then
10168 # Check if gcc -print-prog-name=ld gives a path.
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10170 $as_echo_n "checking for ld used by GCC... " >&6; }
10173 # gcc leaves a trailing carriage return which upsets mingw
10174 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10176 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10179 # Accept absolute paths.
10180 [\\/]* |
[A-Za-z
]:[\\/]*)
10181 re_direlt
='/[^/][^/]*/\.\./'
10182 # Canonicalize the path of ld
10183 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10184 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10185 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10187 test -z "$LD" && LD
="$ac_prog"
10190 # If it fails, then pretend we aren't using GCC.
10194 # If it is relative, then search for the first ld in PATH.
10195 with_gnu_ld
=unknown
10198 elif test "$with_gnu_ld" = yes; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10200 $as_echo_n "checking for GNU ld... " >&6; }
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10203 $as_echo_n "checking for non-GNU ld... " >&6; }
10205 if test "${acl_cv_path_LD+set}" = set; then :
10206 $as_echo_n "(cached) " >&6
10208 if test -z "$LD"; then
10209 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10210 for ac_dir
in $PATH; do
10211 test -z "$ac_dir" && ac_dir
=.
10212 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10213 acl_cv_path_LD
="$ac_dir/$ac_prog"
10214 # Check to see if the program is GNU ld. I'd rather use --version,
10215 # but apparently some GNU ld's only accept -v.
10216 # Break only if it was the GNU/non-GNU ld that we prefer.
10217 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10218 test "$with_gnu_ld" != no
&& break
10220 test "$with_gnu_ld" != yes && break
10226 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10230 LD
="$acl_cv_path_LD"
10231 if test -n "$LD"; then
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10233 $as_echo "$LD" >&6; }
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236 $as_echo "no" >&6; }
10238 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10240 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10241 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10244 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10245 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10246 acl_cv_prog_gnu_ld
=yes
10248 acl_cv_prog_gnu_ld
=no
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10252 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10253 with_gnu_ld
=$acl_cv_prog_gnu_ld
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10258 $as_echo_n "checking for shared library run path origin... " >&6; }
10259 if test "${acl_cv_rpath+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10263 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10264 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10266 rm -f .
/conftest.sh
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10271 $as_echo "$acl_cv_rpath" >&6; }
10273 libext
="$acl_cv_libext"
10274 shlibext
="$acl_cv_shlibext"
10275 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10276 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10277 hardcode_direct
="$acl_cv_hardcode_direct"
10278 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10279 # Check whether --enable-rpath was given.
10280 if test "${enable_rpath+set}" = set; then :
10281 enableval
=$enable_rpath; :
10295 acl_save_prefix
="$prefix"
10296 prefix
="$acl_final_prefix"
10297 acl_save_exec_prefix
="$exec_prefix"
10298 exec_prefix
="$acl_final_exec_prefix"
10300 eval additional_includedir
=\"$includedir\"
10301 eval additional_libdir
=\"$libdir\"
10303 exec_prefix
="$acl_save_exec_prefix"
10304 prefix
="$acl_save_prefix"
10307 # Check whether --with-libiconv-prefix was given.
10308 if test "${with_libiconv_prefix+set}" = set; then :
10309 withval
=$with_libiconv_prefix;
10310 if test "X$withval" = "Xno"; then
10313 if test "X$withval" = "X"; then
10315 acl_save_prefix
="$prefix"
10316 prefix
="$acl_final_prefix"
10317 acl_save_exec_prefix
="$exec_prefix"
10318 exec_prefix
="$acl_final_exec_prefix"
10320 eval additional_includedir
=\"$includedir\"
10321 eval additional_libdir
=\"$libdir\"
10323 exec_prefix
="$acl_save_exec_prefix"
10324 prefix
="$acl_save_prefix"
10327 additional_includedir
="$withval/include"
10328 additional_libdir
="$withval/lib"
10339 names_already_handled
=
10340 names_next_round
='iconv '
10341 while test -n "$names_next_round"; do
10342 names_this_round
="$names_next_round"
10344 for name
in $names_this_round; do
10346 for n
in $names_already_handled; do
10347 if test "$n" = "$name"; then
10348 already_handled
=yes
10352 if test -z "$already_handled"; then
10353 names_already_handled
="$names_already_handled $name"
10354 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10355 eval value
=\"\
$HAVE_LIB$uppername\"
10356 if test -n "$value"; then
10357 if test "$value" = yes; then
10358 eval value
=\"\
$LIB$uppername\"
10359 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10360 eval value
=\"\
$LTLIB$uppername\"
10361 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10370 if test $use_additional = yes; then
10371 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10372 found_dir
="$additional_libdir"
10373 found_so
="$additional_libdir/lib$name.$shlibext"
10374 if test -f "$additional_libdir/lib$name.la"; then
10375 found_la
="$additional_libdir/lib$name.la"
10378 if test -f "$additional_libdir/lib$name.$libext"; then
10379 found_dir
="$additional_libdir"
10380 found_a
="$additional_libdir/lib$name.$libext"
10381 if test -f "$additional_libdir/lib$name.la"; then
10382 found_la
="$additional_libdir/lib$name.la"
10387 if test "X$found_dir" = "X"; then
10388 for x
in $LDFLAGS $LTLIBICONV; do
10390 acl_save_prefix
="$prefix"
10391 prefix
="$acl_final_prefix"
10392 acl_save_exec_prefix
="$exec_prefix"
10393 exec_prefix
="$acl_final_exec_prefix"
10395 exec_prefix
="$acl_save_exec_prefix"
10396 prefix
="$acl_save_prefix"
10400 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10401 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10403 found_so
="$dir/lib$name.$shlibext"
10404 if test -f "$dir/lib$name.la"; then
10405 found_la
="$dir/lib$name.la"
10408 if test -f "$dir/lib$name.$libext"; then
10410 found_a
="$dir/lib$name.$libext"
10411 if test -f "$dir/lib$name.la"; then
10412 found_la
="$dir/lib$name.la"
10418 if test "X$found_dir" != "X"; then
10423 if test "X$found_dir" != "X"; then
10424 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10425 if test "X$found_so" != "X"; then
10426 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10427 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10430 for x
in $ltrpathdirs; do
10431 if test "X$x" = "X$found_dir"; then
10436 if test -z "$haveit"; then
10437 ltrpathdirs
="$ltrpathdirs $found_dir"
10439 if test "$hardcode_direct" = yes; then
10440 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10442 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10443 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10445 for x
in $rpathdirs; do
10446 if test "X$x" = "X$found_dir"; then
10451 if test -z "$haveit"; then
10452 rpathdirs
="$rpathdirs $found_dir"
10456 for x
in $LDFLAGS $LIBICONV; do
10458 acl_save_prefix
="$prefix"
10459 prefix
="$acl_final_prefix"
10460 acl_save_exec_prefix
="$exec_prefix"
10461 exec_prefix
="$acl_final_exec_prefix"
10463 exec_prefix
="$acl_save_exec_prefix"
10464 prefix
="$acl_save_prefix"
10466 if test "X$x" = "X-L$found_dir"; then
10471 if test -z "$haveit"; then
10472 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10474 if test "$hardcode_minus_L" != no
; then
10475 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10477 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10483 if test "X$found_a" != "X"; then
10484 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10486 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10489 additional_includedir
=
10490 case "$found_dir" in
10492 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10493 additional_includedir
="$basedir/include"
10496 if test "X$additional_includedir" != "X"; then
10497 if test "X$additional_includedir" != "X/usr/include"; then
10499 if test "X$additional_includedir" = "X/usr/local/include"; then
10500 if test -n "$GCC"; then
10502 linux
*) haveit
=yes;;
10506 if test -z "$haveit"; then
10507 for x
in $CPPFLAGS $INCICONV; do
10509 acl_save_prefix
="$prefix"
10510 prefix
="$acl_final_prefix"
10511 acl_save_exec_prefix
="$exec_prefix"
10512 exec_prefix
="$acl_final_exec_prefix"
10514 exec_prefix
="$acl_save_exec_prefix"
10515 prefix
="$acl_save_prefix"
10517 if test "X$x" = "X-I$additional_includedir"; then
10522 if test -z "$haveit"; then
10523 if test -d "$additional_includedir"; then
10524 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10530 if test -n "$found_la"; then
10531 save_libdir
="$libdir"
10532 case "$found_la" in
10533 */* |
*\\*) .
"$found_la" ;;
10534 *) .
"./$found_la" ;;
10536 libdir
="$save_libdir"
10537 for dep
in $dependency_libs; do
10540 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10541 if test "X$additional_libdir" != "X/usr/lib"; then
10543 if test "X$additional_libdir" = "X/usr/local/lib"; then
10544 if test -n "$GCC"; then
10546 linux
*) haveit
=yes;;
10550 if test -z "$haveit"; then
10552 for x
in $LDFLAGS $LIBICONV; do
10554 acl_save_prefix
="$prefix"
10555 prefix
="$acl_final_prefix"
10556 acl_save_exec_prefix
="$exec_prefix"
10557 exec_prefix
="$acl_final_exec_prefix"
10559 exec_prefix
="$acl_save_exec_prefix"
10560 prefix
="$acl_save_prefix"
10562 if test "X$x" = "X-L$additional_libdir"; then
10567 if test -z "$haveit"; then
10568 if test -d "$additional_libdir"; then
10569 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10573 for x
in $LDFLAGS $LTLIBICONV; do
10575 acl_save_prefix
="$prefix"
10576 prefix
="$acl_final_prefix"
10577 acl_save_exec_prefix
="$exec_prefix"
10578 exec_prefix
="$acl_final_exec_prefix"
10580 exec_prefix
="$acl_save_exec_prefix"
10581 prefix
="$acl_save_prefix"
10583 if test "X$x" = "X-L$additional_libdir"; then
10588 if test -z "$haveit"; then
10589 if test -d "$additional_libdir"; then
10590 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10597 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10598 if test "$enable_rpath" != no
; then
10600 for x
in $rpathdirs; do
10601 if test "X$x" = "X$dir"; then
10606 if test -z "$haveit"; then
10607 rpathdirs
="$rpathdirs $dir"
10610 for x
in $ltrpathdirs; do
10611 if test "X$x" = "X$dir"; then
10616 if test -z "$haveit"; then
10617 ltrpathdirs
="$ltrpathdirs $dir"
10622 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10625 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10628 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10629 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10635 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10636 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10642 if test "X$rpathdirs" != "X"; then
10643 if test -n "$hardcode_libdir_separator"; then
10645 for found_dir
in $rpathdirs; do
10646 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10648 acl_save_libdir
="$libdir"
10650 eval flag
=\"$hardcode_libdir_flag_spec\"
10651 libdir
="$acl_save_libdir"
10652 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10654 for found_dir
in $rpathdirs; do
10655 acl_save_libdir
="$libdir"
10656 libdir
="$found_dir"
10657 eval flag
=\"$hardcode_libdir_flag_spec\"
10658 libdir
="$acl_save_libdir"
10659 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10663 if test "X$ltrpathdirs" != "X"; then
10664 for found_dir
in $ltrpathdirs; do
10665 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10676 $as_echo_n "checking for iconv... " >&6; }
10677 if test "${am_cv_func_iconv+set}" = set; then :
10678 $as_echo_n "(cached) " >&6
10681 am_cv_func_iconv
="no, consider installing GNU libiconv"
10683 am_save_CPPFLAGS
="$CPPFLAGS"
10684 CPPFLAGS
="$CPPFLAGS $INCICONV"
10685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10687 #include <stdlib.h>
10692 iconv_t cd = iconv_open("","");
10693 iconv(cd,NULL,NULL,NULL,NULL);
10699 if ac_fn_cxx_try_link
"$LINENO"; then :
10700 am_cv_func_iconv
=yes
10702 rm -f core conftest.err conftest.
$ac_objext \
10703 conftest
$ac_exeext conftest.
$ac_ext
10704 CPPFLAGS
="$am_save_CPPFLAGS"
10706 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10707 for _libs
in .libs _libs
; do
10708 am_save_CPPFLAGS
="$CPPFLAGS"
10709 am_save_LIBS
="$LIBS"
10710 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10711 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10714 #include <stdlib.h>
10719 iconv_t cd = iconv_open("","");
10720 iconv(cd,NULL,NULL,NULL,NULL);
10726 if ac_fn_cxx_try_link
"$LINENO"; then :
10727 INCICONV
="-I../libiconv/include"
10728 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10729 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10730 am_cv_lib_iconv
=yes
10731 am_cv_func_iconv
=yes
10733 rm -f core conftest.err conftest.
$ac_objext \
10734 conftest
$ac_exeext conftest.
$ac_ext
10735 CPPFLAGS
="$am_save_CPPFLAGS"
10736 LIBS
="$am_save_LIBS"
10737 if test "$am_cv_func_iconv" = "yes"; then
10743 if test "$am_cv_func_iconv" != yes; then
10744 am_save_CPPFLAGS
="$CPPFLAGS"
10745 am_save_LIBS
="$LIBS"
10746 CPPFLAGS
="$LIBS $INCICONV"
10747 LIBS
="$LIBS $LIBICONV"
10748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10750 #include <stdlib.h>
10755 iconv_t cd = iconv_open("","");
10756 iconv(cd,NULL,NULL,NULL,NULL);
10762 if ac_fn_cxx_try_link
"$LINENO"; then :
10763 am_cv_lib_iconv
=yes
10764 am_cv_func_iconv
=yes
10766 rm -f core conftest.err conftest.
$ac_objext \
10767 conftest
$ac_exeext conftest.
$ac_ext
10768 CPPFLAGS
="$am_save_CPPFLAGS"
10769 LIBS
="$am_save_LIBS"
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10774 $as_echo "$am_cv_func_iconv" >&6; }
10775 if test "$am_cv_func_iconv" = yes; then
10777 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10780 if test "$am_cv_lib_iconv" = yes; then
10782 for element
in $INCICONV; do
10784 for x
in $CPPFLAGS; do
10786 acl_save_prefix
="$prefix"
10787 prefix
="$acl_final_prefix"
10788 acl_save_exec_prefix
="$exec_prefix"
10789 exec_prefix
="$acl_final_exec_prefix"
10791 exec_prefix
="$acl_save_exec_prefix"
10792 prefix
="$acl_save_prefix"
10794 if test "X$x" = "X$element"; then
10799 if test -z "$haveit"; then
10800 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10805 $as_echo_n "checking how to link with libiconv... " >&6; }
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10807 $as_echo "$LIBICONV" >&6; }
10815 if test "$am_cv_func_iconv" = yes; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10817 $as_echo_n "checking for iconv declaration... " >&6; }
10818 if test "${am_cv_proto_iconv+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10825 #include <stdlib.h>
10831 #if defined(__STDC__) || defined(__cplusplus)
10832 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10845 if ac_fn_cxx_try_compile
"$LINENO"; then :
10846 am_cv_proto_iconv_arg1
=""
10848 am_cv_proto_iconv_arg1
="const"
10850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10851 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);"
10854 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10856 }$am_cv_proto_iconv" >&5
10858 }$am_cv_proto_iconv" >&6; }
10860 cat >>confdefs.h
<<_ACEOF
10861 #define ICONV_CONST $am_cv_proto_iconv_arg1
10867 # Until we have in-tree GNU iconv:
10869 if test -f "$LTLIBICONV"; then
10870 LIBICONV_DEP
=$LTLIBICONV
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10876 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10877 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10882 #include <locale.h>
10891 if ac_fn_cxx_try_link
"$LINENO"; then :
10892 am_cv_val_LC_MESSAGES
=yes
10894 am_cv_val_LC_MESSAGES
=no
10896 rm -f core conftest.err conftest.
$ac_objext \
10897 conftest
$ac_exeext conftest.
$ac_ext
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10900 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10901 if test $am_cv_val_LC_MESSAGES = yes; then
10903 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10910 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10911 if test "${am_cv_langinfo_codeset+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10916 #include <langinfo.h>
10920 char* cs = nl_langinfo(CODESET);
10925 if ac_fn_cxx_try_link
"$LINENO"; then :
10926 am_cv_langinfo_codeset
=yes
10928 am_cv_langinfo_codeset
=no
10930 rm -f core conftest.err conftest.
$ac_objext \
10931 conftest
$ac_exeext conftest.
$ac_ext
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10935 $as_echo "$am_cv_langinfo_codeset" >&6; }
10936 if test $am_cv_langinfo_codeset = yes; then
10938 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10943 # We will need to find libiberty.h and ansidecl.h
10944 saved_CFLAGS
="$CFLAGS"
10945 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10946 saved_CXXFLAGS
="$CXXFLAGS"
10947 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10949 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10950 # normal autoconf function for these. But force definition of
10951 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10952 # basename handling in libiberty.h.
10953 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10954 #undef HAVE_DECL_BASENAME
10955 #define HAVE_DECL_BASENAME 1
10956 #include \"ansidecl.h\"
10957 #include \"system.h\"
10959 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10965 cat >>confdefs.h
<<_ACEOF
10966 #define HAVE_DECL_BASENAME $ac_have_decl
10968 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10969 #undef HAVE_DECL_BASENAME
10970 #define HAVE_DECL_BASENAME 1
10971 #include \"ansidecl.h\"
10972 #include \"system.h\"
10974 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10980 cat >>confdefs.h
<<_ACEOF
10981 #define HAVE_DECL_STRSTR $ac_have_decl
10985 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10986 madvise stpcpy strnlen strsignal strverscmp \
10987 strtol strtoul strtoll strtoull setenv unsetenv \
10988 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10989 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
10991 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10993 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10994 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10995 $as_echo_n "(cached) " >&6
10997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11000 #define $ac_tr_decl 1
11002 #include "ansidecl.h"
11003 #include "system.h"
11009 char *(*pfn) = (char *(*)) $ac_func ;
11015 if ac_fn_cxx_try_compile
"$LINENO"; then :
11016 eval "gcc_cv_have_decl_$ac_func=yes"
11018 eval "gcc_cv_have_decl_$ac_func=no"
11020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11023 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11025 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11026 #define $ac_tr_decl 1
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11032 #define $ac_tr_decl 0
11040 for ac_func
in getrlimit setrlimit getrusage
11042 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11044 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11045 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11046 $as_echo_n "(cached) " >&6
11048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11051 #define $ac_tr_decl 1
11053 #include "ansidecl.h"
11054 #include "system.h"
11055 #ifdef HAVE_SYS_RESOURCE_H
11056 #include <sys/resource.h>
11064 char *(*pfn) = (char *(*)) $ac_func ;
11070 if ac_fn_cxx_try_compile
"$LINENO"; then :
11071 eval "gcc_cv_have_decl_$ac_func=yes"
11073 eval "gcc_cv_have_decl_$ac_func=no"
11075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11078 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11080 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11081 #define $ac_tr_decl 1
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11087 #define $ac_tr_decl 0
11095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11096 /* end confdefs.h. */
11098 #include "ansidecl.h"
11099 #include "system.h"
11100 #ifdef HAVE_SYS_RESOURCE_H
11101 #include <sys/resource.h>
11112 if ac_fn_cxx_try_compile
"$LINENO"; then :
11116 $as_echo "#define rlim_t long" >>confdefs.h
11119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11121 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11122 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11123 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11124 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11125 for ac_func
in ldgetname
11127 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11129 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11130 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11131 $as_echo_n "(cached) " >&6
11133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11136 #define $ac_tr_decl 1
11138 #include "ansidecl.h"
11139 #include "system.h"
11140 #ifdef HAVE_LDFCN_H
11151 char *(*pfn) = (char *(*)) $ac_func ;
11157 if ac_fn_cxx_try_compile
"$LINENO"; then :
11158 eval "gcc_cv_have_decl_$ac_func=yes"
11160 eval "gcc_cv_have_decl_$ac_func=no"
11162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11165 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11167 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11168 #define $ac_tr_decl 1
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11174 #define $ac_tr_decl 0
11182 for ac_func
in times
11184 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11186 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11187 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11188 $as_echo_n "(cached) " >&6
11190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11191 /* end confdefs.h. */
11193 #define $ac_tr_decl 1
11195 #include "ansidecl.h"
11196 #include "system.h"
11197 #ifdef HAVE_SYS_TIMES_H
11198 #include <sys/times.h>
11206 char *(*pfn) = (char *(*)) $ac_func ;
11212 if ac_fn_cxx_try_compile
"$LINENO"; then :
11213 eval "gcc_cv_have_decl_$ac_func=yes"
11215 eval "gcc_cv_have_decl_$ac_func=no"
11217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11220 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11223 #define $ac_tr_decl 1
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11229 #define $ac_tr_decl 0
11237 for ac_func
in sigaltstack
11239 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11241 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11242 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11243 $as_echo_n "(cached) " >&6
11245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11248 #define $ac_tr_decl 1
11250 #include "ansidecl.h"
11251 #include "system.h"
11252 #include <signal.h>
11259 char *(*pfn) = (char *(*)) $ac_func ;
11265 if ac_fn_cxx_try_compile
"$LINENO"; then :
11266 eval "gcc_cv_have_decl_$ac_func=yes"
11268 eval "gcc_cv_have_decl_$ac_func=no"
11270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11273 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11275 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11276 #define $ac_tr_decl 1
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11282 #define $ac_tr_decl 0
11290 # More time-related stuff.
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11292 $as_echo_n "checking for struct tms... " >&6; }
11293 if test "${ac_cv_struct_tms+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11300 #include "ansidecl.h"
11301 #include "system.h"
11302 #ifdef HAVE_SYS_TIMES_H
11303 #include <sys/times.h>
11314 if ac_fn_cxx_try_compile
"$LINENO"; then :
11315 ac_cv_struct_tms
=yes
11317 ac_cv_struct_tms
=no
11319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11322 $as_echo "$ac_cv_struct_tms" >&6; }
11323 if test $ac_cv_struct_tms = yes; then
11325 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11329 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11330 # revisit after autoconf 2.50.
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11332 $as_echo_n "checking for clock_t... " >&6; }
11333 if test "${gcc_cv_type_clock_t+set}" = set; then :
11334 $as_echo_n "(cached) " >&6
11337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h. */
11340 #include "ansidecl.h"
11341 #include "system.h"
11351 if ac_fn_cxx_try_compile
"$LINENO"; then :
11352 gcc_cv_type_clock_t
=yes
11354 gcc_cv_type_clock_t
=no
11356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11359 $as_echo "$gcc_cv_type_clock_t" >&6; }
11360 if test $gcc_cv_type_clock_t = yes; then
11362 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11366 # Check if F_SETLKW is supported by fcntl.
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11368 $as_echo_n "checking for F_SETLKW... " >&6; }
11369 if test "${ac_cv_f_setlkw+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11386 return fcntl (1, F_SETLKW, &fl);
11391 if ac_fn_cxx_try_compile
"$LINENO"; then :
11396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11399 $as_echo "$ac_cv_f_setlkw" >&6; }
11400 if test $ac_cv_f_setlkw = yes; then
11402 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11406 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11407 CFLAGS
="$saved_CFLAGS"
11408 CXXFLAGS
="$saved_CXXFLAGS"
11410 # mkdir takes a single argument on some systems.
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11412 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11413 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11414 $as_echo_n "(cached) " >&6
11416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11419 #include <sys/types.h>
11420 #ifdef HAVE_SYS_STAT_H
11421 # include <sys/stat.h>
11423 #ifdef HAVE_UNISTD_H
11424 # include <unistd.h>
11426 #ifdef HAVE_DIRECT_H
11427 # include <direct.h>
11437 if ac_fn_cxx_try_compile
"$LINENO"; then :
11438 gcc_cv_mkdir_takes_one_arg
=no
11440 gcc_cv_mkdir_takes_one_arg
=yes
11442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11445 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11446 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11448 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11459 # With Setjmp/Longjmp based exception handling.
11460 # Check whether --enable-sjlj-exceptions was given.
11461 if test "${enable_sjlj_exceptions+set}" = set; then :
11462 enableval
=$enable_sjlj_exceptions; case $target in
11464 if test $enableval != yes; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11466 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11471 force_sjlj_exceptions
=yes
11475 force_sjlj_exceptions
=yes
11479 force_sjlj_exceptions
=yes
11483 force_sjlj_exceptions
=no
11488 if test $force_sjlj_exceptions = yes; then
11489 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11491 cat >>confdefs.h
<<_ACEOF
11492 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11497 # --------------------------------------------------------
11498 # Build, host, and target specific configuration fragments
11499 # --------------------------------------------------------
11501 # Collect build-machine-specific information.
11502 .
${srcdir}/config.build
11504 # Collect host-machine-specific information.
11505 .
${srcdir}/config.
host
11509 # Collect target-machine-specific information.
11510 .
${srcdir}/config.gcc
11512 extra_objs
="${host_extra_objs} ${extra_objs}"
11513 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11515 # Default the target-machine variables that were not explicitly set.
11516 if test x
"$tm_file" = x
11517 then tm_file
=$cpu_type/$cpu_type.h
; fi
11519 if test x
"$extra_headers" = x
11520 then extra_headers
=; fi
11522 if test x
$md_file = x
11523 then md_file
=$cpu_type/$cpu_type.md
; fi
11525 if test x
$out_file = x
11526 then out_file
=$cpu_type/$cpu_type.c
; fi
11528 if test x
"$tmake_file" = x
11529 then tmake_file
=$cpu_type/t-
$cpu_type
11532 # Support --enable-initfini-array.
11533 if test x
$enable_initfini_array != xno
; then
11534 tm_file
="${tm_file} initfini-array.h"
11537 if test x
"$dwarf2" = xyes
11538 then tm_file
="$tm_file tm-dwarf2.h"
11541 # Say what files are being used for the output code and MD file.
11542 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11543 echo "Using \`$srcdir/config/$md_file' as machine description file."
11545 # If any of the xm_file variables contain nonexistent files, warn
11546 # about them and drop them.
11549 for x
in $build_xm_file; do
11550 if test -f $srcdir/config
/$x
11552 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11553 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11556 build_xm_file
="$bx"
11559 for x
in $host_xm_file; do
11560 if test -f $srcdir/config
/$x
11562 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11563 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11569 for x
in $xm_file; do
11570 if test -f $srcdir/config
/$x
11572 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11573 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11579 for f
in $tm_file; do
11582 if test $count = ax
; then
11583 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11585 echo "Using the following target machine macro files:"
11586 for f
in $tm_file; do
11587 echo " $srcdir/config/$f"
11591 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11593 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11597 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11599 cat >>confdefs.h
<<_ACEOF
11600 #define HAVE_GNU_LD $gnu_ld_bool
11604 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11606 cat >>confdefs.h
<<_ACEOF
11607 #define HAVE_GNU_AS $gnu_as_bool
11612 for f
in $host_xm_file; do
11615 if test $count = a
; then
11617 elif test $count = ax
; then
11618 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11620 echo "Using the following host machine macro files:"
11621 for f
in $host_xm_file; do
11622 echo " $srcdir/config/$f"
11625 echo "Using ${out_host_hook_obj} for host machine hooks."
11627 if test "$host_xm_file" != "$build_xm_file"; then
11629 for f
in $build_xm_file; do
11632 if test $count = a
; then
11634 elif test $count = ax
; then
11635 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11637 echo "Using the following build machine macro files:"
11638 for f
in $build_xm_file; do
11639 echo " $srcdir/config/$f"
11644 if test -n "$configured_native_system_header_dir"; then
11645 native_system_header_dir
=$configured_native_system_header_dir
11647 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11651 powerpc
*-*-darwin*)
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11653 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11654 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11655 $as_echo_n "(cached) " >&6
11657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11660 #include <sys/cdefs.h>
11661 #include <sys/signal.h>
11662 #include <ucontext.h>
11663 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11666 if ac_fn_cxx_try_compile
"$LINENO"; then :
11667 gcc_cv_mcontext_underscores
=no
11669 gcc_cv_mcontext_underscores
=yes
11671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11674 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11675 if test $gcc_cv_mcontext_underscores = yes; then
11677 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11687 # Check if a valid thread package
11688 case ${enable_threads} in
11691 target_thread_file
='single'
11695 target_thread_file
='single'
11697 aix | dce | lynx | mipssde | posix | rtems | \
11698 single | tpf | vxworks | win32
)
11699 target_thread_file
=${enable_threads}
11702 echo "${enable_threads} is an unknown thread package" 1>&2
11707 if test x
${thread_file} = x
; then
11708 # No thread file set by target-specific clauses in config.gcc,
11709 # so use file chosen by default logic above
11710 thread_file
=${target_thread_file}
11718 if test x
$enable___cxa_atexit = xyes || \
11719 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11720 if test x
$host = x
$target; then
11722 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11723 # keyed to flag_use_cxa_atexit
11731 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11732 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11735 echo "__cxa_atexit can't be enabled on this target"
11741 # We can't check for __cxa_atexit when building a cross, so assume
11745 if test x
$use_cxa_atexit = xyes
; then
11747 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11752 # Look for a file containing extra machine modes.
11753 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11754 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11757 cat >>confdefs.h
<<_ACEOF
11758 #define EXTRA_MODES_FILE "config/$extra_modes"
11763 # Convert extra_options into a form suitable for Makefile use.
11766 for f
in $extra_options; do
11767 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11768 all_opt_files
="$all_opt_files $srcdir/config/$f"
11772 # auto-host.h is the file containing items generated by autoconf and is
11773 # the first file included by config.h.
11774 # If host=build, it is correct to have bconfig include auto-host.h
11775 # as well. If host!=build, we are in error and need to do more
11776 # work to find out the build config parameters.
11777 if test x
$host = x
$build
11779 build_auto
=auto-host.h
11781 # We create a subdir, then run autoconf in the subdir.
11782 # To prevent recursion we set host and build for the new
11783 # invocation of configure to the build for this invocation
11790 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11791 *) realsrcdir
=..
/${srcdir};;
11793 # Clearing GMPINC is necessary to prevent host headers being
11794 # used by the build compiler. Defining GENERATOR_FILE stops
11795 # system.h from including gmp.h.
11796 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11797 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11798 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11799 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11800 ${realsrcdir}/configure \
11801 --enable-languages=${enable_languages-all} \
11802 --target=$target_alias --host=$build_alias --build=$build_alias
11804 # We just finished tests for the build machine, so rename
11805 # the file auto-build.h in the gcc directory.
11806 mv auto-host.h ..
/auto-build.h
11809 build_auto
=auto-build.h
11813 tm_file
="${tm_file} defaults.h"
11814 tm_p_file
="${tm_p_file} tm-preds.h"
11815 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11816 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11817 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11818 # put this back in temporarily.
11819 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11825 # Compile in configure arguments.
11826 if test -f configargs.h
; then
11827 # Being re-configured.
11828 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11829 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11831 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11834 # Double all backslashes and backslash all quotes to turn
11835 # gcc_config_arguments into a C string.
11836 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11837 $gcc_config_arguments
11839 gcc_config_arguments_str
=`cat conftest.out`
11842 cat > configargs.h
<<EOF
11843 /* Generated automatically. */
11844 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11845 static const char thread_model[] = "$thread_file";
11847 static const struct {
11848 const char *name, *value;
11849 } configure_default_options[] = $configure_default_options;
11852 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11853 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11854 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11855 if test -f $srcdir/REVISION
; then
11856 gcc_REVISION
=`cat $srcdir/REVISION`
11860 cat > plugin-version.h
<<EOF
11861 #include "configargs.h"
11863 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11864 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11865 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11866 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11868 static char basever[] = "$gcc_BASEVER";
11869 static char datestamp[] = "$gcc_DATESTAMP";
11870 static char devphase[] = "$gcc_DEVPHASE";
11871 static char revision[] = "$gcc_REVISION";
11873 /* FIXME plugins: We should make the version information more precise.
11874 One way to do is to add a checksum. */
11876 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11877 devphase, revision,
11878 configuration_arguments};
11881 # Internationalization
11882 # If we haven't got the data from the intl directory,
11883 # assume NLS is disabled.
11892 if test -f ..
/intl
/config.intl
; then
11893 . ..
/intl
/config.intl
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11896 $as_echo_n "checking whether NLS is requested... " >&6; }
11897 if test x
"$USE_NLS" != xyes
; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899 $as_echo "no" >&6; }
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11902 $as_echo "yes" >&6; }
11904 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11908 $as_echo_n "checking for catalogs to be installed... " >&6; }
11909 # Look for .po and .gmo files in the source directory.
11912 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11913 # If there aren't any .gmo files the shell will give us the
11914 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11916 case "$cat" in *\
**)
11919 # The quadruple backslash is collapsed to a double backslash
11920 # by the backticks, then collapsed again by the double quotes,
11921 # leaving us with one backslash in the sed expression (right
11922 # before the dot that mustn't act as a wildcard).
11923 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11924 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11925 # The user is allowed to set LINGUAS to a list of languages to
11926 # install catalogs for. If it's empty that means "all of them."
11927 if test "x$LINGUAS" = x
; then
11928 CATALOGS
="$CATALOGS $cat"
11929 XLINGUAS
="$XLINGUAS $lang"
11931 case "$LINGUAS" in *$lang*)
11932 CATALOGS
="$CATALOGS $cat"
11933 XLINGUAS
="$XLINGUAS $lang"
11938 LINGUAS
="$XLINGUAS"
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11940 $as_echo "$LINGUAS" >&6; }
11953 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11954 # -liconv on the link line twice.
11955 case "$LIBINTL" in *$LIBICONV*)
11959 # Check whether --enable-secureplt was given.
11960 if test "${enable_secureplt+set}" = set; then :
11961 enableval
=$enable_secureplt;
11965 # Check whether --enable-leading-mingw64-underscores was given.
11966 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11967 enableval
=$enable_leading_mingw64_underscores;
11970 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11972 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11976 # Check whether --enable-cld was given.
11977 if test "${enable_cld+set}" = set; then :
11978 enableval
=$enable_cld;
11984 # Check whether --enable-frame-pointer was given.
11985 if test "${enable_frame_pointer+set}" = set; then :
11986 enableval
=$enable_frame_pointer;
11990 linux
* | darwin
[8912]*)
11991 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11993 enable_frame_pointer
=no
11996 enable_frame_pointer
=yes
12003 # Windows32 Registry support for specifying GCC installation paths.
12004 # Check whether --enable-win32-registry was given.
12005 if test "${enable_win32_registry+set}" = set; then :
12006 enableval
=$enable_win32_registry;
12011 win32 | pe | cygwin
* | mingw32
*)
12012 if test "x$enable_win32_registry" != xno
; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12014 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12015 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12018 ac_func_search_save_LIBS
=$LIBS
12019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12022 /* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12028 char RegOpenKeyExA ();
12032 return RegOpenKeyExA ();
12037 for ac_lib
in '' advapi32
; do
12038 if test -z "$ac_lib"; then
12039 ac_res
="none required"
12042 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12044 if ac_fn_cxx_try_link
"$LINENO"; then :
12045 ac_cv_search_RegOpenKeyExA
=$ac_res
12047 rm -f core conftest.err conftest.
$ac_objext \
12049 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12053 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12056 ac_cv_search_RegOpenKeyExA
=no
12058 rm conftest.
$ac_ext
12059 LIBS
=$ac_func_search_save_LIBS
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12062 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12063 ac_res
=$ac_cv_search_RegOpenKeyExA
12064 if test "$ac_res" != no
; then :
12065 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12068 enable_win32_registry
=no
12073 if test "x$enable_win32_registry" != xno
; then
12075 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12078 if test "x$enable_win32_registry" != xyes \
12079 && test "x$enable_win32_registry" != x
; then
12081 cat >>confdefs.h
<<_ACEOF
12082 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12090 # Get an absolute path to the GCC top-level source directory
12091 holddir
=`${PWDCMD-pwd}`
12093 topdir
=`${PWDCMD-pwd}`
12096 # Conditionalize the makefile for this host machine.
12098 for f
in ${host_xmake_file}
12100 if test -f ${srcdir}/config
/$f
12102 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12106 # Conditionalize the makefile for this target machine.
12108 for f
in ${tmake_file}
12110 if test -f ${srcdir}/config
/$f
12112 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12115 tmake_file
="${tmake_file_}"
12117 out_object_file
=`basename $out_file .c`.o
12118 common_out_object_file
=`basename $common_out_file .c`.o
12120 tm_file_list
="options.h"
12121 tm_include_list
="options.h insn-constants.h"
12122 for f
in $tm_file; do
12125 f
=`echo $f | sed 's/^..//'`
12126 tm_file_list
="${tm_file_list} $f"
12127 tm_include_list
="${tm_include_list} $f"
12130 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12131 tm_include_list
="${tm_include_list} $f"
12134 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12135 tm_include_list
="${tm_include_list} config/$f"
12142 for f
in $tm_p_file; do
12145 tm_p_file_list
="${tm_p_file_list} $f"
12146 tm_p_include_list
="${tm_p_include_list} $f"
12149 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12150 tm_p_include_list
="${tm_p_include_list} config/$f"
12156 for f
in $xm_file; do
12159 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12160 xm_include_list
="${xm_include_list} $f"
12163 xm_file_list
="${xm_file_list} $f"
12164 xm_include_list
="${xm_include_list} $f"
12167 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12168 xm_include_list
="${xm_include_list} config/$f"
12174 host_xm_include_list
=
12175 for f
in $host_xm_file; do
12178 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12179 host_xm_include_list
="${host_xm_include_list} $f"
12182 host_xm_file_list
="${host_xm_file_list} $f"
12183 host_xm_include_list
="${host_xm_include_list} $f"
12186 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12187 host_xm_include_list
="${host_xm_include_list} config/$f"
12192 build_xm_file_list
=
12193 for f
in $build_xm_file; do
12196 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12197 build_xm_include_list
="${build_xm_include_list} $f"
12199 auto-build.h | auto-host.h
)
12200 build_xm_file_list
="${build_xm_file_list} $f"
12201 build_xm_include_list
="${build_xm_include_list} $f"
12204 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12205 build_xm_include_list
="${build_xm_include_list} config/$f"
12210 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12211 # cross-compiler which does not use the native headers and libraries.
12212 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12215 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12217 if test "x$with_build_sysroot" != x
; then
12218 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12220 # This value is used, even on a native system, because
12221 # CROSS_SYSTEM_HEADER_DIR is just
12222 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12223 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12226 if test x
$host != x
$target
12228 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12230 SYSTEM_HEADER_DIR
=$build_system_header_dir
12231 case "$host","$target" in
12232 # Darwin crosses can use the host system's libraries and headers,
12233 # because of the fat library support. Of course, it must be the
12234 # same version of Darwin on both sides. Allow the user to
12235 # just say --target=foo-darwin without a version number to mean
12236 # "the version on this system".
12237 *-*-darwin*,*-*-darwin*)
12238 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12239 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12240 if test $hostos = $targetos -o $targetos = darwin
; then
12242 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12247 i?
86-*-*,x86_64-
*-* \
12248 | powerpc
*-*-*,powerpc64
*-*-*)
12249 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12254 if test "x$with_headers" = x
; then
12261 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12262 SYSTEM_HEADER_DIR
=$build_system_header_dir
12265 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
12266 if test "x$with_headers" != x
; then
12267 target_header_dir
=$with_headers
12268 elif test "x$with_sysroot" = x
; then
12269 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12270 elif test "x$with_build_sysroot" != "x"; then
12271 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12272 elif test "x$with_sysroot" = xyes
; then
12273 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12275 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12278 target_header_dir
=${native_system_header_dir}
12281 # If this is a cross-compiler that does not
12282 # have its own set of headers then define
12285 # If this is using newlib, without having the headers available now,
12286 # then define inhibit_libc in LIBGCC2_CFLAGS.
12287 # This prevents libgcc2 from containing any code which requires libc
12289 : ${inhibit_libc=false}
12290 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12291 test x
$with_newlib = xyes
; } &&
12292 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12297 # When building gcc with a cross-compiler, we need to adjust things so
12298 # that the generator programs are still built with the native compiler.
12299 # Also, we cannot run fixincludes.
12301 # These are the normal (build=host) settings:
12302 CC_FOR_BUILD
='$(CC)'
12303 CXX_FOR_BUILD
='$(CXX)'
12304 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12305 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12306 BUILD_LDFLAGS
='$(LDFLAGS)'
12307 STMP_FIXINC
=stmp-fixinc
12309 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12310 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12312 # And these apply if build != host, or we are generating coverage data
12313 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12315 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12316 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12317 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12319 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12320 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12321 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12322 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12327 # Expand extra_headers to include complete path.
12328 # This substitutes for lots of t-* files.
12329 extra_headers_list
=
12330 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12331 for file in ${extra_headers} ; do
12332 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12335 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12336 if test x
"$use_gcc_tgmath" = xyes
12337 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12340 # Define collect2 in Makefile.
12341 case $host_can_use_collect2 in
12343 *) collect2
='collect2$(exeext)' ;;
12347 # Add a definition of USE_COLLECT2 if system wants one.
12348 case $use_collect2 in
12349 no
) use_collect2
= ;;
12352 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12353 xm_defines
="${xm_defines} USE_COLLECT2"
12354 case $host_can_use_collect2 in
12356 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12363 cat >>confdefs.h
<<_ACEOF
12364 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12368 # ---------------------------
12369 # Assembler & linker features
12370 # ---------------------------
12372 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12373 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12374 # However when ld-new is first executed from the build tree, libtool will
12375 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12376 # to the build tree. While doing this we need to use the previous-stage
12377 # linker, or we have an infinite loop. The presence of a shell script as
12378 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12379 # the gcc/collect-ld script. So we need to know how libtool works, or
12380 # exec-tool will fail.
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12386 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12391 macro_version
='2.2.7a'
12392 macro_revision
='1.3134'
12406 ltmain
="$ac_aux_dir/ltmain.sh"
12408 # Backslashify metacharacters that are still active within
12409 # double-quoted strings.
12410 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12412 # Same as above, but do not quote variable references.
12413 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12415 # Sed substitution to delay expansion of an escaped shell variable in a
12416 # double_quote_subst'ed string.
12417 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12419 # Sed substitution to delay expansion of an escaped single quote.
12420 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12422 # Sed substitution to avoid accidental globbing in evaled expressions
12423 no_glob_subst
='s/\*/\\\*/g'
12425 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12426 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12427 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12430 $as_echo_n "checking how to print strings... " >&6; }
12431 # Test print first, because it will be a builtin if present.
12432 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12433 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12435 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12438 # Use this function as a fallback that always works.
12439 func_fallback_echo ()
12441 eval 'cat <<_LTECHO_EOF
12445 ECHO='func_fallback_echo
'
12448 # func_echo_all arg...
12449 # Invoke $ECHO with all args, space-separated.
12456 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12457 $as_echo "printf" >&6; } ;;
12458 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12459 $as_echo "print -r" >&6; } ;;
12460 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12461 $as_echo "cat" >&6; } ;;
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12478 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12479 if test "${ac_cv_path_SED+set}" = set; then :
12480 $as_echo_n "(cached) " >&6
12482 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12483 for ac_i in 1 2 3 4 5 6 7; do
12484 ac_script="$ac_script$as_nl$ac_script"
12486 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12487 { ac_script=; unset ac_script;}
12488 if test -z "$SED"; then
12489 ac_path_SED_found=false
12490 # Loop through the user's path and
test for each of PROGNAME-LIST
12491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12492 for as_dir
in $PATH
12495 test -z "$as_dir" && as_dir
=.
12496 for ac_prog
in sed gsed
; do
12497 for ac_exec_ext
in '' $ac_executable_extensions; do
12498 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12499 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12500 # Check for GNU ac_path_SED and select it if it is found.
12501 # Check for GNU $ac_path_SED
12502 case `"$ac_path_SED" --version 2>&1` in
12504 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12507 $as_echo_n 0123456789 >"conftest.in"
12510 cat "conftest.in" "conftest.in" >"conftest.tmp"
12511 mv "conftest.tmp" "conftest.in"
12512 cp "conftest.in" "conftest.nl"
12513 $as_echo '' >> "conftest.nl"
12514 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12515 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12516 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12517 if test $ac_count -gt ${ac_path_SED_max-0}; then
12518 # Best one so far, save it but keep looking for a better one
12519 ac_cv_path_SED
="$ac_path_SED"
12520 ac_path_SED_max
=$ac_count
12522 # 10*(2^10) chars as input seems more than enough
12523 test $ac_count -gt 10 && break
12525 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12528 $ac_path_SED_found && break 3
12533 if test -z "$ac_cv_path_SED"; then
12534 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12537 ac_cv_path_SED
=$SED
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12542 $as_echo "$ac_cv_path_SED" >&6; }
12543 SED
="$ac_cv_path_SED"
12546 test -z "$SED" && SED
=sed
12547 Xsed
="$SED -e 1s/^X//"
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12560 $as_echo_n "checking for fgrep... " >&6; }
12561 if test "${ac_cv_path_FGREP+set}" = set; then :
12562 $as_echo_n "(cached) " >&6
12564 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12565 then ac_cv_path_FGREP
="$GREP -F"
12567 if test -z "$FGREP"; then
12568 ac_path_FGREP_found
=false
12569 # Loop through the user's path and test for each of PROGNAME-LIST
12570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12571 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12574 test -z "$as_dir" && as_dir
=.
12575 for ac_prog
in fgrep
; do
12576 for ac_exec_ext
in '' $ac_executable_extensions; do
12577 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12578 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12579 # Check for GNU ac_path_FGREP and select it if it is found.
12580 # Check for GNU $ac_path_FGREP
12581 case `"$ac_path_FGREP" --version 2>&1` in
12583 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12586 $as_echo_n 0123456789 >"conftest.in"
12589 cat "conftest.in" "conftest.in" >"conftest.tmp"
12590 mv "conftest.tmp" "conftest.in"
12591 cp "conftest.in" "conftest.nl"
12592 $as_echo 'FGREP' >> "conftest.nl"
12593 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12594 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12595 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12596 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12597 # Best one so far, save it but keep looking for a better one
12598 ac_cv_path_FGREP
="$ac_path_FGREP"
12599 ac_path_FGREP_max
=$ac_count
12601 # 10*(2^10) chars as input seems more than enough
12602 test $ac_count -gt 10 && break
12604 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12607 $ac_path_FGREP_found && break 3
12612 if test -z "$ac_cv_path_FGREP"; then
12613 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12616 ac_cv_path_FGREP
=$FGREP
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12622 $as_echo "$ac_cv_path_FGREP" >&6; }
12623 FGREP
="$ac_cv_path_FGREP"
12626 test -z "$GREP" && GREP
=grep
12646 # Check whether --with-gnu-ld was given.
12647 if test "${with_gnu_ld+set}" = set; then :
12648 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12654 if test "$GCC" = yes; then
12655 # Check if gcc -print-prog-name=ld gives a path.
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12657 $as_echo_n "checking for ld used by $CC... " >&6; }
12660 # gcc leaves a trailing carriage return which upsets mingw
12661 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12663 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12666 # Accept absolute paths.
12668 re_direlt
='/[^/][^/]*/\.\./'
12669 # Canonicalize the pathname of ld
12670 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12671 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12672 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12674 test -z "$LD" && LD
="$ac_prog"
12677 # If it fails, then pretend we aren't using GCC.
12681 # If it is relative, then search for the first ld in PATH.
12682 with_gnu_ld
=unknown
12685 elif test "$with_gnu_ld" = yes; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12687 $as_echo_n "checking for GNU ld... " >&6; }
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12690 $as_echo_n "checking for non-GNU ld... " >&6; }
12692 if test "${lt_cv_path_LD+set}" = set; then :
12693 $as_echo_n "(cached) " >&6
12695 if test -z "$LD"; then
12696 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12697 for ac_dir
in $PATH; do
12699 test -z "$ac_dir" && ac_dir
=.
12700 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12701 lt_cv_path_LD
="$ac_dir/$ac_prog"
12702 # Check to see if the program is GNU ld. I'd rather use --version,
12703 # but apparently some variants of GNU ld only accept -v.
12704 # Break only if it was the GNU/non-GNU ld that we prefer.
12705 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12706 *GNU
* |
*'with BFD'*)
12707 test "$with_gnu_ld" != no
&& break
12710 test "$with_gnu_ld" != yes && break
12717 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12721 LD
="$lt_cv_path_LD"
12722 if test -n "$LD"; then
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12724 $as_echo "$LD" >&6; }
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12729 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12731 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12732 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
12735 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12736 case `$LD -v 2>&1 </dev/null` in
12737 *GNU
* |
*'with BFD'*)
12738 lt_cv_prog_gnu_ld
=yes
12741 lt_cv_prog_gnu_ld
=no
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12746 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12747 with_gnu_ld
=$lt_cv_prog_gnu_ld
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12758 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12759 if test "${lt_cv_path_NM+set}" = set; then :
12760 $as_echo_n "(cached) " >&6
12762 if test -n "$NM"; then
12763 # Let the user override the test.
12764 lt_cv_path_NM
="$NM"
12766 lt_nm_to_check
="${ac_tool_prefix}nm"
12767 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12768 lt_nm_to_check
="$lt_nm_to_check nm"
12770 for lt_tmp_nm
in $lt_nm_to_check; do
12771 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12772 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12774 test -z "$ac_dir" && ac_dir
=.
12775 tmp_nm
="$ac_dir/$lt_tmp_nm"
12776 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12777 # Check to see if the nm accepts a BSD-compat flag.
12778 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12779 # nm: unknown option "B" ignored
12780 # Tru64's nm complains that /dev/null is an invalid object file
12781 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12782 */dev
/null
* |
*'Invalid file or object type'*)
12783 lt_cv_path_NM
="$tmp_nm -B"
12787 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12789 lt_cv_path_NM
="$tmp_nm -p"
12793 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12794 continue # so that we can try to find one that supports BSD flags
12803 : ${lt_cv_path_NM=no}
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12807 $as_echo "$lt_cv_path_NM" >&6; }
12808 if test "$lt_cv_path_NM" != "no"; then
12809 NM
="$lt_cv_path_NM"
12811 # Didn't find any BSD compatible name lister, look for dumpbin.
12812 if test -n "$DUMPBIN"; then :
12813 # Let the user override the test.
12815 if test -n "$ac_tool_prefix"; then
12816 for ac_prog
in dumpbin
"link -dump"
12818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12819 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12821 $as_echo_n "checking for $ac_word... " >&6; }
12822 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12823 $as_echo_n "(cached) " >&6
12825 if test -n "$DUMPBIN"; then
12826 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12829 for as_dir
in $PATH
12832 test -z "$as_dir" && as_dir
=.
12833 for ac_exec_ext
in '' $ac_executable_extensions; do
12834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12835 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 DUMPBIN
=$ac_cv_prog_DUMPBIN
12846 if test -n "$DUMPBIN"; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12848 $as_echo "$DUMPBIN" >&6; }
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851 $as_echo "no" >&6; }
12855 test -n "$DUMPBIN" && break
12858 if test -z "$DUMPBIN"; then
12859 ac_ct_DUMPBIN
=$DUMPBIN
12860 for ac_prog
in dumpbin
"link -dump"
12862 # Extract the first word of "$ac_prog", so it can be a program name with args.
12863 set dummy
$ac_prog; ac_word
=$2
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865 $as_echo_n "checking for $ac_word... " >&6; }
12866 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12869 if test -n "$ac_ct_DUMPBIN"; then
12870 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12873 for as_dir
in $PATH
12876 test -z "$as_dir" && as_dir
=.
12877 for ac_exec_ext
in '' $ac_executable_extensions; do
12878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12879 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12890 if test -n "$ac_ct_DUMPBIN"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12892 $as_echo "$ac_ct_DUMPBIN" >&6; }
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12899 test -n "$ac_ct_DUMPBIN" && break
12902 if test "x$ac_ct_DUMPBIN" = x
; then
12905 case $cross_compiling:$ac_tool_warned in
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12909 ac_tool_warned
=yes ;;
12911 DUMPBIN
=$ac_ct_DUMPBIN
12915 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12917 DUMPBIN
="$DUMPBIN -symbols"
12925 if test "$DUMPBIN" != ":"; then
12929 test -z "$NM" && NM
=nm
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12937 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12938 if test "${lt_cv_nm_interface+set}" = set; then :
12939 $as_echo_n "(cached) " >&6
12941 lt_cv_nm_interface
="BSD nm"
12942 echo "int some_variable = 0;" > conftest.
$ac_ext
12943 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12944 (eval "$ac_compile" 2>conftest.err
)
12945 cat conftest.err
>&5
12946 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12947 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12948 cat conftest.err
>&5
12949 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12950 cat conftest.out
>&5
12951 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12952 lt_cv_nm_interface
="MS dumpbin"
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12957 $as_echo "$lt_cv_nm_interface" >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12960 $as_echo_n "checking whether ln -s works... " >&6; }
12962 if test "$LN_S" = "ln -s"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12964 $as_echo "yes" >&6; }
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12967 $as_echo "no, using $LN_S" >&6; }
12970 # find the maximum length of command line arguments
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12972 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12973 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12974 $as_echo_n "(cached) " >&6
12981 # On DJGPP, this test can blow up pretty badly due to problems in libc
12982 # (any single argument exceeding 2000 bytes causes a buffer overrun
12983 # during glob expansion). Even if it were fixed, the result of this
12984 # check would be larger than it should be.
12985 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12989 # Under GNU Hurd, this test is not required because there is
12990 # no limit to the length of command line arguments.
12991 # Libtool will interpret -1 as no limit whatsoever
12992 lt_cv_sys_max_cmd_len
=-1;
12995 cygwin
* | mingw
* | cegcc
*)
12996 # On Win9x/ME, this test blows up -- it succeeds, but takes
12997 # about 5 minutes as the teststring grows exponentially.
12998 # Worse, since 9x/ME are not pre-emptively multitasking,
12999 # you end up with a "frozen" computer, even though with patience
13000 # the test eventually succeeds (with a max line length of 256k).
13001 # Instead, let's just punt: use the minimum linelength reported by
13002 # all of the supported platforms: 8192 (on NT/2K/XP).
13003 lt_cv_sys_max_cmd_len
=8192;
13007 # On MiNT this can take a long time and run out of memory.
13008 lt_cv_sys_max_cmd_len
=8192;
13012 # On AmigaOS with pdksh, this test takes hours, literally.
13013 # So we just punt and use a minimum line length of 8192.
13014 lt_cv_sys_max_cmd_len
=8192;
13017 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13018 # This has been around since 386BSD, at least. Likely further.
13019 if test -x /sbin
/sysctl
; then
13020 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13021 elif test -x /usr
/sbin
/sysctl
; then
13022 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13024 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13026 # And add a safety zone
13027 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13028 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13032 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13033 lt_cv_sys_max_cmd_len
=196608
13037 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13038 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13039 # nice to cause kernel panics so lets avoid the loop below.
13040 # First set a reasonable default.
13041 lt_cv_sys_max_cmd_len
=16384
13043 if test -x /sbin
/sysconfig
; then
13044 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13045 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13050 lt_cv_sys_max_cmd_len
=102400
13052 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13053 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13054 if test -n "$kargmax"; then
13055 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13057 lt_cv_sys_max_cmd_len
=32768
13061 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13062 if test -n "$lt_cv_sys_max_cmd_len"; then
13063 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13064 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13066 # Make teststring a little bigger before we do anything with it.
13067 # a 1K string should be a reasonable start.
13068 for i
in 1 2 3 4 5 6 7 8 ; do
13069 teststring
=$teststring$teststring
13071 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13072 # If test is not a shell built-in, we'll probably end up computing a
13073 # maximum length that is only half of the actual maximum length, but
13075 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13076 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13077 test $i != 17 # 1/2 MB should be enough
13080 teststring
=$teststring$teststring
13082 # Only check the string length outside the loop.
13083 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13085 # Add a significant safety factor because C++ compilers can tack on
13086 # massive amounts of additional arguments before passing them to the
13087 # linker. It appears as though 1/2 is a usable value.
13088 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13095 if test -n $lt_cv_sys_max_cmd_len ; then
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13097 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13100 $as_echo "none" >&6; }
13102 max_cmd_len
=$lt_cv_sys_max_cmd_len
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13114 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13115 # Try some XSI features
13117 ( _lt_dummy
="a/b/c"
13118 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13120 && eval 'test $(( 1 + 1 )) -eq 2 \
13121 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13124 $as_echo "$xsi_shell" >&6; }
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13128 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13130 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13132 && lt_shell_append=yes
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13134 $as_echo "$lt_shell_append" >&6; }
13137 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13147 # test EBCDIC or ASCII
13148 case `echo X|tr X '\101'` in
13149 A) # ASCII based system
13150 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13151 lt_SP2NL='tr \040 \012'
13152 lt_NL2SP='tr \015\012 \040\040'
13154 *) # EBCDIC based system
13155 lt_SP2NL='tr \100 \n'
13156 lt_NL2SP='tr \r\n \100\100'
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13169 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13170 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13171 $as_echo_n "(cached
) " >&6
13173 lt_cv_ld_reload_flag='-r'
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13176 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13177 reload_flag=$lt_cv_ld_reload_flag
13178 case $reload_flag in
13180 *) reload_flag=" $reload_flag" ;;
13182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13185 if test "$GCC" = yes; then
13186 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13201 if test -n "$ac_tool_prefix"; then
13202 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13203 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13205 $as_echo_n "checking
for $ac_word...
" >&6; }
13206 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13207 $as_echo_n "(cached
) " >&6
13209 if test -n "$OBJDUMP"; then
13210 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213 for as_dir in $PATH
13216 test -z "$as_dir" && as_dir=.
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13219 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13220 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13229 OBJDUMP=$ac_cv_prog_OBJDUMP
13230 if test -n "$OBJDUMP"; then
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13232 $as_echo "$OBJDUMP" >&6; }
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13235 $as_echo "no
" >&6; }
13240 if test -z "$ac_cv_prog_OBJDUMP"; then
13241 ac_ct_OBJDUMP=$OBJDUMP
13242 # Extract the first word of "objdump
", so it can be a program name with args.
13243 set dummy objdump; ac_word=$2
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13245 $as_echo_n "checking
for $ac_word...
" >&6; }
13246 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13247 $as_echo_n "(cached
) " >&6
13249 if test -n "$ac_ct_OBJDUMP"; then
13250 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 for as_dir in $PATH
13256 test -z "$as_dir" && as_dir=.
13257 for ac_exec_ext in '' $ac_executable_extensions; do
13258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13259 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13260 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13269 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13270 if test -n "$ac_ct_OBJDUMP"; then
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13272 $as_echo "$ac_ct_OBJDUMP" >&6; }
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13275 $as_echo "no
" >&6; }
13278 if test "x
$ac_ct_OBJDUMP" = x; then
13281 case $cross_compiling:$ac_tool_warned in
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13284 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13285 ac_tool_warned=yes ;;
13287 OBJDUMP=$ac_ct_OBJDUMP
13290 OBJDUMP="$ac_cv_prog_OBJDUMP"
13293 test -z "$OBJDUMP" && OBJDUMP=objdump
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13304 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13305 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13306 $as_echo_n "(cached
) " >&6
13308 lt_cv_file_magic_cmd='$MAGIC_CMD'
13309 lt_cv_file_magic_test_file=
13310 lt_cv_deplibs_check_method='unknown'
13311 # Need to set the preceding variable on all platforms that support
13312 # interlibrary dependencies.
13313 # 'none' -- dependencies not supported.
13314 # `unknown' -- same as none, but documents that we really don't know.
13315 # 'pass_all' -- all dependencies passed with no checks.
13316 # 'test_compile' -- check by making test program.
13317 # 'file_magic [[regex]]' -- check by looking for files in library path
13318 # which responds to the $file_magic_cmd with a given extended regex.
13319 # If you have `file' or equivalent on your system and you're not sure
13320 # whether `pass_all' will *always* work, you probably want this one.
13324 lt_cv_deplibs_check_method=pass_all
13328 lt_cv_deplibs_check_method=pass_all
13332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13333 lt_cv_file_magic_cmd='/usr/bin/file -L'
13334 lt_cv_file_magic_test_file=/shlib/libc.so
13338 # func_win32_libid is a shell function defined in ltmain.sh
13339 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13340 lt_cv_file_magic_cmd='func_win32_libid'
13344 # Base MSYS/MinGW do not provide the 'file' command needed by
13345 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13346 # unless we find 'file', for example because we are cross-compiling.
13347 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13348 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13349 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13350 lt_cv_file_magic_cmd='func_win32_libid'
13352 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13353 lt_cv_file_magic_cmd='$OBJDUMP -f'
13358 # use the weaker test based on 'objdump'. See mingw*.
13359 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13360 lt_cv_file_magic_cmd='$OBJDUMP -f'
13363 darwin* | rhapsody*)
13364 lt_cv_deplibs_check_method=pass_all
13367 freebsd* | dragonfly*)
13368 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13371 # Not sure whether the presence of OpenBSD here was a mistake.
13372 # Let's accept both of them until this is cleared up.
13373 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13374 lt_cv_file_magic_cmd=/usr/bin/file
13375 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13379 lt_cv_deplibs_check_method=pass_all
13384 lt_cv_deplibs_check_method=pass_all
13388 lt_cv_deplibs_check_method=pass_all
13391 hpux10.20* | hpux11*)
13392 lt_cv_file_magic_cmd=/usr/bin/file
13395 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13396 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13399 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]'
13400 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13403 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13404 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13410 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13414 irix5* | irix6* | nonstopux*)
13416 *-32|*"-32 ") libmagic=32-bit;;
13417 *-n32|*"-n32 ") libmagic=N32;;
13418 *-64|*"-64 ") libmagic=64-bit;;
13419 *) libmagic=never-match;;
13421 lt_cv_deplibs_check_method=pass_all
13424 # This must be Linux ELF.
13425 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13426 lt_cv_deplibs_check_method=pass_all
13430 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13439 lt_cv_file_magic_cmd=/usr/bin/file
13440 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13444 lt_cv_deplibs_check_method=pass_all
13448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13455 osf3* | osf4* | osf5*)
13456 lt_cv_deplibs_check_method=pass_all
13460 lt_cv_deplibs_check_method=pass_all
13464 lt_cv_deplibs_check_method=pass_all
13467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13468 lt_cv_deplibs_check_method=pass_all
13472 case $host_vendor in
13474 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]'
13475 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13478 lt_cv_deplibs_check_method=pass_all
13481 lt_cv_file_magic_cmd='/bin/file'
13482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13485 lt_cv_file_magic_cmd='/bin/file'
13486 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13487 lt_cv_file_magic_test_file=/lib/libc.so
13490 lt_cv_deplibs_check_method=pass_all
13493 lt_cv_deplibs_check_method=pass_all
13499 lt_cv_deplibs_check_method=pass_all
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13505 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13506 file_magic_cmd=$lt_cv_file_magic_cmd
13507 deplibs_check_method=$lt_cv_deplibs_check_method
13508 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13521 if test -n "$ac_tool_prefix"; then
13522 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13523 set dummy ${ac_tool_prefix}ar; ac_word=$2
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13525 $as_echo_n "checking
for $ac_word...
" >&6; }
13526 if test "${ac_cv_prog_AR+set}" = set; then :
13527 $as_echo_n "(cached
) " >&6
13529 if test -n "$AR"; then
13530 ac_cv_prog_AR="$AR" # Let the user override the test.
13532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533 for as_dir in $PATH
13536 test -z "$as_dir" && as_dir=.
13537 for ac_exec_ext in '' $ac_executable_extensions; do
13538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13539 ac_cv_prog_AR="${ac_tool_prefix}ar"
13540 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13550 if test -n "$AR"; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13552 $as_echo "$AR" >&6; }
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13555 $as_echo "no
" >&6; }
13560 if test -z "$ac_cv_prog_AR"; then
13562 # Extract the first word of "ar", so it can be a program name with args.
13563 set dummy ar; ac_word=$2
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13565 $as_echo_n "checking
for $ac_word...
" >&6; }
13566 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13567 $as_echo_n "(cached
) " >&6
13569 if test -n "$ac_ct_AR"; then
13570 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13573 for as_dir in $PATH
13576 test -z "$as_dir" && as_dir=.
13577 for ac_exec_ext in '' $ac_executable_extensions; do
13578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13579 ac_cv_prog_ac_ct_AR="ar"
13580 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13589 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13590 if test -n "$ac_ct_AR"; then
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13592 $as_echo "$ac_ct_AR" >&6; }
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13595 $as_echo "no
" >&6; }
13598 if test "x
$ac_ct_AR" = x; then
13601 case $cross_compiling:$ac_tool_warned in
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13604 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13605 ac_tool_warned=yes ;;
13610 AR="$ac_cv_prog_AR"
13613 test -z "$AR" && AR=ar
13614 test -z "$AR_FLAGS" && AR_FLAGS=cru
13626 if test -n "$ac_tool_prefix"; then
13627 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13628 set dummy ${ac_tool_prefix}strip; ac_word=$2
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13630 $as_echo_n "checking
for $ac_word...
" >&6; }
13631 if test "${ac_cv_prog_STRIP+set}" = set; then :
13632 $as_echo_n "(cached
) " >&6
13634 if test -n "$STRIP"; then
13635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638 for as_dir in $PATH
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
13643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13644 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13645 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13654 STRIP=$ac_cv_prog_STRIP
13655 if test -n "$STRIP"; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13657 $as_echo "$STRIP" >&6; }
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13660 $as_echo "no
" >&6; }
13665 if test -z "$ac_cv_prog_STRIP"; then
13667 # Extract the first word of "strip
", so it can be a program name with args.
13668 set dummy strip; ac_word=$2
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13670 $as_echo_n "checking
for $ac_word...
" >&6; }
13671 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13672 $as_echo_n "(cached
) " >&6
13674 if test -n "$ac_ct_STRIP"; then
13675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678 for as_dir in $PATH
13681 test -z "$as_dir" && as_dir=.
13682 for ac_exec_ext in '' $ac_executable_extensions; do
13683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13684 ac_cv_prog_ac_ct_STRIP="strip
"
13685 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13695 if test -n "$ac_ct_STRIP"; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13697 $as_echo "$ac_ct_STRIP" >&6; }
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13700 $as_echo "no
" >&6; }
13703 if test "x
$ac_ct_STRIP" = x; then
13706 case $cross_compiling:$ac_tool_warned in
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13709 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13710 ac_tool_warned=yes ;;
13715 STRIP="$ac_cv_prog_STRIP"
13718 test -z "$STRIP" && STRIP=:
13725 if test -n "$ac_tool_prefix"; then
13726 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13727 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13729 $as_echo_n "checking
for $ac_word...
" >&6; }
13730 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13731 $as_echo_n "(cached
) " >&6
13733 if test -n "$RANLIB"; then
13734 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737 for as_dir in $PATH
13740 test -z "$as_dir" && as_dir=.
13741 for ac_exec_ext in '' $ac_executable_extensions; do
13742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13743 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13744 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13753 RANLIB=$ac_cv_prog_RANLIB
13754 if test -n "$RANLIB"; then
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13756 $as_echo "$RANLIB" >&6; }
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13759 $as_echo "no
" >&6; }
13764 if test -z "$ac_cv_prog_RANLIB"; then
13765 ac_ct_RANLIB=$RANLIB
13766 # Extract the first word of "ranlib
", so it can be a program name with args.
13767 set dummy ranlib; ac_word=$2
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13769 $as_echo_n "checking
for $ac_word...
" >&6; }
13770 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13771 $as_echo_n "(cached
) " >&6
13773 if test -n "$ac_ct_RANLIB"; then
13774 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13777 for as_dir in $PATH
13780 test -z "$as_dir" && as_dir=.
13781 for ac_exec_ext in '' $ac_executable_extensions; do
13782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13783 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13784 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13794 if test -n "$ac_ct_RANLIB"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13796 $as_echo "$ac_ct_RANLIB" >&6; }
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13799 $as_echo "no
" >&6; }
13802 if test "x
$ac_ct_RANLIB" = x; then
13805 case $cross_compiling:$ac_tool_warned in
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13808 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13809 ac_tool_warned=yes ;;
13811 RANLIB=$ac_ct_RANLIB
13814 RANLIB="$ac_cv_prog_RANLIB"
13817 test -z "$RANLIB" && RANLIB=:
13824 # Determine commands to create old-style static archives.
13825 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13826 old_postinstall_cmds='chmod 644 $oldlib'
13827 old_postuninstall_cmds=
13829 if test -n "$RANLIB"; then
13832 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13835 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13838 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13843 lock_old_archive_extraction=yes ;;
13845 lock_old_archive_extraction=no ;;
13886 # If no C compiler was specified, use CC.
13889 # If no C compiler flags were specified, use CFLAGS.
13890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13892 # Allow CC to be a program name with arguments.
13896 # Check for command to grab the raw symbol name followed by C symbol from nm.
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13898 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13899 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13900 $as_echo_n "(cached
) " >&6
13903 # These are sane defaults that work on at least a few old systems.
13904 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13906 # Character class describing NM global symbol codes.
13907 symcode='[BCDEGRST]'
13909 # Regexp to match symbols that can be accessed directly from C.
13910 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13912 # Define system-specific variables.
13917 cygwin* | mingw* | pw32* | cegcc*)
13918 symcode='[ABCDGISTW]'
13921 if test "$host_cpu" = ia64; then
13922 symcode='[ABCDEGRST]'
13925 irix* | nonstopux*)
13926 symcode='[BCDEGRST]'
13929 symcode='[BCDEGQRST]'
13940 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13948 # If we're using GNU nm, then use its standard symbol codes.
13949 case `$NM -V 2>&1` in
13950 *GNU* | *'with BFD'*)
13951 symcode='[ABCDGIRSTW]' ;;
13954 # Transform an extracted symbol line into a proper C declaration.
13955 # Some systems (esp. on ia64) link data and code symbols differently,
13956 # so use this general approach.
13957 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13959 # Transform an extracted symbol line into symbol name and symbol address
13960 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13961 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'"
13963 # Handle CRLF in mingw tool chain
13967 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13971 # Try without a prefix underscore, then with it.
13972 for ac_symprfx in "" "_
"; do
13974 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13975 symxfrm="\\1 $ac_symprfx\\2 \\2"
13977 # Write the raw and C identifiers.
13978 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13979 # Fake it for dumpbin and say T for any non-static function
13980 # and D for any global variable.
13981 # Also find C++ and __fastcall symbols from MSVC++,
13982 # which start with @ or ?.
13983 lt_cv_sys_global_symbol_pipe="$AWK '"\
13984 " {last_section=section; section=\$ 3};"\
13985 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13986 " \$ 0!~/External *\|/{next};"\
13987 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13988 " {if(hide[section]) next};"\
13989 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13990 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13991 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13992 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13993 " ' prfx
=^
$ac_symprfx"
13995 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13998 # Check to see that the pipe works correctly.
14002 cat > conftest.$ac_ext <<_LT_EOF
14007 void nm_test_func(void);
14008 void nm_test_func(void){}
14012 int main(){nm_test_var='a';nm_test_func();return(0);}
14015 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14016 (eval $ac_compile) 2>&5
14018 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14019 test $ac_status = 0; }; then
14020 # Now try to grab the symbols.
14022 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14023 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14025 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14026 test $ac_status = 0; } && test -s "$nlist"; then
14027 # Try sorting and uniquifying the output.
14028 if sort "$nlist" | uniq > "$nlist"T; then
14029 mv -f "$nlist"T "$nlist"
14034 # Make sure that we snagged all the symbols we need.
14035 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14036 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14037 cat <<_LT_EOF > conftest.$ac_ext
14043 # Now generate the symbol file.
14044 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14046 cat <<_LT_EOF >> conftest.$ac_ext
14048 /* The mapping between symbol names and symbols. */
14053 lt__PROGRAM__LTX_preloaded_symbols[] =
14055 { "@PROGRAM@
", (void *) 0 },
14057 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14058 cat <<\_LT_EOF >> conftest.$ac_ext
14062 /* This works around a problem in FreeBSD linker */
14063 #ifdef FREEBSD_WORKAROUND
14064 static const void *lt_preloaded_setup() {
14065 return lt__PROGRAM__LTX_preloaded_symbols;
14073 # Now try linking the two files.
14074 mv conftest.$ac_objext conftstm.$ac_objext
14075 lt_save_LIBS="$LIBS"
14076 lt_save_CFLAGS="$CFLAGS"
14077 LIBS="conftstm.
$ac_objext"
14078 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14079 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14080 (eval $ac_link) 2>&5
14082 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14083 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14086 LIBS="$lt_save_LIBS"
14087 CFLAGS="$lt_save_CFLAGS"
14089 echo "cannot
find nm_test_func
in $nlist" >&5
14092 echo "cannot
find nm_test_var
in $nlist" >&5
14095 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14098 echo "$progname: failed program was
:" >&5
14099 cat conftest.$ac_ext >&5
14101 rm -rf conftest* conftst*
14103 # Do not use the global_symbol_pipe unless it works.
14104 if test "$pipe_works" = yes; then
14107 lt_cv_sys_global_symbol_pipe=
14113 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14114 lt_cv_sys_global_symbol_to_cdecl=
14116 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14118 $as_echo "failed
" >&6; }
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14121 $as_echo "ok
" >&6; }
14145 # Check whether --enable-libtool-lock was given.
14146 if test "${enable_libtool_lock+set}" = set; then :
14147 enableval=$enable_libtool_lock;
14150 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14152 # Some flags need to be propagated to the compiler or linker for good
14156 # Find out which ABI we are using.
14157 echo 'int i;' > conftest.$ac_ext
14158 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14159 (eval $ac_compile) 2>&5
14161 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14162 test $ac_status = 0; }; then
14163 case `/usr/bin/file conftest.$ac_objext` in
14165 HPUX_IA64_MODE="32"
14168 HPUX_IA64_MODE="64"
14175 # Find out which ABI we are using.
14176 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14177 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14178 (eval $ac_compile) 2>&5
14180 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14181 test $ac_status = 0; }; then
14182 if test "$lt_cv_prog_gnu_ld" = yes; then
14183 case `/usr/bin/file conftest.$ac_objext` in
14185 LD="${LD-ld} -melf32bsmip"
14188 LD="${LD-ld} -melf32bmipn32"
14191 LD="${LD-ld} -melf64bmip"
14195 case `/usr/bin/file conftest.$ac_objext` in
14211 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14212 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14213 # Find out which ABI we are using.
14214 echo 'int i;' > conftest.$ac_ext
14215 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14216 (eval $ac_compile) 2>&5
14218 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14219 test $ac_status = 0; }; then
14220 case `/usr/bin/file conftest.o` in
14223 x86_64-*kfreebsd*-gnu)
14224 LD="${LD-ld} -m elf_i386_fbsd
"
14227 case `/usr/bin/file conftest.o` in
14229 LD="${LD-ld} -m elf32_x86_64
"
14232 LD="${LD-ld} -m elf_i386
"
14236 powerpc64le-*linux*)
14237 LD="${LD-ld} -m elf32lppclinux
"
14240 LD="${LD-ld} -m elf32ppclinux
"
14243 LD="${LD-ld} -m elf_s390
"
14246 LD="${LD-ld} -m elf32_sparc
"
14252 x86_64-*kfreebsd*-gnu)
14253 LD="${LD-ld} -m elf_x86_64_fbsd
"
14256 LD="${LD-ld} -m elf_x86_64
"
14259 LD="${LD-ld} -m elf64lppc
"
14262 LD="${LD-ld} -m elf64ppc
"
14264 s390*-*linux*|s390*-*tpf*)
14265 LD="${LD-ld} -m elf64_s390
"
14268 LD="${LD-ld} -m elf64_sparc
"
14278 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14279 SAVE_CFLAGS="$CFLAGS"
14280 CFLAGS="$CFLAGS -belf"
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14282 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14283 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14284 $as_echo_n "(cached
) " >&6
14287 ac_cpp='$CPP $CPPFLAGS'
14288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14303 if ac_fn_c_try_link "$LINENO"; then :
14304 lt_cv_cc_needs_belf=yes
14306 lt_cv_cc_needs_belf=no
14308 rm -f core conftest.err conftest.$ac_objext \
14309 conftest$ac_exeext conftest.$ac_ext
14311 ac_cpp='$CPP $CPPFLAGS'
14312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14318 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14319 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14320 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14321 CFLAGS="$SAVE_CFLAGS"
14325 # Find out which ABI we are using.
14326 echo 'int i;' > conftest.$ac_ext
14327 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14328 (eval $ac_compile) 2>&5
14330 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14331 test $ac_status = 0; }; then
14332 case `/usr/bin/file conftest.o` in
14334 case $lt_cv_prog_gnu_ld in
14335 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14337 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14349 need_locks="$enable_libtool_lock"
14353 rhapsody* | darwin*)
14354 if test -n "$ac_tool_prefix"; then
14355 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14356 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14358 $as_echo_n "checking
for $ac_word...
" >&6; }
14359 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14360 $as_echo_n "(cached
) " >&6
14362 if test -n "$DSYMUTIL"; then
14363 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14366 for as_dir in $PATH
14369 test -z "$as_dir" && as_dir=.
14370 for ac_exec_ext in '' $ac_executable_extensions; do
14371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14372 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14373 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14382 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14383 if test -n "$DSYMUTIL"; then
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14385 $as_echo "$DSYMUTIL" >&6; }
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14388 $as_echo "no
" >&6; }
14393 if test -z "$ac_cv_prog_DSYMUTIL"; then
14394 ac_ct_DSYMUTIL=$DSYMUTIL
14395 # Extract the first word of "dsymutil
", so it can be a program name with args.
14396 set dummy dsymutil; ac_word=$2
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14398 $as_echo_n "checking
for $ac_word...
" >&6; }
14399 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14400 $as_echo_n "(cached
) " >&6
14402 if test -n "$ac_ct_DSYMUTIL"; then
14403 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406 for as_dir in $PATH
14409 test -z "$as_dir" && as_dir=.
14410 for ac_exec_ext in '' $ac_executable_extensions; do
14411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14412 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14413 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14422 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14423 if test -n "$ac_ct_DSYMUTIL"; then
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14425 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14428 $as_echo "no
" >&6; }
14431 if test "x
$ac_ct_DSYMUTIL" = x; then
14434 case $cross_compiling:$ac_tool_warned in
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14437 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14438 ac_tool_warned=yes ;;
14440 DSYMUTIL=$ac_ct_DSYMUTIL
14443 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14446 if test -n "$ac_tool_prefix"; then
14447 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14448 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14450 $as_echo_n "checking
for $ac_word...
" >&6; }
14451 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14452 $as_echo_n "(cached
) " >&6
14454 if test -n "$NMEDIT"; then
14455 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14458 for as_dir in $PATH
14461 test -z "$as_dir" && as_dir=.
14462 for ac_exec_ext in '' $ac_executable_extensions; do
14463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14464 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14465 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14474 NMEDIT=$ac_cv_prog_NMEDIT
14475 if test -n "$NMEDIT"; then
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14477 $as_echo "$NMEDIT" >&6; }
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14480 $as_echo "no
" >&6; }
14485 if test -z "$ac_cv_prog_NMEDIT"; then
14486 ac_ct_NMEDIT=$NMEDIT
14487 # Extract the first word of "nmedit
", so it can be a program name with args.
14488 set dummy nmedit; ac_word=$2
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14490 $as_echo_n "checking
for $ac_word...
" >&6; }
14491 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14492 $as_echo_n "(cached
) " >&6
14494 if test -n "$ac_ct_NMEDIT"; then
14495 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14498 for as_dir in $PATH
14501 test -z "$as_dir" && as_dir=.
14502 for ac_exec_ext in '' $ac_executable_extensions; do
14503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14504 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14505 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14514 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14515 if test -n "$ac_ct_NMEDIT"; then
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14517 $as_echo "$ac_ct_NMEDIT" >&6; }
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14520 $as_echo "no
" >&6; }
14523 if test "x
$ac_ct_NMEDIT" = x; then
14526 case $cross_compiling:$ac_tool_warned in
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14529 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14530 ac_tool_warned=yes ;;
14532 NMEDIT=$ac_ct_NMEDIT
14535 NMEDIT="$ac_cv_prog_NMEDIT"
14538 if test -n "$ac_tool_prefix"; then
14539 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14540 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14542 $as_echo_n "checking
for $ac_word...
" >&6; }
14543 if test "${ac_cv_prog_LIPO+set}" = set; then :
14544 $as_echo_n "(cached
) " >&6
14546 if test -n "$LIPO"; then
14547 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14550 for as_dir in $PATH
14553 test -z "$as_dir" && as_dir=.
14554 for ac_exec_ext in '' $ac_executable_extensions; do
14555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14556 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14557 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14566 LIPO=$ac_cv_prog_LIPO
14567 if test -n "$LIPO"; then
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14569 $as_echo "$LIPO" >&6; }
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14572 $as_echo "no
" >&6; }
14577 if test -z "$ac_cv_prog_LIPO"; then
14579 # Extract the first word of "lipo
", so it can be a program name with args.
14580 set dummy lipo; ac_word=$2
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14582 $as_echo_n "checking
for $ac_word...
" >&6; }
14583 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14584 $as_echo_n "(cached
) " >&6
14586 if test -n "$ac_ct_LIPO"; then
14587 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14590 for as_dir in $PATH
14593 test -z "$as_dir" && as_dir=.
14594 for ac_exec_ext in '' $ac_executable_extensions; do
14595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14596 ac_cv_prog_ac_ct_LIPO="lipo
"
14597 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14606 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14607 if test -n "$ac_ct_LIPO"; then
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14609 $as_echo "$ac_ct_LIPO" >&6; }
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14612 $as_echo "no
" >&6; }
14615 if test "x
$ac_ct_LIPO" = x; then
14618 case $cross_compiling:$ac_tool_warned in
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14621 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14622 ac_tool_warned=yes ;;
14627 LIPO="$ac_cv_prog_LIPO"
14630 if test -n "$ac_tool_prefix"; then
14631 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14632 set dummy ${ac_tool_prefix}otool; ac_word=$2
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14634 $as_echo_n "checking
for $ac_word...
" >&6; }
14635 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14636 $as_echo_n "(cached
) " >&6
14638 if test -n "$OTOOL"; then
14639 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14642 for as_dir in $PATH
14645 test -z "$as_dir" && as_dir=.
14646 for ac_exec_ext in '' $ac_executable_extensions; do
14647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14648 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14649 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14658 OTOOL=$ac_cv_prog_OTOOL
14659 if test -n "$OTOOL"; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14661 $as_echo "$OTOOL" >&6; }
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14664 $as_echo "no
" >&6; }
14669 if test -z "$ac_cv_prog_OTOOL"; then
14671 # Extract the first word of "otool
", so it can be a program name with args.
14672 set dummy otool; ac_word=$2
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14674 $as_echo_n "checking
for $ac_word...
" >&6; }
14675 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14676 $as_echo_n "(cached
) " >&6
14678 if test -n "$ac_ct_OTOOL"; then
14679 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14682 for as_dir in $PATH
14685 test -z "$as_dir" && as_dir=.
14686 for ac_exec_ext in '' $ac_executable_extensions; do
14687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14688 ac_cv_prog_ac_ct_OTOOL="otool
"
14689 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14698 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14699 if test -n "$ac_ct_OTOOL"; then
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14701 $as_echo "$ac_ct_OTOOL" >&6; }
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14704 $as_echo "no
" >&6; }
14707 if test "x
$ac_ct_OTOOL" = x; then
14710 case $cross_compiling:$ac_tool_warned in
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14713 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14714 ac_tool_warned=yes ;;
14719 OTOOL="$ac_cv_prog_OTOOL"
14722 if test -n "$ac_tool_prefix"; then
14723 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14724 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14726 $as_echo_n "checking
for $ac_word...
" >&6; }
14727 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14728 $as_echo_n "(cached
) " >&6
14730 if test -n "$OTOOL64"; then
14731 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14734 for as_dir in $PATH
14737 test -z "$as_dir" && as_dir=.
14738 for ac_exec_ext in '' $ac_executable_extensions; do
14739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14740 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14741 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14750 OTOOL64=$ac_cv_prog_OTOOL64
14751 if test -n "$OTOOL64"; then
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14753 $as_echo "$OTOOL64" >&6; }
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14756 $as_echo "no
" >&6; }
14761 if test -z "$ac_cv_prog_OTOOL64"; then
14762 ac_ct_OTOOL64=$OTOOL64
14763 # Extract the first word of "otool64
", so it can be a program name with args.
14764 set dummy otool64; ac_word=$2
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14766 $as_echo_n "checking
for $ac_word...
" >&6; }
14767 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14768 $as_echo_n "(cached
) " >&6
14770 if test -n "$ac_ct_OTOOL64"; then
14771 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14774 for as_dir in $PATH
14777 test -z "$as_dir" && as_dir=.
14778 for ac_exec_ext in '' $ac_executable_extensions; do
14779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14780 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14781 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14790 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14791 if test -n "$ac_ct_OTOOL64"; then
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14793 $as_echo "$ac_ct_OTOOL64" >&6; }
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14796 $as_echo "no
" >&6; }
14799 if test "x
$ac_ct_OTOOL64" = x; then
14802 case $cross_compiling:$ac_tool_warned in
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14805 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14806 ac_tool_warned=yes ;;
14808 OTOOL64=$ac_ct_OTOOL64
14811 OTOOL64="$ac_cv_prog_OTOOL64"
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14841 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14842 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14843 $as_echo_n "(cached
) " >&6
14845 lt_cv_apple_cc_single_mod=no
14846 if test -z "${LT_MULTI_MODULE}"; then
14847 # By default we will add the -single_module flag. You can override
14848 # by either setting the environment variable LT_MULTI_MODULE
14849 # non-empty at configure time, or by adding -multi_module to the
14851 rm -rf libconftest.dylib*
14852 echo "int foo
(void
){return 1;}" > conftest.c
14853 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14854 -dynamiclib -Wl,-single_module conftest.c
" >&5
14855 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14856 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14858 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14859 lt_cv_apple_cc_single_mod=yes
14861 cat conftest.err >&5
14863 rm -rf libconftest.dylib*
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14868 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14870 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14871 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14872 $as_echo_n "(cached
) " >&6
14874 lt_cv_ld_exported_symbols_list=no
14875 save_LDFLAGS=$LDFLAGS
14876 echo "_main
" > conftest.sym
14877 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14889 if ac_fn_c_try_link "$LINENO"; then :
14890 lt_cv_ld_exported_symbols_list=yes
14892 lt_cv_ld_exported_symbols_list=no
14894 rm -f core conftest.err conftest.$ac_objext \
14895 conftest$ac_exeext conftest.$ac_ext
14896 LDFLAGS="$save_LDFLAGS"
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14900 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14902 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14903 if test "${lt_cv_ld_force_load+set}" = set; then :
14904 $as_echo_n "(cached
) " >&6
14906 lt_cv_ld_force_load=no
14907 cat > conftest.c << _LT_EOF
14908 int forced_loaded() { return 2;}
14910 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14911 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14912 echo "$AR cru libconftest.a conftest.o
" >&5
14913 $AR cru libconftest.a conftest.o 2>&5
14914 cat > conftest.c << _LT_EOF
14915 int main() { return 0;}
14917 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14918 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14920 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14921 lt_cv_ld_force_load=yes
14923 cat conftest.err >&5
14925 rm -f conftest.err libconftest.a conftest conftest.c
14926 rm -rf conftest.dSYM
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14930 $as_echo "$lt_cv_ld_force_load" >&6; }
14932 rhapsody* | darwin1.[012])
14933 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14935 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14936 darwin*) # darwin 5.x on
14937 # if running on 10.5 or later, the deployment target defaults
14938 # to the OS version, if on x86, and 10.4, the deployment
14939 # target defaults to 10.4. Don't you love it?
14940 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14941 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14942 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14944 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14946 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14950 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14951 _lt_dar_single_mod='$single_module'
14953 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14954 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14956 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14958 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14959 _lt_dsymutil='~$DSYMUTIL $lib || :'
14967 for ac_header in dlfcn.h
14969 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14970 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14971 cat >>confdefs.h <<_ACEOF
14972 #define HAVE_DLFCN_H 1
14989 enable_win32_dll=no
14992 # Check whether --enable-shared was given.
14993 if test "${enable_shared+set}" = set; then :
14994 enableval=$enable_shared; p=${PACKAGE-default}
14996 yes) enable_shared=yes ;;
14997 no) enable_shared=no ;;
15000 # Look at the argument we got. We use all the common list separators.
15001 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15002 for pkg in $enableval; do
15004 if test "X
$pkg" = "X
$p"; then
15023 # Check whether --enable-static was given.
15024 if test "${enable_static+set}" = set; then :
15025 enableval=$enable_static; p=${PACKAGE-default}
15027 yes) enable_static=yes ;;
15028 no) enable_static=no ;;
15031 # Look at the argument we got. We use all the common list separators.
15032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15033 for pkg in $enableval; do
15035 if test "X
$pkg" = "X
$p"; then
15055 # Check whether --with-pic was given.
15056 if test "${with_pic+set}" = set; then :
15057 withval=$with_pic; pic_mode="$withval"
15063 test -z "$pic_mode" && pic_mode=default
15071 # Check whether --enable-fast-install was given.
15072 if test "${enable_fast_install+set}" = set; then :
15073 enableval=$enable_fast_install; p=${PACKAGE-default}
15075 yes) enable_fast_install=yes ;;
15076 no) enable_fast_install=no ;;
15078 enable_fast_install=no
15079 # Look at the argument we got. We use all the common list separators.
15080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15081 for pkg in $enableval; do
15083 if test "X
$pkg" = "X
$p"; then
15084 enable_fast_install=yes
15091 enable_fast_install=yes
15104 # This can be used to rebuild libtool when needed
15105 LIBTOOL_DEPS="$ltmain"
15107 # Always use our own libtool.
15108 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15135 test -z "$LN_S" && LN_S="ln -s"
15150 if test -n "${ZSH_VERSION+set}" ; then
15151 setopt NO_GLOB_SUBST
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15155 $as_echo_n "checking
for objdir...
" >&6; }
15156 if test "${lt_cv_objdir+set}" = set; then :
15157 $as_echo_n "(cached
) " >&6
15159 rm -f .libs 2>/dev/null
15160 mkdir .libs 2>/dev/null
15161 if test -d .libs; then
15164 # MS-DOS does not allow filenames that begin with a dot.
15167 rmdir .libs 2>/dev/null
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15170 $as_echo "$lt_cv_objdir" >&6; }
15171 objdir=$lt_cv_objdir
15177 cat >>confdefs.h <<_ACEOF
15178 #define LT_OBJDIR "$lt_cv_objdir/"
15186 # AIX sometimes has problems with the GCC collect2 program. For some
15187 # reason, if we set the COLLECT_NAMES environment variable, the problems
15188 # vanish in a puff of smoke.
15189 if test "X
${COLLECT_NAMES+set}" != Xset; then
15191 export COLLECT_NAMES
15196 # Global variables:
15198 can_build_shared=yes
15200 # All known linkers require a `.a' archive for static linking (except MSVC,
15201 # which needs '.lib').
15204 with_gnu_ld="$lt_cv_prog_gnu_ld"
15207 old_CFLAGS="$CFLAGS"
15209 # Set sane defaults for various variables
15210 test -z "$CC" && CC=cc
15211 test -z "$LTCC" && LTCC=$CC
15212 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15213 test -z "$LD" && LD=ld
15214 test -z "$ac_objext" && ac_objext=o
15216 for cc_temp in $compiler""; do
15218 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15219 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15224 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15227 # Only perform the check for file, if the check method requires it
15228 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15229 case $deplibs_check_method in
15231 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15233 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15234 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15235 $as_echo_n "(cached
) " >&6
15239 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15242 lt_save_MAGIC_CMD="$MAGIC_CMD"
15243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15244 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15245 for ac_dir in $ac_dummy; do
15247 test -z "$ac_dir" && ac_dir=.
15248 if test -f $ac_dir/${ac_tool_prefix}file; then
15249 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15250 if test -n "$file_magic_test_file"; then
15251 case $deplibs_check_method in
15253 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15255 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15256 $EGREP "$file_magic_regex" > /dev/null; then
15261 *** Warning: the command libtool uses to detect shared libraries,
15262 *** $file_magic_cmd, produces output that libtool cannot recognize.
15263 *** The result is that libtool may fail to recognize shared libraries
15264 *** as such. This will affect the creation of libtool libraries that
15265 *** depend on shared libraries, but programs linked with such libtool
15266 *** libraries will work regardless of this problem. Nevertheless, you
15267 *** may want to report the problem to your system manager and/or to
15268 *** bug-libtool@gnu.org
15278 MAGIC_CMD="$lt_save_MAGIC_CMD"
15283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15284 if test -n "$MAGIC_CMD"; then
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15286 $as_echo "$MAGIC_CMD" >&6; }
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15289 $as_echo "no
" >&6; }
15296 if test -z "$lt_cv_path_MAGIC_CMD"; then
15297 if test -n "$ac_tool_prefix"; then
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15299 $as_echo_n "checking
for file...
" >&6; }
15300 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15301 $as_echo_n "(cached
) " >&6
15305 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15308 lt_save_MAGIC_CMD="$MAGIC_CMD"
15309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15310 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15311 for ac_dir in $ac_dummy; do
15313 test -z "$ac_dir" && ac_dir=.
15314 if test -f $ac_dir/file; then
15315 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15316 if test -n "$file_magic_test_file"; then
15317 case $deplibs_check_method in
15319 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15321 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15322 $EGREP "$file_magic_regex" > /dev/null; then
15327 *** Warning: the command libtool uses to detect shared libraries,
15328 *** $file_magic_cmd, produces output that libtool cannot recognize.
15329 *** The result is that libtool may fail to recognize shared libraries
15330 *** as such. This will affect the creation of libtool libraries that
15331 *** depend on shared libraries, but programs linked with such libtool
15332 *** libraries will work regardless of this problem. Nevertheless, you
15333 *** may want to report the problem to your system manager and/or to
15334 *** bug-libtool@gnu.org
15344 MAGIC_CMD="$lt_save_MAGIC_CMD"
15349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15350 if test -n "$MAGIC_CMD"; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15352 $as_echo "$MAGIC_CMD" >&6; }
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15355 $as_echo "no
" >&6; }
15368 # Use C for the default configuration in the libtool script
15372 ac_cpp='$CPP $CPPFLAGS'
15373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15378 # Source file extension for C test sources.
15381 # Object file extension for compiled C test sources.
15385 # Code to be used in simple compile tests
15386 lt_simple_compile_test_code="int some_variable
= 0;"
15388 # Code to be used in simple link tests
15389 lt_simple_link_test_code='int main(){return(0);}'
15397 # If no C compiler was specified, use CC.
15400 # If no C compiler flags were specified, use CFLAGS.
15401 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15403 # Allow CC to be a program name with arguments.
15406 # Save the default compiler, since it gets overwritten when the other
15407 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15408 compiler_DEFAULT=$CC
15410 # save warnings/boilerplate of simple test code
15411 ac_outfile=conftest.$ac_objext
15412 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15414 _lt_compiler_boilerplate=`cat conftest.err`
15417 ac_outfile=conftest.$ac_objext
15418 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15420 _lt_linker_boilerplate=`cat conftest.err`
15425 ## There is no encapsulation within the following macros, do not change
15426 ## the running order or otherwise move them around unless you know exactly
15427 ## what you are doing...
15428 if test -n "$compiler"; then
15430 lt_prog_compiler_no_builtin_flag=
15432 if test "$GCC" = yes; then
15433 case $cc_basename in
15435 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15437 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15441 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15442 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15443 $as_echo_n "(cached
) " >&6
15445 lt_cv_prog_compiler_rtti_exceptions=no
15446 ac_outfile=conftest.$ac_objext
15447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15448 lt_compiler_flag="-fno-rtti -fno-exceptions"
15449 # Insert the option either (1) after the last *FLAGS variable, or
15450 # (2) before a word containing "conftest.
", or (3) at the end.
15451 # Note that $ac_compile itself does not contain backslashes and begins
15452 # with a dollar sign (not a hyphen), so the echo should work correctly.
15453 # The option is referenced via a variable to avoid confusing sed.
15454 lt_compile=`echo "$ac_compile" | $SED \
15455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15457 -e 's:$: $lt_compiler_flag:'`
15458 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15459 (eval "$lt_compile" 2>conftest.err)
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15463 if (exit $ac_status) && test -s "$ac_outfile"; then
15464 # The compiler can only warn and ignore the option if not recognized
15465 # So say no if there are warnings other than the usual output.
15466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15469 lt_cv_prog_compiler_rtti_exceptions=yes
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15476 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15478 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15479 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15491 lt_prog_compiler_wl=
15492 lt_prog_compiler_pic=
15493 lt_prog_compiler_static=
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15496 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15498 if test "$GCC" = yes; then
15499 lt_prog_compiler_wl='-Wl,'
15500 lt_prog_compiler_static='-static'
15504 # All AIX code is PIC.
15505 if test "$host_cpu" = ia64; then
15506 # AIX 5 now supports IA64 processor
15507 lt_prog_compiler_static='-Bstatic'
15509 lt_prog_compiler_pic='-fPIC'
15515 # see comment about AmigaOS4 .so support
15516 lt_prog_compiler_pic='-fPIC'
15519 # FIXME: we need at least 68020 code to build shared libraries, but
15520 # adding the `-m68020' flag to GCC prevents building anything better,
15522 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15527 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15528 # PIC is the default for these OSes.
15531 mingw* | cygwin* | pw32* | os2* | cegcc*)
15532 # This hack is so that the source file can tell whether it is being
15533 # built for inclusion in a dll (and should export symbols for example).
15534 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15535 # (--disable-auto-import) libraries
15536 lt_prog_compiler_pic='-DDLL_EXPORT'
15539 darwin* | rhapsody*)
15540 # PIC is the default on this platform
15541 # Common symbols not allowed in MH_DYLIB files
15542 lt_prog_compiler_pic='-fno-common'
15546 # PIC is the default for Haiku.
15547 # The "-static" flag exists, but is broken.
15548 lt_prog_compiler_static=
15552 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15553 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15554 # sets the default TLS model and affects inlining.
15560 lt_prog_compiler_pic='-fPIC'
15566 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15567 # Instead, we relocate shared libraries at runtime.
15571 # Just because we use GCC doesn't mean we suddenly get shared libraries
15572 # on systems that don't support them.
15573 lt_prog_compiler_can_build_shared=no
15578 # QNX uses GNU C++, but need to define -shared option too, otherwise
15579 # it will coredump.
15580 lt_prog_compiler_pic='-fPIC -shared'
15584 if test -d /usr/nec; then
15585 lt_prog_compiler_pic=-Kconform_pic
15590 lt_prog_compiler_pic='-fPIC'
15594 case $cc_basename in
15595 nvcc*) # Cuda Compiler Driver 2.2
15596 lt_prog_compiler_wl='-Xlinker '
15597 lt_prog_compiler_pic='-Xcompiler -fPIC'
15601 # PORTME Check for flag to pass linker flags through the system compiler.
15604 lt_prog_compiler_wl='-Wl,'
15605 if test "$host_cpu" = ia64; then
15606 # AIX 5 now supports IA64 processor
15607 lt_prog_compiler_static='-Bstatic'
15609 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15613 mingw* | cygwin* | pw32* | os2* | cegcc*)
15614 # This hack is so that the source file can tell whether it is being
15615 # built for inclusion in a dll (and should export symbols for example).
15616 lt_prog_compiler_pic='-DDLL_EXPORT'
15619 hpux9* | hpux10* | hpux11*)
15620 lt_prog_compiler_wl='-Wl,'
15621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15622 # not for PA HP-UX.
15628 lt_prog_compiler_pic='+Z'
15631 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15632 lt_prog_compiler_static='${wl}-a ${wl}archive'
15635 irix5* | irix6* | nonstopux*)
15636 lt_prog_compiler_wl='-Wl,'
15637 # PIC (with -KPIC) is the default.
15638 lt_prog_compiler_static='-non_shared'
15641 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15642 case $cc_basename in
15643 # old Intel for x86_64 which still supported -KPIC.
15645 lt_prog_compiler_wl='-Wl,'
15646 lt_prog_compiler_pic='-KPIC'
15647 lt_prog_compiler_static='-static'
15649 # icc used to be incompatible with GCC.
15650 # ICC 10 doesn't accept -KPIC any more.
15652 lt_prog_compiler_wl='-Wl,'
15653 lt_prog_compiler_pic='-fPIC'
15654 lt_prog_compiler_static='-static'
15656 # Lahey Fortran 8.1.
15658 lt_prog_compiler_wl='-Wl,'
15659 lt_prog_compiler_pic='--shared'
15660 lt_prog_compiler_static='--static'
15662 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15663 # Portland Group compilers (*not* the Pentium gcc compiler,
15664 # which looks to be a dead project)
15665 lt_prog_compiler_wl='-Wl,'
15666 lt_prog_compiler_pic='-fpic'
15667 lt_prog_compiler_static='-Bstatic'
15670 lt_prog_compiler_wl='-Wl,'
15671 # All Alpha code is PIC.
15672 lt_prog_compiler_static='-non_shared'
15674 xl* | bgxl* | bgf* | mpixl*)
15675 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15676 lt_prog_compiler_wl='-Wl,'
15677 lt_prog_compiler_pic='-qpic'
15678 lt_prog_compiler_static='-qstaticlink'
15681 case `$CC -V 2>&1 | sed 5q` in
15682 *Sun\ F* | *Sun*Fortran*)
15683 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15684 lt_prog_compiler_pic='-KPIC'
15685 lt_prog_compiler_static='-Bstatic'
15686 lt_prog_compiler_wl=''
15690 lt_prog_compiler_pic='-KPIC'
15691 lt_prog_compiler_static='-Bstatic'
15692 lt_prog_compiler_wl='-Wl,'
15700 lt_prog_compiler_pic='-KPIC'
15701 lt_prog_compiler_static='-Bstatic'
15705 # QNX uses GNU C++, but need to define -shared option too, otherwise
15706 # it will coredump.
15707 lt_prog_compiler_pic='-fPIC -shared'
15710 osf3* | osf4* | osf5*)
15711 lt_prog_compiler_wl='-Wl,'
15712 # All OSF/1 code is PIC.
15713 lt_prog_compiler_static='-non_shared'
15717 lt_prog_compiler_static='-non_shared'
15721 lt_prog_compiler_pic='-KPIC'
15722 lt_prog_compiler_static='-Bstatic'
15723 case $cc_basename in
15724 f77* | f90* | f95*)
15725 lt_prog_compiler_wl='-Qoption ld ';;
15727 lt_prog_compiler_wl='-Wl,';;
15732 lt_prog_compiler_wl='-Qoption ld '
15733 lt_prog_compiler_pic='-PIC'
15734 lt_prog_compiler_static='-Bstatic'
15737 sysv4 | sysv4.2uw2* | sysv4.3*)
15738 lt_prog_compiler_wl='-Wl,'
15739 lt_prog_compiler_pic='-KPIC'
15740 lt_prog_compiler_static='-Bstatic'
15744 if test -d /usr/nec ;then
15745 lt_prog_compiler_pic='-Kconform_pic'
15746 lt_prog_compiler_static='-Bstatic'
15750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15751 lt_prog_compiler_wl='-Wl,'
15752 lt_prog_compiler_pic='-KPIC'
15753 lt_prog_compiler_static='-Bstatic'
15757 lt_prog_compiler_wl='-Wl,'
15758 lt_prog_compiler_can_build_shared=no
15762 lt_prog_compiler_pic='-pic'
15763 lt_prog_compiler_static='-Bstatic'
15767 lt_prog_compiler_can_build_shared=no
15773 # For platforms which do not support PIC, -DPIC is meaningless:
15775 lt_prog_compiler_pic=
15778 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15782 $as_echo "$lt_prog_compiler_pic" >&6; }
15790 # Check to make sure the PIC flag actually works.
15792 if test -n "$lt_prog_compiler_pic"; then
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15794 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15795 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15796 $as_echo_n "(cached
) " >&6
15798 lt_cv_prog_compiler_pic_works=no
15799 ac_outfile=conftest.$ac_objext
15800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15801 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15802 # Insert the option either (1) after the last *FLAGS variable, or
15803 # (2) before a word containing "conftest.
", or (3) at the end.
15804 # Note that $ac_compile itself does not contain backslashes and begins
15805 # with a dollar sign (not a hyphen), so the echo should work correctly.
15806 # The option is referenced via a variable to avoid confusing sed.
15807 lt_compile=`echo "$ac_compile" | $SED \
15808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15810 -e 's:$: $lt_compiler_flag:'`
15811 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15812 (eval "$lt_compile" 2>conftest.err)
15814 cat conftest.err >&5
15815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15816 if (exit $ac_status) && test -s "$ac_outfile"; then
15817 # The compiler can only warn and ignore the option if not recognized
15818 # So say no if there are warnings other than the usual output.
15819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15822 lt_cv_prog_compiler_pic_works=yes
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15829 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15831 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15832 case $lt_prog_compiler_pic in
15834 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15837 lt_prog_compiler_pic=
15838 lt_prog_compiler_can_build_shared=no
15849 # Check to make sure the static flag actually works.
15851 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15853 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15854 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15855 $as_echo_n "(cached
) " >&6
15857 lt_cv_prog_compiler_static_works=no
15858 save_LDFLAGS="$LDFLAGS"
15859 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15860 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15861 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15862 # The linker can only warn and ignore the option if not recognized
15863 # So say no if there are warnings
15864 if test -s conftest.err; then
15865 # Append any errors to the config.log.
15866 cat conftest.err 1>&5
15867 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15869 if diff conftest.exp conftest.er2 >/dev/null; then
15870 lt_cv_prog_compiler_static_works=yes
15873 lt_cv_prog_compiler_static_works=yes
15877 LDFLAGS="$save_LDFLAGS"
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15881 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15883 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15886 lt_prog_compiler_static=
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15896 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15897 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15898 $as_echo_n "(cached
) " >&6
15900 lt_cv_prog_compiler_c_o=no
15901 $RM -r conftest 2>/dev/null
15905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15907 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15908 # Insert the option either (1) after the last *FLAGS variable, or
15909 # (2) before a word containing "conftest.
", or (3) at the end.
15910 # Note that $ac_compile itself does not contain backslashes and begins
15911 # with a dollar sign (not a hyphen), so the echo should work correctly.
15912 lt_compile=`echo "$ac_compile" | $SED \
15913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15915 -e 's:$: $lt_compiler_flag:'`
15916 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15917 (eval "$lt_compile" 2>out/conftest.err)
15919 cat out/conftest.err >&5
15920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15923 # The compiler can only warn and ignore the option if not recognized
15924 # So say no if there are warnings
15925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15928 lt_cv_prog_compiler_c_o=yes
15933 # SGI C++ compiler will create directory out/ii_files/ for
15934 # template instantiation
15935 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15936 $RM out/* && rmdir out
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15943 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15951 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15952 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15953 $as_echo_n "(cached
) " >&6
15955 lt_cv_prog_compiler_c_o=no
15956 $RM -r conftest 2>/dev/null
15960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15962 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15963 # Insert the option either (1) after the last *FLAGS variable, or
15964 # (2) before a word containing "conftest.
", or (3) at the end.
15965 # Note that $ac_compile itself does not contain backslashes and begins
15966 # with a dollar sign (not a hyphen), so the echo should work correctly.
15967 lt_compile=`echo "$ac_compile" | $SED \
15968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15970 -e 's:$: $lt_compiler_flag:'`
15971 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15972 (eval "$lt_compile" 2>out/conftest.err)
15974 cat out/conftest.err >&5
15975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15976 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15978 # The compiler can only warn and ignore the option if not recognized
15979 # So say no if there are warnings
15980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15983 lt_cv_prog_compiler_c_o=yes
15988 # SGI C++ compiler will create directory out/ii_files/ for
15989 # template instantiation
15990 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15991 $RM out/* && rmdir out
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15998 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16003 hard_links="nottested
"
16004 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16005 # do not overwrite the value of need_locks provided by the user
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16007 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16012 ln conftest.a conftest.b 2>&5 || hard_links=no
16013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16015 $as_echo "$hard_links" >&6; }
16016 if test "$hard_links" = no; then
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16018 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16031 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16034 allow_undefined_flag=
16035 always_export_symbols=no
16037 archive_expsym_cmds=
16038 compiler_needs_object=no
16039 enable_shared_with_static_runtimes=no
16040 export_dynamic_flag_spec=
16041 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16042 hardcode_automatic=no
16044 hardcode_direct_absolute=no
16045 hardcode_libdir_flag_spec=
16046 hardcode_libdir_flag_spec_ld=
16047 hardcode_libdir_separator=
16048 hardcode_minus_L=no
16049 hardcode_shlibpath_var=unsupported
16051 link_all_deplibs=unknown
16053 module_expsym_cmds=
16054 old_archive_from_new_cmds=
16055 old_archive_from_expsyms_cmds=
16056 thread_safe_flag_spec=
16057 whole_archive_flag_spec=
16058 # include_expsyms should be a list of space-separated symbols to be *always*
16059 # included in the symbol list
16061 # exclude_expsyms can be an extended regexp of symbols to exclude
16062 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16064 # as well as any symbol that contains `d'.
16065 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16067 # platforms (ab)use it in PIC code, but their linkers get confused if
16068 # the symbol is explicitly referenced. Since portable code cannot
16069 # rely on this symbol name, it's probably fine to never include it in
16070 # preloaded symbol tables.
16071 # Exclude shared library initialization/finalization symbols.
16072 extract_expsyms_cmds=
16075 cygwin* | mingw* | pw32* | cegcc*)
16076 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16077 # When not using gcc, we currently assume that we are using
16078 # Microsoft Visual C++.
16079 if test "$GCC" != yes; then
16084 # we just hope/assume this is gcc and not c89 (= MSVC++)
16094 # On some targets, GNU ld is compatible enough with the native linker
16095 # that we're better off using the native interface for both.
16096 lt_use_gnu_ld_interface=no
16097 if test "$with_gnu_ld" = yes; then
16100 # The AIX port of GNU ld has always aspired to compatibility
16101 # with the native linker. However, as the warning in the GNU ld
16102 # block says, versions before 2.19.5* couldn't really create working
16103 # shared libraries, regardless of the interface used.
16104 case `$LD -v 2>&1` in
16105 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16106 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16107 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16109 lt_use_gnu_ld_interface=yes
16114 lt_use_gnu_ld_interface=yes
16119 if test "$lt_use_gnu_ld_interface" = yes; then
16120 # If archive_cmds runs LD, not CC, wlarc should be empty
16123 # Set some defaults for GNU ld with shared library support. These
16124 # are reset later if shared libraries are not supported. Putting them
16125 # here allows them to be overridden if necessary.
16126 runpath_var=LD_RUN_PATH
16127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16128 export_dynamic_flag_spec='${wl}--export-dynamic'
16129 # ancient GNU ld didn't support --whole-archive et. al.
16130 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16131 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16133 whole_archive_flag_spec=
16135 supports_anon_versioning=no
16136 case `$LD -v 2>&1` in
16137 *GNU\ gold*) supports_anon_versioning=yes ;;
16138 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16139 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16140 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16141 *\ 2.11.*) ;; # other 2.11 versions
16142 *) supports_anon_versioning=yes ;;
16145 # See if GNU ld supports shared libraries.
16148 # On AIX/PPC, the GNU linker is very broken
16149 if test "$host_cpu" != ia64; then
16153 *** Warning: the GNU linker, at least up to release 2.19, is reported
16154 *** to be unable to reliably create shared libraries on AIX.
16155 *** Therefore, libtool is disabling shared libraries support. If you
16156 *** really care for shared libraries, you may want to install binutils
16157 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16158 *** You will then need to restart the configuration process.
16167 # see comment about AmigaOS4 .so support
16168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16169 archive_expsym_cmds=''
16172 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)'
16173 hardcode_libdir_flag_spec
='-L$libdir'
16174 hardcode_minus_L
=yes
16180 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16181 allow_undefined_flag
=unsupported
16182 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16183 # support --undefined. This deserves some investigation. FIXME
16184 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16190 cygwin
* | mingw
* | pw32
* | cegcc
*)
16191 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16192 # as there is no search path for DLLs.
16193 hardcode_libdir_flag_spec
='-L$libdir'
16194 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16195 allow_undefined_flag
=unsupported
16196 always_export_symbols
=no
16197 enable_shared_with_static_runtimes
=yes
16198 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16200 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16201 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16202 # If the export-symbols file already is a .def file (1st line
16203 # is EXPORTS), use it as is; otherwise, prepend...
16204 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16205 cp $export_symbols $output_objdir/$soname.def;
16207 echo EXPORTS > $output_objdir/$soname.def;
16208 cat $export_symbols >> $output_objdir/$soname.def;
16210 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16217 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16218 link_all_deplibs
=yes
16223 hardcode_shlibpath_var
=no
16224 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16225 export_dynamic_flag_spec
='${wl}-E'
16226 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16227 # Instead, shared libraries are loaded at an image base (0x10000000 by
16228 # default) and relocated if they conflict, which is a slow very memory
16229 # consuming and fragmenting process. To avoid this, we pick a random,
16230 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16231 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16232 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16233 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'
16236 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16238 if test "$host_os" = linux-dietlibc
; then
16239 case $cc_basename in
16240 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16243 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16244 && test "$tmp_diet" = no
16246 tmp_addflag
=' $pic_flag'
16247 tmp_sharedflag
='-shared'
16248 case $cc_basename,$host_cpu in
16249 pgcc
*) # Portland Group C compiler
16250 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16251 tmp_addflag
=' $pic_flag'
16253 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16254 # Portland Group f77 and f90 compilers
16255 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'
16256 tmp_addflag
=' $pic_flag -Mnomain' ;;
16257 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16258 tmp_addflag
=' -i_dynamic' ;;
16259 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16260 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16261 ifc
* | ifort
*) # Intel Fortran compiler
16262 tmp_addflag
=' -nofor_main' ;;
16263 lf95
*) # Lahey Fortran 8.1
16264 whole_archive_flag_spec
=
16265 tmp_sharedflag
='--shared' ;;
16266 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16267 tmp_sharedflag
='-qmkshrobj'
16269 nvcc
*) # Cuda Compiler Driver 2.2
16270 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'
16271 compiler_needs_object
=yes
16274 case `$CC -V 2>&1 | sed 5q` in
16275 *Sun\ C
*) # Sun C 5.9
16276 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'
16277 compiler_needs_object
=yes
16278 tmp_sharedflag
='-G' ;;
16279 *Sun\ F
*) # Sun Fortran 8.3
16280 tmp_sharedflag
='-G' ;;
16282 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16284 if test "x$supports_anon_versioning" = xyes
; then
16285 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16287 echo "local: *; };" >> $output_objdir/$libname.ver~
16288 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16291 case $cc_basename in
16292 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16293 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16294 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16295 hardcode_libdir_flag_spec
=
16296 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16297 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16298 if test "x$supports_anon_versioning" = xyes
; then
16299 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16301 echo "local: *; };" >> $output_objdir/$libname.ver~
16302 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16312 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16313 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16316 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16317 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16322 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16326 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16327 *** create shared libraries on Solaris systems. Therefore, libtool
16328 *** is disabling shared libraries support. We urge you to upgrade GNU
16329 *** binutils to release 2.9.1 or newer. Another option is to modify
16330 *** your PATH or compiler configuration so that the native linker is
16331 *** used, and then restart.
16334 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16335 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16336 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16342 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16343 case `$LD -v 2>&1` in
16344 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16348 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16349 *** reliably create shared libraries on SCO systems. Therefore, libtool
16350 *** is disabling shared libraries support. We urge you to upgrade GNU
16351 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16352 *** your PATH or compiler configuration so that the native linker is
16353 *** used, and then restart.
16358 # For security reasons, it is highly recommended that you always
16359 # use absolute paths for naming shared libraries, and exclude the
16360 # DT_RUNPATH tag from executables and libraries. But doing so
16361 # requires that you compile everything twice, which is a pain.
16362 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16363 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16364 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16365 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16374 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16376 hardcode_direct
=yes
16377 hardcode_shlibpath_var
=no
16381 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16382 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16383 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16390 if test "$ld_shlibs" = no
; then
16392 hardcode_libdir_flag_spec
=
16393 export_dynamic_flag_spec
=
16394 whole_archive_flag_spec
=
16397 # PORTME fill in a description of your system's linker (not GNU ld)
16400 allow_undefined_flag
=unsupported
16401 always_export_symbols
=yes
16402 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'
16403 # Note: this linker hardcodes the directories in LIBPATH if there
16404 # are no directories specified by -L.
16405 hardcode_minus_L
=yes
16406 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16407 # Neither direct hardcoding nor static linking is supported with a
16409 hardcode_direct
=unsupported
16414 if test "$host_cpu" = ia64
; then
16415 # On IA64, the linker does run time linking by default, so we don't
16416 # have to do anything special.
16417 aix_use_runtimelinking
=no
16418 exp_sym_flag
='-Bexport'
16421 # If we're using GNU nm, then we don't want the "-C" option.
16422 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16423 # Also, AIX nm treats weak defined symbols like other global
16424 # defined symbols, whereas GNU nm marks them as "W".
16425 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16426 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'
16428 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'
16430 aix_use_runtimelinking
=no
16432 # Test if we are trying to use run time linking or normal
16433 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16434 # need to do runtime linking.
16435 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16436 for ld_flag
in $LDFLAGS; do
16437 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16438 aix_use_runtimelinking
=yes
16445 exp_sym_flag
='-bexport'
16446 no_entry_flag
='-bnoentry'
16449 # When large executables or shared objects are built, AIX ld can
16450 # have problems creating the table of contents. If linking a library
16451 # or program results in "error TOC overflow" add -mminimal-toc to
16452 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16453 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16456 hardcode_direct
=yes
16457 hardcode_direct_absolute
=yes
16458 hardcode_libdir_separator
=':'
16459 link_all_deplibs
=yes
16460 file_list_spec
='${wl}-f,'
16462 if test "$GCC" = yes; then
16463 case $host_os in aix4.
[012]|aix4.
[012].
*)
16464 # We only want to do this on AIX 4.2 and lower, the check
16465 # below for broken collect2 doesn't work under 4.3+
16466 collect2name
=`${CC} -print-prog-name=collect2`
16467 if test -f "$collect2name" &&
16468 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16470 # We have reworked collect2
16473 # We have old collect2
16474 hardcode_direct
=unsupported
16475 # It fails to find uninstalled libraries when the uninstalled
16476 # path is not listed in the libpath. Setting hardcode_minus_L
16477 # to unsupported forces relinking
16478 hardcode_minus_L
=yes
16479 hardcode_libdir_flag_spec
='-L$libdir'
16480 hardcode_libdir_separator
=
16484 shared_flag
='-shared'
16485 if test "$aix_use_runtimelinking" = yes; then
16486 shared_flag
="$shared_flag "'${wl}-G'
16490 if test "$host_cpu" = ia64
; then
16491 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16492 # chokes on -Wl,-G. The following line is correct:
16495 if test "$aix_use_runtimelinking" = yes; then
16496 shared_flag
='${wl}-G'
16498 shared_flag
='${wl}-bM:SRE'
16503 export_dynamic_flag_spec
='${wl}-bexpall'
16504 # It seems that -bexpall does not export symbols beginning with
16505 # underscore (_), so it is better to generate a list of symbols to export.
16506 always_export_symbols
=yes
16507 if test "$aix_use_runtimelinking" = yes; then
16508 # Warning - without using the other runtime loading flags (-brtl),
16509 # -berok will link without error, but may produce a broken library.
16510 allow_undefined_flag
='-berok'
16511 # Determine the default libpath from the value encoded in an
16512 # empty executable.
16513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h. */
16524 if ac_fn_c_try_link
"$LINENO"; then :
16526 lt_aix_libpath_sed
='
16527 /Import File Strings/,/^$/ {
16533 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16534 # Check for a 64-bit object if we didn't find anything.
16535 if test -z "$aix_libpath"; then
16536 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16539 rm -f core conftest.err conftest.
$ac_objext \
16540 conftest
$ac_exeext conftest.
$ac_ext
16541 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16543 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16544 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"
16546 if test "$host_cpu" = ia64
; then
16547 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16548 allow_undefined_flag
="-z nodefs"
16549 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"
16551 # Determine the default libpath from the value encoded in an
16552 # empty executable.
16553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16564 if ac_fn_c_try_link
"$LINENO"; then :
16566 lt_aix_libpath_sed
='
16567 /Import File Strings/,/^$/ {
16573 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16574 # Check for a 64-bit object if we didn't find anything.
16575 if test -z "$aix_libpath"; then
16576 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16579 rm -f core conftest.err conftest.
$ac_objext \
16580 conftest
$ac_exeext conftest.
$ac_ext
16581 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16583 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16584 # Warning - without using the other run time loading flags,
16585 # -berok will link without error, but may produce a broken library.
16586 no_undefined_flag
=' ${wl}-bernotok'
16587 allow_undefined_flag
=' ${wl}-berok'
16588 if test "$with_gnu_ld" = yes; then
16589 # We only use this code for GNU lds that support --whole-archive.
16590 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16592 # Exported symbols can be pulled into shared objects from archives
16593 whole_archive_flag_spec
='$convenience'
16595 archive_cmds_need_lc
=yes
16596 # This is similar to how AIX traditionally builds its shared libraries.
16597 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'
16605 # see comment about AmigaOS4 .so support
16606 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16607 archive_expsym_cmds
=''
16610 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)'
16611 hardcode_libdir_flag_spec
='-L$libdir'
16612 hardcode_minus_L
=yes
16618 export_dynamic_flag_spec
=-rdynamic
16621 cygwin
* | mingw
* | pw32
* | cegcc
*)
16622 # When not using gcc, we currently assume that we are using
16623 # Microsoft Visual C++.
16624 # hardcode_libdir_flag_spec is actually meaningless, as there is
16625 # no search path for DLLs.
16626 hardcode_libdir_flag_spec
=' '
16627 allow_undefined_flag
=unsupported
16628 # Tell ltmain to make .lib files, not .a files.
16630 # Tell ltmain to make .dll files, not .so files.
16632 # FIXME: Setting linknames here is a bad hack.
16633 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16634 # The linker will automatically build a .lib file if we build a DLL.
16635 old_archive_from_new_cmds
='true'
16636 # FIXME: Should let the user specify the lib program.
16637 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16638 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16639 enable_shared_with_static_runtimes
=yes
16642 darwin
* | rhapsody
*)
16645 archive_cmds_need_lc
=no
16647 hardcode_automatic
=yes
16648 hardcode_shlibpath_var
=unsupported
16649 if test "$lt_cv_ld_force_load" = "yes"; then
16650 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\"`'
16652 whole_archive_flag_spec
=''
16654 link_all_deplibs
=yes
16655 allow_undefined_flag
="$_lt_dar_allow_undefined"
16656 case $cc_basename in
16657 ifort
*) _lt_dar_can_shared
=yes ;;
16658 *) _lt_dar_can_shared
=$GCC ;;
16660 if test "$_lt_dar_can_shared" = "yes"; then
16661 output_verbose_link_cmd
=func_echo_all
16662 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16663 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16664 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}"
16665 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}"
16674 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16675 hardcode_libdir_flag_spec
='-L$libdir'
16676 hardcode_shlibpath_var
=no
16679 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16680 # support. Future versions do this automatically, but an explicit c++rt0.o
16681 # does not break anything, and helps significantly (at the cost of a little
16684 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16685 hardcode_libdir_flag_spec
='-R$libdir'
16686 hardcode_direct
=yes
16687 hardcode_shlibpath_var
=no
16690 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16692 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16693 hardcode_direct
=yes
16694 hardcode_minus_L
=yes
16695 hardcode_shlibpath_var
=no
16698 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16699 freebsd
* | dragonfly
*)
16700 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16701 hardcode_libdir_flag_spec
='-R$libdir'
16702 hardcode_direct
=yes
16703 hardcode_shlibpath_var
=no
16707 if test "$GCC" = yes; then
16708 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'
16710 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'
16712 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16713 hardcode_libdir_separator
=:
16714 hardcode_direct
=yes
16716 # hardcode_minus_L: Not really in the search PATH,
16717 # but as the default location of the library.
16718 hardcode_minus_L
=yes
16719 export_dynamic_flag_spec
='${wl}-E'
16723 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16724 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16726 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16728 if test "$with_gnu_ld" = no
; then
16729 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16730 hardcode_libdir_flag_spec_ld
='+b $libdir'
16731 hardcode_libdir_separator
=:
16732 hardcode_direct
=yes
16733 hardcode_direct_absolute
=yes
16734 export_dynamic_flag_spec
='${wl}-E'
16735 # hardcode_minus_L: Not really in the search PATH,
16736 # but as the default location of the library.
16737 hardcode_minus_L
=yes
16742 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16745 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16751 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16757 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16760 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16764 # Older versions of the 11.00 compiler do not understand -b yet
16765 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16767 $as_echo_n "checking if $CC understands -b... " >&6; }
16768 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16769 $as_echo_n "(cached) " >&6
16771 lt_cv_prog_compiler__b
=no
16772 save_LDFLAGS
="$LDFLAGS"
16773 LDFLAGS
="$LDFLAGS -b"
16774 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16775 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16776 # The linker can only warn and ignore the option if not recognized
16777 # So say no if there are warnings
16778 if test -s conftest.err
; then
16779 # Append any errors to the config.log.
16780 cat conftest.err
1>&5
16781 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16782 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16783 if diff conftest.exp conftest.er2
>/dev
/null
; then
16784 lt_cv_prog_compiler__b
=yes
16787 lt_cv_prog_compiler__b
=yes
16791 LDFLAGS
="$save_LDFLAGS"
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16795 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16797 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16798 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16800 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16806 if test "$with_gnu_ld" = no
; then
16807 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16808 hardcode_libdir_separator
=:
16813 hardcode_shlibpath_var
=no
16816 hardcode_direct
=yes
16817 hardcode_direct_absolute
=yes
16818 export_dynamic_flag_spec
='${wl}-E'
16820 # hardcode_minus_L: Not really in the search PATH,
16821 # but as the default location of the library.
16822 hardcode_minus_L
=yes
16828 irix5
* | irix6
* | nonstopux
*)
16829 if test "$GCC" = yes; then
16830 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'
16831 # Try to use the -exported_symbol ld option, if it does not
16832 # work, assume that -exports_file does not work either and
16833 # implicitly export all symbols.
16834 save_LDFLAGS
="$LDFLAGS"
16835 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16840 if ac_fn_c_try_link
"$LINENO"; then :
16841 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'
16844 rm -f core conftest.err conftest.
$ac_objext \
16845 conftest
$ac_exeext conftest.
$ac_ext
16846 LDFLAGS
="$save_LDFLAGS"
16848 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'
16849 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'
16851 archive_cmds_need_lc
='no'
16852 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16853 hardcode_libdir_separator
=:
16855 link_all_deplibs
=yes
16859 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16860 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16862 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16864 hardcode_libdir_flag_spec
='-R$libdir'
16865 hardcode_direct
=yes
16866 hardcode_shlibpath_var
=no
16870 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16871 hardcode_direct
=yes
16872 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16873 hardcode_libdir_separator
=:
16874 hardcode_shlibpath_var
=no
16881 if test -f /usr
/libexec
/ld.so
; then
16882 hardcode_direct
=yes
16883 hardcode_shlibpath_var
=no
16884 hardcode_direct_absolute
=yes
16885 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16886 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16887 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16888 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16889 export_dynamic_flag_spec
='${wl}-E'
16892 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16893 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16894 hardcode_libdir_flag_spec
='-R$libdir'
16897 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16898 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16908 hardcode_libdir_flag_spec
='-L$libdir'
16909 hardcode_minus_L
=yes
16910 allow_undefined_flag
=unsupported
16911 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'
16912 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16916 if test "$GCC" = yes; then
16917 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16918 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'
16920 allow_undefined_flag
=' -expect_unresolved \*'
16921 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'
16923 archive_cmds_need_lc
='no'
16924 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16925 hardcode_libdir_separator
=:
16928 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16929 if test "$GCC" = yes; then
16930 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16931 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'
16932 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16934 allow_undefined_flag
=' -expect_unresolved \*'
16935 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'
16936 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~
16937 $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'
16939 # Both c and cxx compiler support -rpath directly
16940 hardcode_libdir_flag_spec
='-rpath $libdir'
16942 archive_cmds_need_lc
='no'
16943 hardcode_libdir_separator
=:
16947 no_undefined_flag
=' -z defs'
16948 if test "$GCC" = yes; then
16950 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16951 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16952 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16954 case `$CC -V 2>&1` in
16957 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16958 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16959 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16963 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16964 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16965 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16969 hardcode_libdir_flag_spec
='-R$libdir'
16970 hardcode_shlibpath_var
=no
16972 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16974 # The compiler driver will combine and reorder linker options,
16975 # but understands `-z linker_flag'. GCC discards it without `$wl',
16976 # but is careful enough not to reorder.
16977 # Supported since Solaris 2.6 (maybe 2.5.1?)
16978 if test "$GCC" = yes; then
16979 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16981 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16985 link_all_deplibs
=yes
16989 if test "x$host_vendor" = xsequent
; then
16990 # Use $CC to link under sequent, because it throws in some extra .o
16991 # files that make .init and .fini sections work.
16992 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16994 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16996 hardcode_libdir_flag_spec
='-L$libdir'
16997 hardcode_direct
=yes
16998 hardcode_minus_L
=yes
16999 hardcode_shlibpath_var
=no
17003 case $host_vendor in
17005 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17006 hardcode_direct
=yes # is this really true???
17009 ## LD is ld it makes a PLAMLIB
17010 ## CC just makes a GrossModule.
17011 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17012 reload_cmds
='$CC -r -o $output$reload_objs'
17016 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17017 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17020 runpath_var
='LD_RUN_PATH'
17021 hardcode_shlibpath_var
=no
17025 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026 hardcode_shlibpath_var
=no
17027 export_dynamic_flag_spec
='-Bexport'
17031 if test -d /usr
/nec
; then
17032 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17033 hardcode_shlibpath_var
=no
17034 runpath_var
=LD_RUN_PATH
17035 hardcode_runpath_var
=yes
17040 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17041 no_undefined_flag
='${wl}-z,text'
17042 archive_cmds_need_lc
=no
17043 hardcode_shlibpath_var
=no
17044 runpath_var
='LD_RUN_PATH'
17046 if test "$GCC" = yes; then
17047 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17048 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17050 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17051 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17055 sysv5
* | sco3.2v5
* | sco5v6
*)
17056 # Note: We can NOT use -z defs as we might desire, because we do not
17057 # link with -lc, and that would cause any symbols used from libc to
17058 # always be unresolved, which means just about no library would
17059 # ever link correctly. If we're not using GNU ld we use -z text
17060 # though, which does catch some bad symbols but isn't as heavy-handed
17062 no_undefined_flag
='${wl}-z,text'
17063 allow_undefined_flag
='${wl}-z,nodefs'
17064 archive_cmds_need_lc
=no
17065 hardcode_shlibpath_var
=no
17066 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17067 hardcode_libdir_separator
=':'
17068 link_all_deplibs
=yes
17069 export_dynamic_flag_spec
='${wl}-Bexport'
17070 runpath_var
='LD_RUN_PATH'
17072 if test "$GCC" = yes; then
17073 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17074 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17076 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17077 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17083 hardcode_libdir_flag_spec
='-L$libdir'
17084 hardcode_shlibpath_var
=no
17092 if test x
$host_vendor = xsni
; then
17094 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17095 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17102 $as_echo "$ld_shlibs" >&6; }
17103 test "$ld_shlibs" = no
&& can_build_shared
=no
17105 with_gnu_ld
=$with_gnu_ld
17122 # Do we need to explicitly link libc?
17124 case "x$archive_cmds_need_lc" in
17126 # Assume -lc should be added
17127 archive_cmds_need_lc
=yes
17129 if test "$enable_shared" = yes && test "$GCC" = yes; then
17130 case $archive_cmds in
17132 # FIXME: we may have to deal with multi-command sequences.
17135 # Test whether the compiler implicitly links with -lc since on some
17136 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17137 # to ld, don't add -lc before -lgcc.
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17139 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17140 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17141 $as_echo_n "(cached) " >&6
17144 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17147 (eval $ac_compile) 2>&5
17149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17150 test $ac_status = 0; } 2>conftest.err
; then
17153 libobjs
=conftest.
$ac_objext
17155 wl
=$lt_prog_compiler_wl
17156 pic_flag
=$lt_prog_compiler_pic
17162 lt_save_allow_undefined_flag
=$allow_undefined_flag
17163 allow_undefined_flag
=
17164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17165 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17168 test $ac_status = 0; }
17170 lt_cv_archive_cmds_need_lc
=no
17172 lt_cv_archive_cmds_need_lc
=yes
17174 allow_undefined_flag
=$lt_save_allow_undefined_flag
17176 cat conftest.err
1>&5
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17182 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17183 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17347 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17349 if test "$GCC" = yes; then
17351 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17352 *) lt_awk_arg
="/^libraries:/" ;;
17355 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17356 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17358 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17359 case $lt_search_path_spec in
17361 # if the path contains ";" then we assume it to be the separator
17362 # otherwise default to the standard path separator (i.e. ":") - it is
17363 # assumed that no part of a normal pathname contains ";" but that should
17364 # okay in the real world where ";" in dirpaths is itself problematic.
17365 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17368 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17371 # Ok, now we have the path, separated by spaces, we can step through it
17372 # and add multilib dir if necessary.
17373 lt_tmp_lt_search_path_spec
=
17374 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17375 for lt_sys_path
in $lt_search_path_spec; do
17376 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17377 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17379 test -d "$lt_sys_path" && \
17380 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17383 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17384 BEGIN {RS=" "; FS="/|\n";} {
17387 for (lt_i = NF; lt_i > 0; lt_i--) {
17388 if ($lt_i != "" && $lt_i != ".") {
17389 if ($lt_i == "..") {
17392 if (lt_count == 0) {
17393 lt_foo="/" $lt_i lt_foo;
17400 if (lt_foo != "") { lt_freq[lt_foo]++; }
17401 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17403 # AWK program above erroneously prepends '/' to C:/dos/paths
17406 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17407 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17409 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17411 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17413 library_names_spec
=
17414 libname_spec
='lib$name'
17418 postuninstall_cmds
=
17422 shlibpath_overrides_runpath
=unknown
17424 dynamic_linker
="$host_os ld.so"
17425 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17426 need_lib_prefix
=unknown
17427 hardcode_into_libs
=no
17429 # when you set need_version to no, make sure it does not cause -set_version
17430 # flags to be left without arguments
17431 need_version
=unknown
17436 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17437 shlibpath_var
=LIBPATH
17439 # AIX 3 has no versioning support, so we append a major version to the name.
17440 soname_spec
='${libname}${release}${shared_ext}$major'
17447 hardcode_into_libs
=yes
17448 if test "$host_cpu" = ia64
; then
17449 # AIX 5 supports IA64
17450 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17451 shlibpath_var
=LD_LIBRARY_PATH
17453 # With GCC up to 2.95.x, collect2 would create an import file
17454 # for dependence libraries. The import file would start with
17455 # the line `#! .'. This would cause the generated library to
17456 # depend on `.', always an invalid library. This was fixed in
17457 # development snapshots of GCC prior to 3.0.
17459 aix4 | aix4.
[01] | aix4.
[01].
*)
17460 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17462 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17465 can_build_shared
=no
17469 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17470 # soname into executable. Probably we can add versioning support to
17471 # collect2, so additional links can be useful in future.
17472 if test "$aix_use_runtimelinking" = yes; then
17473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17474 # instead of lib<name>.a to let people know that these are not
17475 # typical AIX shared libraries.
17476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17478 # We preserve .a as extension for shared libraries through AIX4.2
17479 # and later when we are not doing run time linking.
17480 library_names_spec
='${libname}${release}.a $libname.a'
17481 soname_spec
='${libname}${release}${shared_ext}$major'
17483 shlibpath_var
=LIBPATH
17490 # Since July 2007 AmigaOS4 officially supports .so libraries.
17491 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17495 library_names_spec
='$libname.ixlibrary $libname.a'
17496 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17497 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'
17503 library_names_spec
='${libname}${shared_ext}'
17504 dynamic_linker
="$host_os ld.so"
17505 shlibpath_var
=LIBRARY_PATH
17511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17512 soname_spec
='${libname}${release}${shared_ext}$major'
17513 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17514 shlibpath_var
=LD_LIBRARY_PATH
17515 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17516 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17517 # the default ld.so.conf also contains /usr/contrib/lib and
17518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17519 # libtool to hard-code these into programs
17522 cygwin
* | mingw
* | pw32
* | cegcc
*)
17523 version_type
=windows
17528 case $GCC,$host_os in
17529 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17530 library_names_spec
='$libname.dll.a'
17531 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17532 postinstall_cmds
='base_file=`basename \${file}`~
17533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17534 dldir=$destdir/`dirname \$dlpath`~
17535 test -d \$dldir || mkdir -p \$dldir~
17536 $install_prog $dir/$dlname \$dldir/$dlname~
17537 chmod a+x \$dldir/$dlname~
17538 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17539 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17541 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17542 dlpath=$dir/\$dldll~
17544 shlibpath_overrides_runpath
=yes
17548 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17549 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17551 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17554 # MinGW DLLs use traditional 'lib' prefix
17555 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17558 # pw32 DLLs use 'pw' prefix rather than 'lib'
17559 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17565 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17568 dynamic_linker
='Win32 ld.exe'
17569 # FIXME: first we should search . and the directory the executable is in
17573 darwin
* | rhapsody
*)
17574 dynamic_linker
="$host_os dyld"
17575 version_type
=darwin
17578 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17579 soname_spec
='${libname}${release}${major}$shared_ext'
17580 shlibpath_overrides_runpath
=yes
17581 shlibpath_var
=DYLD_LIBRARY_PATH
17582 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17584 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17585 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17592 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17593 soname_spec
='${libname}${release}${shared_ext}$major'
17594 shlibpath_var
=LD_LIBRARY_PATH
17597 freebsd
* | dragonfly
*)
17598 # DragonFly does not have aout. When/if they implement a new
17599 # versioning mechanism, adjust this.
17600 if test -x /usr
/bin
/objformat
; then
17601 objformat
=`/usr/bin/objformat`
17604 freebsd
[23].
*) objformat
=aout
;;
17605 *) objformat
=elf
;;
17608 version_type
=freebsd-
$objformat
17609 case $version_type in
17611 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17616 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17620 shlibpath_var
=LD_LIBRARY_PATH
17623 shlibpath_overrides_runpath
=yes
17625 freebsd3.
[01]* | freebsdelf3.
[01]*)
17626 shlibpath_overrides_runpath
=yes
17627 hardcode_into_libs
=yes
17629 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17630 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17631 shlibpath_overrides_runpath
=no
17632 hardcode_into_libs
=yes
17634 *) # from 4.6 on, and DragonFly
17635 shlibpath_overrides_runpath
=yes
17636 hardcode_into_libs
=yes
17645 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17646 soname_spec
='${libname}${release}${shared_ext}$major'
17647 shlibpath_var
=LD_LIBRARY_PATH
17648 hardcode_into_libs
=yes
17655 dynamic_linker
="$host_os runtime_loader"
17656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17657 soname_spec
='${libname}${release}${shared_ext}$major'
17658 shlibpath_var
=LIBRARY_PATH
17659 shlibpath_overrides_runpath
=yes
17660 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17661 hardcode_into_libs
=yes
17664 hpux9
* | hpux10
* | hpux11
*)
17665 # Give a soname corresponding to the major version so that dld.sl refuses to
17666 # link against other versions.
17673 hardcode_into_libs
=yes
17674 dynamic_linker
="$host_os dld.so"
17675 shlibpath_var
=LD_LIBRARY_PATH
17676 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17678 soname_spec
='${libname}${release}${shared_ext}$major'
17679 if test "X$HPUX_IA64_MODE" = X32
; then
17680 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17682 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17684 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17688 hardcode_into_libs
=yes
17689 dynamic_linker
="$host_os dld.sl"
17690 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17691 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17693 soname_spec
='${libname}${release}${shared_ext}$major'
17694 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17695 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17699 dynamic_linker
="$host_os dld.sl"
17700 shlibpath_var
=SHLIB_PATH
17701 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17702 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17703 soname_spec
='${libname}${release}${shared_ext}$major'
17706 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17707 postinstall_cmds
='chmod 555 $lib'
17708 # or fails outright, so override atomically:
17709 install_override_mode
=555
17716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17717 soname_spec
='${libname}${release}${shared_ext}$major'
17718 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17719 shlibpath_var
=LD_LIBRARY_PATH
17720 shlibpath_overrides_runpath
=no
17721 hardcode_into_libs
=yes
17724 irix5
* | irix6
* | nonstopux
*)
17726 nonstopux
*) version_type
=nonstopux
;;
17728 if test "$lt_cv_prog_gnu_ld" = yes; then
17736 soname_spec
='${libname}${release}${shared_ext}$major'
17737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17739 irix5
* | nonstopux
*)
17740 libsuff
= shlibsuff
=
17743 case $LD in # libtool.m4 will add one of these switches to LD
17744 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17745 libsuff
= shlibsuff
= libmagic
=32-bit;;
17746 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17747 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17748 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17749 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17750 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17754 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17755 shlibpath_overrides_runpath
=no
17756 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17757 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17758 hardcode_into_libs
=yes
17761 # No shared lib support for Linux oldld, aout, or coff.
17762 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17766 # This must be Linux ELF.
17767 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17771 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17772 soname_spec
='${libname}${release}${shared_ext}$major'
17773 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17774 shlibpath_var
=LD_LIBRARY_PATH
17775 shlibpath_overrides_runpath
=no
17777 # Some binutils ld are patched to set DT_RUNPATH
17778 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17779 $as_echo_n "(cached) " >&6
17781 lt_cv_shlibpath_overrides_runpath
=no
17782 save_LDFLAGS
=$LDFLAGS
17783 save_libdir
=$libdir
17784 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17785 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17787 /* end confdefs.h. */
17797 if ac_fn_c_try_link
"$LINENO"; then :
17798 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17799 lt_cv_shlibpath_overrides_runpath
=yes
17802 rm -f core conftest.err conftest.
$ac_objext \
17803 conftest
$ac_exeext conftest.
$ac_ext
17804 LDFLAGS
=$save_LDFLAGS
17805 libdir
=$save_libdir
17809 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17811 # This implies no fast_install, which is unacceptable.
17812 # Some rework will be needed to allow for fast_install
17813 # before this can be enabled.
17814 hardcode_into_libs
=yes
17816 # Append ld.so.conf contents to the search path
17817 if test -f /etc
/ld.so.conf
; then
17818 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' ' '`
17819 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17822 # We used to test for /lib/ld.so.1 and disable shared libraries on
17823 # powerpc, because MkLinux only supported shared libraries with the
17824 # GNU dynamic linker. Since this was broken with cross compilers,
17825 # most powerpc-linux boxes support dynamic linking these days and
17826 # people can always --disable-shared, the test was removed, and we
17827 # assume the GNU/Linux dynamic linker is in use.
17828 dynamic_linker
='GNU/Linux ld.so'
17835 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17837 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17838 dynamic_linker
='NetBSD (a.out) ld.so'
17840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17841 soname_spec
='${libname}${release}${shared_ext}$major'
17842 dynamic_linker
='NetBSD ld.elf_so'
17844 shlibpath_var
=LD_LIBRARY_PATH
17845 shlibpath_overrides_runpath
=yes
17846 hardcode_into_libs
=yes
17851 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17852 shlibpath_var
=LD_LIBRARY_PATH
17853 shlibpath_overrides_runpath
=yes
17860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17861 soname_spec
='${libname}${release}${shared_ext}$major'
17862 shlibpath_var
=LD_LIBRARY_PATH
17863 shlibpath_overrides_runpath
=no
17864 hardcode_into_libs
=yes
17865 dynamic_linker
='ldqnx.so'
17870 sys_lib_dlsearch_path_spec
="/usr/lib"
17872 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17874 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17875 *) need_version
=no
;;
17877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17878 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17879 shlibpath_var
=LD_LIBRARY_PATH
17880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17882 openbsd2.
[89] | openbsd2.
[89].
*)
17883 shlibpath_overrides_runpath
=no
17886 shlibpath_overrides_runpath
=yes
17890 shlibpath_overrides_runpath
=yes
17895 libname_spec
='$name'
17898 library_names_spec
='$libname${shared_ext} $libname.a'
17899 dynamic_linker
='OS/2 ld.exe'
17900 shlibpath_var
=LIBPATH
17903 osf3
* | osf4
* | osf5
*)
17907 soname_spec
='${libname}${release}${shared_ext}$major'
17908 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17909 shlibpath_var
=LD_LIBRARY_PATH
17910 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17911 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
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 shlibpath_overrides_runpath
=yes
17926 hardcode_into_libs
=yes
17927 # ldd complains unless libraries are executable
17928 postinstall_cmds
='chmod +x $lib'
17933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17934 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17935 shlibpath_var
=LD_LIBRARY_PATH
17936 shlibpath_overrides_runpath
=yes
17937 if test "$with_gnu_ld" = yes; then
17945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17946 soname_spec
='${libname}${release}${shared_ext}$major'
17947 shlibpath_var
=LD_LIBRARY_PATH
17948 case $host_vendor in
17950 shlibpath_overrides_runpath
=no
17952 runpath_var
=LD_RUN_PATH
17960 shlibpath_overrides_runpath
=no
17961 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17967 if test -d /usr
/nec
;then
17969 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17970 soname_spec
='$libname${shared_ext}.$major'
17971 shlibpath_var
=LD_LIBRARY_PATH
17975 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17976 version_type
=freebsd-elf
17979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17980 soname_spec
='${libname}${release}${shared_ext}$major'
17981 shlibpath_var
=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath
=yes
17983 hardcode_into_libs
=yes
17984 if test "$with_gnu_ld" = yes; then
17985 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17987 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17990 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17994 sys_lib_dlsearch_path_spec
='/usr/lib'
17998 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003 shlibpath_var
=LD_LIBRARY_PATH
18004 shlibpath_overrides_runpath
=no
18005 hardcode_into_libs
=yes
18010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18011 soname_spec
='${libname}${release}${shared_ext}$major'
18012 shlibpath_var
=LD_LIBRARY_PATH
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18020 $as_echo "$dynamic_linker" >&6; }
18021 test "$dynamic_linker" = no
&& can_build_shared
=no
18023 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18024 if test "$GCC" = yes; then
18025 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18028 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18029 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18031 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18032 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18127 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18129 if test -n "$hardcode_libdir_flag_spec" ||
18130 test -n "$runpath_var" ||
18131 test "X$hardcode_automatic" = "Xyes" ; then
18133 # We can hardcode non-existent directories.
18134 if test "$hardcode_direct" != no
&&
18135 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18136 # have to relink, otherwise we might link with an installed library
18137 # when we should be linking with a yet-to-be-installed one
18138 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18139 test "$hardcode_minus_L" != no
; then
18140 # Linking always hardcodes the temporary library directory.
18141 hardcode_action
=relink
18143 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18144 hardcode_action
=immediate
18147 # We cannot hardcode anything, or else we can only hardcode existing
18149 hardcode_action
=unsupported
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18152 $as_echo "$hardcode_action" >&6; }
18154 if test "$hardcode_action" = relink ||
18155 test "$inherit_rpath" = yes; then
18156 # Fast installation is not supported
18157 enable_fast_install
=no
18158 elif test "$shlibpath_overrides_runpath" = yes ||
18159 test "$enable_shared" = no
; then
18160 # Fast installation is not necessary
18161 enable_fast_install
=needless
18169 if test "x$enable_dlopen" != xyes
; then
18170 enable_dlopen
=unknown
18171 enable_dlopen_self
=unknown
18172 enable_dlopen_self_static
=unknown
18179 lt_cv_dlopen
="load_add_on"
18181 lt_cv_dlopen_self
=yes
18184 mingw
* | pw32
* | cegcc
*)
18185 lt_cv_dlopen
="LoadLibrary"
18190 lt_cv_dlopen
="dlopen"
18195 # if libdl is installed we need to link against it
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18197 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18198 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18199 $as_echo_n "(cached) " >&6
18201 ac_check_lib_save_LIBS
=$LIBS
18203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h. */
18206 /* Override any GCC internal prototype to avoid an error.
18207 Use char because int might match the return type of a GCC
18208 builtin and then its argument prototype would still apply. */
18221 if ac_fn_c_try_link
"$LINENO"; then :
18222 ac_cv_lib_dl_dlopen
=yes
18224 ac_cv_lib_dl_dlopen
=no
18226 rm -f core conftest.err conftest.
$ac_objext \
18227 conftest
$ac_exeext conftest.
$ac_ext
18228 LIBS
=$ac_check_lib_save_LIBS
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18231 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18232 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18233 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18236 lt_cv_dlopen
="dyld"
18238 lt_cv_dlopen_self
=yes
18245 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18246 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18247 lt_cv_dlopen
="shl_load"
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18250 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18251 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18252 $as_echo_n "(cached) " >&6
18254 ac_check_lib_save_LIBS
=$LIBS
18256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18257 /* end confdefs.h. */
18259 /* Override any GCC internal prototype to avoid an error.
18260 Use char because int might match the return type of a GCC
18261 builtin and then its argument prototype would still apply. */
18269 return shl_load ();
18274 if ac_fn_c_try_link
"$LINENO"; then :
18275 ac_cv_lib_dld_shl_load
=yes
18277 ac_cv_lib_dld_shl_load
=no
18279 rm -f core conftest.err conftest.
$ac_objext \
18280 conftest
$ac_exeext conftest.
$ac_ext
18281 LIBS
=$ac_check_lib_save_LIBS
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18284 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18285 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18286 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18288 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18289 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18290 lt_cv_dlopen
="dlopen"
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18293 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18294 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18295 $as_echo_n "(cached) " >&6
18297 ac_check_lib_save_LIBS
=$LIBS
18299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18302 /* Override any GCC internal prototype to avoid an error.
18303 Use char because int might match the return type of a GCC
18304 builtin and then its argument prototype would still apply. */
18317 if ac_fn_c_try_link
"$LINENO"; then :
18318 ac_cv_lib_dl_dlopen
=yes
18320 ac_cv_lib_dl_dlopen
=no
18322 rm -f core conftest.err conftest.
$ac_objext \
18323 conftest
$ac_exeext conftest.
$ac_ext
18324 LIBS
=$ac_check_lib_save_LIBS
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18327 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18328 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18329 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18332 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18333 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18334 $as_echo_n "(cached) " >&6
18336 ac_check_lib_save_LIBS
=$LIBS
18337 LIBS
="-lsvld $LIBS"
18338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18341 /* Override any GCC internal prototype to avoid an error.
18342 Use char because int might match the return type of a GCC
18343 builtin and then its argument prototype would still apply. */
18356 if ac_fn_c_try_link
"$LINENO"; then :
18357 ac_cv_lib_svld_dlopen
=yes
18359 ac_cv_lib_svld_dlopen
=no
18361 rm -f core conftest.err conftest.
$ac_objext \
18362 conftest
$ac_exeext conftest.
$ac_ext
18363 LIBS
=$ac_check_lib_save_LIBS
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18366 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18367 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18368 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18371 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18372 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18373 $as_echo_n "(cached) " >&6
18375 ac_check_lib_save_LIBS
=$LIBS
18377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18378 /* end confdefs.h. */
18380 /* Override any GCC internal prototype to avoid an error.
18381 Use char because int might match the return type of a GCC
18382 builtin and then its argument prototype would still apply. */
18390 return dld_link ();
18395 if ac_fn_c_try_link
"$LINENO"; then :
18396 ac_cv_lib_dld_dld_link
=yes
18398 ac_cv_lib_dld_dld_link
=no
18400 rm -f core conftest.err conftest.
$ac_objext \
18401 conftest
$ac_exeext conftest.
$ac_ext
18402 LIBS
=$ac_check_lib_save_LIBS
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18405 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18406 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18407 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18428 if test "x$lt_cv_dlopen" != xno
; then
18434 case $lt_cv_dlopen in
18436 save_CPPFLAGS
="$CPPFLAGS"
18437 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18439 save_LDFLAGS
="$LDFLAGS"
18440 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18443 LIBS
="$lt_cv_dlopen_libs $LIBS"
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18446 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18447 if test "${lt_cv_dlopen_self+set}" = set; then :
18448 $as_echo_n "(cached) " >&6
18450 if test "$cross_compiling" = yes; then :
18451 lt_cv_dlopen_self
=cross
18453 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18454 lt_status
=$lt_dlunknown
18455 cat > conftest.
$ac_ext <<_LT_EOF
18456 #line 18456 "configure"
18457 #include "confdefs.h"
18466 # define LT_DLGLOBAL RTLD_GLOBAL
18469 # define LT_DLGLOBAL DL_GLOBAL
18471 # define LT_DLGLOBAL 0
18475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18476 find out it does not work in some platform. */
18477 #ifndef LT_DLLAZY_OR_NOW
18479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18482 # define LT_DLLAZY_OR_NOW DL_LAZY
18485 # define LT_DLLAZY_OR_NOW RTLD_NOW
18488 # define LT_DLLAZY_OR_NOW DL_NOW
18490 # define LT_DLLAZY_OR_NOW 0
18497 /* When -fvisbility=hidden is used, assume the code has been annotated
18498 correspondingly for the symbols needed. */
18499 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18500 void fnord () __attribute__((visibility("default")));
18503 void fnord () { int i=42; }
18506 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18507 int status = $lt_dlunknown;
18511 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18514 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18515 else puts (dlerror ());
18517 /* dlclose (self); */
18525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18526 (eval $ac_link) 2>&5
18528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18529 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18530 (.
/conftest
; exit; ) >&5 2>/dev
/null
18532 case x
$lt_status in
18533 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18534 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18535 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18538 # compilation failed
18539 lt_cv_dlopen_self
=no
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18547 $as_echo "$lt_cv_dlopen_self" >&6; }
18549 if test "x$lt_cv_dlopen_self" = xyes
; then
18550 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18552 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18553 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18554 $as_echo_n "(cached) " >&6
18556 if test "$cross_compiling" = yes; then :
18557 lt_cv_dlopen_self_static
=cross
18559 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18560 lt_status
=$lt_dlunknown
18561 cat > conftest.
$ac_ext <<_LT_EOF
18562 #line 18562 "configure"
18563 #include "confdefs.h"
18572 # define LT_DLGLOBAL RTLD_GLOBAL
18575 # define LT_DLGLOBAL DL_GLOBAL
18577 # define LT_DLGLOBAL 0
18581 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18582 find out it does not work in some platform. */
18583 #ifndef LT_DLLAZY_OR_NOW
18585 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18588 # define LT_DLLAZY_OR_NOW DL_LAZY
18591 # define LT_DLLAZY_OR_NOW RTLD_NOW
18594 # define LT_DLLAZY_OR_NOW DL_NOW
18596 # define LT_DLLAZY_OR_NOW 0
18603 /* When -fvisbility=hidden is used, assume the code has been annotated
18604 correspondingly for the symbols needed. */
18605 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18606 void fnord () __attribute__((visibility("default")));
18609 void fnord () { int i=42; }
18612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18613 int status = $lt_dlunknown;
18617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18620 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18621 else puts (dlerror ());
18623 /* dlclose (self); */
18631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18632 (eval $ac_link) 2>&5
18634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18635 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18636 (.
/conftest
; exit; ) >&5 2>/dev
/null
18638 case x
$lt_status in
18639 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18640 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18641 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18644 # compilation failed
18645 lt_cv_dlopen_self_static
=no
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18653 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18656 CPPFLAGS
="$save_CPPFLAGS"
18657 LDFLAGS
="$save_LDFLAGS"
18662 case $lt_cv_dlopen_self in
18663 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18664 *) enable_dlopen_self
=unknown
;;
18667 case $lt_cv_dlopen_self_static in
18668 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18669 *) enable_dlopen_self_static
=unknown
;;
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18692 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18693 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18694 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18695 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18697 $as_echo "yes" >&6; }
18699 # FIXME - insert some real tests, host_os isn't really good enough
18702 if test -n "$STRIP" ; then
18703 striplib
="$STRIP -x"
18704 old_striplib
="$STRIP -S"
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18706 $as_echo "yes" >&6; }
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18709 $as_echo "no" >&6; }
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18714 $as_echo "no" >&6; }
18730 # Report which library types will actually be built
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18732 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18734 $as_echo "$can_build_shared" >&6; }
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18737 $as_echo_n "checking whether to build shared libraries... " >&6; }
18738 test "$can_build_shared" = "no" && enable_shared
=no
18740 # On AIX, shared libraries and static libraries use the same namespace, and
18741 # are all built from PIC.
18744 test "$enable_shared" = yes && enable_static
=no
18745 if test -n "$RANLIB"; then
18746 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18747 postinstall_cmds
='$RANLIB $lib'
18752 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18753 test "$enable_shared" = yes && enable_static
=no
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18758 $as_echo "$enable_shared" >&6; }
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18761 $as_echo_n "checking whether to build static libraries... " >&6; }
18762 # Make sure either enable_shared or enable_static is yes.
18763 test "$enable_shared" = yes || enable_static
=yes
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18765 $as_echo "$enable_static" >&6; }
18772 ac_cpp
='$CXXCPP $CPPFLAGS'
18773 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18779 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18780 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18781 (test "X$CXX" != "Xg++"))) ; then
18783 ac_cpp
='$CXXCPP $CPPFLAGS'
18784 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18788 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18789 if test -z "$CXXCPP"; then
18790 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18791 $as_echo_n "(cached) " >&6
18793 # Double quotes because CXXCPP needs to be expanded
18794 for CXXCPP
in "$CXX -E" "/lib/cpp"
18796 ac_preproc_ok
=false
18797 for ac_cxx_preproc_warn_flag
in '' yes
18799 # Use a header file that comes with gcc, so configuring glibc
18800 # with a fresh cross-compiler works.
18801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802 # <limits.h> exists even on freestanding compilers.
18803 # On the NeXT, cc -E runs the code through the compiler's parser,
18804 # not just through cpp. "Syntax error" is here to catch this case.
18805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18806 /* end confdefs.h. */
18808 # include <limits.h>
18810 # include <assert.h>
18814 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18817 # Broken: fails on valid input.
18820 rm -f conftest.err conftest.
$ac_ext
18822 # OK, works on sane cases. Now check whether nonexistent headers
18823 # can be detected and how.
18824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18825 /* end confdefs.h. */
18826 #include <ac_nonexistent.h>
18828 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18829 # Broken: success on invalid input.
18832 # Passes both tests.
18836 rm -f conftest.err conftest.
$ac_ext
18839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18840 rm -f conftest.err conftest.
$ac_ext
18841 if $ac_preproc_ok; then :
18846 ac_cv_prog_CXXCPP
=$CXXCPP
18849 CXXCPP
=$ac_cv_prog_CXXCPP
18851 ac_cv_prog_CXXCPP
=$CXXCPP
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18854 $as_echo "$CXXCPP" >&6; }
18855 ac_preproc_ok
=false
18856 for ac_cxx_preproc_warn_flag
in '' yes
18858 # Use a header file that comes with gcc, so configuring glibc
18859 # with a fresh cross-compiler works.
18860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18861 # <limits.h> exists even on freestanding compilers.
18862 # On the NeXT, cc -E runs the code through the compiler's parser,
18863 # not just through cpp. "Syntax error" is here to catch this case.
18864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h. */
18867 # include <limits.h>
18869 # include <assert.h>
18873 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18876 # Broken: fails on valid input.
18879 rm -f conftest.err conftest.
$ac_ext
18881 # OK, works on sane cases. Now check whether nonexistent headers
18882 # can be detected and how.
18883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18884 /* end confdefs.h. */
18885 #include <ac_nonexistent.h>
18887 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18888 # Broken: success on invalid input.
18891 # Passes both tests.
18895 rm -f conftest.err conftest.
$ac_ext
18898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18899 rm -f conftest.err conftest.
$ac_ext
18900 if $ac_preproc_ok; then :
18903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18905 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18906 See \`config.log' for more details." "$LINENO" 5; }
18910 ac_cpp
='$CXXCPP $CPPFLAGS'
18911 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18912 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18913 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18916 _lt_caught_CXX_error
=yes
18920 ac_cpp
='$CXXCPP $CPPFLAGS'
18921 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18922 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18923 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18925 archive_cmds_need_lc_CXX
=no
18926 allow_undefined_flag_CXX
=
18927 always_export_symbols_CXX
=no
18928 archive_expsym_cmds_CXX
=
18929 compiler_needs_object_CXX
=no
18930 export_dynamic_flag_spec_CXX
=
18931 hardcode_direct_CXX
=no
18932 hardcode_direct_absolute_CXX
=no
18933 hardcode_libdir_flag_spec_CXX
=
18934 hardcode_libdir_flag_spec_ld_CXX
=
18935 hardcode_libdir_separator_CXX
=
18936 hardcode_minus_L_CXX
=no
18937 hardcode_shlibpath_var_CXX
=unsupported
18938 hardcode_automatic_CXX
=no
18939 inherit_rpath_CXX
=no
18941 module_expsym_cmds_CXX
=
18942 link_all_deplibs_CXX
=unknown
18943 old_archive_cmds_CXX
=$old_archive_cmds
18944 reload_flag_CXX
=$reload_flag
18945 reload_cmds_CXX
=$reload_cmds
18946 no_undefined_flag_CXX
=
18947 whole_archive_flag_spec_CXX
=
18948 enable_shared_with_static_runtimes_CXX
=no
18950 # Source file extension for C++ test sources.
18953 # Object file extension for compiled C++ test sources.
18957 # No sense in running all these tests if we already determined that
18958 # the CXX compiler isn't working. Some variables (like enable_shared)
18959 # are currently assumed to apply to all compilers on this platform,
18960 # and will be corrupted by setting them based on a non-working compiler.
18961 if test "$_lt_caught_CXX_error" != yes; then
18962 # Code to be used in simple compile tests
18963 lt_simple_compile_test_code
="int some_variable = 0;"
18965 # Code to be used in simple link tests
18966 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18968 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18975 # If no C compiler was specified, use CC.
18978 # If no C compiler flags were specified, use CFLAGS.
18979 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18981 # Allow CC to be a program name with arguments.
18985 # save warnings/boilerplate of simple test code
18986 ac_outfile
=conftest.
$ac_objext
18987 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18988 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18989 _lt_compiler_boilerplate
=`cat conftest.err`
18992 ac_outfile
=conftest.
$ac_objext
18993 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18994 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18995 _lt_linker_boilerplate
=`cat conftest.err`
18999 # Allow CC to be a program name with arguments.
19004 lt_save_with_gnu_ld
=$with_gnu_ld
19005 lt_save_path_LD
=$lt_cv_path_LD
19006 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19007 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19009 $as_unset lt_cv_prog_gnu_ld
19011 if test -n "${lt_cv_path_LDCXX+set}"; then
19012 lt_cv_path_LD
=$lt_cv_path_LDCXX
19014 $as_unset lt_cv_path_LD
19016 test -z "${LDCXX+set}" || LD
=$LDCXX
19020 for cc_temp
in $compiler""; do
19022 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19023 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19028 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19031 if test -n "$compiler"; then
19032 # We don't want -fno-exception when compiling C++ code, so set the
19033 # no_builtin_flag separately
19034 if test "$GXX" = yes; then
19035 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19037 lt_prog_compiler_no_builtin_flag_CXX
=
19040 if test "$GXX" = yes; then
19041 # Set up default GNU C++ configuration
19045 # Check whether --with-gnu-ld was given.
19046 if test "${with_gnu_ld+set}" = set; then :
19047 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19053 if test "$GCC" = yes; then
19054 # Check if gcc -print-prog-name=ld gives a path.
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19056 $as_echo_n "checking for ld used by $CC... " >&6; }
19059 # gcc leaves a trailing carriage return which upsets mingw
19060 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19062 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19065 # Accept absolute paths.
19067 re_direlt
='/[^/][^/]*/\.\./'
19068 # Canonicalize the pathname of ld
19069 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19070 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19071 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19073 test -z "$LD" && LD
="$ac_prog"
19076 # If it fails, then pretend we aren't using GCC.
19080 # If it is relative, then search for the first ld in PATH.
19081 with_gnu_ld
=unknown
19084 elif test "$with_gnu_ld" = yes; then
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19086 $as_echo_n "checking for GNU ld... " >&6; }
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19089 $as_echo_n "checking for non-GNU ld... " >&6; }
19091 if test "${lt_cv_path_LD+set}" = set; then :
19092 $as_echo_n "(cached) " >&6
19094 if test -z "$LD"; then
19095 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19096 for ac_dir
in $PATH; do
19098 test -z "$ac_dir" && ac_dir
=.
19099 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19100 lt_cv_path_LD
="$ac_dir/$ac_prog"
19101 # Check to see if the program is GNU ld. I'd rather use --version,
19102 # but apparently some variants of GNU ld only accept -v.
19103 # Break only if it was the GNU/non-GNU ld that we prefer.
19104 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19105 *GNU
* |
*'with BFD'*)
19106 test "$with_gnu_ld" != no
&& break
19109 test "$with_gnu_ld" != yes && break
19116 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19120 LD
="$lt_cv_path_LD"
19121 if test -n "$LD"; then
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19123 $as_echo "$LD" >&6; }
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19126 $as_echo "no" >&6; }
19128 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19130 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19131 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19132 $as_echo_n "(cached) " >&6
19134 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19135 case `$LD -v 2>&1 </dev/null` in
19136 *GNU
* |
*'with BFD'*)
19137 lt_cv_prog_gnu_ld
=yes
19140 lt_cv_prog_gnu_ld
=no
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19145 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19146 with_gnu_ld
=$lt_cv_prog_gnu_ld
19154 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19155 # archiving commands below assume that GNU ld is being used.
19156 if test "$with_gnu_ld" = yes; then
19157 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19158 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'
19160 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19161 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19163 # If archive_cmds runs LD, not CC, wlarc should be empty
19164 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19165 # investigate it a little bit more. (MM)
19168 # ancient GNU ld didn't support --whole-archive et. al.
19169 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19170 $GREP 'no-whole-archive' > /dev
/null
; then
19171 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19173 whole_archive_flag_spec_CXX
=
19179 # A generic and very simple default shared library creation
19180 # command for GNU C++ for the case where it uses the native
19181 # linker, instead of GNU ld. If possible, this setting should
19182 # overridden to take advantage of the native linker features on
19183 # the platform it is being used on.
19184 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19187 # Commands to make compiler produce verbose output that lists
19188 # what "hidden" libraries, object files and flags are used when
19189 # linking a shared library.
19190 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19198 # PORTME: fill in a description of your system's C++ link characteristics
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19200 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19204 # FIXME: insert proper C++ library support
19208 if test "$host_cpu" = ia64
; then
19209 # On IA64, the linker does run time linking by default, so we don't
19210 # have to do anything special.
19211 aix_use_runtimelinking
=no
19212 exp_sym_flag
='-Bexport'
19215 aix_use_runtimelinking
=no
19217 # Test if we are trying to use run time linking or normal
19218 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19219 # need to do runtime linking.
19220 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19221 for ld_flag
in $LDFLAGS; do
19224 aix_use_runtimelinking
=yes
19232 exp_sym_flag
='-bexport'
19233 no_entry_flag
='-bnoentry'
19236 # When large executables or shared objects are built, AIX ld can
19237 # have problems creating the table of contents. If linking a library
19238 # or program results in "error TOC overflow" add -mminimal-toc to
19239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19242 archive_cmds_CXX
=''
19243 hardcode_direct_CXX
=yes
19244 hardcode_direct_absolute_CXX
=yes
19245 hardcode_libdir_separator_CXX
=':'
19246 link_all_deplibs_CXX
=yes
19247 file_list_spec_CXX
='${wl}-f,'
19249 if test "$GXX" = yes; then
19250 case $host_os in aix4.
[012]|aix4.
[012].
*)
19251 # We only want to do this on AIX 4.2 and lower, the check
19252 # below for broken collect2 doesn't work under 4.3+
19253 collect2name
=`${CC} -print-prog-name=collect2`
19254 if test -f "$collect2name" &&
19255 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19257 # We have reworked collect2
19260 # We have old collect2
19261 hardcode_direct_CXX
=unsupported
19262 # It fails to find uninstalled libraries when the uninstalled
19263 # path is not listed in the libpath. Setting hardcode_minus_L
19264 # to unsupported forces relinking
19265 hardcode_minus_L_CXX
=yes
19266 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19267 hardcode_libdir_separator_CXX
=
19270 shared_flag
='-shared'
19271 if test "$aix_use_runtimelinking" = yes; then
19272 shared_flag
="$shared_flag "'${wl}-G'
19276 if test "$host_cpu" = ia64
; then
19277 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19278 # chokes on -Wl,-G. The following line is correct:
19281 if test "$aix_use_runtimelinking" = yes; then
19282 shared_flag
='${wl}-G'
19284 shared_flag
='${wl}-bM:SRE'
19289 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19290 # It seems that -bexpall does not export symbols beginning with
19291 # underscore (_), so it is better to generate a list of symbols to
19293 always_export_symbols_CXX
=yes
19294 if test "$aix_use_runtimelinking" = yes; then
19295 # Warning - without using the other runtime loading flags (-brtl),
19296 # -berok will link without error, but may produce a broken library.
19297 allow_undefined_flag_CXX
='-berok'
19298 # Determine the default libpath from the value encoded in an empty
19300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19301 /* end confdefs.h. */
19311 if ac_fn_cxx_try_link
"$LINENO"; then :
19313 lt_aix_libpath_sed
='
19314 /Import File Strings/,/^$/ {
19320 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19321 # Check for a 64-bit object if we didn't find anything.
19322 if test -z "$aix_libpath"; then
19323 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19326 rm -f core conftest.err conftest.
$ac_objext \
19327 conftest
$ac_exeext conftest.
$ac_ext
19328 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19330 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19332 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"
19334 if test "$host_cpu" = ia64
; then
19335 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19336 allow_undefined_flag_CXX
="-z nodefs"
19337 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"
19339 # Determine the default libpath from the value encoded in an
19340 # empty executable.
19341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19342 /* end confdefs.h. */
19352 if ac_fn_cxx_try_link
"$LINENO"; then :
19354 lt_aix_libpath_sed
='
19355 /Import File Strings/,/^$/ {
19361 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19362 # Check for a 64-bit object if we didn't find anything.
19363 if test -z "$aix_libpath"; then
19364 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19367 rm -f core conftest.err conftest.
$ac_objext \
19368 conftest
$ac_exeext conftest.
$ac_ext
19369 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19371 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19372 # Warning - without using the other run time loading flags,
19373 # -berok will link without error, but may produce a broken library.
19374 no_undefined_flag_CXX
=' ${wl}-bernotok'
19375 allow_undefined_flag_CXX
=' ${wl}-berok'
19376 if test "$with_gnu_ld" = yes; then
19377 # We only use this code for GNU lds that support --whole-archive.
19378 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19380 # Exported symbols can be pulled into shared objects from archives
19381 whole_archive_flag_spec_CXX
='$convenience'
19383 archive_cmds_need_lc_CXX
=yes
19384 # This is similar to how AIX traditionally builds its shared
19386 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'
19392 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19393 allow_undefined_flag_CXX
=unsupported
19394 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19395 # support --undefined. This deserves some investigation. FIXME
19396 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19403 case $cc_basename in
19405 # FIXME: insert proper C++ library support
19411 cygwin
* | mingw
* | pw32
* | cegcc
*)
19412 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19413 # as there is no search path for DLLs.
19414 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19415 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19416 allow_undefined_flag_CXX
=unsupported
19417 always_export_symbols_CXX
=no
19418 enable_shared_with_static_runtimes_CXX
=yes
19420 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19421 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'
19422 # If the export-symbols file already is a .def file (1st line
19423 # is EXPORTS), use it as is; otherwise, prepend...
19424 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19425 cp $export_symbols $output_objdir/$soname.def;
19427 echo EXPORTS > $output_objdir/$soname.def;
19428 cat $export_symbols >> $output_objdir/$soname.def;
19430 $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'
19435 darwin
* | rhapsody
*)
19438 archive_cmds_need_lc_CXX
=no
19439 hardcode_direct_CXX
=no
19440 hardcode_automatic_CXX
=yes
19441 hardcode_shlibpath_var_CXX
=unsupported
19442 if test "$lt_cv_ld_force_load" = "yes"; then
19443 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\"`'
19445 whole_archive_flag_spec_CXX
=''
19447 link_all_deplibs_CXX
=yes
19448 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19449 case $cc_basename in
19450 ifort
*) _lt_dar_can_shared
=yes ;;
19451 *) _lt_dar_can_shared
=$GCC ;;
19453 if test "$_lt_dar_can_shared" = "yes"; then
19454 output_verbose_link_cmd
=func_echo_all
19455 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}"
19456 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19457 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}"
19458 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}"
19459 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19460 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}"
19461 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}"
19471 case $cc_basename in
19473 # FIXME: insert proper C++ library support
19477 # Green Hills C++ Compiler
19478 # FIXME: insert proper C++ library support
19482 # FIXME: insert proper C++ library support
19489 # C++ shared libraries reported to be fairly broken before
19495 archive_cmds_need_lc_CXX
=no
19498 freebsd
* | dragonfly
*)
19499 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19508 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19509 link_all_deplibs_CXX
=yes
19513 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19514 hardcode_libdir_separator_CXX
=:
19515 export_dynamic_flag_spec_CXX
='${wl}-E'
19516 hardcode_direct_CXX
=yes
19517 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19518 # but as the default
19519 # location of the library.
19521 case $cc_basename in
19523 # FIXME: insert proper C++ library support
19527 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'
19528 # Commands to make compiler produce verbose output that lists
19529 # what "hidden" libraries, object files and flags are used when
19530 # linking a shared library.
19532 # There doesn't appear to be a way to prevent this compiler from
19533 # explicitly linking system object files so we need to strip them
19534 # from the output so that they don't get included in the library
19536 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"'
19539 if test "$GXX" = yes; then
19540 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'
19542 # FIXME: insert proper C++ library support
19550 if test $with_gnu_ld = no
; then
19551 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19552 hardcode_libdir_separator_CXX
=:
19558 export_dynamic_flag_spec_CXX
='${wl}-E'
19564 hardcode_direct_CXX
=no
19565 hardcode_shlibpath_var_CXX
=no
19568 hardcode_direct_CXX
=yes
19569 hardcode_direct_absolute_CXX
=yes
19570 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19571 # but as the default
19572 # location of the library.
19576 case $cc_basename in
19578 # FIXME: insert proper C++ library support
19584 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19587 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19590 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19593 # Commands to make compiler produce verbose output that lists
19594 # what "hidden" libraries, object files and flags are used when
19595 # linking a shared library.
19597 # There doesn't appear to be a way to prevent this compiler from
19598 # explicitly linking system object files so we need to strip them
19599 # from the output so that they don't get included in the library
19601 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"'
19604 if test "$GXX" = yes; then
19605 if test $with_gnu_ld = no
; then
19608 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19611 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19614 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'
19619 # FIXME: insert proper C++ library support
19627 hardcode_direct_CXX
=no
19628 hardcode_shlibpath_var_CXX
=no
19629 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19630 export_dynamic_flag_spec_CXX
='${wl}-E'
19631 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19632 # Instead, shared libraries are loaded at an image base (0x10000000 by
19633 # default) and relocated if they conflict, which is a slow very memory
19634 # consuming and fragmenting process. To avoid this, we pick a random,
19635 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19636 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19637 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'
19638 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'
19641 case $cc_basename in
19644 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'
19646 # Archives containing C++ object files must be created using
19647 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19648 # necessary to make sure instantiated templates are included
19650 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19653 if test "$GXX" = yes; then
19654 if test "$with_gnu_ld" = no
; then
19655 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'
19657 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'
19660 link_all_deplibs_CXX
=yes
19663 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19664 hardcode_libdir_separator_CXX
=:
19665 inherit_rpath_CXX
=yes
19668 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19669 case $cc_basename in
19671 # Kuck and Associates, Inc. (KAI) C++ Compiler
19673 # KCC will only create a shared library if the output file
19674 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19675 # to its proper name (with version) after linking.
19676 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'
19677 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'
19678 # Commands to make compiler produce verbose output that lists
19679 # what "hidden" libraries, object files and flags are used when
19680 # linking a shared library.
19682 # There doesn't appear to be a way to prevent this compiler from
19683 # explicitly linking system object files so we need to strip them
19684 # from the output so that they don't get included in the library
19686 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"'
19688 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19689 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19691 # Archives containing C++ object files must be created using
19692 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19693 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19698 # version 8.0 and above of icpc choke on multiply defined symbols
19699 # if we add $predep_objects and $postdep_objects, however 7.1 and
19700 # earlier do not add the objects themselves.
19701 case `$CC -V 2>&1` in
19703 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19704 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'
19706 *) # Version 8.0 or newer
19709 ia64
*) tmp_idyn
=' -i_dynamic';;
19711 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19712 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'
19715 archive_cmds_need_lc_CXX
=no
19716 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19717 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19718 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19721 # Portland Group C++ compiler
19723 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19724 prelink_cmds_CXX
='tpldir=Template.dir~
19726 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19727 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19728 old_archive_cmds_CXX
='tpldir=Template.dir~
19730 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19731 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19733 archive_cmds_CXX
='tpldir=Template.dir~
19735 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19736 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19737 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19739 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19740 $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'
19742 *) # Version 6 and above use weak symbols
19743 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19744 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'
19748 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19749 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19750 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'
19754 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19755 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'
19757 runpath_var
=LD_RUN_PATH
19758 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19759 hardcode_libdir_separator_CXX
=:
19761 # Commands to make compiler produce verbose output that lists
19762 # what "hidden" libraries, object files and flags are used when
19763 # linking a shared library.
19765 # There doesn't appear to be a way to prevent this compiler from
19766 # explicitly linking system object files so we need to strip them
19767 # from the output so that they don't get included in the library
19769 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'
19771 xl
* | mpixl
* | bgxl
*)
19772 # IBM XL 8.0 on PPC, with GNU ld
19773 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19774 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19775 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19776 if test "x$supports_anon_versioning" = xyes
; then
19777 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19778 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19779 echo "local: *; };" >> $output_objdir/$libname.ver~
19780 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19784 case `$CC -V 2>&1 | sed 5q` in
19787 no_undefined_flag_CXX
=' -zdefs'
19788 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19789 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'
19790 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19791 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'
19792 compiler_needs_object_CXX
=yes
19794 # Not sure whether something based on
19795 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19797 output_verbose_link_cmd
='func_echo_all'
19799 # Archives containing C++ object files must be created using
19800 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19801 # necessary to make sure instantiated templates are included
19803 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19811 # FIXME: insert proper C++ library support
19816 # FIXME: insert proper C++ library support
19821 case $cc_basename in
19823 # FIXME: insert proper C++ library support
19827 # FIXME: insert proper C++ library support
19834 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19835 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19837 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19838 hardcode_direct_CXX
=yes
19839 hardcode_shlibpath_var_CXX
=no
19841 # Workaround some broken pre-1.5 toolchains
19842 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19850 # C++ shared libraries are fairly broken
19855 if test -f /usr
/libexec
/ld.so
; then
19856 hardcode_direct_CXX
=yes
19857 hardcode_shlibpath_var_CXX
=no
19858 hardcode_direct_absolute_CXX
=yes
19859 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19860 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19862 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19863 export_dynamic_flag_spec_CXX
='${wl}-E'
19864 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19866 output_verbose_link_cmd
=func_echo_all
19872 osf3
* | osf4
* | osf5
*)
19873 case $cc_basename in
19875 # Kuck and Associates, Inc. (KAI) C++ Compiler
19877 # KCC will only create a shared library if the output file
19878 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19879 # to its proper name (with version) after linking.
19880 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'
19882 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19883 hardcode_libdir_separator_CXX
=:
19885 # Archives containing C++ object files must be created using
19886 # the KAI C++ compiler.
19888 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19889 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19893 # Rational C++ 2.4.1
19894 # FIXME: insert proper C++ library support
19900 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19901 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'
19902 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19905 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19906 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'
19907 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19908 echo "-hidden">> $lib.exp~
19909 $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~
19911 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19915 hardcode_libdir_separator_CXX
=:
19917 # Commands to make compiler produce verbose output that lists
19918 # what "hidden" libraries, object files and flags are used when
19919 # linking a shared library.
19921 # There doesn't appear to be a way to prevent this compiler from
19922 # explicitly linking system object files so we need to strip them
19923 # from the output so that they don't get included in the library
19925 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"'
19928 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19929 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19932 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'
19935 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'
19939 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19940 hardcode_libdir_separator_CXX
=:
19942 # Commands to make compiler produce verbose output that lists
19943 # what "hidden" libraries, object files and flags are used when
19944 # linking a shared library.
19945 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19948 # FIXME: insert proper C++ library support
19956 # FIXME: insert proper C++ library support
19961 case $cc_basename in
19964 # FIXME: insert proper C++ library support
19969 # FIXME: insert proper C++ library support
19973 # FIXME: insert proper C++ library support
19980 case $cc_basename in
19982 # Sun C++ 4.2, 5.x and Centerline C++
19983 archive_cmds_need_lc_CXX
=yes
19984 no_undefined_flag_CXX
=' -zdefs'
19985 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19986 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19987 $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'
19989 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19990 hardcode_shlibpath_var_CXX
=no
19992 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19994 # The compiler driver will combine and reorder linker options,
19995 # but understands `-z linker_flag'.
19996 # Supported since Solaris 2.6 (maybe 2.5.1?)
19997 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20000 link_all_deplibs_CXX
=yes
20002 output_verbose_link_cmd
='func_echo_all'
20004 # Archives containing C++ object files must be created using
20005 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20006 # necessary to make sure instantiated templates are included
20008 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20011 # Green Hills C++ Compiler
20012 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20014 # The C++ compiler must be used to create the archive.
20015 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20018 # GNU C++ compiler with Solaris linker
20019 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20020 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20021 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20022 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20023 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20024 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20026 # Commands to make compiler produce verbose output that lists
20027 # what "hidden" libraries, object files and flags are used when
20028 # linking a shared library.
20029 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20031 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20033 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20034 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20035 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20037 # Commands to make compiler produce verbose output that lists
20038 # what "hidden" libraries, object files and flags are used when
20039 # linking a shared library.
20040 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20043 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20045 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20047 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20055 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20056 no_undefined_flag_CXX
='${wl}-z,text'
20057 archive_cmds_need_lc_CXX
=no
20058 hardcode_shlibpath_var_CXX
=no
20059 runpath_var
='LD_RUN_PATH'
20061 case $cc_basename in
20063 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20064 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20067 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20068 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20073 sysv5
* | sco3.2v5
* | sco5v6
*)
20074 # Note: We can NOT use -z defs as we might desire, because we do not
20075 # link with -lc, and that would cause any symbols used from libc to
20076 # always be unresolved, which means just about no library would
20077 # ever link correctly. If we're not using GNU ld we use -z text
20078 # though, which does catch some bad symbols but isn't as heavy-handed
20080 no_undefined_flag_CXX
='${wl}-z,text'
20081 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20082 archive_cmds_need_lc_CXX
=no
20083 hardcode_shlibpath_var_CXX
=no
20084 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20085 hardcode_libdir_separator_CXX
=':'
20086 link_all_deplibs_CXX
=yes
20087 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20088 runpath_var
='LD_RUN_PATH'
20090 case $cc_basename in
20092 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20093 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20094 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20095 '"$old_archive_cmds_CXX"
20096 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20097 '"$reload_cmds_CXX"
20100 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20101 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20107 case $cc_basename in
20109 # NonStop-UX NCC 3.20
20110 # FIXME: insert proper C++ library support
20114 # FIXME: insert proper C++ library support
20121 # FIXME: insert proper C++ library support
20126 # FIXME: insert proper C++ library support
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20132 $as_echo "$ld_shlibs_CXX" >&6; }
20133 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20139 ## There is no encapsulation within the following macros, do not change
20140 ## the running order or otherwise move them around unless you know exactly
20141 ## what you are doing...
20142 # Dependencies to place before and after the object being linked:
20143 predep_objects_CXX
=
20144 postdep_objects_CXX
=
20147 compiler_lib_search_path_CXX
=
20149 cat > conftest.
$ac_ext <<_LT_EOF
20153 Foo (void) { a = 0; }
20159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20160 (eval $ac_compile) 2>&5
20162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20163 test $ac_status = 0; }; then
20164 # Parse the compiler output and extract the necessary
20165 # objects, libraries and library flags.
20167 # Sentinel used to keep track of whether or not we are before
20168 # the conftest object file.
20169 pre_test_object_deps_done
=no
20171 for p
in `eval "$output_verbose_link_cmd"`; do
20175 # Some compilers place space between "-{L,R}" and the path.
20176 # Remove the space.
20177 if test $p = "-L" ||
20178 test $p = "-R"; then
20185 if test "$pre_test_object_deps_done" = no
; then
20188 # Internal compiler library paths should come after those
20189 # provided the user. The postdeps already come after the
20190 # user supplied libs so there is no need to process them.
20191 if test -z "$compiler_lib_search_path_CXX"; then
20192 compiler_lib_search_path_CXX
="${prev}${p}"
20194 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20197 # The "-l" case would never come before the object being
20198 # linked, so don't bother handling this case.
20201 if test -z "$postdeps_CXX"; then
20202 postdeps_CXX
="${prev}${p}"
20204 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20210 # This assumes that the test object file only shows up
20211 # once in the compiler output.
20212 if test "$p" = "conftest.$objext"; then
20213 pre_test_object_deps_done
=yes
20217 if test "$pre_test_object_deps_done" = no
; then
20218 if test -z "$predep_objects_CXX"; then
20219 predep_objects_CXX
="$p"
20221 predep_objects_CXX
="$predep_objects_CXX $p"
20224 if test -z "$postdep_objects_CXX"; then
20225 postdep_objects_CXX
="$p"
20227 postdep_objects_CXX
="$postdep_objects_CXX $p"
20232 *) ;; # Ignore the rest.
20240 echo "libtool.m4: error: problem compiling CXX test program"
20243 $RM -f confest.
$objext
20245 # PORTME: override above test on systems where it is broken
20248 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20249 # hack all around it, let's just trust "g++" to DTRT.
20250 predep_objects_CXX
=
20251 postdep_objects_CXX
=
20256 case `$CC -V 2>&1 | sed 5q` in
20260 # The more standards-conforming stlport4 library is
20261 # incompatible with the Cstd library. Avoid specifying
20262 # it if it's in CXXFLAGS. Ignore libCrun as
20263 # -library=stlport4 depends on it.
20264 case " $CXX $CXXFLAGS " in
20265 *" -library=stlport4 "*)
20266 solaris_use_stlport4
=yes
20270 if test "$solaris_use_stlport4" != yes; then
20271 postdeps_CXX
='-library=Cstd -library=Crun'
20278 case $cc_basename in
20280 # The more standards-conforming stlport4 library is
20281 # incompatible with the Cstd library. Avoid specifying
20282 # it if it's in CXXFLAGS. Ignore libCrun as
20283 # -library=stlport4 depends on it.
20284 case " $CXX $CXXFLAGS " in
20285 *" -library=stlport4 "*)
20286 solaris_use_stlport4
=yes
20290 # Adding this requires a known-good setup of shared libraries for
20291 # Sun compiler versions before 5.6, else PIC objects from an old
20292 # archive will be linked into the output, leading to subtle bugs.
20293 if test "$solaris_use_stlport4" != yes; then
20294 postdeps_CXX
='-library=Cstd -library=Crun'
20302 case " $postdeps_CXX " in
20303 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20305 compiler_lib_search_dirs_CXX
=
20306 if test -n "${compiler_lib_search_path_CXX}"; then
20307 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20340 lt_prog_compiler_wl_CXX
=
20341 lt_prog_compiler_pic_CXX
=
20342 lt_prog_compiler_static_CXX
=
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20345 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20347 # C++ specific cases for pic, static, wl, etc.
20348 if test "$GXX" = yes; then
20349 lt_prog_compiler_wl_CXX
='-Wl,'
20350 lt_prog_compiler_static_CXX
='-static'
20354 # All AIX code is PIC.
20355 if test "$host_cpu" = ia64
; then
20356 # AIX 5 now supports IA64 processor
20357 lt_prog_compiler_static_CXX
='-Bstatic'
20359 lt_prog_compiler_pic_CXX
='-fPIC'
20365 # see comment about AmigaOS4 .so support
20366 lt_prog_compiler_pic_CXX
='-fPIC'
20369 # FIXME: we need at least 68020 code to build shared libraries, but
20370 # adding the `-m68020' flag to GCC prevents building anything better,
20372 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20377 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20378 # PIC is the default for these OSes.
20380 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20381 # This hack is so that the source file can tell whether it is being
20382 # built for inclusion in a dll (and should export symbols for example).
20383 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20384 # (--disable-auto-import) libraries
20385 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20387 darwin
* | rhapsody
*)
20388 # PIC is the default on this platform
20389 # Common symbols not allowed in MH_DYLIB files
20390 lt_prog_compiler_pic_CXX
='-fno-common'
20393 # DJGPP does not support shared libraries at all
20394 lt_prog_compiler_pic_CXX
=
20397 # PIC is the default for Haiku.
20398 # The "-static" flag exists, but is broken.
20399 lt_prog_compiler_static_CXX
=
20402 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20403 # Instead, we relocate shared libraries at runtime.
20406 if test -d /usr
/nec
; then
20407 lt_prog_compiler_pic_CXX
=-Kconform_pic
20411 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20412 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20413 # sets the default TLS model and affects inlining.
20418 lt_prog_compiler_pic_CXX
='-fPIC'
20423 # QNX uses GNU C++, but need to define -shared option too, otherwise
20424 # it will coredump.
20425 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20428 lt_prog_compiler_pic_CXX
='-fPIC'
20434 # All AIX code is PIC.
20435 if test "$host_cpu" = ia64
; then
20436 # AIX 5 now supports IA64 processor
20437 lt_prog_compiler_static_CXX
='-Bstatic'
20439 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20443 case $cc_basename in
20445 # Green Hills C++ Compiler
20446 # _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"
20451 case $cc_basename in
20453 lt_prog_compiler_pic_CXX
='-KPIC'
20456 # Green Hills C++ Compiler
20457 lt_prog_compiler_pic_CXX
='-pic'
20463 freebsd
* | dragonfly
*)
20464 # FreeBSD uses GNU C++
20466 hpux9
* | hpux10
* | hpux11
*)
20467 case $cc_basename in
20469 lt_prog_compiler_wl_CXX
='-Wl,'
20470 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20471 if test "$host_cpu" != ia64
; then
20472 lt_prog_compiler_pic_CXX
='+Z'
20476 lt_prog_compiler_wl_CXX
='-Wl,'
20477 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20483 lt_prog_compiler_pic_CXX
='+Z'
20492 # This is c89, which is MS Visual C++ (no shared libs)
20493 # Anyone wants to do a port?
20495 irix5
* | irix6
* | nonstopux
*)
20496 case $cc_basename in
20498 lt_prog_compiler_wl_CXX
='-Wl,'
20499 lt_prog_compiler_static_CXX
='-non_shared'
20500 # CC pic flag -KPIC is the default.
20506 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20507 case $cc_basename in
20510 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20511 lt_prog_compiler_pic_CXX
='-fPIC'
20514 # old Intel C++ for x86_64 which still supported -KPIC.
20515 lt_prog_compiler_wl_CXX
='-Wl,'
20516 lt_prog_compiler_pic_CXX
='-KPIC'
20517 lt_prog_compiler_static_CXX
='-static'
20520 # Intel C++, used to be incompatible with GCC.
20521 # ICC 10 doesn't accept -KPIC any more.
20522 lt_prog_compiler_wl_CXX
='-Wl,'
20523 lt_prog_compiler_pic_CXX
='-fPIC'
20524 lt_prog_compiler_static_CXX
='-static'
20527 # Portland Group C++ compiler
20528 lt_prog_compiler_wl_CXX
='-Wl,'
20529 lt_prog_compiler_pic_CXX
='-fpic'
20530 lt_prog_compiler_static_CXX
='-Bstatic'
20534 # Make sure the PIC flag is empty. It appears that all Alpha
20535 # Linux and Compaq Tru64 Unix objects are PIC.
20536 lt_prog_compiler_pic_CXX
=
20537 lt_prog_compiler_static_CXX
='-non_shared'
20539 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20540 # IBM XL 8.0, 9.0 on PPC and BlueGene
20541 lt_prog_compiler_wl_CXX
='-Wl,'
20542 lt_prog_compiler_pic_CXX
='-qpic'
20543 lt_prog_compiler_static_CXX
='-qstaticlink'
20546 case `$CC -V 2>&1 | sed 5q` in
20549 lt_prog_compiler_pic_CXX
='-KPIC'
20550 lt_prog_compiler_static_CXX
='-Bstatic'
20551 lt_prog_compiler_wl_CXX
='-Qoption ld '
20562 case $cc_basename in
20564 lt_prog_compiler_pic_CXX
='-W c,exportall'
20573 # QNX uses GNU C++, but need to define -shared option too, otherwise
20574 # it will coredump.
20575 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20577 osf3
* | osf4
* | osf5
*)
20578 case $cc_basename in
20580 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20583 # Rational C++ 2.4.1
20584 lt_prog_compiler_pic_CXX
='-pic'
20587 # Digital/Compaq C++
20588 lt_prog_compiler_wl_CXX
='-Wl,'
20589 # Make sure the PIC flag is empty. It appears that all Alpha
20590 # Linux and Compaq Tru64 Unix objects are PIC.
20591 lt_prog_compiler_pic_CXX
=
20592 lt_prog_compiler_static_CXX
='-non_shared'
20601 case $cc_basename in
20603 # Sun C++ 4.2, 5.x and Centerline C++
20604 lt_prog_compiler_pic_CXX
='-KPIC'
20605 lt_prog_compiler_static_CXX
='-Bstatic'
20606 lt_prog_compiler_wl_CXX
='-Qoption ld '
20609 # Green Hills C++ Compiler
20610 lt_prog_compiler_pic_CXX
='-PIC'
20617 case $cc_basename in
20620 lt_prog_compiler_pic_CXX
='-pic'
20621 lt_prog_compiler_static_CXX
='-Bstatic'
20625 lt_prog_compiler_pic_CXX
='-pic'
20631 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20632 case $cc_basename in
20634 lt_prog_compiler_wl_CXX
='-Wl,'
20635 lt_prog_compiler_pic_CXX
='-KPIC'
20636 lt_prog_compiler_static_CXX
='-Bstatic'
20641 case $cc_basename in
20643 # NonStop-UX NCC 3.20
20644 lt_prog_compiler_pic_CXX
='-KPIC'
20653 lt_prog_compiler_can_build_shared_CXX
=no
20659 # For platforms which do not support PIC, -DPIC is meaningless:
20661 lt_prog_compiler_pic_CXX
=
20664 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20668 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20673 # Check to make sure the PIC flag actually works.
20675 if test -n "$lt_prog_compiler_pic_CXX"; then
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20677 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20678 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20679 $as_echo_n "(cached) " >&6
20681 lt_cv_prog_compiler_pic_works_CXX
=no
20682 ac_outfile
=conftest.
$ac_objext
20683 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20684 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20685 # Insert the option either (1) after the last *FLAGS variable, or
20686 # (2) before a word containing "conftest.", or (3) at the end.
20687 # Note that $ac_compile itself does not contain backslashes and begins
20688 # with a dollar sign (not a hyphen), so the echo should work correctly.
20689 # The option is referenced via a variable to avoid confusing sed.
20690 lt_compile
=`echo "$ac_compile" | $SED \
20691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20693 -e 's:$: $lt_compiler_flag:'`
20694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20695 (eval "$lt_compile" 2>conftest.err
)
20697 cat conftest.err
>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 if (exit $ac_status) && test -s "$ac_outfile"; then
20700 # The compiler can only warn and ignore the option if not recognized
20701 # So say no if there are warnings other than the usual output.
20702 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20703 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20704 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20705 lt_cv_prog_compiler_pic_works_CXX
=yes
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20712 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20714 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20715 case $lt_prog_compiler_pic_CXX in
20717 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20720 lt_prog_compiler_pic_CXX
=
20721 lt_prog_compiler_can_build_shared_CXX
=no
20729 # Check to make sure the static flag actually works.
20731 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20733 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20734 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20735 $as_echo_n "(cached) " >&6
20737 lt_cv_prog_compiler_static_works_CXX
=no
20738 save_LDFLAGS
="$LDFLAGS"
20739 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20740 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20741 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20742 # The linker can only warn and ignore the option if not recognized
20743 # So say no if there are warnings
20744 if test -s conftest.err
; then
20745 # Append any errors to the config.log.
20746 cat conftest.err
1>&5
20747 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20748 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20749 if diff conftest.exp conftest.er2
>/dev
/null
; then
20750 lt_cv_prog_compiler_static_works_CXX
=yes
20753 lt_cv_prog_compiler_static_works_CXX
=yes
20757 LDFLAGS
="$save_LDFLAGS"
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20761 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20763 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20766 lt_prog_compiler_static_CXX
=
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20773 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20774 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20775 $as_echo_n "(cached) " >&6
20777 lt_cv_prog_compiler_c_o_CXX
=no
20778 $RM -r conftest
2>/dev
/null
20782 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20784 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20785 # Insert the option either (1) after the last *FLAGS variable, or
20786 # (2) before a word containing "conftest.", or (3) at the end.
20787 # Note that $ac_compile itself does not contain backslashes and begins
20788 # with a dollar sign (not a hyphen), so the echo should work correctly.
20789 lt_compile
=`echo "$ac_compile" | $SED \
20790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20792 -e 's:$: $lt_compiler_flag:'`
20793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20794 (eval "$lt_compile" 2>out
/conftest.err
)
20796 cat out
/conftest.err
>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20800 # The compiler can only warn and ignore the option if not recognized
20801 # So say no if there are warnings
20802 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20803 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20804 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20805 lt_cv_prog_compiler_c_o_CXX
=yes
20810 # SGI C++ compiler will create directory out/ii_files/ for
20811 # template instantiation
20812 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20813 $RM out
/* && rmdir out
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20820 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20825 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20826 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20827 $as_echo_n "(cached) " >&6
20829 lt_cv_prog_compiler_c_o_CXX
=no
20830 $RM -r conftest
2>/dev
/null
20834 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20836 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20837 # Insert the option either (1) after the last *FLAGS variable, or
20838 # (2) before a word containing "conftest.", or (3) at the end.
20839 # Note that $ac_compile itself does not contain backslashes and begins
20840 # with a dollar sign (not a hyphen), so the echo should work correctly.
20841 lt_compile
=`echo "$ac_compile" | $SED \
20842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20844 -e 's:$: $lt_compiler_flag:'`
20845 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20846 (eval "$lt_compile" 2>out
/conftest.err
)
20848 cat out
/conftest.err
>&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20852 # The compiler can only warn and ignore the option if not recognized
20853 # So say no if there are warnings
20854 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20855 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20856 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20857 lt_cv_prog_compiler_c_o_CXX
=yes
20862 # SGI C++ compiler will create directory out/ii_files/ for
20863 # template instantiation
20864 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20865 $RM out
/* && rmdir out
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20872 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20877 hard_links
="nottested"
20878 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20879 # do not overwrite the value of need_locks provided by the user
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20881 $as_echo_n "checking if we can lock with hard links... " >&6; }
20884 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20886 ln conftest.a conftest.b
2>&5 || hard_links
=no
20887 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20889 $as_echo "$hard_links" >&6; }
20890 if test "$hard_links" = no
; then
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20892 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20902 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20904 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20907 # If we're using GNU nm, then we don't want the "-C" option.
20908 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20909 # Also, AIX nm treats weak defined symbols like other global defined
20910 # symbols, whereas GNU nm marks them as "W".
20911 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20912 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'
20914 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'
20918 export_symbols_cmds_CXX
="$ltdll_cmds"
20920 cygwin
* | mingw
* | cegcc
*)
20921 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'
20924 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20927 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20930 $as_echo "$ld_shlibs_CXX" >&6; }
20931 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20933 with_gnu_ld_CXX
=$with_gnu_ld
20941 # Do we need to explicitly link libc?
20943 case "x$archive_cmds_need_lc_CXX" in
20945 # Assume -lc should be added
20946 archive_cmds_need_lc_CXX
=yes
20948 if test "$enable_shared" = yes && test "$GCC" = yes; then
20949 case $archive_cmds_CXX in
20951 # FIXME: we may have to deal with multi-command sequences.
20954 # Test whether the compiler implicitly links with -lc since on some
20955 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20956 # to ld, don't add -lc before -lgcc.
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20958 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20959 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20960 $as_echo_n "(cached) " >&6
20963 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20966 (eval $ac_compile) 2>&5
20968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20969 test $ac_status = 0; } 2>conftest.err
; then
20972 libobjs
=conftest.
$ac_objext
20974 wl
=$lt_prog_compiler_wl_CXX
20975 pic_flag
=$lt_prog_compiler_pic_CXX
20981 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20982 allow_undefined_flag_CXX
=
20983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20984 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20987 test $ac_status = 0; }
20989 lt_cv_archive_cmds_need_lc_CXX
=no
20991 lt_cv_archive_cmds_need_lc_CXX
=yes
20993 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20995 cat conftest.err
1>&5
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21001 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21002 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21073 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21075 library_names_spec
=
21076 libname_spec
='lib$name'
21080 postuninstall_cmds
=
21084 shlibpath_overrides_runpath
=unknown
21086 dynamic_linker
="$host_os ld.so"
21087 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21088 need_lib_prefix
=unknown
21089 hardcode_into_libs
=no
21091 # when you set need_version to no, make sure it does not cause -set_version
21092 # flags to be left without arguments
21093 need_version
=unknown
21098 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21099 shlibpath_var
=LIBPATH
21101 # AIX 3 has no versioning support, so we append a major version to the name.
21102 soname_spec
='${libname}${release}${shared_ext}$major'
21109 hardcode_into_libs
=yes
21110 if test "$host_cpu" = ia64
; then
21111 # AIX 5 supports IA64
21112 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21113 shlibpath_var
=LD_LIBRARY_PATH
21115 # With GCC up to 2.95.x, collect2 would create an import file
21116 # for dependence libraries. The import file would start with
21117 # the line `#! .'. This would cause the generated library to
21118 # depend on `.', always an invalid library. This was fixed in
21119 # development snapshots of GCC prior to 3.0.
21121 aix4 | aix4.
[01] | aix4.
[01].
*)
21122 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21124 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21127 can_build_shared
=no
21131 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21132 # soname into executable. Probably we can add versioning support to
21133 # collect2, so additional links can be useful in future.
21134 if test "$aix_use_runtimelinking" = yes; then
21135 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21136 # instead of lib<name>.a to let people know that these are not
21137 # typical AIX shared libraries.
21138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21140 # We preserve .a as extension for shared libraries through AIX4.2
21141 # and later when we are not doing run time linking.
21142 library_names_spec
='${libname}${release}.a $libname.a'
21143 soname_spec
='${libname}${release}${shared_ext}$major'
21145 shlibpath_var
=LIBPATH
21152 # Since July 2007 AmigaOS4 officially supports .so libraries.
21153 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21154 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21157 library_names_spec
='$libname.ixlibrary $libname.a'
21158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21159 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'
21165 library_names_spec
='${libname}${shared_ext}'
21166 dynamic_linker
="$host_os ld.so"
21167 shlibpath_var
=LIBRARY_PATH
21173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21174 soname_spec
='${libname}${release}${shared_ext}$major'
21175 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21176 shlibpath_var
=LD_LIBRARY_PATH
21177 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21178 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21179 # the default ld.so.conf also contains /usr/contrib/lib and
21180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21181 # libtool to hard-code these into programs
21184 cygwin
* | mingw
* | pw32
* | cegcc
*)
21185 version_type
=windows
21190 case $GCC,$host_os in
21191 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21192 library_names_spec
='$libname.dll.a'
21193 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21194 postinstall_cmds
='base_file=`basename \${file}`~
21195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21196 dldir=$destdir/`dirname \$dlpath`~
21197 test -d \$dldir || mkdir -p \$dldir~
21198 $install_prog $dir/$dlname \$dldir/$dlname~
21199 chmod a+x \$dldir/$dlname~
21200 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21201 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21203 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21204 dlpath=$dir/\$dldll~
21206 shlibpath_overrides_runpath
=yes
21210 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21211 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21215 # MinGW DLLs use traditional 'lib' prefix
21216 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21219 # pw32 DLLs use 'pw' prefix rather than 'lib'
21220 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21226 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21229 dynamic_linker
='Win32 ld.exe'
21230 # FIXME: first we should search . and the directory the executable is in
21234 darwin
* | rhapsody
*)
21235 dynamic_linker
="$host_os dyld"
21236 version_type
=darwin
21239 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21240 soname_spec
='${libname}${release}${major}$shared_ext'
21241 shlibpath_overrides_runpath
=yes
21242 shlibpath_var
=DYLD_LIBRARY_PATH
21243 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21245 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21253 soname_spec
='${libname}${release}${shared_ext}$major'
21254 shlibpath_var
=LD_LIBRARY_PATH
21257 freebsd
* | dragonfly
*)
21258 # DragonFly does not have aout. When/if they implement a new
21259 # versioning mechanism, adjust this.
21260 if test -x /usr
/bin
/objformat
; then
21261 objformat
=`/usr/bin/objformat`
21264 freebsd
[23].
*) objformat
=aout
;;
21265 *) objformat
=elf
;;
21268 version_type
=freebsd-
$objformat
21269 case $version_type in
21271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21276 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21280 shlibpath_var
=LD_LIBRARY_PATH
21283 shlibpath_overrides_runpath
=yes
21285 freebsd3.
[01]* | freebsdelf3.
[01]*)
21286 shlibpath_overrides_runpath
=yes
21287 hardcode_into_libs
=yes
21289 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21290 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21291 shlibpath_overrides_runpath
=no
21292 hardcode_into_libs
=yes
21294 *) # from 4.6 on, and DragonFly
21295 shlibpath_overrides_runpath
=yes
21296 hardcode_into_libs
=yes
21305 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21306 soname_spec
='${libname}${release}${shared_ext}$major'
21307 shlibpath_var
=LD_LIBRARY_PATH
21308 hardcode_into_libs
=yes
21315 dynamic_linker
="$host_os runtime_loader"
21316 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21317 soname_spec
='${libname}${release}${shared_ext}$major'
21318 shlibpath_var
=LIBRARY_PATH
21319 shlibpath_overrides_runpath
=yes
21320 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21321 hardcode_into_libs
=yes
21324 hpux9
* | hpux10
* | hpux11
*)
21325 # Give a soname corresponding to the major version so that dld.sl refuses to
21326 # link against other versions.
21333 hardcode_into_libs
=yes
21334 dynamic_linker
="$host_os dld.so"
21335 shlibpath_var
=LD_LIBRARY_PATH
21336 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21338 soname_spec
='${libname}${release}${shared_ext}$major'
21339 if test "X$HPUX_IA64_MODE" = X32
; then
21340 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21342 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21344 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21348 hardcode_into_libs
=yes
21349 dynamic_linker
="$host_os dld.sl"
21350 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21351 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21353 soname_spec
='${libname}${release}${shared_ext}$major'
21354 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21355 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21359 dynamic_linker
="$host_os dld.sl"
21360 shlibpath_var
=SHLIB_PATH
21361 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21362 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21363 soname_spec
='${libname}${release}${shared_ext}$major'
21366 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21367 postinstall_cmds
='chmod 555 $lib'
21368 # or fails outright, so override atomically:
21369 install_override_mode
=555
21376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21377 soname_spec
='${libname}${release}${shared_ext}$major'
21378 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21379 shlibpath_var
=LD_LIBRARY_PATH
21380 shlibpath_overrides_runpath
=no
21381 hardcode_into_libs
=yes
21384 irix5
* | irix6
* | nonstopux
*)
21386 nonstopux
*) version_type
=nonstopux
;;
21388 if test "$lt_cv_prog_gnu_ld" = yes; then
21396 soname_spec
='${libname}${release}${shared_ext}$major'
21397 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21399 irix5
* | nonstopux
*)
21400 libsuff
= shlibsuff
=
21403 case $LD in # libtool.m4 will add one of these switches to LD
21404 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21405 libsuff
= shlibsuff
= libmagic
=32-bit;;
21406 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21407 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21408 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21409 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21410 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21414 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21415 shlibpath_overrides_runpath
=no
21416 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21417 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21418 hardcode_into_libs
=yes
21421 # No shared lib support for Linux oldld, aout, or coff.
21422 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21426 # This must be Linux ELF.
21427 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21431 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21432 soname_spec
='${libname}${release}${shared_ext}$major'
21433 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21434 shlibpath_var
=LD_LIBRARY_PATH
21435 shlibpath_overrides_runpath
=no
21437 # Some binutils ld are patched to set DT_RUNPATH
21438 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21439 $as_echo_n "(cached) " >&6
21441 lt_cv_shlibpath_overrides_runpath
=no
21442 save_LDFLAGS
=$LDFLAGS
21443 save_libdir
=$libdir
21444 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21445 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21447 /* end confdefs.h. */
21457 if ac_fn_cxx_try_link
"$LINENO"; then :
21458 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21459 lt_cv_shlibpath_overrides_runpath
=yes
21462 rm -f core conftest.err conftest.
$ac_objext \
21463 conftest
$ac_exeext conftest.
$ac_ext
21464 LDFLAGS
=$save_LDFLAGS
21465 libdir
=$save_libdir
21469 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21471 # This implies no fast_install, which is unacceptable.
21472 # Some rework will be needed to allow for fast_install
21473 # before this can be enabled.
21474 hardcode_into_libs
=yes
21476 # Append ld.so.conf contents to the search path
21477 if test -f /etc
/ld.so.conf
; then
21478 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' ' '`
21479 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21482 # We used to test for /lib/ld.so.1 and disable shared libraries on
21483 # powerpc, because MkLinux only supported shared libraries with the
21484 # GNU dynamic linker. Since this was broken with cross compilers,
21485 # most powerpc-linux boxes support dynamic linking these days and
21486 # people can always --disable-shared, the test was removed, and we
21487 # assume the GNU/Linux dynamic linker is in use.
21488 dynamic_linker
='GNU/Linux ld.so'
21495 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21496 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21497 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21498 dynamic_linker
='NetBSD (a.out) ld.so'
21500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21501 soname_spec
='${libname}${release}${shared_ext}$major'
21502 dynamic_linker
='NetBSD ld.elf_so'
21504 shlibpath_var
=LD_LIBRARY_PATH
21505 shlibpath_overrides_runpath
=yes
21506 hardcode_into_libs
=yes
21511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21512 shlibpath_var
=LD_LIBRARY_PATH
21513 shlibpath_overrides_runpath
=yes
21520 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21521 soname_spec
='${libname}${release}${shared_ext}$major'
21522 shlibpath_var
=LD_LIBRARY_PATH
21523 shlibpath_overrides_runpath
=no
21524 hardcode_into_libs
=yes
21525 dynamic_linker
='ldqnx.so'
21530 sys_lib_dlsearch_path_spec
="/usr/lib"
21532 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21534 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21535 *) need_version
=no
;;
21537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21538 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21539 shlibpath_var
=LD_LIBRARY_PATH
21540 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21542 openbsd2.
[89] | openbsd2.
[89].
*)
21543 shlibpath_overrides_runpath
=no
21546 shlibpath_overrides_runpath
=yes
21550 shlibpath_overrides_runpath
=yes
21555 libname_spec
='$name'
21558 library_names_spec
='$libname${shared_ext} $libname.a'
21559 dynamic_linker
='OS/2 ld.exe'
21560 shlibpath_var
=LIBPATH
21563 osf3
* | osf4
* | osf5
*)
21567 soname_spec
='${libname}${release}${shared_ext}$major'
21568 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21569 shlibpath_var
=LD_LIBRARY_PATH
21570 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21571 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
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 shlibpath_overrides_runpath
=yes
21586 hardcode_into_libs
=yes
21587 # ldd complains unless libraries are executable
21588 postinstall_cmds
='chmod +x $lib'
21593 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21594 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21595 shlibpath_var
=LD_LIBRARY_PATH
21596 shlibpath_overrides_runpath
=yes
21597 if test "$with_gnu_ld" = yes; then
21605 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21606 soname_spec
='${libname}${release}${shared_ext}$major'
21607 shlibpath_var
=LD_LIBRARY_PATH
21608 case $host_vendor in
21610 shlibpath_overrides_runpath
=no
21612 runpath_var
=LD_RUN_PATH
21620 shlibpath_overrides_runpath
=no
21621 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21627 if test -d /usr
/nec
;then
21629 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21630 soname_spec
='$libname${shared_ext}.$major'
21631 shlibpath_var
=LD_LIBRARY_PATH
21635 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21636 version_type
=freebsd-elf
21639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21640 soname_spec
='${libname}${release}${shared_ext}$major'
21641 shlibpath_var
=LD_LIBRARY_PATH
21642 shlibpath_overrides_runpath
=yes
21643 hardcode_into_libs
=yes
21644 if test "$with_gnu_ld" = yes; then
21645 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21647 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21650 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21654 sys_lib_dlsearch_path_spec
='/usr/lib'
21658 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21662 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21663 shlibpath_var
=LD_LIBRARY_PATH
21664 shlibpath_overrides_runpath
=no
21665 hardcode_into_libs
=yes
21670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21671 soname_spec
='${libname}${release}${shared_ext}$major'
21672 shlibpath_var
=LD_LIBRARY_PATH
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21680 $as_echo "$dynamic_linker" >&6; }
21681 test "$dynamic_linker" = no
&& can_build_shared
=no
21683 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21684 if test "$GCC" = yes; then
21685 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21688 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21689 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21691 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21692 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21733 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21734 hardcode_action_CXX
=
21735 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21736 test -n "$runpath_var_CXX" ||
21737 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21739 # We can hardcode non-existent directories.
21740 if test "$hardcode_direct_CXX" != no
&&
21741 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21742 # have to relink, otherwise we might link with an installed library
21743 # when we should be linking with a yet-to-be-installed one
21744 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21745 test "$hardcode_minus_L_CXX" != no
; then
21746 # Linking always hardcodes the temporary library directory.
21747 hardcode_action_CXX
=relink
21749 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21750 hardcode_action_CXX
=immediate
21753 # We cannot hardcode anything, or else we can only hardcode existing
21755 hardcode_action_CXX
=unsupported
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21758 $as_echo "$hardcode_action_CXX" >&6; }
21760 if test "$hardcode_action_CXX" = relink ||
21761 test "$inherit_rpath_CXX" = yes; then
21762 # Fast installation is not supported
21763 enable_fast_install
=no
21764 elif test "$shlibpath_overrides_runpath" = yes ||
21765 test "$enable_shared" = no
; then
21766 # Fast installation is not necessary
21767 enable_fast_install
=needless
21776 fi # test -n "$compiler"
21782 with_gnu_ld
=$lt_save_with_gnu_ld
21783 lt_cv_path_LDCXX
=$lt_cv_path_LD
21784 lt_cv_path_LD
=$lt_save_path_LD
21785 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21786 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21787 fi # test "$_lt_caught_CXX_error" != yes
21790 ac_cpp
='$CXXCPP $CPPFLAGS'
21791 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21792 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21793 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21810 # Only expand once:
21816 # Identify the assembler which will work hand-in-glove with the newly
21817 # built GCC, so that we can examine its features. This is the assembler
21818 # which will be driven by the driver program.
21820 # If build != host, and we aren't building gas in-tree, we identify a
21821 # build->target assembler and hope that it will have the same features
21822 # as the host->target assembler we'll be using.
21823 gcc_cv_gas_major_version
=
21824 gcc_cv_gas_minor_version
=
21825 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21827 if test "${gcc_cv_as+set}" = set; then :
21831 if test -x "$DEFAULT_ASSEMBLER"; then
21832 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21833 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21834 && test -f ..
/gas
/Makefile \
21835 && test x
$build = x
$host; then
21836 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21837 elif test -x as
$build_exeext; then
21838 # Build using assembler in the current directory.
21839 gcc_cv_as
=.
/as
$build_exeext
21840 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21841 gcc_cv_as
="$AS_FOR_TARGET"
21843 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21844 set dummy
$AS_FOR_TARGET; ac_word
=$2
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21846 $as_echo_n "checking for $ac_word... " >&6; }
21847 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21848 $as_echo_n "(cached) " >&6
21852 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21856 for as_dir
in $PATH
21859 test -z "$as_dir" && as_dir
=.
21860 for ac_exec_ext
in '' $ac_executable_extensions; do
21861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21862 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21873 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21874 if test -n "$gcc_cv_as"; then
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21876 $as_echo "$gcc_cv_as" >&6; }
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21879 $as_echo "no" >&6; }
21886 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21888 case "$ORIGINAL_AS_FOR_TARGET" in
21889 .
/as | .
/as
$build_exeext) ;;
21890 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21895 $as_echo_n "checking what assembler to use... " >&6; }
21896 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21897 # Single tree build which includes gas. We want to prefer it
21898 # over whatever linker top-level may have detected, since
21899 # we'll use what we're building after installation anyway.
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21901 $as_echo "newly built gas" >&6; }
21903 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21904 for f
in $gcc_cv_as_bfd_srcdir/configure \
21905 $gcc_cv_as_gas_srcdir/configure \
21906 $gcc_cv_as_gas_srcdir/configure.ac \
21907 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21908 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21909 if test x
$gcc_cv_gas_version != x
; then
21913 case $gcc_cv_gas_version in
21915 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21917 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21918 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21919 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21920 case $gcc_cv_gas_patch_version in
21921 "") gcc_cv_gas_patch_version
="0" ;;
21923 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21924 + $gcc_cv_gas_minor_version \) \* 1000 \
21925 + $gcc_cv_gas_patch_version`
21927 in_tree_gas_is_elf
=no
21928 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21929 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21930 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21932 in_tree_gas_is_elf
=yes
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21936 $as_echo "$gcc_cv_as" >&6; }
21941 # Check whether --enable-ld was given.
21942 if test "${enable_ld+set}" = set; then :
21943 enableval
=$enable_ld; case "${enableval}" in
21951 install_gold_as_default
=no
21952 # Check whether --enable-gold was given.
21953 if test "${enable_gold+set}" = set; then :
21954 enableval
=$enable_gold; case "${enableval}" in
21956 install_gold_as_default
=yes
21959 if test x
${default_ld} != x
; then
21960 install_gold_as_default
=yes
21966 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21972 # Identify the linker which will work hand-in-glove with the newly
21973 # built GCC, so that we can examine its features. This is the linker
21974 # which will be driven by the driver program.
21976 # If build != host, and we aren't building gas in-tree, we identify a
21977 # build->target linker and hope that it will have the same features
21978 # as the host->target linker we'll be using.
21979 gcc_cv_gld_major_version
=
21980 gcc_cv_gld_minor_version
=
21981 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21982 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21983 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21985 if test "${gcc_cv_ld+set}" = set; then :
21989 if test -x "$DEFAULT_LINKER"; then
21990 gcc_cv_ld
="$DEFAULT_LINKER"
21991 elif test $install_gold_as_default = yes \
21992 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21993 && test -f ..
/gold
/Makefile \
21994 && test x
$build = x
$host; then
21995 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21996 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21997 && test -f ..
/ld
/Makefile \
21998 && test x
$build = x
$host; then
21999 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22000 elif test -x collect-ld
$build_exeext; then
22001 # Build using linker in the current directory.
22002 gcc_cv_ld
=.
/collect-ld
$build_exeext
22003 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22004 gcc_cv_ld
="$LD_FOR_TARGET"
22006 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22007 set dummy
$LD_FOR_TARGET; ac_word
=$2
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22009 $as_echo_n "checking for $ac_word... " >&6; }
22010 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22011 $as_echo_n "(cached) " >&6
22015 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22019 for as_dir
in $PATH
22022 test -z "$as_dir" && as_dir
=.
22023 for ac_exec_ext
in '' $ac_executable_extensions; do
22024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22025 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22036 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22037 if test -n "$gcc_cv_ld"; then
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22039 $as_echo "$gcc_cv_ld" >&6; }
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22042 $as_echo "no" >&6; }
22049 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22050 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22051 # if the PLUGIN_LD is set ld-new, just have it as ld
22052 # as that is the installed named.
22053 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22054 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22055 PLUGIN_LD_SUFFIX
=ld
22058 # Check whether --with-plugin-ld was given.
22059 if test "${with_plugin_ld+set}" = set; then :
22060 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22061 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22062 PLUGIN_LD_SUFFIX
="$withval"
22068 cat >>confdefs.h
<<_ACEOF
22069 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22073 # Check to see if we are using gold instead of ld
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22075 $as_echo_n "checking whether we are using gold... " >&6; }
22077 if test x
$gcc_cv_ld != x
; then
22078 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22079 |
grep "GNU gold" > /dev
/null
; then
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22084 $as_echo "$ld_is_gold" >&6; }
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22087 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22088 # Check to see if default ld is not gold, but gold is
22089 # available and has support for split stack. If gcc was configured
22090 # with gold then no checking is done.
22092 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22094 # For platforms other than powerpc64*, enable as appropriate.
22096 gold_non_default
=no
22097 ld_gold
=`which ${gcc_cv_ld}.gold`
22098 # Make sure this gold has minimal split stack support
22099 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22100 ld_vers
=`$ld_gold --version | sed 1q`
22101 gold_vers
=`echo $ld_vers | sed -n \
22102 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22104 # check that the gold version contains the complete split stack support
22105 # on powerpc64 big and little endian
22107 case "$gold_vers" in
22108 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22110 *) gold_non_default
=no
22116 if test $gold_non_default = yes; then
22118 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22123 $as_echo "$gold_non_default" >&6; }
22125 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22127 case "$ORIGINAL_LD_FOR_TARGET" in
22128 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22129 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22134 $as_echo_n "checking what linker to use... " >&6; }
22135 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22136 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22137 # Single tree build which includes ld. We want to prefer it
22138 # over whatever linker top-level may have detected, since
22139 # we'll use what we're building after installation anyway.
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22141 $as_echo "newly built ld" >&6; }
22143 in_tree_ld_is_elf
=no
22144 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22145 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22146 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22147 in_tree_ld_is_elf
=yes
22148 elif test "$ld_is_gold" = yes; then
22149 in_tree_ld_is_elf
=yes
22151 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
22153 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22154 if test x
$gcc_cv_gld_version != x
; then
22158 case $gcc_cv_gld_version in
22160 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22162 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22163 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22164 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22165 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22168 $as_echo "$gcc_cv_ld" >&6; }
22170 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22171 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22172 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22178 # Figure out what nm we will be using.
22179 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22180 if test "${gcc_cv_nm+set}" = set; then :
22184 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22185 && test -f ..
/binutils
/Makefile \
22186 && test x
$build = x
$host; then
22187 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22188 elif test -x nm
$build_exeext; then
22189 gcc_cv_nm
=.
/nm
$build_exeext
22190 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22191 gcc_cv_nm
="$NM_FOR_TARGET"
22193 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22194 set dummy
$NM_FOR_TARGET; ac_word
=$2
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22196 $as_echo_n "checking for $ac_word... " >&6; }
22197 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22198 $as_echo_n "(cached) " >&6
22202 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22206 for as_dir
in $PATH
22209 test -z "$as_dir" && as_dir
=.
22210 for ac_exec_ext
in '' $ac_executable_extensions; do
22211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22212 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22223 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22224 if test -n "$gcc_cv_nm"; then
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22226 $as_echo "$gcc_cv_nm" >&6; }
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22229 $as_echo "no" >&6; }
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22237 $as_echo_n "checking what nm to use... " >&6; }
22238 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22239 # Single tree build which includes binutils.
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22241 $as_echo "newly built nm" >&6; }
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22245 $as_echo "$gcc_cv_nm" >&6; }
22249 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22251 case "$ORIGINAL_NM_FOR_TARGET" in
22252 .
/nm | .
/nm
$build_exeext) ;;
22253 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22258 # Figure out what objdump we will be using.
22259 if test "${gcc_cv_objdump+set}" = set; then :
22263 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22264 && test -f ..
/binutils
/Makefile \
22265 && test x
$build = x
$host; then
22266 # Single tree build which includes binutils.
22267 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22268 elif test -x objdump
$build_exeext; then
22269 gcc_cv_objdump
=.
/objdump
$build_exeext
22270 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22271 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22273 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22274 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22276 $as_echo_n "checking for $ac_word... " >&6; }
22277 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22278 $as_echo_n "(cached) " >&6
22280 case $gcc_cv_objdump in
22282 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22286 for as_dir
in $PATH
22289 test -z "$as_dir" && as_dir
=.
22290 for ac_exec_ext
in '' $ac_executable_extensions; do
22291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22292 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22303 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22304 if test -n "$gcc_cv_objdump"; then
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22306 $as_echo "$gcc_cv_objdump" >&6; }
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22309 $as_echo "no" >&6; }
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22317 $as_echo_n "checking what objdump to use... " >&6; }
22318 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22319 # Single tree build which includes binutils.
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22321 $as_echo "newly built objdump" >&6; }
22322 elif test x
$gcc_cv_objdump = x
; then
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22324 $as_echo "not found" >&6; }
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22327 $as_echo "$gcc_cv_objdump" >&6; }
22330 # Figure out what readelf we will be using.
22331 if test "${gcc_cv_readelf+set}" = set; then :
22335 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22336 && test -f ..
/binutils
/Makefile \
22337 && test x
$build = x
$host; then
22338 # Single tree build which includes binutils.
22339 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22340 elif test -x readelf
$build_exeext; then
22341 gcc_cv_readelf
=.
/readelf
$build_exeext
22342 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22343 gcc_cv_readelf
="$READELF_FOR_TARGET"
22345 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22346 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22348 $as_echo_n "checking for $ac_word... " >&6; }
22349 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22350 $as_echo_n "(cached) " >&6
22352 case $gcc_cv_readelf in
22354 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22358 for as_dir
in $PATH
22361 test -z "$as_dir" && as_dir
=.
22362 for ac_exec_ext
in '' $ac_executable_extensions; do
22363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22364 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22375 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22376 if test -n "$gcc_cv_readelf"; then
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22378 $as_echo "$gcc_cv_readelf" >&6; }
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22381 $as_echo "no" >&6; }
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22389 $as_echo_n "checking what readelf to use... " >&6; }
22390 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22391 # Single tree build which includes binutils.
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22393 $as_echo "newly built readelf" >&6; }
22394 elif test x
$gcc_cv_readelf = x
; then
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22396 $as_echo "not found" >&6; }
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22399 $as_echo "$gcc_cv_readelf" >&6; }
22402 # Figure out what assembler alignment features are present.
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22404 $as_echo_n "checking assembler flags... " >&6; }
22405 if test "${gcc_cv_as_flags+set}" = set; then :
22406 $as_echo_n "(cached) " >&6
22409 i
[34567]86-*-linux*)
22410 gcc_cv_as_flags
=--32
22412 x86_64-
*-linux-gnux32)
22413 gcc_cv_as_flags
=--x32
22416 gcc_cv_as_flags
=--64
22418 powerpc
*-*-darwin*)
22419 gcc_cv_as_flags
="-arch ppc"
22422 gcc_cv_as_flags
=" "
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22427 $as_echo "$gcc_cv_as_flags" >&6; }
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22430 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22431 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22432 $as_echo_n "(cached) " >&6
22434 gcc_cv_as_balign_and_p2align
=no
22435 if test $in_tree_gas = yes; then
22436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22437 then gcc_cv_as_balign_and_p2align
=yes
22439 elif test x
$gcc_cv_as != x
; then
22440 $as_echo '.balign 4
22441 .p2align 2' > conftest.s
22442 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22444 (eval $ac_try) 2>&5
22446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22447 test $ac_status = 0; }; }
22449 gcc_cv_as_balign_and_p2align
=yes
22451 echo "configure: failed program was" >&5
22454 rm -f conftest.o conftest.s
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22458 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22459 if test $gcc_cv_as_balign_and_p2align = yes; then
22461 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22466 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22467 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22468 $as_echo_n "(cached) " >&6
22470 gcc_cv_as_max_skip_p2align
=no
22471 if test $in_tree_gas = yes; then
22472 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22473 then gcc_cv_as_max_skip_p2align
=yes
22475 elif test x
$gcc_cv_as != x
; then
22476 $as_echo '.p2align 4,,7' > conftest.s
22477 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22479 (eval $ac_try) 2>&5
22481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22482 test $ac_status = 0; }; }
22484 gcc_cv_as_max_skip_p2align
=yes
22486 echo "configure: failed program was" >&5
22489 rm -f conftest.o conftest.s
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22493 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22494 if test $gcc_cv_as_max_skip_p2align = yes; then
22496 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22501 $as_echo_n "checking assembler for .literal16... " >&6; }
22502 if test "${gcc_cv_as_literal16+set}" = set; then :
22503 $as_echo_n "(cached) " >&6
22505 gcc_cv_as_literal16
=no
22506 if test $in_tree_gas = yes; then
22507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22508 then gcc_cv_as_literal16
=yes
22510 elif test x
$gcc_cv_as != x
; then
22511 $as_echo '.literal16' > conftest.s
22512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22514 (eval $ac_try) 2>&5
22516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22517 test $ac_status = 0; }; }
22519 gcc_cv_as_literal16
=yes
22521 echo "configure: failed program was" >&5
22524 rm -f conftest.o conftest.s
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22528 $as_echo "$gcc_cv_as_literal16" >&6; }
22529 if test $gcc_cv_as_literal16 = yes; then
22531 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22536 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22537 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22538 $as_echo_n "(cached) " >&6
22540 gcc_cv_as_subsection_m1
=no
22541 if test $in_tree_gas = yes; then
22542 if test $in_tree_gas_is_elf = yes \
22543 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22544 then gcc_cv_as_subsection_m1
=yes
22546 elif test x
$gcc_cv_as != x
; then
22547 $as_echo 'conftest_label1: .word 0
22549 conftest_label2: .word 0
22550 .previous' > conftest.s
22551 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22553 (eval $ac_try) 2>&5
22555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22556 test $ac_status = 0; }; }
22558 if test x
$gcc_cv_nm != x
; then
22559 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22560 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22561 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22563 else gcc_cv_as_subsection_m1
=yes
22565 rm -f conftest.nm1 conftest.nm2
22568 echo "configure: failed program was" >&5
22571 rm -f conftest.o conftest.s
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22575 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22576 if test $gcc_cv_as_subsection_m1 = yes; then
22578 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22583 $as_echo_n "checking assembler for .weak... " >&6; }
22584 if test "${gcc_cv_as_weak+set}" = set; then :
22585 $as_echo_n "(cached) " >&6
22588 if test $in_tree_gas = yes; then
22589 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22590 then gcc_cv_as_weak
=yes
22592 elif test x
$gcc_cv_as != x
; then
22593 $as_echo ' .weak foobar' > conftest.s
22594 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22596 (eval $ac_try) 2>&5
22598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22599 test $ac_status = 0; }; }
22603 echo "configure: failed program was" >&5
22606 rm -f conftest.o conftest.s
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22610 $as_echo "$gcc_cv_as_weak" >&6; }
22611 if test $gcc_cv_as_weak = yes; then
22613 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22618 $as_echo_n "checking assembler for .weakref... " >&6; }
22619 if test "${gcc_cv_as_weakref+set}" = set; then :
22620 $as_echo_n "(cached) " >&6
22622 gcc_cv_as_weakref
=no
22623 if test $in_tree_gas = yes; then
22624 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22625 then gcc_cv_as_weakref
=yes
22627 elif test x
$gcc_cv_as != x
; then
22628 $as_echo ' .weakref foobar, barfnot' > conftest.s
22629 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22631 (eval $ac_try) 2>&5
22633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22634 test $ac_status = 0; }; }
22636 gcc_cv_as_weakref
=yes
22638 echo "configure: failed program was" >&5
22641 rm -f conftest.o conftest.s
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22645 $as_echo "$gcc_cv_as_weakref" >&6; }
22646 if test $gcc_cv_as_weakref = yes; then
22648 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22653 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22654 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22655 $as_echo_n "(cached) " >&6
22657 gcc_cv_as_nsubspa_comdat
=no
22658 if test $in_tree_gas = yes; then
22659 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22660 then gcc_cv_as_nsubspa_comdat
=yes
22662 elif test x
$gcc_cv_as != x
; then
22663 $as_echo ' .SPACE $TEXT$
22664 .NSUBSPA $CODE$,COMDAT' > conftest.s
22665 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22667 (eval $ac_try) 2>&5
22669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22670 test $ac_status = 0; }; }
22672 gcc_cv_as_nsubspa_comdat
=yes
22674 echo "configure: failed program was" >&5
22677 rm -f conftest.o conftest.s
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22681 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22682 if test $gcc_cv_as_nsubspa_comdat = yes; then
22684 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22688 # .hidden needs to be supported in both the assembler and the linker,
22689 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22690 # This is irritatingly difficult to feature test for; we have to check the
22691 # date string after the version number. If we've got an in-tree
22692 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22694 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22696 $as_echo_n "checking assembler for .hidden... " >&6; }
22697 if test "${gcc_cv_as_hidden+set}" = set; then :
22698 $as_echo_n "(cached) " >&6
22700 gcc_cv_as_hidden
=no
22701 if test $in_tree_gas = yes; then
22702 if test $in_tree_gas_is_elf = yes \
22703 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22704 then gcc_cv_as_hidden
=yes
22706 elif test x
$gcc_cv_as != x
; then
22707 $as_echo ' .hidden foobar
22708 foobar:' > conftest.s
22709 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22711 (eval $ac_try) 2>&5
22713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22714 test $ac_status = 0; }; }
22716 gcc_cv_as_hidden
=yes
22718 echo "configure: failed program was" >&5
22721 rm -f conftest.o conftest.s
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22725 $as_echo "$gcc_cv_as_hidden" >&6; }
22727 case "${target}" in
22729 # Darwin as has some visibility support, though with a different syntax.
22730 gcc_cv_as_hidden
=yes
22734 # gnu_indirect_function type is an extension proposed at
22735 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22736 # selection of function implementation
22737 # Check whether --enable-gnu-indirect-function was given.
22738 if test "${enable_gnu_indirect_function+set}" = set; then :
22739 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22741 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22742 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22745 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22749 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22751 cat >>confdefs.h
<<_ACEOF
22752 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22757 if test $in_tree_ld != yes ; then
22758 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22759 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22760 if test x
"$ld_is_gold" = xyes
; then
22761 # GNU gold --version looks like this:
22763 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22765 # We extract the binutils version which is more familiar and specific
22766 # than the gold version.
22767 ld_vers
=`echo $ld_ver | sed -n \
22768 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22770 # GNU ld --version looks like this:
22772 # GNU ld (GNU Binutils) 2.21.51.20110225
22773 ld_vers
=`echo $ld_ver | sed -n \
22774 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22776 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'`
22777 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22778 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22779 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22781 case "${target}" in
22783 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22786 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22787 # /usr/ccs/bin/ld has been configured.
22788 ld_ver
=`$gcc_cv_ld -V 2>&1`
22789 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22790 ld_vers
=`echo $ld_ver | sed -n \
22791 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22792 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22793 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22801 $as_echo_n "checking linker for .hidden support... " >&6; }
22802 if test "${gcc_cv_ld_hidden+set}" = set; then :
22803 $as_echo_n "(cached) " >&6
22805 if test $in_tree_ld = yes ; then
22806 gcc_cv_ld_hidden
=no
22807 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 \
22808 && test $in_tree_ld_is_elf = yes; then
22809 gcc_cv_ld_hidden
=yes
22812 gcc_cv_ld_hidden
=yes
22813 if test x
"$ld_is_gold" = xyes
; then
22815 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22816 case "${target}" in
22817 mmix-knuth-mmixware
)
22818 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22819 gcc_cv_ld_hidden
=no
22822 if test 0"$ld_date" -lt 20020404; then
22823 if test -n "$ld_date"; then
22824 # If there was date string, but was earlier than 2002-04-04, fail
22825 gcc_cv_ld_hidden
=no
22826 elif test -z "$ld_vers"; then
22827 # If there was no date string nor ld version number, something is wrong
22828 gcc_cv_ld_hidden
=no
22830 test -z "$ld_vers_patch" && ld_vers_patch
=0
22831 if test "$ld_vers_major" -lt 2; then
22832 gcc_cv_ld_hidden
=no
22833 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22834 gcc_cv_ld_hidden
="no"
22835 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22836 gcc_cv_ld_hidden
=no
22841 case "${target}" in
22843 # Darwin ld has some visibility support.
22844 gcc_cv_ld_hidden
=yes
22846 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22847 gcc_cv_ld_hidden
=yes
22849 *-*-solaris2.1
[0-9]*)
22850 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22851 # .symbolic was only added in Solaris 9 12/02.
22852 gcc_cv_ld_hidden
=yes
22855 gcc_cv_ld_hidden
=no
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22862 $as_echo "$gcc_cv_ld_hidden" >&6; }
22863 libgcc_visibility
=no
22866 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22867 libgcc_visibility
=yes
22869 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22874 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22875 gcc_cv_ld_ro_rw_mix
=unknown
22876 if test $in_tree_ld = yes ; then
22877 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 \
22878 && test $in_tree_ld_is_elf = yes; then
22879 gcc_cv_ld_ro_rw_mix
=read-write
22881 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22882 echo '.section myfoosect, "a"' > conftest1.s
22883 echo '.section myfoosect, "aw"' > conftest2.s
22884 echo '.byte 1' >> conftest2.s
22885 echo '.section myfoosect, "a"' > conftest3.s
22886 echo '.byte 0' >> conftest3.s
22887 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22888 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22889 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22890 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22891 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22892 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22893 | sed -e '/myfoosect/!d' -e N`
22894 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22895 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22896 gcc_cv_ld_ro_rw_mix
=read-only
22898 gcc_cv_ld_ro_rw_mix
=read-write
22902 rm -f conftest.
* conftest
[123].
*
22904 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22906 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22910 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22912 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22913 case "${target}" in
22916 # Solaris 2 ld -V output looks like this for a regular version:
22918 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22920 # but test versions add stuff at the end:
22922 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22924 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22925 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22926 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22927 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22928 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22929 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22935 # Check whether --enable-initfini-array was given.
22936 if test "${enable_initfini_array+set}" = set; then :
22937 enableval
=$enable_initfini_array;
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22941 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22942 if test "${gcc_cv_initfini_array+set}" = set; then :
22943 $as_echo_n "(cached) " >&6
22945 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22946 case "${target}" in
22948 if test "$cross_compiling" = yes; then :
22949 gcc_cv_initfini_array
=no
22951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22952 /* end confdefs.h. */
22955 #error Not an ELF OS
22957 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22958 if it can be used. */
22960 int main (void) { return x; }
22961 int foo (void) { x = 0; }
22962 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22965 if ac_fn_cxx_try_run
"$LINENO"; then :
22966 gcc_cv_initfini_array
=yes
22968 gcc_cv_initfini_array
=no
22970 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22971 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22975 gcc_cv_initfini_array
=no
22976 if test $in_tree_ld = yes ; then
22977 if test "$gcc_cv_gld_major_version" -eq 2 \
22978 -a "$gcc_cv_gld_minor_version" -ge 22 \
22979 -o "$gcc_cv_gld_major_version" -gt 2 \
22980 && test $in_tree_ld_is_elf = yes; then
22981 gcc_cv_initfini_array
=yes
22983 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22984 case $target:$gas in
22987 sh_type
='%progbits'
22989 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
22991 sh_type
='@progbits'
22993 sparc
*-*-solaris2*:no
)
22995 sh_type
='#progbits'
22999 case "$target:$gnu_ld" in
23001 cat > conftest.s
<<EOF
23002 .section .dtors,$sh_flags,$sh_type
23004 .byte 'A', 'A', 'A', 'A'
23005 .section .ctors,$sh_flags,$sh_type
23007 .byte 'B', 'B', 'B', 'B'
23008 .section .fini_array.65530,$sh_flags,$sh_type
23010 .byte 'C', 'C', 'C', 'C'
23011 .section .init_array.65530,$sh_flags,$sh_type
23013 .byte 'D', 'D', 'D', 'D'
23014 .section .dtors.64528,$sh_flags,$sh_type
23016 .byte 'E', 'E', 'E', 'E'
23017 .section .ctors.64528,$sh_flags,$sh_type
23019 .byte 'F', 'F', 'F', 'F'
23020 .section .fini_array.01005,$sh_flags,$sh_type
23022 .byte 'G', 'G', 'G', 'G'
23023 .section .init_array.01005,$sh_flags,$sh_type
23025 .byte 'H', 'H', 'H', 'H'
23030 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23031 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23032 && $gcc_cv_objdump -s -j .init_array conftest \
23033 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23034 && $gcc_cv_objdump -s -j .fini_array conftest \
23035 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23036 gcc_cv_initfini_array
=yes
23040 # When Solaris ld added constructor priority support, it was
23041 # decided to only handle .init_array.N/.fini_array.N since
23042 # there was no need for backwards compatibility with
23043 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23044 # sections with correct execution order resp. to
23045 # .init_array/.fini_array, while gld merges them into
23046 # .init_array/.fini_array.
23047 cat > conftest.s
<<EOF
23048 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23050 .byte 'C', 'C', 'C', 'C'
23051 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23053 .byte 'D', 'D', 'D', 'D'
23054 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23056 .byte 'G', 'G', 'G', 'G'
23057 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23059 .byte 'H', 'H', 'H', 'H'
23064 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23065 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23066 && $gcc_cv_objdump -s -j .init_array conftest \
23067 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23068 && $gcc_cv_objdump -s -j .fini_array conftest \
23069 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23070 gcc_cv_initfini_array
=yes
23074 rm -f conftest conftest.
*
23076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23077 /* end confdefs.h. */
23080 # error Not an ELF OS
23082 #include <stdlib.h>
23083 #if defined __GLIBC_PREREQ
23084 # if __GLIBC_PREREQ (2, 4)
23086 # error GLIBC 2.4 required
23089 # if defined __sun__ && defined __svr4__
23090 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23092 # error The C library not known to support .init_array/.fini_array
23097 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23100 gcc_cv_initfini_array
=no
23102 rm -f conftest.err conftest.
$ac_ext;;
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23106 $as_echo_n "checking cross compile... guessing... " >&6; }
23107 gcc_cv_initfini_array
=no
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23111 $as_echo "$gcc_cv_initfini_array" >&6; }
23112 enable_initfini_array
=$gcc_cv_initfini_array
23117 cat >>confdefs.h
<<_ACEOF
23118 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23123 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23125 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23126 if test "${gcc_cv_as_leb128+set}" = set; then :
23127 $as_echo_n "(cached) " >&6
23129 gcc_cv_as_leb128
=no
23130 if test $in_tree_gas = yes; then
23131 if test $in_tree_gas_is_elf = yes \
23132 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23133 then gcc_cv_as_leb128
=yes
23135 elif test x
$gcc_cv_as != x
; then
23142 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23144 (eval $ac_try) 2>&5
23146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23147 test $ac_status = 0; }; }
23149 # GAS versions before 2.11 do not support uleb128,
23150 # despite appearing to.
23151 # ??? There exists an elf-specific test that will crash
23152 # the assembler. Perhaps it's better to figure out whether
23153 # arbitrary sections are supported and try the test.
23154 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23155 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23156 as_vers
=`echo $as_ver | sed -n \
23157 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23158 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23159 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23160 if test $as_major -eq 2 && test $as_minor -lt 11
23162 else gcc_cv_as_leb128
=yes
23166 echo "configure: failed program was" >&5
23169 rm -f conftest.o conftest.s
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23173 $as_echo "$gcc_cv_as_leb128" >&6; }
23174 if test $gcc_cv_as_leb128 = yes; then
23176 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23180 # Check if we have assembler support for unwind directives.
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23182 $as_echo_n "checking assembler for cfi directives... " >&6; }
23183 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23184 $as_echo_n "(cached) " >&6
23186 gcc_cv_as_cfi_directive
=no
23187 if test x
$gcc_cv_as != x
; then
23193 .cfi_escape 1, 2, 3, 4, 5
23194 .cfi_endproc' > conftest.s
23195 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23197 (eval $ac_try) 2>&5
23199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23200 test $ac_status = 0; }; }
23204 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23205 # read-only and read-write sections, we need to make sure that the
23206 # assembler used emits read-write .eh_frame sections.
23207 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23208 if test "x$gcc_cv_objdump" != x
; then
23209 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23210 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23211 gcc_cv_as_cfi_directive
=no
23214 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23215 # On Solaris/x86, make sure that GCC and assembler agree on using
23216 # read-only .eh_frame sections for 64-bit.
23217 if test x
$gas = xyes
; then
23218 as_ix86_64_opt
="--64"
23220 as_ix86_64_opt
="-xarch=amd64"
23222 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23223 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23224 sed -e /.eh_frame
/!d
-e N | \
23225 grep READONLY
> /dev
/null
; then
23226 gcc_cv_as_cfi_directive
=yes
23228 gcc_cv_as_cfi_directive
=no
23232 gcc_cv_as_cfi_directive
=yes
23237 # no objdump, err on the side of caution
23238 gcc_cv_as_cfi_directive
=no
23241 gcc_cv_as_cfi_directive
=yes
23245 gcc_cv_as_cfi_directive
=yes
23249 echo "configure: failed program was" >&5
23252 rm -f conftest.o conftest.s
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23256 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23258 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23260 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23261 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23262 $as_echo_n "(cached) " >&6
23264 gcc_cv_as_cfi_advance_working
=no
23265 if test x
$gcc_cv_as != x
; then
23268 .cfi_adjust_cfa_offset 64
23270 .cfi_adjust_cfa_offset 128
23271 .cfi_endproc' > conftest.s
23272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23274 (eval $ac_try) 2>&5
23276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23277 test $ac_status = 0; }; }
23280 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23281 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23282 gcc_cv_as_cfi_advance_working
=yes
23286 echo "configure: failed program was" >&5
23289 rm -f conftest.o conftest.s
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23293 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23296 # no objdump, err on the side of caution
23297 gcc_cv_as_cfi_advance_working
=no
23301 cat >>confdefs.h
<<_ACEOF
23302 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23303 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23309 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23310 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23311 $as_echo_n "(cached) " >&6
23313 gcc_cv_as_cfi_personality_directive
=no
23314 if test x
$gcc_cv_as != x
; then
23317 .cfi_personality 0, symbol
23318 .cfi_endproc' > conftest.s
23319 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23321 (eval $ac_try) 2>&5
23323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23324 test $ac_status = 0; }; }
23326 gcc_cv_as_cfi_personality_directive
=yes
23328 echo "configure: failed program was" >&5
23331 rm -f conftest.o conftest.s
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23335 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23338 cat >>confdefs.h
<<_ACEOF
23339 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23340 then echo 1; else echo 0; fi`
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23345 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23346 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23347 $as_echo_n "(cached) " >&6
23349 gcc_cv_as_cfi_sections_directive
=no
23350 if test x
$gcc_cv_as != x
; then
23352 .cfi_sections .debug_frame, .eh_frame
23354 .cfi_endproc' > conftest.s
23355 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23357 (eval $ac_try) 2>&5
23359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23360 test $ac_status = 0; }; }
23363 win32 | pe | cygwin
* | mingw32
*)
23364 # Need to check that we generated the correct relocation for the
23365 # .debug_frame section. This was fixed for binutils 2.21.
23366 gcc_cv_as_cfi_sections_directive
=no
23367 if test "x$gcc_cv_objdump" != x
; then
23368 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23369 grep secrel
> /dev
/null
; then
23370 gcc_cv_as_cfi_sections_directive
=yes
23375 gcc_cv_as_cfi_sections_directive
=yes
23379 echo "configure: failed program was" >&5
23382 rm -f conftest.o conftest.s
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23386 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23390 cat >>confdefs.h
<<_ACEOF
23391 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23392 then echo 1; else echo 0; fi`
23396 # GAS versions up to and including 2.11.0 may mis-optimize
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23399 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23400 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23401 $as_echo_n "(cached) " >&6
23403 gcc_cv_as_eh_frame
=no
23404 if test $in_tree_gas = yes; then
23405 if test $in_tree_gas_is_elf = yes \
23406 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23407 then gcc_cv_as_eh_frame
=yes
23409 elif test x
$gcc_cv_as != x
; then
23416 .section .eh_frame,"aw",@progbits
23418 .4byte .LECIE1-.LSCIE1
23432 .4byte .LEFDE1-.LASFDE1
23434 .4byte .LASFDE1-__FRAME_BEGIN__
23441 .LEFDE1:' > conftest.s
23442 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23444 (eval $ac_try) 2>&5
23446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23447 test $ac_status = 0; }; }
23449 cat > conftest.lit
<<EOF
23450 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23451 0010 01000000 12000000 18000000 00000000 ................
23452 0020 08000000 04080000 0044 .........D
23454 cat > conftest.big
<<EOF
23455 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23456 0010 00000001 00000012 00000018 00000000 ................
23457 0020 00000008 04000000 0844 .........D
23459 # If the assembler didn't choke, and we can objdump,
23460 # and we got the correct data, then succeed.
23461 # The text in the here-document typically retains its unix-style line
23462 # endings, while the output of objdump will use host line endings.
23463 # Therefore, use diff -b for the comparisons.
23464 if test x
$gcc_cv_objdump != x \
23465 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23466 |
tail -3 > conftest.got \
23467 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23468 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23470 gcc_cv_as_eh_frame
=yes
23471 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23473 (eval $ac_try) 2>&5
23475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23476 test $ac_status = 0; }; }; then
23477 gcc_cv_as_eh_frame
=buggy
23479 # Uh oh, what do we do now?
23480 gcc_cv_as_eh_frame
=no
23483 echo "configure: failed program was" >&5
23486 rm -f conftest.o conftest.s
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23490 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23493 if test $gcc_cv_as_eh_frame = buggy
; then
23495 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23500 $as_echo_n "checking assembler for section merging support... " >&6; }
23501 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23502 $as_echo_n "(cached) " >&6
23504 gcc_cv_as_shf_merge
=no
23505 if test $in_tree_gas = yes; then
23506 if test $in_tree_gas_is_elf = yes \
23507 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23508 then gcc_cv_as_shf_merge
=yes
23510 elif test x
$gcc_cv_as != x
; then
23511 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23514 (eval $ac_try) 2>&5
23516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23517 test $ac_status = 0; }; }
23519 gcc_cv_as_shf_merge
=yes
23521 echo "configure: failed program was" >&5
23524 rm -f conftest.o conftest.s
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23528 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23530 if test $gcc_cv_as_shf_merge = no
; then
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23532 $as_echo_n "checking assembler for section merging support... " >&6; }
23533 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23534 $as_echo_n "(cached) " >&6
23536 gcc_cv_as_shf_merge
=no
23537 if test $in_tree_gas = yes; then
23538 if test $in_tree_gas_is_elf = yes \
23539 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23540 then gcc_cv_as_shf_merge
=yes
23542 elif test x
$gcc_cv_as != x
; then
23543 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23544 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23546 (eval $ac_try) 2>&5
23548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23549 test $ac_status = 0; }; }
23551 gcc_cv_as_shf_merge
=yes
23553 echo "configure: failed program was" >&5
23556 rm -f conftest.o conftest.s
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23560 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23564 cat >>confdefs.h
<<_ACEOF
23565 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23570 $as_echo_n "checking assembler for stabs directive... " >&6; }
23571 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23572 $as_echo_n "(cached) " >&6
23574 gcc_cv_as_stabs_directive
=no
23575 if test x
$gcc_cv_as != x
; then
23576 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23577 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23579 (eval $ac_try) 2>&5
23581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23582 test $ac_status = 0; }; }
23584 gcc_cv_as_stabs_directive
=yes
23586 echo "configure: failed program was" >&5
23589 rm -f conftest.o conftest.s
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23593 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23594 if test $gcc_cv_as_stabs_directive = yes; then
23596 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23601 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23602 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23603 $as_echo_n "(cached) " >&6
23605 gcc_cv_as_comdat_group
=no
23606 if test $in_tree_gas = yes; then
23607 if test $in_tree_gas_is_elf = yes \
23608 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23609 then gcc_cv_as_comdat_group
=yes
23611 elif test x
$gcc_cv_as != x
; then
23612 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23613 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23615 (eval $ac_try) 2>&5
23617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23618 test $ac_status = 0; }; }
23620 gcc_cv_as_comdat_group
=yes
23622 echo "configure: failed program was" >&5
23625 rm -f conftest.o conftest.s
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23629 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23631 if test $gcc_cv_as_comdat_group = yes; then
23632 gcc_cv_as_comdat_group_percent
=no
23633 gcc_cv_as_comdat_group_group
=no
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23636 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23637 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23638 $as_echo_n "(cached) " >&6
23640 gcc_cv_as_comdat_group_percent
=no
23641 if test $in_tree_gas = yes; then
23642 if test $in_tree_gas_is_elf = yes \
23643 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23644 then gcc_cv_as_comdat_group_percent
=yes
23646 elif test x
$gcc_cv_as != x
; then
23647 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23648 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23650 (eval $ac_try) 2>&5
23652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23653 test $ac_status = 0; }; }
23655 gcc_cv_as_comdat_group_percent
=yes
23657 echo "configure: failed program was" >&5
23660 rm -f conftest.o conftest.s
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23664 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23666 if test $gcc_cv_as_comdat_group_percent = yes; then
23667 gcc_cv_as_comdat_group_group
=no
23669 case "${target}" in
23670 # Sun as uses a completely different syntax.
23672 case "${target}" in
23673 sparc
*-*-solaris2*)
23675 .group foo,".text%foo",#comdat
23676 .section ".text%foo", #alloc,#execinstr,#progbits
23681 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23683 .group foo,.text%foo,#comdat
23684 .section .text%foo, "ax", @progbits
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23691 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23692 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23693 $as_echo_n "(cached) " >&6
23695 gcc_cv_as_comdat_group_group
=no
23696 if test x
$gcc_cv_as != x
; then
23697 $as_echo "$conftest_s" > conftest.s
23698 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23700 (eval $ac_try) 2>&5
23702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23703 test $ac_status = 0; }; }
23705 gcc_cv_as_comdat_group_group
=yes
23707 echo "configure: failed program was" >&5
23710 rm -f conftest.o conftest.s
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23714 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23718 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23719 gcc_cv_as_comdat_group_group
=no
23723 if test x
"$ld_is_gold" = xyes
; then
23725 elif test $in_tree_ld = yes ; then
23727 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 \
23728 && test $in_tree_ld_is_elf = yes; then
23731 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23733 if test 0"$ld_date" -lt 20050308; then
23734 if test -n "$ld_date"; then
23735 # If there was date string, but was earlier than 2005-03-08, fail
23737 elif test "$ld_vers_major" -lt 2; then
23739 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23744 case "${target}" in
23745 *-*-solaris2.1
[1-9]*)
23747 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23748 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23751 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23752 # least ld version 1.2267.
23753 if test "$ld_vers_major" -gt 1; then
23755 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23757 elif test "$ld_vers_minor" -ge 2267; then
23762 # Assume linkers other than GNU ld don't support COMDAT group.
23767 # Allow overriding the automatic COMDAT group tests above.
23768 # Check whether --enable-comdat was given.
23769 if test "${enable_comdat+set}" = set; then :
23770 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23773 if test $comdat_group = no
; then
23774 gcc_cv_as_comdat_group
=no
23775 gcc_cv_as_comdat_group_percent
=no
23776 gcc_cv_as_comdat_group_group
=no
23779 cat >>confdefs.h
<<_ACEOF
23780 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23781 || test $gcc_cv_as_comdat_group_percent = yes \
23782 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23787 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23788 if test "${gcc_cv_as_discriminator+set}" = set; then :
23789 $as_echo_n "(cached) " >&6
23791 gcc_cv_as_discriminator
=no
23792 if test $in_tree_gas = yes; then
23793 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23794 then gcc_cv_as_discriminator
=yes
23796 elif test x
$gcc_cv_as != x
; then
23799 .loc 1 1 0 discriminator 1' > conftest.s
23800 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23802 (eval $ac_try) 2>&5
23804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23805 test $ac_status = 0; }; }
23807 gcc_cv_as_discriminator
=yes
23809 echo "configure: failed program was" >&5
23812 rm -f conftest.o conftest.s
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23816 $as_echo "$gcc_cv_as_discriminator" >&6; }
23817 if test $gcc_cv_as_discriminator = yes; then
23819 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23823 # Thread-local storage - the check is heavily parameterized.
23831 .section ".tdata","awT",@progbits
23834 ldq $27,__tls_get_addr($29) !literal!1
23835 lda $16,foo($29) !tlsgd!1
23836 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23837 ldq $27,__tls_get_addr($29) !literal!2
23838 lda $16,foo($29) !tlsldm!2
23839 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23840 ldq $1,foo($29) !gotdtprel
23841 ldah $2,foo($29) !dtprelhi
23842 lda $3,foo($2) !dtprello
23843 lda $4,foo($29) !dtprel
23844 ldq $1,foo($29) !gottprel
23845 ldah $2,foo($29) !tprelhi
23846 lda $3,foo($2) !tprello
23847 lda $4,foo($29) !tprel'
23850 tls_as_opt
=--fatal-warnings
23852 cris-
*-*|crisv32-
*-*)
23854 .section ".tdata","awT",@progbits
23861 tls_as_opt
=--fatal-warnings
23865 .section ".tdata","awT",@progbits
23868 call #gettlsoff(x)'
23877 .section ".tdata","awT",@progbits
23881 addil LT%foo-$tls_gdidx$,gp
23882 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23885 addil LT%foo-$tls_ldidx$,gp
23887 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23888 addil LR%foo-$tls_dtpoff$,%ret0
23889 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23891 addil LT%foo-$tls_ieoff$,gp
23892 ldw RT%foo-$tls_ieoff$(%r1),%t2
23895 addil LR%foo-$tls_leoff$,%t1
23896 ldo RR%foo-$tls_leoff$(%r1),%t2'
23899 tls_as_opt
=--fatal-warnings
23903 .section ".tdata","awT",%progbits
23906 .word foo(gottpoff)
23914 i
[34567]86-*-* | x86_64-
*-*)
23916 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23923 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23925 .section .tdata,"awt",@progbits'
23930 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23934 .section ".tdata","awT",@progbits'
23938 tls_as_opt
="--fatal-warnings"
23942 conftest_s
="$conftest_s
23946 leal foo@tlsgd(,%ebx,1), %eax
23947 leal foo@tlsldm(%ebx), %eax
23948 leal foo@dtpoff(%eax), %edx
23949 movl foo@gottpoff(%ebx), %eax
23950 subl foo@gottpoff(%ebx), %eax
23951 addl foo@gotntpoff(%ebx), %eax
23952 movl foo@indntpoff, %eax
23953 movl \$foo@tpoff, %eax
23954 subl \$foo@tpoff, %eax
23955 leal foo@ntpoff(%ecx), %eax"
23958 if test x
$on_solaris = xyes
; then
23960 yes) tls_as_opt
="$tls_as_opt --64" ;;
23961 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23964 conftest_s
="$conftest_s
23968 leaq foo@tlsgd(%rip), %rdi
23969 leaq foo@tlsld(%rip), %rdi
23970 leaq foo@dtpoff(%rax), %rdx
23971 movq foo@gottpoff(%rip), %rax
23972 movq \$foo@tpoff, %rax"
23978 .section ".tdata","awT",@progbits
23981 addl r16 = @ltoff(@dtpmod(foo#)), gp
23982 addl r17 = @ltoff(@dtprel(foo#)), gp
23983 addl r18 = @ltoff(@tprel(foo#)), gp
23984 addl r19 = @dtprel(foo#), gp
23985 adds r21 = @dtprel(foo#), r13
23986 movl r23 = @dtprel(foo#)
23987 addl r20 = @tprel(foo#), gp
23988 adds r22 = @tprel(foo#), r13
23989 movl r24 = @tprel(foo#)'
23992 tls_as_opt
=--fatal-warnings
23996 .section .tdata,"awT",@progbits
24000 addik r5,r20,x@TLSGD
24001 addik r5,r20,x@TLSLDM'
24004 tls_as_opt
='--fatal-warnings'
24008 .section .tdata,"awT",@progbits
24012 addiu $4, $28, %tlsgd(x)
24013 addiu $4, $28, %tlsldm(x)
24014 lui $4, %dtprel_hi(x)
24015 addiu $4, $4, %dtprel_lo(x)
24016 lw $4, %gottprel(x)($28)
24017 lui $4, %tprel_hi(x)
24018 addiu $4, $4, %tprel_lo(x)'
24021 tls_as_opt
='-32 --fatal-warnings'
24025 .section .tdata,"awT",@progbits
24030 move.l x@TLSGD(%a5),%a0
24031 move.l x@TLSLDM(%a5),%a0
24032 move.l x@TLSLDO(%a5),%a0
24033 move.l x@TLSIE(%a5),%a0
24034 move.l x@TLSLE(%a5),%a0'
24037 tls_as_opt
='--fatal-warnings'
24041 .section ".tdata","awT",@progbits'
24044 tls_as_opt
="--fatal-warnings"
24048 .section ".tdata","awT",%progbits
24052 add x0, x0, #:tlsgd_lo12:x
24057 tls_as_opt
='--fatal-warnings'
24061 .extern __get_tpointer
24079 .section ".tdata","awT",@progbits
24087 addi 3,2,ld0@got@tlsgd
24093 addi 3,2,x1@got@tlsld
24099 addis 9,3,x2@dtprel@ha
24100 addi 9,9,x2@dtprel@l
24103 ld 9,x3@got@dtprel(2)
24109 tls_as_opt
="-a64 --fatal-warnings"
24113 .section ".tdata","awT",@progbits
24121 addi 3,31,ld0@got@tlsgd
24123 addi 3,31,x1@got@tlsld
24126 addis 9,3,x2@dtprel@ha
24127 addi 9,9,x2@dtprel@l
24128 lwz 9,x3@got@tprel(31)
24131 addis 9,2,x2@tprel@ha
24132 addi 9,9,x2@tprel@l'
24135 tls_as_opt
="-a32 --fatal-warnings"
24139 .section ".tdata","awT",@progbits
24146 .long foo@GOTNTPOFF
24147 .long foo@INDNTPOFF
24148 l %r1,foo@GOTNTPOFF(%r12)
24149 l %r1,0(%r1):tls_load:foo
24150 bas %r14,0(%r1,%r13):tls_gdcall:foo
24151 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24154 tls_as_opt
="-m31 --fatal-warnings"
24158 .section ".tdata","awT",@progbits
24165 .quad foo@GOTNTPOFF
24166 lg %r1,foo@GOTNTPOFF(%r12)
24167 larl %r1,foo@INDNTPOFF
24168 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24169 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24172 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24174 sh-
*-* | sh
[123456789lbe
]*-*-*)
24176 .section ".tdata","awT",@progbits
24186 tls_as_opt
=--fatal-warnings
24190 sparc
*-sun-solaris2.
*)
24197 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24199 .section ".tdata",#alloc,#write,#tls'
24204 .section ".tdata","awT",@progbits'
24207 tls_as_opt
="-32 --fatal-warnings"
24209 conftest_s
="$conftest_s
24212 sethi %tgd_hi22(foo), %o0
24213 add %o0, %tgd_lo10(foo), %o1
24214 add %l7, %o1, %o0, %tgd_add(foo)
24215 call __tls_get_addr, %tgd_call(foo)
24216 sethi %tldm_hi22(foo), %l1
24217 add %l1, %tldm_lo10(foo), %l2
24218 add %l7, %l2, %o0, %tldm_add(foo)
24219 call __tls_get_addr, %tldm_call(foo)
24220 sethi %tldo_hix22(foo), %l3
24221 xor %l3, %tldo_lox10(foo), %l4
24222 add %o0, %l4, %l5, %tldo_add(foo)
24223 sethi %tie_hi22(foo), %o3
24224 add %o3, %tie_lo10(foo), %o3
24225 ld [%l7 + %o3], %o2, %tie_ld(foo)
24226 add %g7, %o2, %o4, %tie_add(foo)
24227 sethi %tle_hix22(foo), %l1
24228 xor %l1, %tle_lox10(foo), %o5
24229 ld [%g7 + %o5], %o1"
24233 .section ".tdata","awT",@progbits
24236 addli r0, zero, tls_gd(foo)
24237 auli r0, zero, tls_gd_ha16(foo)
24238 addli r0, r0, tls_gd_lo16(foo)
24240 addli r0, zero, tls_ie(foo)
24241 auli r0, r0, tls_ie_ha16(foo)
24242 addli r0, r0, tls_ie_lo16(foo)'
24245 tls_as_opt
="--fatal-warnings"
24249 .section ".tdata","awT",@progbits
24252 shl16insli r0, zero, hw0_last_tls_gd(foo)
24253 shl16insli r0, zero, hw1_last_tls_gd(foo)
24254 shl16insli r0, r0, hw0_tls_gd(foo)
24256 shl16insli r0, zero, hw1_last_tls_ie(foo)
24257 shl16insli r0, r0, hw0_tls_ie(foo)'
24260 tls_as_opt
="--fatal-warnings"
24264 .section ".tdata","awT",@progbits
24267 movi a8, foo@TLSFUNC
24268 movi a10, foo@TLSARG
24269 callx8.tls a8, foo@TLSCALL'
24275 if test "x$enable_tls" = xno
; then
24276 : # TLS explicitly disabled.
24277 elif test "x$enable_tls" = xyes
; then
24278 set_have_as_tls
=yes # TLS explicitly enabled.
24279 elif test -z "$tls_first_major"; then
24280 : # If we don't have a check, assume no support.
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24283 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24284 if test "${gcc_cv_as_tls+set}" = set; then :
24285 $as_echo_n "(cached) " >&6
24288 if test $in_tree_gas = yes; then
24289 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24290 then gcc_cv_as_tls
=yes
24292 elif test x
$gcc_cv_as != x
; then
24293 $as_echo "$conftest_s" > conftest.s
24294 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24296 (eval $ac_try) 2>&5
24298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24299 test $ac_status = 0; }; }
24303 echo "configure: failed program was" >&5
24306 rm -f conftest.o conftest.s
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24310 $as_echo "$gcc_cv_as_tls" >&6; }
24311 if test $gcc_cv_as_tls = yes; then
24312 set_have_as_tls
=yes
24315 if test $set_have_as_tls = yes ; then
24317 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24321 # Target-specific assembler checks.
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24324 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24325 gcc_cv_ld_static_dynamic
=no
24326 gcc_cv_ld_static_option
='-Bstatic'
24327 gcc_cv_ld_dynamic_option
='-Bdynamic'
24328 if test $in_tree_ld = yes ; then
24329 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
24330 gcc_cv_ld_static_dynamic
=yes
24332 elif test x
$gcc_cv_ld != x
; then
24333 # Check if linker supports -Bstatic/-Bdynamic option
24334 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24335 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24336 gcc_cv_ld_static_dynamic
=yes
24339 # AIX ld uses -b flags
24340 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24341 gcc_cv_ld_static_dynamic
=yes
24342 gcc_cv_ld_static_option
="-bstatic"
24343 gcc_cv_ld_dynamic_option
="-bdynamic"
24345 # HP-UX ld uses -a flags to select between shared and archive.
24347 if test x
"$gnu_ld" = xno
; then
24348 gcc_cv_ld_static_dynamic
=yes
24349 gcc_cv_ld_static_option
="-aarchive_shared"
24350 gcc_cv_ld_dynamic_option
="-adefault"
24353 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24355 gcc_cv_ld_static_dynamic
=yes
24360 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24362 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24365 cat >>confdefs.h
<<_ACEOF
24366 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24370 cat >>confdefs.h
<<_ACEOF
24371 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24376 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24378 if test x
"$demangler_in_ld" = xyes
; then
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24380 $as_echo_n "checking linker --demangle support... " >&6; }
24381 gcc_cv_ld_demangle
=no
24382 if test $in_tree_ld = yes; then
24383 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 \
24384 gcc_cv_ld_demangle
=yes
24386 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24387 # Check if the GNU linker supports --demangle option
24388 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24389 gcc_cv_ld_demangle
=yes
24392 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24394 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24398 $as_echo "$gcc_cv_ld_demangle" >&6; }
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24402 $as_echo_n "checking linker plugin support... " >&6; }
24403 gcc_cv_lto_plugin
=0
24404 if test -f liblto_plugin.la
; then
24405 save_ld_ver
="$ld_ver"
24406 save_ld_vers_major
="$ld_vers_major"
24407 save_ld_vers_minor
="$ld_vers_minor"
24408 save_ld_is_gold
="$ld_is_gold"
24412 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24414 # FIXME: ld_is_gold?
24415 ld_vers_major
="$gcc_cv_gld_major_version"
24416 ld_vers_minor
="$gcc_cv_gld_minor_version"
24418 # Determine plugin linker version.
24419 # FIXME: Partial duplicate from above, generalize.
24420 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24421 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24422 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24424 ld_vers
=`echo $ld_ver | sed -n \
24425 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24427 ld_vers
=`echo $ld_ver | sed -n \
24428 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24430 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24431 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24435 # Determine plugin support.
24436 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24437 # Require GNU ld or gold 2.21+ for plugin support by default.
24438 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24439 gcc_cv_lto_plugin
=2
24440 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24441 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24442 gcc_cv_lto_plugin
=1
24446 ld_ver
="$save_ld_ver"
24447 ld_vers_major
="$save_ld_vers_major"
24448 ld_vers_minor
="$save_ld_vers_minor"
24449 ld_is_gold
="$save_ld_is_gold"
24452 cat >>confdefs.h
<<_ACEOF
24453 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24457 $as_echo "$gcc_cv_lto_plugin" >&6; }
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24462 $as_echo_n "checking assembler for -mabi option... " >&6; }
24463 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24464 $as_echo_n "(cached) " >&6
24466 gcc_cv_as_aarch64_mabi
=no
24467 if test x
$gcc_cv_as != x
; then
24468 $as_echo '.text' > conftest.s
24469 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24471 (eval $ac_try) 2>&5
24473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24474 test $ac_status = 0; }; }
24476 gcc_cv_as_aarch64_mabi
=yes
24478 echo "configure: failed program was" >&5
24481 rm -f conftest.o conftest.s
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24485 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24487 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24489 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24492 if test x
$with_abi = xilp32
; then
24493 as_fn_error
"Assembler does not support -mabi=ilp32.\
24494 Upgrade the Assembler." "$LINENO" 5
24496 if test x
"$with_multilib_list" = xdefault
; then
24497 TM_MULTILIB_CONFIG
=lp64
24499 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24500 for aarch64_multilib
in ${aarch64_multilibs}; do
24501 case ${aarch64_multilib} in
24503 as_fn_error
"Assembler does not support -mabi=ilp32.\
24504 Upgrade the Assembler." "$LINENO" 5
24512 # Check if we have binutils support for relocations types needed by -fpic
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24514 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24515 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24516 $as_echo_n "(cached) " >&6
24518 gcc_cv_as_aarch64_picreloc
=no
24519 if test x
$gcc_cv_as != x
; then
24522 ldr x0, [x2, #:gotpage_lo15:globalsym]
24524 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24531 gcc_cv_as_aarch64_picreloc
=yes
24533 echo "configure: failed program was" >&5
24536 rm -f conftest.o conftest.s
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24540 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24541 if test $gcc_cv_as_aarch64_picreloc = yes; then
24543 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24546 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24547 # Check whether --enable-fix-cortex-a53-835769 was given.
24548 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24549 enableval
=$enable_fix_cortex_a53_835769;
24552 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24557 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24558 Valid choices are 'yes' and 'no'." "$LINENO" 5
24565 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24566 # Check whether --enable-fix-cortex-a53-843419 was given.
24567 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24568 enableval
=$enable_fix_cortex_a53_843419;
24571 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24576 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24577 Valid choices are 'yes' and 'no'." "$LINENO" 5
24586 # All TARGET_ABI_OSF targets.
24587 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24589 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24590 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24591 $as_echo_n "(cached) " >&6
24593 gcc_cv_as_alpha_explicit_relocs
=no
24594 if test $in_tree_gas = yes; then
24595 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24596 then gcc_cv_as_alpha_explicit_relocs
=yes
24598 elif test x
$gcc_cv_as != x
; then
24599 $as_echo ' .set nomacro
24601 extbl $3, $2, $3 !lituse_bytoff!1
24602 ldq $2, a($29) !literal!1
24603 ldq $4, b($29) !literal!2
24604 ldq_u $3, 0($2) !lituse_base!1
24605 ldq $27, f($29) !literal!5
24606 jsr $26, ($27), f !lituse_jsr!5
24607 ldah $29, 0($26) !gpdisp!3
24608 lda $0, c($29) !gprel
24609 ldah $1, d($29) !gprelhigh
24610 lda $1, d($1) !gprellow
24611 lda $29, 0($29) !gpdisp!3' > conftest.s
24612 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24614 (eval $ac_try) 2>&5
24616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24617 test $ac_status = 0; }; }
24619 gcc_cv_as_alpha_explicit_relocs
=yes
24621 echo "configure: failed program was" >&5
24624 rm -f conftest.o conftest.s
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24628 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24629 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24631 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24635 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24636 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24637 $as_echo_n "(cached) " >&6
24639 gcc_cv_as_alpha_jsrdirect_relocs
=no
24640 if test $in_tree_gas = yes; then
24641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24642 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24644 elif test x
$gcc_cv_as != x
; then
24645 $as_echo ' .set nomacro
24647 ldq $27, a($29) !literal!1
24648 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24649 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24651 (eval $ac_try) 2>&5
24653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24654 test $ac_status = 0; }; }
24656 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24658 echo "configure: failed program was" >&5
24661 rm -f conftest.o conftest.s
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24665 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24666 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24668 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24675 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24676 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24677 $as_echo_n "(cached) " >&6
24679 gcc_cv_as_avr_mlink_relax
=no
24680 if test x
$gcc_cv_as != x
; then
24681 $as_echo '.text' > conftest.s
24682 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24684 (eval $ac_try) 2>&5
24686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687 test $ac_status = 0; }; }
24689 gcc_cv_as_avr_mlink_relax
=yes
24691 echo "configure: failed program was" >&5
24694 rm -f conftest.o conftest.s
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24698 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24699 if test $gcc_cv_as_avr_mlink_relax = yes; then
24701 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24706 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24707 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24708 $as_echo_n "(cached) " >&6
24710 gcc_cv_as_avr_mrmw
=no
24711 if test x
$gcc_cv_as != x
; then
24712 $as_echo '.text' > conftest.s
24713 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24715 (eval $ac_try) 2>&5
24717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24718 test $ac_status = 0; }; }
24720 gcc_cv_as_avr_mrmw
=yes
24722 echo "configure: failed program was" >&5
24725 rm -f conftest.o conftest.s
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24729 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24730 if test $gcc_cv_as_avr_mrmw = yes; then
24732 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24739 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24740 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24743 gcc_cv_as_cris_no_mul_bug
=no
24744 if test $in_tree_gas = yes; then
24745 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24746 then gcc_cv_as_cris_no_mul_bug
=yes
24748 elif test x
$gcc_cv_as != x
; then
24749 $as_echo '.text' > conftest.s
24750 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24752 (eval $ac_try) 2>&5
24754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24755 test $ac_status = 0; }; }
24757 gcc_cv_as_cris_no_mul_bug
=yes
24759 echo "configure: failed program was" >&5
24762 rm -f conftest.o conftest.s
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24766 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24767 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24769 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24776 $as_echo_n "checking assembler for .register... " >&6; }
24777 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24778 $as_echo_n "(cached) " >&6
24780 gcc_cv_as_sparc_register_op
=no
24781 if test x
$gcc_cv_as != x
; then
24782 $as_echo '.register %g2, #scratch' > conftest.s
24783 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24785 (eval $ac_try) 2>&5
24787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24788 test $ac_status = 0; }; }
24790 gcc_cv_as_sparc_register_op
=yes
24792 echo "configure: failed program was" >&5
24795 rm -f conftest.o conftest.s
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24799 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24800 if test $gcc_cv_as_sparc_register_op = yes; then
24802 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24807 $as_echo_n "checking assembler for -relax option... " >&6; }
24808 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24809 $as_echo_n "(cached) " >&6
24811 gcc_cv_as_sparc_relax
=no
24812 if test x
$gcc_cv_as != x
; then
24813 $as_echo '.text' > conftest.s
24814 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24816 (eval $ac_try) 2>&5
24818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24819 test $ac_status = 0; }; }
24821 gcc_cv_as_sparc_relax
=yes
24823 echo "configure: failed program was" >&5
24826 rm -f conftest.o conftest.s
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24830 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24831 if test $gcc_cv_as_sparc_relax = yes; then
24833 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24838 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24839 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24840 $as_echo_n "(cached) " >&6
24842 gcc_cv_as_sparc_gotdata_op
=no
24843 if test x
$gcc_cv_as != x
; then
24849 sethi %gdop_hix22(foo), %g1
24850 xor %g1, %gdop_lox10(foo), %g1
24851 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24854 (eval $ac_try) 2>&5
24856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24857 test $ac_status = 0; }; }
24859 if test x
$gcc_cv_ld != x \
24860 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24861 if test x
$gcc_cv_objdump != x
; then
24862 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24863 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24864 gcc_cv_as_sparc_gotdata_op
=no
24866 gcc_cv_as_sparc_gotdata_op
=yes
24872 echo "configure: failed program was" >&5
24875 rm -f conftest.o conftest.s
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24879 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24880 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24882 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24887 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24888 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24889 $as_echo_n "(cached) " >&6
24891 gcc_cv_as_sparc_ua_pcrel
=no
24892 if test x
$gcc_cv_as != x
; then
24899 .uaword %r_disp32(foo)' > conftest.s
24900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24902 (eval $ac_try) 2>&5
24904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24905 test $ac_status = 0; }; }
24907 if test x
$gcc_cv_ld != x \
24908 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24909 gcc_cv_as_sparc_ua_pcrel
=yes
24913 echo "configure: failed program was" >&5
24916 rm -f conftest.o conftest.s
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24920 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24921 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24923 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24927 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24928 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24929 $as_echo_n "(cached) " >&6
24931 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24932 if test x
$gcc_cv_as != x
; then
24936 .uaword %r_disp32(foo)
24937 .byte 0x32, 0x33, 0x34
24941 .skip 4' > conftest.s
24942 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24944 (eval $ac_try) 2>&5
24946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24947 test $ac_status = 0; }; }
24949 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24950 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24951 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24952 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24953 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24954 |
grep 'DISP32' > /dev
/null
2>&1; then
24957 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24962 echo "configure: failed program was" >&5
24965 rm -f conftest.o conftest.s
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24969 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24970 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24972 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24976 fi # unaligned pcrel relocs
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24979 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24980 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24981 $as_echo_n "(cached) " >&6
24983 gcc_cv_as_sparc_offsetable_lo10
=no
24984 if test x
$gcc_cv_as != x
; then
24986 or %g1, %lo(ab) + 12, %g1
24987 or %g1, %lo(ab + 12), %g1' > conftest.s
24988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24990 (eval $ac_try) 2>&5
24992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24993 test $ac_status = 0; }; }
24995 if test x
$gcc_cv_objdump != x \
24996 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24997 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24998 gcc_cv_as_sparc_offsetable_lo10
=yes
25001 echo "configure: failed program was" >&5
25004 rm -f conftest.o conftest.s
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25008 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25009 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25011 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25016 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25017 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25018 $as_echo_n "(cached) " >&6
25020 gcc_cv_as_sparc_fmaf
=no
25021 if test x
$gcc_cv_as != x
; then
25023 .register %g2, #scratch
25024 .register %g3, #scratch
25026 fmaddd %f0, %f2, %f4, %f6
25027 addxccc %g1, %g2, %g3
25028 fsrl32 %f2, %f4, %f8
25029 fnaddd %f10, %f12, %f14' > conftest.s
25030 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25032 (eval $ac_try) 2>&5
25034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25035 test $ac_status = 0; }; }
25037 gcc_cv_as_sparc_fmaf
=yes
25039 echo "configure: failed program was" >&5
25042 rm -f conftest.o conftest.s
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25046 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25047 if test $gcc_cv_as_sparc_fmaf = yes; then
25049 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25054 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25055 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25056 $as_echo_n "(cached) " >&6
25058 gcc_cv_as_sparc_sparc4
=no
25059 if test x
$gcc_cv_as != x
; then
25061 .register %g2, #scratch
25062 .register %g3, #scratch
25065 1: cwbneg %g2, %g3, 1f
25068 aes_kexpand0 %f4, %f6, %f8
25069 des_round %f38, %f40, %f42, %f44
25070 camellia_f %f54, %f56, %f58, %f60
25071 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25072 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25074 (eval $ac_try) 2>&5
25076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25077 test $ac_status = 0; }; }
25079 gcc_cv_as_sparc_sparc4
=yes
25081 echo "configure: failed program was" >&5
25084 rm -f conftest.o conftest.s
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25088 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25089 if test $gcc_cv_as_sparc_sparc4 = yes; then
25091 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25096 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25097 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25098 $as_echo_n "(cached) " >&6
25100 gcc_cv_as_sparc_sparc5
=no
25101 if test x
$gcc_cv_as != x
; then
25103 .register %g2, #scratch
25104 .register %g3, #scratch
25106 subxc %g1, %g2, %g3
25107 fpadd8 %f0, %f2, %f4' > conftest.s
25108 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25110 (eval $ac_try) 2>&5
25112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25113 test $ac_status = 0; }; }
25115 gcc_cv_as_sparc_sparc5
=yes
25117 echo "configure: failed program was" >&5
25120 rm -f conftest.o conftest.s
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25124 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25125 if test $gcc_cv_as_sparc_sparc5 = yes; then
25127 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25132 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25133 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25134 $as_echo_n "(cached) " >&6
25136 gcc_cv_as_sparc_leon
=no
25137 if test x
$gcc_cv_as != x
; then
25139 .register %g2, #scratch
25140 .register %g3, #scratch
25144 casa [%g2] 0xb, %g3, %g1' > conftest.s
25145 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25147 (eval $ac_try) 2>&5
25149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25150 test $ac_status = 0; }; }
25152 gcc_cv_as_sparc_leon
=yes
25154 echo "configure: failed program was" >&5
25157 rm -f conftest.o conftest.s
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25161 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25162 if test $gcc_cv_as_sparc_leon = yes; then
25164 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25169 i
[34567]86-*-* | x86_64-
*-*)
25172 # Full C++ conformance when using a shared libstdc++-v3 requires some
25173 # support from the Cygwin DLL, which in more recent versions exports
25174 # wrappers to aid in interposing and redirecting operators new, delete,
25175 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25176 # are configuring for a version of Cygwin that exports the wrappers.
25177 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25178 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25179 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25180 gcc_ac_cygwin_dll_wrappers
=yes
25182 gcc_ac_cygwin_dll_wrappers
=no
25186 # Can't check presence of libc functions during cross-compile, so
25187 # we just have to assume we're building for an up-to-date target.
25188 gcc_ac_cygwin_dll_wrappers
=yes
25191 cat >>confdefs.h
<<_ACEOF
25192 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25197 cygwin
* | pe | mingw32
* | interix
*)
25198 # Recent binutils allows the three-operand form of ".comm" on PE. This
25199 # definition is used unconditionally to initialise the default state of
25200 # the target option variable that governs usage of the feature.
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25202 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25203 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25204 $as_echo_n "(cached) " >&6
25206 gcc_cv_as_comm_has_align
=no
25207 if test $in_tree_gas = yes; then
25208 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25209 then gcc_cv_as_comm_has_align
=yes
25211 elif test x
$gcc_cv_as != x
; then
25212 $as_echo '.comm foo,1,32' > conftest.s
25213 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25215 (eval $ac_try) 2>&5
25217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25218 test $ac_status = 0; }; }
25220 gcc_cv_as_comm_has_align
=yes
25222 echo "configure: failed program was" >&5
25225 rm -f conftest.o conftest.s
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25229 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25232 cat >>confdefs.h
<<_ACEOF
25233 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25236 # Used for DWARF 2 in PE
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25238 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25239 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25240 $as_echo_n "(cached) " >&6
25242 gcc_cv_as_ix86_pe_secrel32
=no
25243 if test $in_tree_gas = yes; then
25244 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25245 then gcc_cv_as_ix86_pe_secrel32
=yes
25247 elif test x
$gcc_cv_as != x
; then
25251 .secrel32 foo' > conftest.s
25252 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25254 (eval $ac_try) 2>&5
25256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25257 test $ac_status = 0; }; }
25259 if test x
$gcc_cv_ld != x \
25260 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25261 gcc_cv_as_ix86_pe_secrel32
=yes
25265 echo "configure: failed program was" >&5
25268 rm -f conftest.o conftest.s
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25272 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25273 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25275 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25278 # Test if the assembler supports the extended form of the .section
25279 # directive that specifies section alignment. LTO support uses this,
25280 # but normally only after installation, so we warn but don't fail the
25281 # configure if LTO is enabled but the assembler does not support it.
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25283 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25284 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25285 $as_echo_n "(cached) " >&6
25287 gcc_cv_as_section_has_align
=no
25288 if test $in_tree_gas = yes; then
25289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25290 then gcc_cv_as_section_has_align
=yes
25292 elif test x
$gcc_cv_as != x
; then
25293 $as_echo '.section lto_test,"dr0"' > conftest.s
25294 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25296 (eval $ac_try) 2>&5
25298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25299 test $ac_status = 0; }; }
25301 gcc_cv_as_section_has_align
=yes
25303 echo "configure: failed program was" >&5
25306 rm -f conftest.o conftest.s
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25310 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25312 if test x
$gcc_cv_as_section_has_align != xyes
; then
25313 case ",$enable_languages," in
25315 { $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
25316 $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;}
25323 # Test if the assembler supports the section flag 'e' for specifying
25324 # an excluded section.
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25326 $as_echo_n "checking assembler for .section with e... " >&6; }
25327 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25328 $as_echo_n "(cached) " >&6
25330 gcc_cv_as_section_has_e
=no
25331 if test $in_tree_gas = yes; then
25332 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25333 then gcc_cv_as_section_has_e
=yes
25335 elif test x
$gcc_cv_as != x
; then
25336 $as_echo '.section foo1,"e"
25337 .byte 0,0,0,0' > conftest.s
25338 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25340 (eval $ac_try) 2>&5
25342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25343 test $ac_status = 0; }; }
25345 gcc_cv_as_section_has_e
=yes
25347 echo "configure: failed program was" >&5
25350 rm -f conftest.o conftest.s
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25354 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25357 cat >>confdefs.h
<<_ACEOF
25358 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25363 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25364 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25365 $as_echo_n "(cached) " >&6
25367 gcc_cv_as_ix86_filds
=no
25368 if test x
$gcc_cv_as != x
; then
25369 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25370 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25372 (eval $ac_try) 2>&5
25374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25375 test $ac_status = 0; }; }
25377 gcc_cv_as_ix86_filds
=yes
25379 echo "configure: failed program was" >&5
25382 rm -f conftest.o conftest.s
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25386 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25387 if test $gcc_cv_as_ix86_filds = yes; then
25389 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25394 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25395 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25396 $as_echo_n "(cached) " >&6
25398 gcc_cv_as_ix86_fildq
=no
25399 if test x
$gcc_cv_as != x
; then
25400 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25401 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25403 (eval $ac_try) 2>&5
25405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }; }
25408 gcc_cv_as_ix86_fildq
=yes
25410 echo "configure: failed program was" >&5
25413 rm -f conftest.o conftest.s
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25417 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25418 if test $gcc_cv_as_ix86_fildq = yes; then
25420 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25425 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25426 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25427 $as_echo_n "(cached) " >&6
25429 gcc_cv_as_ix86_cmov_sun_syntax
=no
25430 if test x
$gcc_cv_as != x
; then
25431 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25432 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25434 (eval $ac_try) 2>&5
25436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25437 test $ac_status = 0; }; }
25439 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25441 echo "configure: failed program was" >&5
25444 rm -f conftest.o conftest.s
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25448 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25449 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25451 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25456 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25457 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25458 $as_echo_n "(cached) " >&6
25460 gcc_cv_as_ix86_ffreep
=no
25461 if test x
$gcc_cv_as != x
; then
25462 $as_echo 'ffreep %st(1)' > conftest.s
25463 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25465 (eval $ac_try) 2>&5
25467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25468 test $ac_status = 0; }; }
25470 gcc_cv_as_ix86_ffreep
=yes
25472 echo "configure: failed program was" >&5
25475 rm -f conftest.o conftest.s
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25479 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25480 if test $gcc_cv_as_ix86_ffreep = yes; then
25482 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25487 $as_echo_n "checking assembler for .quad directive... " >&6; }
25488 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25489 $as_echo_n "(cached) " >&6
25491 gcc_cv_as_ix86_quad
=no
25492 if test x
$gcc_cv_as != x
; then
25493 $as_echo '.quad 0' > conftest.s
25494 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25496 (eval $ac_try) 2>&5
25498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25499 test $ac_status = 0; }; }
25501 gcc_cv_as_ix86_quad
=yes
25503 echo "configure: failed program was" >&5
25506 rm -f conftest.o conftest.s
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25510 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25511 if test $gcc_cv_as_ix86_quad = yes; then
25513 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25518 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25519 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25520 $as_echo_n "(cached) " >&6
25522 gcc_cv_as_ix86_sahf
=no
25523 if test x
$gcc_cv_as != x
; then
25526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528 (eval $ac_try) 2>&5
25530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531 test $ac_status = 0; }; }
25533 gcc_cv_as_ix86_sahf
=yes
25535 echo "configure: failed program was" >&5
25538 rm -f conftest.o conftest.s
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25542 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25543 if test $gcc_cv_as_ix86_sahf = yes; then
25545 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25550 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25551 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25552 $as_echo_n "(cached) " >&6
25554 gcc_cv_as_ix86_interunit_movq
=no
25555 if test x
$gcc_cv_as != x
; then
25558 movq %rax, %xmm0' > conftest.s
25559 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25561 (eval $ac_try) 2>&5
25563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25564 test $ac_status = 0; }; }
25566 gcc_cv_as_ix86_interunit_movq
=yes
25568 echo "configure: failed program was" >&5
25571 rm -f conftest.o conftest.s
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25575 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25578 cat >>confdefs.h
<<_ACEOF
25579 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25584 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25585 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25586 $as_echo_n "(cached) " >&6
25588 gcc_cv_as_ix86_hle
=no
25589 if test x
$gcc_cv_as != x
; then
25590 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25591 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593 (eval $ac_try) 2>&5
25595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596 test $ac_status = 0; }; }
25598 gcc_cv_as_ix86_hle
=yes
25600 echo "configure: failed program was" >&5
25603 rm -f conftest.o conftest.s
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25607 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25608 if test $gcc_cv_as_ix86_hle = yes; then
25610 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25615 $as_echo_n "checking assembler for swap suffix... " >&6; }
25616 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25617 $as_echo_n "(cached) " >&6
25619 gcc_cv_as_ix86_swap
=no
25620 if test x
$gcc_cv_as != x
; then
25621 $as_echo 'movl.s %esp, %ebp' > conftest.s
25622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25624 (eval $ac_try) 2>&5
25626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25627 test $ac_status = 0; }; }
25629 gcc_cv_as_ix86_swap
=yes
25631 echo "configure: failed program was" >&5
25634 rm -f conftest.o conftest.s
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25638 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25639 if test $gcc_cv_as_ix86_swap = yes; then
25641 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25646 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25647 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25648 $as_echo_n "(cached) " >&6
25650 gcc_cv_as_ix86_diff_sect_delta
=no
25651 if test x
$gcc_cv_as != x
; then
25652 $as_echo '.section .rodata
25658 .L2: nop' > conftest.s
25659 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25661 (eval $ac_try) 2>&5
25663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664 test $ac_status = 0; }; }
25666 gcc_cv_as_ix86_diff_sect_delta
=yes
25668 echo "configure: failed program was" >&5
25671 rm -f conftest.o conftest.s
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25675 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25676 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25678 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25682 # These two are used unconditionally by i386.[ch]; it is to be defined
25683 # to 1 if the feature is present, 0 otherwise.
25684 as_ix86_gotoff_in_data_opt
=
25685 if test x
$gas = xyes
; then
25686 as_ix86_gotoff_in_data_opt
="--32"
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25689 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25690 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25691 $as_echo_n "(cached) " >&6
25693 gcc_cv_as_ix86_gotoff_in_data
=no
25694 if test $in_tree_gas = yes; then
25695 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25696 then gcc_cv_as_ix86_gotoff_in_data
=yes
25698 elif test x
$gcc_cv_as != x
; then
25703 .long .L0@GOTOFF' > conftest.s
25704 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25706 (eval $ac_try) 2>&5
25708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25709 test $ac_status = 0; }; }
25711 gcc_cv_as_ix86_gotoff_in_data
=yes
25713 echo "configure: failed program was" >&5
25716 rm -f conftest.o conftest.s
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25720 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25723 cat >>confdefs.h
<<_ACEOF
25724 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25729 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25730 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25731 $as_echo_n "(cached) " >&6
25733 gcc_cv_as_ix86_rep_lock_prefix
=no
25734 if test x
$gcc_cv_as != x
; then
25735 $as_echo 'rep movsl
25740 lock addl %edi, (%eax,%esi)
25741 lock orl $0, (%esp)' > conftest.s
25742 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25744 (eval $ac_try) 2>&5
25746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25747 test $ac_status = 0; }; }
25749 gcc_cv_as_ix86_rep_lock_prefix
=yes
25751 echo "configure: failed program was" >&5
25754 rm -f conftest.o conftest.s
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25758 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25759 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25761 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25766 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25767 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25768 $as_echo_n "(cached) " >&6
25770 gcc_cv_as_ix86_ud2
=no
25771 if test x
$gcc_cv_as != x
; then
25772 $as_echo 'ud2' > conftest.s
25773 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25775 (eval $ac_try) 2>&5
25777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25778 test $ac_status = 0; }; }
25780 gcc_cv_as_ix86_ud2
=yes
25782 echo "configure: failed program was" >&5
25785 rm -f conftest.o conftest.s
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25789 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25790 if test $gcc_cv_as_ix86_ud2 = yes; then
25792 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25797 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25798 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25799 $as_echo_n "(cached) " >&6
25801 gcc_cv_as_ix86_tlsgdplt
=no
25802 if test x
$gcc_cv_as != x
; then
25803 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25804 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25806 (eval $ac_try) 2>&5
25808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25809 test $ac_status = 0; }; }
25811 if test x
$gcc_cv_ld != x \
25812 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25813 gcc_cv_as_ix86_tlsgdplt
=yes
25817 echo "configure: failed program was" >&5
25820 rm -f conftest.o conftest.s
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25824 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25825 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25827 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25832 .section .tdata,"aw'$tls_section_flag'",@progbits
25834 .section .text,"ax",@progbits
25835 call tls_ld@tlsldmplt'
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25837 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25838 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25839 $as_echo_n "(cached) " >&6
25841 gcc_cv_as_ix86_tlsldmplt
=no
25842 if test x
$gcc_cv_as != x
; then
25843 $as_echo "$conftest_s" > conftest.s
25844 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25846 (eval $ac_try) 2>&5
25848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25849 test $ac_status = 0; }; }
25851 if test x
$gcc_cv_ld != x \
25852 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25853 gcc_cv_as_ix86_tlsldmplt
=yes
25857 echo "configure: failed program was" >&5
25860 rm -f conftest.o conftest.s
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25864 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25867 cat >>confdefs.h
<<_ACEOF
25868 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25872 # Enforce 32-bit output with gas and gld.
25873 if test x
$gas = xyes
; then
25874 as_ix86_tls_ldm_opt
="--32"
25876 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25877 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25878 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25880 ld_ix86_tls_ldm_opt
="-melf_i386"
25884 .section .text,"ax",@progbits
25886 .type _start, @function
25888 leal value@tlsldm(%ebx), %eax
25889 call ___tls_get_addr@plt
25891 .section .tdata,"aw'$tls_section_flag'",@progbits
25892 .type value, @object
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25895 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25896 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25897 $as_echo_n "(cached) " >&6
25899 gcc_cv_as_ix86_tlsldm
=no
25900 if test x
$gcc_cv_as != x
; then
25901 $as_echo "$conftest_s" > conftest.s
25902 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25904 (eval $ac_try) 2>&5
25906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25907 test $ac_status = 0; }; }
25909 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25910 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25911 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25912 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25913 gcc_cv_as_ix86_tlsldm
=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_tlsldm" >&5
25925 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25928 cat >>confdefs.h
<<_ACEOF
25929 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25937 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25938 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25939 $as_echo_n "(cached) " >&6
25941 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25942 if test $in_tree_gas = yes; then
25943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25944 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25946 elif test x
$gcc_cv_as != x
; then
25948 addl r15 = @ltoffx(x#), gp
25950 ld8.mov r16 = [r15], x#' > conftest.s
25951 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25953 (eval $ac_try) 2>&5
25955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25956 test $ac_status = 0; }; }
25958 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25960 echo "configure: failed program was" >&5
25963 rm -f conftest.o conftest.s
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25967 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25968 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25970 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25981 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25982 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25983 $as_echo_n "(cached) " >&6
25985 gcc_cv_as_machine_directive
=no
25986 if test x
$gcc_cv_as != x
; then
25987 $as_echo ' .machine ppc7400' > conftest.s
25988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25990 (eval $ac_try) 2>&5
25992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25993 test $ac_status = 0; }; }
25995 gcc_cv_as_machine_directive
=yes
25997 echo "configure: failed program was" >&5
26000 rm -f conftest.o conftest.s
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26004 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26006 if test x
$gcc_cv_as_machine_directive != xyes
; then
26007 echo "*** This target requires an assembler supporting \".machine\"" >&2
26008 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26009 test x
$build = x
$target && exit 1
26015 *-*-aix*) conftest_s
=' .machine "pwr5"
26018 *-*-darwin*) conftest_s
=' .text
26020 *) conftest_s
=' .machine power4
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26026 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26027 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26028 $as_echo_n "(cached) " >&6
26030 gcc_cv_as_powerpc_mfcrf
=no
26031 if test $in_tree_gas = yes; then
26032 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26033 then gcc_cv_as_powerpc_mfcrf
=yes
26035 elif test x
$gcc_cv_as != x
; then
26036 $as_echo "$conftest_s" > conftest.s
26037 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26039 (eval $ac_try) 2>&5
26041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26042 test $ac_status = 0; }; }
26044 gcc_cv_as_powerpc_mfcrf
=yes
26046 echo "configure: failed program was" >&5
26049 rm -f conftest.o conftest.s
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26053 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26054 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26056 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26061 *-*-aix*) conftest_s
=' .machine "pwr5"
26064 *) conftest_s
=' .machine power5
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26070 $as_echo_n "checking assembler for popcntb support... " >&6; }
26071 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26072 $as_echo_n "(cached) " >&6
26074 gcc_cv_as_powerpc_popcntb
=no
26075 if test $in_tree_gas = yes; then
26076 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26077 then gcc_cv_as_powerpc_popcntb
=yes
26079 elif test x
$gcc_cv_as != x
; then
26080 $as_echo "$conftest_s" > conftest.s
26081 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26083 (eval $ac_try) 2>&5
26085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26086 test $ac_status = 0; }; }
26088 gcc_cv_as_powerpc_popcntb
=yes
26090 echo "configure: failed program was" >&5
26093 rm -f conftest.o conftest.s
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26097 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26098 if test $gcc_cv_as_powerpc_popcntb = yes; then
26100 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26105 *-*-aix*) conftest_s
=' .machine "pwr5x"
26108 *) conftest_s
=' .machine power5
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26114 $as_echo_n "checking assembler for fp round support... " >&6; }
26115 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26116 $as_echo_n "(cached) " >&6
26118 gcc_cv_as_powerpc_fprnd
=no
26119 if test $in_tree_gas = yes; then
26120 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26121 then gcc_cv_as_powerpc_fprnd
=yes
26123 elif test x
$gcc_cv_as != x
; then
26124 $as_echo "$conftest_s" > conftest.s
26125 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26127 (eval $ac_try) 2>&5
26129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26130 test $ac_status = 0; }; }
26132 gcc_cv_as_powerpc_fprnd
=yes
26134 echo "configure: failed program was" >&5
26137 rm -f conftest.o conftest.s
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26141 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26142 if test $gcc_cv_as_powerpc_fprnd = yes; then
26144 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26149 *-*-aix*) conftest_s
=' .machine "pwr6"
26152 *) conftest_s
=' .machine power6
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26158 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26159 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26160 $as_echo_n "(cached) " >&6
26162 gcc_cv_as_powerpc_mfpgpr
=no
26163 if test $in_tree_gas = yes; then
26164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26165 then gcc_cv_as_powerpc_mfpgpr
=yes
26167 elif test x
$gcc_cv_as != x
; then
26168 $as_echo "$conftest_s" > conftest.s
26169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26171 (eval $ac_try) 2>&5
26173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26174 test $ac_status = 0; }; }
26176 gcc_cv_as_powerpc_mfpgpr
=yes
26178 echo "configure: failed program was" >&5
26181 rm -f conftest.o conftest.s
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26185 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26186 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26188 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26193 *-*-aix*) conftest_s
=' .csect .text[PR]
26195 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26199 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26200 *) conftest_s
=' .text
26202 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26206 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26207 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26208 $as_echo_n "(cached) " >&6
26210 gcc_cv_as_powerpc_rel16
=no
26211 if test $in_tree_gas = yes; then
26212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26213 then gcc_cv_as_powerpc_rel16
=yes
26215 elif test x
$gcc_cv_as != x
; then
26216 $as_echo "$conftest_s" > conftest.s
26217 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26219 (eval $ac_try) 2>&5
26221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26222 test $ac_status = 0; }; }
26224 gcc_cv_as_powerpc_rel16
=yes
26226 echo "configure: failed program was" >&5
26229 rm -f conftest.o conftest.s
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26233 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26234 if test $gcc_cv_as_powerpc_rel16 = yes; then
26236 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26241 *-*-aix*) conftest_s
=' .machine "pwr6"
26244 *) conftest_s
=' .machine power6
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26250 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26251 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26252 $as_echo_n "(cached) " >&6
26254 gcc_cv_as_powerpc_cmpb
=no
26255 if test $in_tree_gas = yes; then
26256 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26257 then gcc_cv_as_powerpc_cmpb
=yes
26259 elif test x
$gcc_cv_as != x
; then
26260 $as_echo "$conftest_s" > conftest.s
26261 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26263 (eval $ac_try) 2>&5
26265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26266 test $ac_status = 0; }; }
26268 gcc_cv_as_powerpc_cmpb
=yes
26270 echo "configure: failed program was" >&5
26273 rm -f conftest.o conftest.s
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26277 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26278 if test $gcc_cv_as_powerpc_cmpb = yes; then
26280 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26285 *-*-aix*) conftest_s
=' .machine "pwr6"
26288 *) conftest_s
=' .machine power6
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26294 $as_echo_n "checking assembler for decimal float support... " >&6; }
26295 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26296 $as_echo_n "(cached) " >&6
26298 gcc_cv_as_powerpc_dfp
=no
26299 if test $in_tree_gas = yes; then
26300 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26301 then gcc_cv_as_powerpc_dfp
=yes
26303 elif test x
$gcc_cv_as != x
; then
26304 $as_echo "$conftest_s" > conftest.s
26305 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26307 (eval $ac_try) 2>&5
26309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26310 test $ac_status = 0; }; }
26312 gcc_cv_as_powerpc_dfp
=yes
26314 echo "configure: failed program was" >&5
26317 rm -f conftest.o conftest.s
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26321 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26322 if test $gcc_cv_as_powerpc_dfp = yes; then
26324 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26329 *-*-aix*) conftest_s
=' .machine "pwr7"
26332 *) conftest_s
=' .machine power7
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26338 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26339 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26340 $as_echo_n "(cached) " >&6
26342 gcc_cv_as_powerpc_vsx
=no
26343 if test $in_tree_gas = yes; then
26344 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26345 then gcc_cv_as_powerpc_vsx
=yes
26347 elif test x
$gcc_cv_as != x
; then
26348 $as_echo "$conftest_s" > conftest.s
26349 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26351 (eval $ac_try) 2>&5
26353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26354 test $ac_status = 0; }; }
26356 gcc_cv_as_powerpc_vsx
=yes
26358 echo "configure: failed program was" >&5
26361 rm -f conftest.o conftest.s
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26365 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26366 if test $gcc_cv_as_powerpc_vsx = yes; then
26368 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26373 *-*-aix*) conftest_s
=' .machine "pwr7"
26376 *) conftest_s
=' .machine power7
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26382 $as_echo_n "checking assembler for popcntd support... " >&6; }
26383 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26384 $as_echo_n "(cached) " >&6
26386 gcc_cv_as_powerpc_popcntd
=no
26387 if test $in_tree_gas = yes; then
26388 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26389 then gcc_cv_as_powerpc_popcntd
=yes
26391 elif test x
$gcc_cv_as != x
; then
26392 $as_echo "$conftest_s" > conftest.s
26393 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26395 (eval $ac_try) 2>&5
26397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26398 test $ac_status = 0; }; }
26400 gcc_cv_as_powerpc_popcntd
=yes
26402 echo "configure: failed program was" >&5
26405 rm -f conftest.o conftest.s
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26409 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26410 if test $gcc_cv_as_powerpc_popcntd = yes; then
26412 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26417 *-*-aix*) conftest_s
=' .machine "pwr8"
26418 .csect .text[PR]';;
26419 *) conftest_s
=' .machine power8
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26424 $as_echo_n "checking assembler for power8 support... " >&6; }
26425 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26426 $as_echo_n "(cached) " >&6
26428 gcc_cv_as_powerpc_power8
=no
26429 if test $in_tree_gas = yes; then
26430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26431 then gcc_cv_as_powerpc_power8
=yes
26433 elif test x
$gcc_cv_as != x
; then
26434 $as_echo "$conftest_s" > conftest.s
26435 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26437 (eval $ac_try) 2>&5
26439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440 test $ac_status = 0; }; }
26442 gcc_cv_as_powerpc_power8
=yes
26444 echo "configure: failed program was" >&5
26447 rm -f conftest.o conftest.s
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26451 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26452 if test $gcc_cv_as_powerpc_power8 = yes; then
26454 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26459 *-*-aix*) conftest_s
=' .machine "pwr9"
26460 .csect .text[PR]';;
26461 *) conftest_s
=' .machine power9
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26466 $as_echo_n "checking assembler for power9 support... " >&6; }
26467 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26468 $as_echo_n "(cached) " >&6
26470 gcc_cv_as_powerpc_power9
=no
26471 if test $in_tree_gas = yes; then
26472 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26473 then gcc_cv_as_powerpc_power9
=yes
26475 elif test x
$gcc_cv_as != x
; then
26476 $as_echo "$conftest_s" > conftest.s
26477 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26479 (eval $ac_try) 2>&5
26481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26482 test $ac_status = 0; }; }
26484 gcc_cv_as_powerpc_power9
=yes
26486 echo "configure: failed program was" >&5
26489 rm -f conftest.o conftest.s
26492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26493 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26494 if test $gcc_cv_as_powerpc_power9 = yes; then
26496 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26501 *-*-aix*) conftest_s
=' .csect .text[PR]
26503 *) conftest_s
=' .text
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26508 $as_echo_n "checking assembler for lwsync support... " >&6; }
26509 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26510 $as_echo_n "(cached) " >&6
26512 gcc_cv_as_powerpc_lwsync
=no
26513 if test $in_tree_gas = yes; then
26514 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26515 then gcc_cv_as_powerpc_lwsync
=yes
26517 elif test x
$gcc_cv_as != x
; then
26518 $as_echo "$conftest_s" > conftest.s
26519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26521 (eval $ac_try) 2>&5
26523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26524 test $ac_status = 0; }; }
26526 gcc_cv_as_powerpc_lwsync
=yes
26528 echo "configure: failed program was" >&5
26531 rm -f conftest.o conftest.s
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26535 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26536 if test $gcc_cv_as_powerpc_lwsync = yes; then
26538 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26543 *-*-aix*) conftest_s
=' .machine "476"
26546 *) conftest_s
=' .machine "476"
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26552 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26553 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26554 $as_echo_n "(cached) " >&6
26556 gcc_cv_as_powerpc_dci
=no
26557 if test $in_tree_gas = yes; then
26558 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26559 then gcc_cv_as_powerpc_dci
=yes
26561 elif test x
$gcc_cv_as != x
; then
26562 $as_echo "$conftest_s" > conftest.s
26563 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26565 (eval $ac_try) 2>&5
26567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26568 test $ac_status = 0; }; }
26570 gcc_cv_as_powerpc_dci
=yes
26572 echo "configure: failed program was" >&5
26575 rm -f conftest.o conftest.s
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26579 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26580 if test $gcc_cv_as_powerpc_dci = yes; then
26582 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26587 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26588 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26589 $as_echo_n "(cached) " >&6
26591 gcc_cv_as_powerpc_gnu_attribute
=no
26592 if test $in_tree_gas = yes; then
26593 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26594 then gcc_cv_as_powerpc_gnu_attribute
=yes
26596 elif test x
$gcc_cv_as != x
; then
26597 $as_echo '.gnu_attribute 4,1' > conftest.s
26598 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26600 (eval $ac_try) 2>&5
26602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26603 test $ac_status = 0; }; }
26605 gcc_cv_as_powerpc_gnu_attribute
=yes
26607 echo "configure: failed program was" >&5
26610 rm -f conftest.o conftest.s
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26614 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26615 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26617 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26622 $as_echo_n "checking assembler for tls marker support... " >&6; }
26623 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26624 $as_echo_n "(cached) " >&6
26626 gcc_cv_as_powerpc_tls_markers
=no
26627 if test $in_tree_gas = yes; then
26628 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26629 then gcc_cv_as_powerpc_tls_markers
=yes
26631 elif test x
$gcc_cv_as != x
; then
26632 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26633 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26635 (eval $ac_try) 2>&5
26637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26638 test $ac_status = 0; }; }
26640 gcc_cv_as_powerpc_tls_markers
=yes
26642 echo "configure: failed program was" >&5
26645 rm -f conftest.o conftest.s
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26649 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26650 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26652 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26657 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26658 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26659 $as_echo_n "(cached) " >&6
26661 gcc_cv_as_powerpc_entry_markers
=no
26662 if test $in_tree_gas = yes; then
26663 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26664 then gcc_cv_as_powerpc_entry_markers
=yes
26666 elif test x
$gcc_cv_as != x
; then
26667 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26668 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26670 (eval $ac_try) 2>&5
26672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26673 test $ac_status = 0; }; }
26675 gcc_cv_as_powerpc_entry_markers
=yes
26677 echo "configure: failed program was" >&5
26680 rm -f conftest.o conftest.s
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26684 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26685 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26687 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26694 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26695 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26696 $as_echo_n "(cached) " >&6
26698 gcc_cv_as_aix_ref
=no
26699 if test $in_tree_gas = yes; then
26700 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26701 then gcc_cv_as_aix_ref
=yes
26703 elif test x
$gcc_cv_as != x
; then
26704 $as_echo ' .csect stuff[rw]
26710 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26712 (eval $ac_try) 2>&5
26714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26715 test $ac_status = 0; }; }
26717 gcc_cv_as_aix_ref
=yes
26719 echo "configure: failed program was" >&5
26722 rm -f conftest.o conftest.s
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26726 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26727 if test $gcc_cv_as_aix_ref = yes; then
26729 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26734 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26735 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26736 $as_echo_n "(cached) " >&6
26738 gcc_cv_as_aix_dwloc
=no
26739 if test $in_tree_gas = yes; then
26740 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26741 then gcc_cv_as_aix_dwloc
=yes
26743 elif test x
$gcc_cv_as != x
; then
26744 $as_echo ' .dwsect 0xA0000
26746 .vbyte 4,Lframe..0:
26748 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26750 (eval $ac_try) 2>&5
26752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26753 test $ac_status = 0; }; }
26755 gcc_cv_as_aix_dwloc
=yes
26757 echo "configure: failed program was" >&5
26760 rm -f conftest.o conftest.s
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26764 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26765 if test $gcc_cv_as_aix_dwloc = yes; then
26767 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26776 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26777 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26778 $as_echo_n "(cached) " >&6
26780 gcc_cv_as_mips_explicit_relocs
=no
26781 if test $in_tree_gas = yes; then
26782 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26783 then gcc_cv_as_mips_explicit_relocs
=yes
26785 elif test x
$gcc_cv_as != x
; then
26786 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26787 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26789 (eval $ac_try) 2>&5
26791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26792 test $ac_status = 0; }; }
26794 gcc_cv_as_mips_explicit_relocs
=yes
26796 echo "configure: failed program was" >&5
26799 rm -f conftest.o conftest.s
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26803 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26804 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26805 if test x
$target_cpu_default = x
26806 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26807 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26812 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26813 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26814 $as_echo_n "(cached) " >&6
26816 gcc_cv_as_mips_no_shared
=no
26817 if test $in_tree_gas = yes; then
26818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26819 then gcc_cv_as_mips_no_shared
=yes
26821 elif test x
$gcc_cv_as != x
; then
26822 $as_echo 'nop' > conftest.s
26823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26825 (eval $ac_try) 2>&5
26827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26828 test $ac_status = 0; }; }
26830 gcc_cv_as_mips_no_shared
=yes
26832 echo "configure: failed program was" >&5
26835 rm -f conftest.o conftest.s
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26839 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26840 if test $gcc_cv_as_mips_no_shared = yes; then
26842 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26847 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26848 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26849 $as_echo_n "(cached) " >&6
26851 gcc_cv_as_mips_gnu_attribute
=no
26852 if test $in_tree_gas = yes; then
26853 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26854 then gcc_cv_as_mips_gnu_attribute
=yes
26856 elif test x
$gcc_cv_as != x
; then
26857 $as_echo '.gnu_attribute 4,1' > conftest.s
26858 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26860 (eval $ac_try) 2>&5
26862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26863 test $ac_status = 0; }; }
26865 gcc_cv_as_mips_gnu_attribute
=yes
26867 echo "configure: failed program was" >&5
26870 rm -f conftest.o conftest.s
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26874 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26875 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26877 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26882 $as_echo_n "checking assembler for .module support... " >&6; }
26883 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26884 $as_echo_n "(cached) " >&6
26886 gcc_cv_as_mips_dot_module
=no
26887 if test x
$gcc_cv_as != x
; then
26888 $as_echo '.module mips2
26889 .module fp=xx' > conftest.s
26890 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26892 (eval $ac_try) 2>&5
26894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26895 test $ac_status = 0; }; }
26897 gcc_cv_as_mips_dot_module
=yes
26899 echo "configure: failed program was" >&5
26902 rm -f conftest.o conftest.s
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26906 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26907 if test $gcc_cv_as_mips_dot_module = yes; then
26909 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26912 if test x
$gcc_cv_as_mips_dot_module = xno \
26913 && test x
$with_fp_32 != x
; then
26914 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26918 $as_echo_n "checking assembler for .micromips support... " >&6; }
26919 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26920 $as_echo_n "(cached) " >&6
26922 gcc_cv_as_micromips_support
=no
26923 if test x
$gcc_cv_as != x
; then
26924 $as_echo '.set micromips' > conftest.s
26925 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26927 (eval $ac_try) 2>&5
26929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26930 test $ac_status = 0; }; }
26932 gcc_cv_as_micromips_support
=yes
26934 echo "configure: failed program was" >&5
26937 rm -f conftest.o conftest.s
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26941 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26942 if test $gcc_cv_as_micromips_support = yes; then
26944 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26949 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26950 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26951 $as_echo_n "(cached) " >&6
26953 gcc_cv_as_mips_dtprelword
=no
26954 if test $in_tree_gas = yes; then
26955 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26956 then gcc_cv_as_mips_dtprelword
=yes
26958 elif test x
$gcc_cv_as != x
; then
26959 $as_echo '.section .tdata,"awT",@progbits
26963 .dtprelword x+0x8000' > conftest.s
26964 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26966 (eval $ac_try) 2>&5
26968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26969 test $ac_status = 0; }; }
26971 gcc_cv_as_mips_dtprelword
=yes
26973 echo "configure: failed program was" >&5
26976 rm -f conftest.o conftest.s
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26980 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26981 if test $gcc_cv_as_mips_dtprelword = yes; then
26983 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26988 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26989 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26990 $as_echo_n "(cached) " >&6
26992 gcc_cv_as_mips_dspr1_mult
=no
26993 if test x
$gcc_cv_as != x
; then
26994 $as_echo ' .set mips32r2
27002 multu $ac3,$4,$5' > conftest.s
27003 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27005 (eval $ac_try) 2>&5
27007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27008 test $ac_status = 0; }; }
27010 gcc_cv_as_mips_dspr1_mult
=yes
27012 echo "configure: failed program was" >&5
27015 rm -f conftest.o conftest.s
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27019 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27020 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27022 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27027 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27028 gcc_cv_as_ld_jalr_reloc
=no
27029 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27030 if test $in_tree_ld = yes ; then
27031 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 \
27032 && test $in_tree_ld_is_elf = yes; then
27033 gcc_cv_as_ld_jalr_reloc
=yes
27035 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27036 echo ' .ent x' > conftest.s
27037 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27038 echo ' lw $25,%call16(y)($28)' >> conftest.s
27039 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27040 echo '1: jalr $25' >> conftest.s
27041 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27042 echo '1: jalr $25' >> conftest.s
27043 echo ' .end x' >> conftest.s
27044 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27045 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27046 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27047 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27048 gcc_cv_as_ld_jalr_reloc
=yes
27054 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27055 if test x
$target_cpu_default = x
; then
27056 target_cpu_default
=MASK_RELAX_PIC_CALLS
27058 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27062 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27065 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27066 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27067 $as_echo_n "(cached) " >&6
27069 gcc_cv_ld_mips_personality_relaxation
=no
27070 if test $in_tree_ld = yes ; then
27071 if test "$gcc_cv_gld_major_version" -eq 2 \
27072 -a "$gcc_cv_gld_minor_version" -ge 21 \
27073 -o "$gcc_cv_gld_major_version" -gt 2; then
27074 gcc_cv_ld_mips_personality_relaxation
=yes
27076 elif test x
$gcc_cv_as != x \
27077 -a x
$gcc_cv_ld != x \
27078 -a x
$gcc_cv_readelf != x
; then
27079 cat > conftest.s
<<EOF
27081 .cfi_personality 0x80,indirect_ptr
27088 .section .data,"aw",@progbits
27092 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27093 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27094 if $gcc_cv_readelf -d conftest
2>&1 \
27095 |
grep TEXTREL
> /dev
/null
2>&1; then
27097 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27098 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27101 gcc_cv_ld_mips_personality_relaxation
=yes
27105 rm -f conftest.s conftest.o conftest
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27108 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27109 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27111 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27116 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27117 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27118 $as_echo_n "(cached) " >&6
27120 gcc_cv_as_mips_nan
=no
27121 if test x
$gcc_cv_as != x
; then
27122 $as_echo '' > conftest.s
27123 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27125 (eval $ac_try) 2>&5
27127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27128 test $ac_status = 0; }; }
27130 gcc_cv_as_mips_nan
=yes
27132 echo "configure: failed program was" >&5
27135 rm -f conftest.o conftest.s
27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27139 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27140 if test $gcc_cv_as_mips_nan = yes; then
27142 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27145 if test x
$gcc_cv_as_mips_nan = xno \
27146 && test x
$with_nan != x
; then
27147 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27152 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27153 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27154 $as_echo_n "(cached) " >&6
27156 gcc_cv_as_s390_gnu_attribute
=no
27157 if test $in_tree_gas = yes; then
27158 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27159 then gcc_cv_as_s390_gnu_attribute
=yes
27161 elif test x
$gcc_cv_as != x
; then
27162 $as_echo '.gnu_attribute 8,1' > conftest.s
27163 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27165 (eval $ac_try) 2>&5
27167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27168 test $ac_status = 0; }; }
27170 gcc_cv_as_s390_gnu_attribute
=yes
27172 echo "configure: failed program was" >&5
27175 rm -f conftest.o conftest.s
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27179 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27180 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27182 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27186 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27187 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27188 $as_echo_n "(cached) " >&6
27190 gcc_cv_as_s390_machine_machinemode
=no
27191 if test $in_tree_gas = yes; then
27192 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27193 then gcc_cv_as_s390_machine_machinemode
=yes
27195 elif test x
$gcc_cv_as != x
; then
27196 $as_echo ' .machinemode push
27199 .machine pop' > conftest.s
27200 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27202 (eval $ac_try) 2>&5
27204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27205 test $ac_status = 0; }; }
27207 gcc_cv_as_s390_machine_machinemode
=yes
27209 echo "configure: failed program was" >&5
27212 rm -f conftest.o conftest.s
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27216 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27217 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27219 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27223 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27224 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27225 $as_echo_n "(cached) " >&6
27227 gcc_cv_as_s390_architecture_modifiers
=no
27228 if test $in_tree_gas = yes; then
27229 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27230 then gcc_cv_as_s390_architecture_modifiers
=yes
27232 elif test x
$gcc_cv_as != x
; then
27233 $as_echo ' .machine z13+vx ' > conftest.s
27234 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27236 (eval $ac_try) 2>&5
27238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27239 test $ac_status = 0; }; }
27241 gcc_cv_as_s390_architecture_modifiers
=yes
27243 echo "configure: failed program was" >&5
27246 rm -f conftest.o conftest.s
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27250 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27251 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27253 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27259 # Mips and HP-UX need the GNU assembler.
27260 # Linux on IA64 might be able to use the Intel assembler.
27263 mips
*-*-* |
*-*-hpux* )
27264 if test x
$gas_flag = xyes \
27265 ||
test x
"$host" != x
"$build" \
27266 ||
test ! -x "$gcc_cv_as" \
27267 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27270 echo "*** This configuration requires the GNU assembler" >&2
27276 # ??? Not all targets support dwarf2 debug_line, even within a version
27277 # of gas. Moreover, we need to emit a valid instruction to trigger any
27278 # info to the output file. So, as supported targets are added to gas 2.11,
27279 # add some instruction here to (also) show we expect this might work.
27280 # ??? Once 2.11 is released, probably need to add first known working
27281 # version to the per-target configury.
27282 case "$cpu_type" in
27283 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27284 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27285 | visium | xstormy16 | xtensa
)
27295 if test x
"$insn" != x
; then
27297 .file 1 \"conftest.s\"
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27301 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27302 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27303 $as_echo_n "(cached) " >&6
27305 gcc_cv_as_dwarf2_debug_line
=no
27306 if test $in_tree_gas = yes; then
27307 if test $in_tree_gas_is_elf = yes \
27308 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27309 then gcc_cv_as_dwarf2_debug_line
=yes
27311 elif test x
$gcc_cv_as != x
; then
27312 $as_echo "$conftest_s" > conftest.s
27313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27315 (eval $ac_try) 2>&5
27317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27318 test $ac_status = 0; }; }
27320 if test x
$gcc_cv_objdump != x \
27321 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27322 |
grep debug_line
> /dev
/null
2>&1; then
27323 gcc_cv_as_dwarf2_debug_line
=yes
27326 echo "configure: failed program was" >&5
27329 rm -f conftest.o conftest.s
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27333 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27336 # The .debug_line file table must be in the exact order that
27337 # we specified the files, since these indices are also used
27338 # by DW_AT_decl_file. Approximate this test by testing if
27339 # the assembler bitches if the same index is assigned twice.
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27341 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27342 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27343 $as_echo_n "(cached) " >&6
27345 gcc_cv_as_dwarf2_file_buggy
=no
27346 if test x
$gcc_cv_as != x
; then
27347 $as_echo ' .file 1 "foo.s"
27348 .file 1 "bar.s"' > conftest.s
27349 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27351 (eval $ac_try) 2>&5
27353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27354 test $ac_status = 0; }; }
27356 gcc_cv_as_dwarf2_file_buggy
=yes
27358 echo "configure: failed program was" >&5
27361 rm -f conftest.o conftest.s
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27365 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27368 if test $gcc_cv_as_dwarf2_debug_line = yes \
27369 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27371 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27376 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27377 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27378 $as_echo_n "(cached) " >&6
27380 gcc_cv_as_gdwarf2_flag
=no
27381 if test $in_tree_gas = yes; then
27382 if test $in_tree_gas_is_elf = yes \
27383 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27384 then gcc_cv_as_gdwarf2_flag
=yes
27386 elif test x
$gcc_cv_as != x
; then
27387 $as_echo "$insn" > conftest.s
27388 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27390 (eval $ac_try) 2>&5
27392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27393 test $ac_status = 0; }; }
27395 gcc_cv_as_gdwarf2_flag
=yes
27397 echo "configure: failed program was" >&5
27400 rm -f conftest.o conftest.s
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27404 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27405 if test $gcc_cv_as_gdwarf2_flag = yes; then
27407 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27412 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27413 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27414 $as_echo_n "(cached) " >&6
27416 gcc_cv_as_gstabs_flag
=no
27417 if test $in_tree_gas = yes; then
27418 if test $in_tree_gas_is_elf = yes \
27419 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27420 then gcc_cv_as_gstabs_flag
=yes
27422 elif test x
$gcc_cv_as != x
; then
27423 $as_echo "$insn" > conftest.s
27424 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27426 (eval $ac_try) 2>&5
27428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27429 test $ac_status = 0; }; }
27431 gcc_cv_as_gstabs_flag
=yes
27433 echo "configure: failed program was" >&5
27436 rm -f conftest.o conftest.s
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27440 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27441 if test $gcc_cv_as_gstabs_flag = yes; then
27443 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27448 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27449 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27450 $as_echo_n "(cached) " >&6
27452 gcc_cv_as_debug_prefix_map_flag
=no
27453 if test $in_tree_gas = yes; then
27454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27455 then gcc_cv_as_debug_prefix_map_flag
=yes
27457 elif test x
$gcc_cv_as != x
; then
27458 $as_echo "$insn" > conftest.s
27459 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27461 (eval $ac_try) 2>&5
27463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27464 test $ac_status = 0; }; }
27466 gcc_cv_as_debug_prefix_map_flag
=yes
27468 echo "configure: failed program was" >&5
27471 rm -f conftest.o conftest.s
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27475 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27476 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27478 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27484 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27485 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27486 $as_echo_n "(cached) " >&6
27488 gcc_cv_as_compress_debug
=no
27489 if test x
$gcc_cv_as != x
; then
27490 $as_echo '' > conftest.s
27491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27493 (eval $ac_try) 2>&5
27495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27496 test $ac_status = 0; }; }
27498 # gas compiled without zlib cannot compress debug sections and warns
27499 # about it, but still exits successfully. So check for this, too.
27500 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27502 gcc_cv_as_compress_debug
=0
27503 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27505 gcc_cv_as_compress_debug
=1
27506 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27507 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27509 gcc_cv_as_compress_debug
=0
27510 # FIXME: Future gas versions will support ELF gABI style via
27511 # --compress-debug-sections[=type].
27514 echo "configure: failed program was" >&5
27517 rm -f conftest.o conftest.s
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27521 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27524 cat >>confdefs.h
<<_ACEOF
27525 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27529 cat >>confdefs.h
<<_ACEOF
27530 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27534 cat >>confdefs.h
<<_ACEOF
27535 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27540 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27541 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27542 $as_echo_n "(cached) " >&6
27544 gcc_cv_as_lcomm_with_alignment
=no
27545 if test x
$gcc_cv_as != x
; then
27546 $as_echo '.lcomm bar,4,16' > conftest.s
27547 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27549 (eval $ac_try) 2>&5
27551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27552 test $ac_status = 0; }; }
27554 gcc_cv_as_lcomm_with_alignment
=yes
27556 echo "configure: failed program was" >&5
27559 rm -f conftest.o conftest.s
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27563 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27564 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27566 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27570 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27571 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27572 && test "$prefix" != "NONE"; then
27574 cat >>confdefs.h
<<_ACEOF
27575 #define PREFIX_INCLUDE_DIR "$prefix/include"
27580 # Determine the version of glibc, if any, used on the target.
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27582 $as_echo_n "checking for target glibc version... " >&6; }
27584 # Check whether --with-glibc-version was given.
27585 if test "${with_glibc_version+set}" = set; then :
27586 withval
=$with_glibc_version;
27587 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27588 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27589 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27591 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27595 glibc_version_major
=0
27596 glibc_version_minor
=0
27597 if test -f $target_header_dir/features.h \
27598 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27599 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27600 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27601 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27606 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27608 cat >>confdefs.h
<<_ACEOF
27609 #define TARGET_GLIBC_MAJOR $glibc_version_major
27613 cat >>confdefs.h
<<_ACEOF
27614 #define TARGET_GLIBC_MINOR $glibc_version_minor
27618 # Check whether --enable-gnu-unique-object was given.
27619 if test "${enable_gnu_unique_object+set}" = set; then :
27620 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27622 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27623 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27627 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27628 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27629 $as_echo_n "(cached) " >&6
27631 gcc_cv_as_gnu_unique_object
=no
27632 if test $in_tree_gas = yes; then
27633 if test $in_tree_gas_is_elf = yes \
27634 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27635 then gcc_cv_as_gnu_unique_object
=yes
27637 elif test x
$gcc_cv_as != x
; then
27638 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27639 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27641 (eval $ac_try) 2>&5
27643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27644 test $ac_status = 0; }; }
27646 gcc_cv_as_gnu_unique_object
=yes
27648 echo "configure: failed program was" >&5
27651 rm -f conftest.o conftest.s
27654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27655 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27656 if test $gcc_cv_as_gnu_unique_object = yes; then
27657 # We need to unquote above to to use the definition from config.gcc.
27658 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27660 if test $glibc_version_major -gt 2 \
27661 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27662 enable_gnu_unique_object
=yes
27668 if test x
$enable_gnu_unique_object = xyes
; then
27670 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27675 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27676 if test "${gcc_cv_as_line_zero+set}" = set; then :
27677 $as_echo_n "(cached) " >&6
27679 gcc_cv_as_line_zero
=no
27680 if test $in_tree_gas = yes; then
27681 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27682 then gcc_cv_as_line_zero
=yes
27684 elif test "x$gcc_cv_as" != x
; then
27685 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27686 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27688 (eval $ac_try) 2>&5
27690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27691 test $ac_status = 0; }; } &&
27692 test "x`cat conftest.out`" = x
27694 gcc_cv_as_line_zero
=yes
27696 echo "configure: failed program was" >&5
27698 echo "configure: error output was" >&5
27699 cat conftest.out
>&5
27701 rm -f conftest.o conftest.s conftest.out
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27705 $as_echo "$gcc_cv_as_line_zero" >&6; }
27706 if test "x$gcc_cv_as_line_zero" = xyes
; then
27708 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27713 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27714 gcc_cv_ld_eh_frame_hdr
=no
27715 if test $in_tree_ld = yes ; then
27716 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 \
27717 && test $in_tree_ld_is_elf = yes; then
27718 gcc_cv_ld_eh_frame_hdr
=yes
27720 elif test x
$gcc_cv_ld != x
; then
27721 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27722 # Check if linker supports --eh-frame-hdr option
27723 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
27724 gcc_cv_ld_eh_frame_hdr
=yes
27729 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27730 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27731 gcc_cv_ld_eh_frame_hdr
=yes
27738 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
27740 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27744 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27747 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27748 gcc_cv_ld_eh_frame_ciev3
=no
27749 if test $in_tree_ld = yes ; then
27750 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 \
27751 && test $in_tree_ld_is_elf = yes; then
27752 gcc_cv_ld_eh_frame_ciev3
=yes
27754 elif test x
$gcc_cv_ld != x
; then
27755 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27756 gcc_cv_ld_eh_frame_ciev3
=yes
27757 if test 0"$ld_date" -lt 20040513; then
27758 if test -n "$ld_date"; then
27759 # If there was date string, but was earlier than 2004-05-13, fail
27760 gcc_cv_ld_eh_frame_ciev3
=no
27761 elif test "$ld_vers_major" -lt 2; then
27762 gcc_cv_ld_eh_frame_ciev3
=no
27763 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27764 gcc_cv_ld_eh_frame_ciev3
=no
27770 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27771 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
27772 gcc_cv_ld_eh_frame_ciev3
=yes
27779 cat >>confdefs.h
<<_ACEOF
27780 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27784 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27787 $as_echo_n "checking linker position independent executable support... " >&6; }
27789 if test $in_tree_ld = yes ; then
27791 # Full PIE support on Solaris was only introduced in gld 2.26.
27792 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
27793 *) gcc_gld_pie_min_version
=15 ;;
27795 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 \
27796 && test $in_tree_ld_is_elf = yes; then
27799 elif test x
$gcc_cv_ld != x
; then
27800 # Check if linker supports -pie option
27801 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
27805 if echo "$ld_ver" |
grep GNU
> /dev
/null \
27806 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27813 *-*-solaris2.1
[1-9]*)
27814 # Solaris 11.x and Solaris 12 added PIE support.
27815 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
27822 if test x
"$gcc_cv_ld_pie" = xyes
; then
27824 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27828 $as_echo "$gcc_cv_ld_pie" >&6; }
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27831 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27832 gcc_cv_ld_pie_copyreloc
=no
27833 if test $gcc_cv_ld_pie = yes ; then
27834 if test $in_tree_ld = yes ; then
27835 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
27836 gcc_cv_ld_pie_copyreloc
=yes
27838 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27839 # Check if linker supports -pie option with copy reloc
27841 i?
86-*-linux* | x86_64-
*-linux*)
27842 cat > conftest1.s
<<EOF
27845 .type a_glob, @object
27850 cat > conftest2.s
<<EOF
27853 .type main, @function
27855 movl %eax, a_glob(%rip)
27858 .section .data.rel,"aw",@progbits
27863 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27864 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
27865 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27866 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
27867 gcc_cv_ld_pie_copyreloc
=yes
27869 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27875 cat >>confdefs.h
<<_ACEOF
27876 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27880 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27883 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27884 gcc_cv_ld_eh_gc_sections
=no
27885 if test $in_tree_ld = yes ; then
27886 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 \
27887 && test $in_tree_ld_is_elf = yes; then
27888 gcc_cv_ld_eh_gc_sections
=yes
27890 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27891 cat > conftest.s
<<EOF
27894 .type _start, @function
27897 .size _start, .-_start
27898 .section .text.foo,"ax",@progbits
27899 .type foo, @function
27903 .section .gcc_except_table.foo,"a",@progbits
27906 .section .eh_frame,"a",@progbits
27909 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27910 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27911 |
grep "gc-sections option ignored" > /dev
/null
; then
27912 gcc_cv_ld_eh_gc_sections
=no
27913 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27914 |
grep gcc_except_table
> /dev
/null
; then
27915 gcc_cv_ld_eh_gc_sections
=yes
27916 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27917 if test x
$gcc_cv_as_comdat_group != xyes
; then
27918 gcc_cv_ld_eh_gc_sections
=no
27919 cat > conftest.s
<<EOF
27922 .type _start, @function
27925 .size _start, .-_start
27926 .section .gnu.linkonce.t.foo,"ax",@progbits
27927 .type foo, @function
27931 .section .gcc_except_table.foo,"a",@progbits
27934 .section .eh_frame,"a",@progbits
27937 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27938 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27939 |
grep "gc-sections option ignored" > /dev
/null
; then
27940 gcc_cv_ld_eh_gc_sections
=no
27941 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27942 |
grep gcc_except_table
> /dev
/null
; then
27943 gcc_cv_ld_eh_gc_sections
=yes
27949 rm -f conftest.s conftest.o conftest
27953 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27954 gcc_cv_ld_eh_gc_sections
=no
27957 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27959 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27963 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27966 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27967 gcc_cv_ld_eh_gc_sections_bug
=no
27968 if test $in_tree_ld = yes ; then
27969 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 \
27970 && test $in_tree_ld_is_elf = yes; then
27971 gcc_cv_ld_eh_gc_sections_bug
=yes
27973 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
27974 gcc_cv_ld_eh_gc_sections_bug
=yes
27975 cat > conftest.s
<<EOF
27978 .type _start, @function
27981 .size _start, .-_start
27982 .section .text.startup.foo,"ax",@progbits
27983 .type foo, @function
27987 .section .gcc_except_table.foo,"a",@progbits
27990 .section .eh_frame,"a",@progbits
27993 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27994 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27995 |
grep "gc-sections option ignored" > /dev
/null
; then
27997 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27998 |
grep gcc_except_table
> /dev
/null
; then
27999 gcc_cv_ld_eh_gc_sections_bug
=no
28002 rm -f conftest.s conftest.o conftest
28004 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28006 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28010 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28013 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28014 # gold/gld support compressed debug sections since binutils 2.19/2.21
28015 if test $in_tree_ld = yes ; then
28016 gcc_cv_ld_compress_debug
=0
28017 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 \
28018 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28019 gcc_cv_ld_compress_debug
=2
28020 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28021 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 \
28022 && test $in_tree_ld_is_elf = yes; then
28023 gcc_cv_ld_compress_debug
=1
28025 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28026 gcc_cv_ld_compress_debug
=1
28027 if test 0"$ld_date" -lt 20050308; then
28028 if test -n "$ld_date"; then
28029 # If there was date string, but was earlier than 2005-03-08, fail
28030 gcc_cv_ld_compress_debug
=0
28031 elif test "$ld_vers_major" -lt 2; then
28032 gcc_cv_ld_compress_debug
=0
28033 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28034 gcc_cv_ld_compress_debug
=0
28037 if test $ld_is_gold = yes; then
28038 gcc_cv_ld_compress_debug
=2
28039 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28042 case "${target}" in
28044 # Introduced in Solaris 11.2.
28045 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28046 gcc_cv_ld_compress_debug
=3
28047 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28049 gcc_cv_ld_compress_debug
=0
28053 # Assume linkers other than GNU ld don't support compessed debug
28055 gcc_cv_ld_compress_debug
=0
28060 cat >>confdefs.h
<<_ACEOF
28061 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28065 cat >>confdefs.h
<<_ACEOF
28066 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28070 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28077 $as_echo_n "checking linker --as-needed support... " >&6; }
28078 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28079 $as_echo_n "(cached) " >&6
28081 gcc_cv_ld_as_needed
=no
28082 gcc_cv_ld_as_needed_option
='--as-needed'
28083 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28084 if test $in_tree_ld = yes ; then
28085 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 \
28086 && test $in_tree_ld_is_elf = yes; then
28087 gcc_cv_ld_as_needed
=yes
28089 elif test x
$gcc_cv_ld != x
; then
28090 # Check if linker supports --as-needed and --no-as-needed options
28091 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
28092 gcc_cv_ld_as_needed
=yes
28095 # Solaris 2 ld always supports -z ignore/-z record.
28097 gcc_cv_ld_as_needed
=yes
28098 gcc_cv_ld_as_needed_option
="-z ignore"
28099 gcc_cv_ld_no_as_needed_option
="-z record"
28104 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28105 # dl_iterate_phdr, i.e. since Solaris 11.
28107 *-*-solaris2.1
[1-9]*)
28109 i?
86-*-* | x86_64-
*-*)
28110 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28111 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28112 gcc_cv_ld_as_needed
=no
28118 gcc_cv_ld_as_needed
=no
28123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28124 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28125 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28127 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28130 cat >>confdefs.h
<<_ACEOF
28131 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28135 cat >>confdefs.h
<<_ACEOF
28136 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28142 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28143 saved_LDFLAGS
="$LDFLAGS"
28144 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28145 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28147 /* end confdefs.h. */
28148 int main(void) {return 0;}
28150 if ac_fn_cxx_try_link
"$LINENO"; then :
28151 gcc_cv_ld_clearcap
=yes; break
28153 gcc_cv_ld_clearcap
=no
28155 rm -f core conftest.err conftest.
$ac_objext \
28156 conftest
$ac_exeext conftest.
$ac_ext
28158 LDFLAGS
="$saved_LDFLAGS"
28159 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28161 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28163 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28167 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28169 case "$target:$tm_file" in
28170 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28173 emul_name
="-melf64lppc"
28176 emul_name
="-melf64ppc"
28179 emul_name
="-melf64ppc_fbsd"
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28183 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28184 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28185 $as_echo_n "(cached) " >&6
28187 gcc_cv_ld_no_dot_syms
=no
28188 if test x
"$ld_is_gold" = xyes
; then
28189 gcc_cv_ld_no_dot_syms
=yes
28190 elif test $in_tree_ld = yes ; then
28191 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
28192 gcc_cv_ld_no_dot_syms
=yes
28194 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28195 cat > conftest1.s
<<EOF
28199 cat > conftest2.s
<<EOF
28200 .section ".opd","aw"
28203 .type foo,@function
28205 .quad .LEfoo,.TOC.@tocbase,0
28211 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28212 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28213 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28214 gcc_cv_ld_no_dot_syms
=yes
28216 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28221 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28222 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28224 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28229 $as_echo_n "checking linker large toc support... " >&6; }
28230 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28231 $as_echo_n "(cached) " >&6
28233 gcc_cv_ld_large_toc
=no
28234 if test x
"$ld_is_gold" = xyes
; then
28235 gcc_cv_ld_large_toc
=yes
28236 elif test $in_tree_ld = yes ; then
28237 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
28238 gcc_cv_ld_large_toc
=yes
28240 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28241 cat > conftest.s
<<EOF
28242 .section ".tbss","awT",@nobits
28248 addis 9,13,ie0@got@tprel@ha
28249 ld 9,ie0@got@tprel@l(9)
28251 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28252 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28253 gcc_cv_ld_large_toc
=yes
28255 rm -f conftest conftest.o conftest.s
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28260 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28261 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28263 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28268 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28269 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28270 $as_echo_n "(cached) " >&6
28272 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28273 cat > conftest.s
<<EOF
28278 .section .data.rel.ro,"aw",@progbits
28283 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28284 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28285 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)) }'`
28287 rm -f conftest conftest.o conftest.s
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28292 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28293 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28295 cat >>confdefs.h
<<_ACEOF
28296 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28306 $as_echo_n "checking linker large toc support... " >&6; }
28307 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28308 $as_echo_n "(cached) " >&6
28310 gcc_cv_ld_large_toc
=no
28311 if test x
$gcc_cv_as != x
; then
28312 cat > conftest.s
<<EOF
28322 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28323 gcc_cv_ld_large_toc
=yes
28325 rm -f conftest conftest.o conftest.s
28329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28330 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28331 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28333 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28340 $as_echo_n "checking linker --build-id support... " >&6; }
28341 if test "${gcc_cv_ld_buildid+set}" = set; then :
28342 $as_echo_n "(cached) " >&6
28344 gcc_cv_ld_buildid
=no
28345 if test $in_tree_ld = yes ; then
28346 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28347 "$gcc_cv_gld_minor_version" -ge 18 -o \
28348 "$gcc_cv_gld_major_version" -gt 2 \
28349 && test $in_tree_ld_is_elf = yes; then
28350 gcc_cv_ld_buildid
=yes
28352 elif test x
$gcc_cv_ld != x
; then
28353 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
28354 gcc_cv_ld_buildid
=yes
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28359 $as_echo "$gcc_cv_ld_buildid" >&6; }
28360 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28362 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28366 # Check whether --enable-linker-build-id was given.
28367 if test "${enable_linker_build_id+set}" = set; then :
28368 enableval
=$enable_linker_build_id;
28370 enable_linker_build_id
=no
28374 if test x
"$enable_linker_build_id" = xyes
; then
28375 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28377 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28381 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28385 # In binutils 2.21, GNU ld gained support for new emulations fully
28386 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28388 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28389 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28390 $as_echo_n "(cached) " >&6
28392 gcc_cv_ld_sol2_emulation
=no
28393 if test $in_tree_ld = yes ; then
28394 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28395 "$gcc_cv_gld_minor_version" -ge 21 -o \
28396 "$gcc_cv_gld_major_version" -gt 2 \
28397 && test $in_tree_ld_is_elf = yes; then
28398 gcc_cv_ld_sol2_emulation
=yes
28400 elif test x
$gcc_cv_ld != x
; then
28401 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28402 grep _sol2
> /dev
/null
; then
28403 gcc_cv_ld_sol2_emulation
=yes
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28408 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28409 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28411 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28416 $as_echo_n "checking linker --sysroot support... " >&6; }
28417 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28418 $as_echo_n "(cached) " >&6
28420 gcc_cv_ld_sysroot
=no
28421 if test $in_tree_ld = yes ; then
28422 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
28423 gcc_cv_ld_sysroot
=yes
28425 elif test x
$gcc_cv_ld != x
; then
28426 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
28427 gcc_cv_ld_sysroot
=yes
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28432 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28433 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28435 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28441 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28443 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28444 if test "${gcc_cv_solaris_crts+set}" = set; then :
28445 $as_echo_n "(cached) " >&6
28447 gcc_cv_solaris_crts
=no
28448 if test x
$host != x
$target; then
28449 if test "x$with_sysroot" = xyes
; then
28450 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
28452 target_sysroot
="${with_sysroot}"
28455 target_libdir
="$target_sysroot/usr/lib"
28456 # At the time they were added, gcrt1.o became a symlink for backwards
28457 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28459 i?
86-*-solaris2* | x86_64-
*-solaris2*)
28460 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
28462 sparc
*-*-solaris2*)
28463 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28468 $as_echo "$gcc_cv_solaris_crts" >&6; }
28471 if test x
$gcc_cv_solaris_crts = xyes
; then
28473 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28477 # Test for stack protector support in target C library.
28478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28479 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28480 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28481 $as_echo_n "(cached) " >&6
28483 gcc_cv_libc_provides_ssp
=no
28486 # All versions of musl provide stack protector
28487 gcc_cv_libc_provides_ssp
=yes;;
28488 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
28489 # glibc 2.4 and later provides __stack_chk_fail and
28490 # either __stack_chk_guard, or TLS access to stack guard canary.
28492 if test $glibc_version_major -gt 2 \
28493 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28494 gcc_cv_libc_provides_ssp
=yes
28497 if test -f $target_header_dir/features.h \
28498 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28499 $target_header_dir/features.h
> /dev
/null
; then
28500 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28501 $target_header_dir/features.h
> /dev
/null
&& \
28502 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28503 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28504 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28505 gcc_cv_libc_provides_ssp
=yes
28507 # all versions of Bionic support stack protector
28508 elif test -f $target_header_dir/sys
/cdefs.h \
28509 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28510 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28511 gcc_cv_libc_provides_ssp
=yes
28516 # Avoid complicated tests (see
28517 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28518 # simply assert that glibc does provide this, which is true for all
28519 # realistically usable GNU/Hurd configurations.
28520 # All supported versions of musl provide it as well
28521 gcc_cv_libc_provides_ssp
=yes;;
28522 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
28523 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28524 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28525 gcc_cv_libc_provides_ssp
=yes
28527 echo "no __stack_chk_fail on this target"
28531 *) gcc_cv_libc_provides_ssp
=no
;;
28534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28535 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28537 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28539 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28543 # Check whether --enable-default-ssp was given.
28544 # Check whether --enable-default-ssp was given.
28545 if test "${enable_default_ssp+set}" = set; then :
28546 enableval
=$enable_default_ssp;
28547 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28549 ia64
*-*-*) enable_default_ssp
=no
;;
28550 *) enable_default_ssp
=$enableval ;;
28553 enable_default_ssp
=no
28556 enable_default_ssp
=no
28559 if test x
$enable_default_ssp = xyes
; then
28561 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28566 # Test for <sys/sdt.h> on the target.
28568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28569 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28571 if test -f $target_header_dir/sys
/sdt.h
; then
28574 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28578 $as_echo "$have_sys_sdt_h" >&6; }
28580 # Check if TFmode long double should be used by default or not.
28581 # Some glibc targets used DFmode long double, but with glibc 2.4
28582 # and later they can use TFmode.
28584 powerpc
*-*-linux* | \
28585 sparc
*-*-linux* | \
28589 # Check whether --with-long-double-128 was given.
28590 if test "${with_long_double_128+set}" = set; then :
28591 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
28594 if test $glibc_version_major -gt 2 \
28595 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28596 gcc_cv_target_ldbl128
=yes
28599 gcc_cv_target_ldbl128
=no
28600 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28601 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28602 && gcc_cv_target_ldbl128
=yes
28609 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28611 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28615 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28616 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28617 gcc_cv_libc_provides_hwcap_in_tcb
=no
28621 if test $glibc_version_major -gt 2 \
28622 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28623 gcc_cv_libc_provides_hwcap_in_tcb
=yes
28627 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
28629 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28634 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28635 gcc_cv_target_dl_iterate_phdr
=unknown
28637 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28638 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28639 # libdl there, both complicating its use and breaking compatibility
28640 # between Solaris 10 updates.
28641 *-*-solaris2.1
[1-9]*)
28642 # <link.h> needs both a dl_iterate_phdr declaration and support for
28643 # compilation with largefile support.
28644 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
28645 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
28646 gcc_cv_target_dl_iterate_phdr
=yes
28648 gcc_cv_target_dl_iterate_phdr
=no
28651 *-*-dragonfly* |
*-*-freebsd*)
28652 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
28653 gcc_cv_target_dl_iterate_phdr
=yes
28655 gcc_cv_target_dl_iterate_phdr
=no
28659 gcc_cv_target_dl_iterate_phdr
=yes
28663 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
28665 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28669 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28671 # We no longer support different GC mechanisms. Emit an error if
28672 # the user configures with --with-gc.
28674 # Check whether --with-gc was given.
28675 if test "${with_gc+set}" = set; then :
28676 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28680 # Libraries to use on the host. This will normally be set by the top
28681 # level Makefile. Here we simply capture the value for our Makefile.
28682 if test -z "${HOST_LIBS+set}"; then
28687 # Use the system's zlib library.
28689 # Use the system's zlib library.
28690 zlibdir
="-L\$(top_builddir)/../zlib"
28691 zlibinc
="-I\$(top_srcdir)/../zlib"
28693 # Check whether --with-system-zlib was given.
28694 if test "${with_system_zlib+set}" = set; then :
28695 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28708 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28709 # Check whether --enable-maintainer-mode was given.
28710 if test "${enable_maintainer_mode+set}" = set; then :
28711 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28718 $as_echo "$maintainer_mode" >&6; }
28720 if test "$maintainer_mode" = "yes"; then
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28728 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28729 # Check whether --enable-link-mutex was given.
28730 if test "${enable_link_mutex+set}" = set; then :
28731 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
28736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28737 $as_echo "$do_link_mutex" >&6; }
28739 if test "$do_link_mutex" = "yes"; then
28742 DO_LINK_MUTEX
=false
28750 # Make empty files to contain the specs and options for each language.
28751 # Then add #include lines to for a compiler that has specs and/or options.
28757 # These (without "all_") are set in each config-lang.in.
28758 # `language' must be a single word so is spelled singularly.
28761 all_outputs
='Makefile'
28762 # List of language makefile fragments.
28763 all_lang_makefrags
=
28764 # Additional files for gengtype
28765 all_gtfiles
="$target_gtfiles"
28767 # These are the languages that are set in --enable-languages,
28768 # and are available in the GCC tree.
28769 all_selected_languages
=
28771 # Add the language fragments.
28772 # Languages are added via two mechanisms. Some information must be
28773 # recorded in makefile variables, these are defined in config-lang.in.
28774 # We accumulate them and plug them into the main Makefile.
28775 # The other mechanism is a set of hooks for each of the main targets
28776 # like `clean', `install', etc.
28778 language_hooks
="Make-hooks"
28780 for lang
in ${srcdir}/*/config-lang.
in
28782 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28784 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28785 if test "x$lang_alias" = x
28787 echo "$lang doesn't set \$language." 1>&2
28790 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28791 subdirs
="$subdirs $subdir"
28793 # $gcc_subdir is where the gcc integration files are to be found
28794 # for a language, both for internal compiler purposes (compiler
28795 # sources implementing front-end to GCC tree converters), and for
28796 # build infrastructure purposes (Make-lang.in, etc.)
28798 # This will be <subdir> (relative to $srcdir) if a line like
28799 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28800 # is found in <langdir>/config-lang.in, and will remain <langdir>
28803 # Except for the language alias (fetched above), the regular
28804 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28805 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28806 # only this and the language alias.
28808 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28809 if [ "$gcc_subdir" = "" ]; then
28810 gcc_subdir
="$subdir"
28813 case ",$enable_languages," in
28815 all_selected_languages
="$all_selected_languages $lang_alias"
28816 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
28817 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28828 .
${srcdir}/$gcc_subdir/config-lang.
in
28829 if test "x$language" = x
28831 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28836 case ",$enable_languages," in
28837 *,$lang_alias,*) ;;
28839 for i
in $subdir_requires; do
28840 test -f "${srcdir}/$i/config-lang.in" && continue
28848 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28849 if test -f $srcdir/$gcc_subdir/lang.opt
; then
28850 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28851 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28853 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
28854 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28856 all_languages
="$all_languages $language"
28857 all_compilers
="$all_compilers $compilers"
28858 all_outputs
="$all_outputs $outputs"
28859 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
28860 case ",$enable_languages," in
28863 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28873 for language
in $all_selected_languages
28875 check_languages
="$check_languages check-$language"
28878 # We link each language in with a set of hooks, reached indirectly via
28879 # lang.${target}. Only do so for selected languages.
28883 target_list
="all.cross start.encap rest.encap tags \
28884 install-common install-man install-info install-pdf install-html dvi \
28885 pdf html uninstall info man srcextra srcman srcinfo \
28886 mostlyclean clean distclean maintainer-clean install-plugin"
28888 for t
in $target_list
28891 for lang
in $all_selected_languages
28895 echo "lang.$t: $x" >> Make-hooks
28899 # Option include files
28902 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
28903 option_includes
="option-includes.mk"
28912 echo "dir ." > .gdbinit
28913 echo "dir ${srcdir}" >> .gdbinit
28914 if test x
$gdb_needs_out_file_path = xyes
28916 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28918 if test "x$subdirs" != x
; then
28921 echo "dir ${srcdir}/$s" >> .gdbinit
28924 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28925 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28927 # Put a breakpoint on __asan_report_error to help with debugging buffer
28930 *-fsanitize=address
*)
28931 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28935 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28939 # Find a directory in which to install a shared libgcc.
28941 # Check whether --enable-version-specific-runtime-libs was given.
28942 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28943 enableval
=$enable_version_specific_runtime_libs;
28947 # Substitute configuration variables
29011 if test x
${build} = x
${host} ; then
29012 if test x
${host} = x
${target} ; then
29013 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29015 echo "Links are now set up to build a cross-compiler" 1>&2
29016 echo " from ${host} to ${target}." 1>&2
29019 if test x
${host} = x
${target} ; then
29020 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29021 echo " for ${target}." 1>&2
29023 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29024 echo " from ${host} to ${target}." 1>&2
29033 if test "x${ISLLIBS}" != "x" ; then
29035 $as_echo "#define HAVE_isl 1" >>confdefs.h
29039 # Check whether isl_options_set_schedule_serialize_sccs is available;
29040 # it's new in isl 0.15.
29041 if test "x${ISLLIBS}" != "x" ; then
29042 saved_CXXFLAGS
="$CXXFLAGS"
29043 CXXFLAGS
="$CXXFLAGS $ISLINC $GMPINC"
29045 LIBS
="$LIBS $ISLLIBS $GMPLIBS"
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29048 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29050 /* end confdefs.h. */
29051 #include <isl/schedule.h>
29055 isl_options_set_schedule_serialize_sccs (NULL, 0);
29060 if ac_fn_cxx_try_link
"$LINENO"; then :
29061 ac_has_isl_options_set_schedule_serialize_sccs
=yes
29063 ac_has_isl_options_set_schedule_serialize_sccs
=no
29065 rm -f core conftest.err conftest.
$ac_objext \
29066 conftest
$ac_exeext conftest.
$ac_ext
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29068 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29071 CXXFLAGS
="$saved_CXXFLAGS"
29073 if test x
"$ac_has_isl_options_set_schedule_serialize_sccs" = x
"yes"; then
29075 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29080 # Check for plugin support
29081 # Check whether --enable-plugin was given.
29082 if test "${enable_plugin+set}" = set; then :
29083 enableval
=$enable_plugin; enable_plugin
=$enableval
29085 enable_plugin
=yes; default_plugin
=yes
29093 if test x
$build = x
$host; then
29094 export_sym_check
="nm${exeext} -g"
29095 elif test x
$host = x
$target; then
29096 export_sym_check
="$gcc_cv_nm -g"
29102 if test x
$build = x
$host; then
29103 export_sym_check
="objdump${exeext} -T"
29104 elif test x
$host = x
$target; then
29105 export_sym_check
="$gcc_cv_objdump -T"
29112 if test x
"$enable_plugin" = x
"yes"; then
29114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29115 $as_echo_n "checking for exported symbols... " >&6; }
29116 if test "x$export_sym_check" != x
; then
29117 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29118 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29119 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29120 : # No need to use a flag
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29122 $as_echo "yes" >&6; }
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29125 $as_echo "yes" >&6; }
29126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29127 $as_echo_n "checking for -rdynamic... " >&6; }
29128 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29129 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29130 plugin_rdynamic
=yes
29131 pluginlibs
="-rdynamic"
29136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29137 $as_echo "$plugin_rdynamic" >&6; }
29140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29141 $as_echo "unable to check" >&6; }
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29147 $as_echo_n "checking for library containing dlopen... " >&6; }
29148 if test "${ac_cv_search_dlopen+set}" = set; then :
29149 $as_echo_n "(cached) " >&6
29151 ac_func_search_save_LIBS
=$LIBS
29152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29153 /* end confdefs.h. */
29155 /* Override any GCC internal prototype to avoid an error.
29156 Use char because int might match the return type of a GCC
29157 builtin and then its argument prototype would still apply. */
29170 for ac_lib
in '' dl
; do
29171 if test -z "$ac_lib"; then
29172 ac_res
="none required"
29175 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29177 if ac_fn_cxx_try_link
"$LINENO"; then :
29178 ac_cv_search_dlopen
=$ac_res
29180 rm -f core conftest.err conftest.
$ac_objext \
29182 if test "${ac_cv_search_dlopen+set}" = set; then :
29186 if test "${ac_cv_search_dlopen+set}" = set; then :
29189 ac_cv_search_dlopen
=no
29191 rm conftest.
$ac_ext
29192 LIBS
=$ac_func_search_save_LIBS
29194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29195 $as_echo "$ac_cv_search_dlopen" >&6; }
29196 ac_res
=$ac_cv_search_dlopen
29197 if test "$ac_res" != no
; then :
29198 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29202 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29203 pluginlibs
="$pluginlibs -ldl"
29207 # Check that we can build shared objects with -fPIC -shared
29208 saved_LDFLAGS
="$LDFLAGS"
29209 saved_CFLAGS
="$CFLAGS"
29212 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29213 CFLAGS
="$CFLAGS -fPIC"
29214 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29217 CFLAGS
="$CFLAGS -fPIC"
29218 LDFLAGS
="$LDFLAGS -fPIC -shared"
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29222 $as_echo_n "checking for -fPIC -shared... " >&6; }
29223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29224 /* end confdefs.h. */
29234 if ac_fn_cxx_try_link
"$LINENO"; then :
29235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29236 $as_echo "yes" >&6; }; have_pic_shared
=yes
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29239 $as_echo "no" >&6; }; have_pic_shared
=no
29241 rm -f core conftest.err conftest.
$ac_objext \
29242 conftest
$ac_exeext conftest.
$ac_ext
29243 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29247 LDFLAGS
="$saved_LDFLAGS"
29248 CFLAGS
="$saved_CFLAGS"
29250 # If plugin support had been requested but not available, fail.
29251 if test x
"$enable_plugin" = x
"no" ; then
29252 if test x
"$default_plugin" != x
"yes"; then
29254 Building GCC with plugin support requires a host that supports
29255 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29262 if test x
"$enable_plugin" = x
"yes"; then
29264 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29269 # Enable --enable-host-shared
29270 # Check whether --enable-host-shared was given.
29271 if test "${enable_host_shared+set}" = set; then :
29272 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29281 # Check whether --enable-libquadmath-support was given.
29282 if test "${enable_libquadmath_support+set}" = set; then :
29283 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29285 ENABLE_LIBQUADMATH_SUPPORT
=yes
29288 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29290 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29295 # Specify what hash style to use by default.
29297 # Check whether --with-linker-hash-style was given.
29298 if test "${with_linker_hash_style+set}" = set; then :
29299 withval
=$with_linker_hash_style; case x
"$withval" in
29301 LINKER_HASH_STYLE
=sysv
29304 LINKER_HASH_STYLE
=gnu
29307 LINKER_HASH_STYLE
=both
29310 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29314 LINKER_HASH_STYLE
=''
29317 if test x
"${LINKER_HASH_STYLE}" != x
; then
29319 cat >>confdefs.h
<<_ACEOF
29320 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29325 # Specify what should be the default of -fdiagnostics-color option.
29327 # Check whether --with-diagnostics-color was given.
29328 if test "${with_diagnostics_color+set}" = set; then :
29329 withval
=$with_diagnostics_color; case x
"$withval" in
29331 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29334 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29337 DIAGNOSTICS_COLOR_DEFAULT
=-1
29340 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29343 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29347 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29351 cat >>confdefs.h
<<_ACEOF
29352 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29356 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29357 # of jit/jit-playback.c.
29358 cat > gcc-driver-name.h
<<EOF
29359 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29362 # Check whether --enable-default-pie was given.
29363 # Check whether --enable-default-pie was given.
29364 if test "${enable_default_pie+set}" = set; then :
29365 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29367 enable_default_pie
=no
29370 if test x
$enable_default_pie = xyes
; then
29372 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29377 # Check if -fno-PIE works.
29378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29379 $as_echo_n "checking for -fno-PIE option... " >&6; }
29380 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29381 $as_echo_n "(cached) " >&6
29383 saved_CXXFLAGS
="$CXXFLAGS"
29384 CXXFLAGS
="$CXXFLAGS -fno-PIE"
29385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29386 /* end confdefs.h. */
29387 int main(void) {return 0;}
29389 if ac_fn_cxx_try_compile
"$LINENO"; then :
29390 gcc_cv_c_no_fpie
=yes
29392 gcc_cv_c_no_fpie
=no
29394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29395 CXXFLAGS
="$saved_CXXFLAGS"
29397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29398 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29399 if test "$gcc_cv_c_no_fpie" = "yes"; then
29400 NO_PIE_CFLAGS
="-fno-PIE"
29404 # Check if -no-pie works.
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29406 $as_echo_n "checking for -no-pie option... " >&6; }
29407 if test "${gcc_cv_no_pie+set}" = set; then :
29408 $as_echo_n "(cached) " >&6
29410 saved_LDFLAGS
="$LDFLAGS"
29411 LDFLAGS
="$LDFLAGS -no-pie"
29412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29413 /* end confdefs.h. */
29414 int main(void) {return 0;}
29416 if ac_fn_cxx_try_link
"$LINENO"; then :
29421 rm -f core conftest.err conftest.
$ac_objext \
29422 conftest
$ac_exeext conftest.
$ac_ext
29423 LDFLAGS
="$saved_LDFLAGS"
29425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29426 $as_echo "$gcc_cv_no_pie" >&6; }
29427 if test "$gcc_cv_no_pie" = "yes"; then
29428 NO_PIE_FLAG
="-no-pie"
29432 # Check linker supports '-z bndplt'
29433 ld_bndplt_support
=no
29434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29435 $as_echo_n "checking linker -z bndplt option... " >&6; }
29436 if test x
"$ld_is_gold" = xno
; then
29437 if test $in_tree_ld = yes ; then
29438 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
29439 ld_bndplt_support
=yes
29441 elif test x
$gcc_cv_ld != x
; then
29442 # Check if linker supports -a bndplt option
29443 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '-z bndplt' > /dev
/null
; then
29444 ld_bndplt_support
=yes
29448 if test x
"$ld_bndplt_support" = xyes
; then
29450 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29454 $as_echo "$ld_bndplt_support" >&6; }
29456 # Configure the subdirectories
29457 # AC_CONFIG_SUBDIRS($subdirs)
29459 # Create the Makefile
29460 # and configure language subdirectories
29461 ac_config_files
="$ac_config_files $all_outputs"
29464 ac_config_commands
="$ac_config_commands default"
29466 cat >confcache
<<\_ACEOF
29467 # This file is a shell script that caches the results of configure
29468 # tests run on this system so they can be shared between configure
29469 # scripts and configure runs, see configure's option --config-cache.
29470 # It is not useful on other systems. If it contains results you don't
29471 # want to keep, you may remove or edit it.
29473 # config.status only pays attention to the cache file if you give it
29474 # the --recheck option to rerun configure.
29476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29478 # following values.
29482 # The following way of writing the cache mishandles newlines in values,
29483 # but we know of no workaround that is simple, portable, and efficient.
29484 # So, we kill variables containing newlines.
29485 # Ultrix sh set writes to stderr and can't be redirected directly,
29486 # and sets the high bit in the cache file unless we assign to the vars.
29488 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29489 eval ac_val
=\$
$ac_var
29493 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29497 _ | IFS | as_nl
) ;; #(
29498 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29499 *) { eval $ac_var=; unset $ac_var;} ;;
29505 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29506 *${as_nl}ac_space
=\
*)
29507 # `set' does not quote correctly, so add quotes: double-quote
29508 # substitution turns \\\\ into \\, and sed turns \\ into \.
29511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29514 # `set' quotes correctly as required by POSIX, so do not add quotes.
29515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29524 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29526 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29528 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29529 if test -w "$cache_file"; then
29530 test "x$cache_file" != "x/dev/null" &&
29531 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29532 $as_echo "$as_me: updating cache $cache_file" >&6;}
29533 cat confcache
>$cache_file
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29541 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29542 # Let make expand exec_prefix.
29543 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29545 DEFS
=-DHAVE_CONFIG_H
29549 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29550 # 1. Remove the extension, and $U if already installed.
29551 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29552 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29553 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29554 # will be set to the directory where LIBOBJS objects are built.
29555 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29556 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29558 LIBOBJS
=$ac_libobjs
29560 LTLIBOBJS
=$ac_ltlibobjs
29565 : ${CONFIG_STATUS=./config.status}
29567 ac_clean_files_save
=$ac_clean_files
29568 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29572 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29574 # Generated by $as_me.
29575 # Run this file to recreate the current configuration.
29576 # Compiler output produced by configure, useful for debugging
29577 # configure, is in config.log if it exists.
29580 ac_cs_recheck=false
29583 SHELL=\${CONFIG_SHELL-$SHELL}
29586 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29587 ## -------------------- ##
29588 ## M4sh Initialization. ##
29589 ## -------------------- ##
29591 # Be more Bourne compatible
29592 DUALCASE
=1; export DUALCASE
# for MKS sh
29593 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29596 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29597 # is contrary to our usage. Disable this feature.
29598 alias -g '${1+"$@"}'='"$@"'
29599 setopt NO_GLOB_SUBST
29601 case `(set -o) 2>/dev/null` in #(
29613 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29614 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29617 # Prefer a ksh shell builtin over an external printf program on Solaris,
29618 # but without wasting forks for bash or zsh.
29619 if test -z "$BASH_VERSION$ZSH_VERSION" \
29620 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29621 as_echo='print
-r --'
29622 as_echo_n='print
-rn --'
29623 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29624 as_echo='printf %s
\n'
29625 as_echo_n='printf %s
'
29627 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29628 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29629 as_echo_n='/usr
/ucb
/echo -n'
29631 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29632 as_echo_n_body='eval
29636 expr "X$arg" : "X\\(.*\\)$as_nl";
29637 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29639 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29641 export as_echo_n_body
29642 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29644 export as_echo_body
29645 as_echo='sh
-c $as_echo_body as_echo
'
29648 # The user is always right.
29649 if test "${PATH_SEPARATOR+set}" != set; then
29651 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29652 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29659 # We need space, tab and new line, in precisely that order. Quoting is
29660 # there to prevent editors from complaining about space-tab.
29661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29662 # splitting by setting IFS to empty value.)
29665 # Find who we are. Look in the path if we contain no directory separator.
29667 *[\\/]* ) as_myself=$0 ;;
29668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29669 for as_dir in $PATH
29672 test -z "$as_dir" && as_dir=.
29673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29679 # We did not find ourselves, most probably we were run as `sh COMMAND'
29680 # in which case we are not to be found in the path.
29681 if test "x$as_myself" = x
; then
29684 if test ! -f "$as_myself"; then
29685 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29689 # Unset variables that we do not need and which cause bugs (e.g. in
29690 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29691 # suppresses any "Segmentation fault" message there. '((' could
29692 # trigger a bug in pdksh 5.2.14.
29693 for as_var
in BASH_ENV ENV MAIL MAILPATH
29694 do eval test x\
${$as_var+set} = xset \
29695 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29708 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29711 # as_fn_error ERROR [LINENO LOG_FD]
29712 # ---------------------------------
29713 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29714 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29715 # script with status $?, using 1 if that was 0.
29718 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29720 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29721 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29723 $as_echo "$as_me: error: $1" >&2
29724 as_fn_exit
$as_status
29728 # as_fn_set_status STATUS
29729 # -----------------------
29730 # Set $? to STATUS, without forking.
29731 as_fn_set_status
()
29734 } # as_fn_set_status
29736 # as_fn_exit STATUS
29737 # -----------------
29738 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29742 as_fn_set_status
$1
29748 # Portably unset VAR.
29751 { eval $1=; unset $1;}
29753 as_unset
=as_fn_unset
29754 # as_fn_append VAR VALUE
29755 # ----------------------
29756 # Append the text in VALUE to the end of the definition contained in VAR. Take
29757 # advantage of any shell optimizations that allow amortized linear growth over
29758 # repeated appends, instead of the typical quadratic growth present in naive
29760 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29761 eval 'as_fn_append ()
29772 # as_fn_arith ARG...
29773 # ------------------
29774 # Perform arithmetic evaluation on the ARGs, and store the result in the
29775 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29776 # must be portable across $(()) and expr.
29777 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29778 eval 'as_fn_arith ()
29785 as_val
=`expr "$@" || test $? -eq 1`
29790 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29791 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29797 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29798 as_basename
=basename
29803 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29809 as_me
=`$as_basename -- "$0" ||
29810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29811 X"$0" : 'X\(//\)$' \| \
29812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29814 sed '/^.*\/\([^/][^/]*\)\/*$/{
29828 # Avoid depending upon Character Ranges.
29829 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29830 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29831 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29832 as_cr_digits
='0123456789'
29833 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29835 ECHO_C
= ECHO_N
= ECHO_T
=
29836 case `echo -n x` in #(((((
29838 case `echo 'xy\c'` in
29839 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29841 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29848 rm -f conf$$ conf$$.exe conf$$.
file
29849 if test -d conf$$.dir
; then
29850 rm -f conf$$.dir
/conf$$.
file
29853 mkdir conf$$.dir
2>/dev
/null
29855 if (echo >conf$$.
file) 2>/dev
/null
; then
29856 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29858 # ... but there are two gotchas:
29859 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29860 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29861 # In both cases, we have to default to `cp -p'.
29862 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29864 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29872 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29873 rmdir conf$$.dir
2>/dev
/null
29878 # Create "$as_dir" as a directory, including parents if necessary.
29883 -*) as_dir
=.
/$as_dir;;
29885 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29889 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29890 *) as_qdir
=$as_dir;;
29892 as_dirs
="'$as_qdir' $as_dirs"
29893 as_dir
=`$as_dirname -- "$as_dir" ||
29894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29895 X"$as_dir" : 'X\(//\)[^/]' \| \
29896 X"$as_dir" : 'X\(//\)$' \| \
29897 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29898 $as_echo X"$as_dir" |
29899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29903 /^X\(\/\/\)[^/].*/{
29916 test -d "$as_dir" && break
29918 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29919 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29923 if mkdir
-p .
2>/dev
/null
; then
29924 as_mkdir_p
='mkdir -p "$as_dir"'
29926 test -d .
/-p && rmdir .
/-p
29930 if test -x / >/dev
/null
2>&1; then
29931 as_test_x
='test -x'
29933 if ls -dL / >/dev
/null
2>&1; then
29940 if test -d "$1"; then
29946 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29947 ???[sx]*):;;*)false;;esac;fi
29951 as_executable_p
=$as_test_x
29953 # Sed expression to map a string onto a valid CPP name.
29954 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29956 # Sed expression to map a string onto a valid variable name.
29957 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29961 ## ----------------------------------- ##
29962 ## Main body of $CONFIG_STATUS script. ##
29963 ## ----------------------------------- ##
29965 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29968 # Save the log message, to keep $0 and so on meaningful, and to
29969 # report actual input values of CONFIG_FILES etc. instead of their
29970 # values after options handling.
29972 This file was extended by $as_me, which was
29973 generated by GNU Autoconf 2.64. Invocation command line was
29975 CONFIG_FILES = $CONFIG_FILES
29976 CONFIG_HEADERS = $CONFIG_HEADERS
29977 CONFIG_LINKS = $CONFIG_LINKS
29978 CONFIG_COMMANDS = $CONFIG_COMMANDS
29981 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29986 case $ac_config_files in *"
29987 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29990 case $ac_config_headers in *"
29991 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29996 # Files that config.status was made for.
29997 config_files="$ac_config_files"
29998 config_headers="$ac_config_headers"
29999 config_links="$ac_config_links"
30000 config_commands="$ac_config_commands"
30004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30006 \`$as_me' instantiates files and other configuration actions
30007 from templates according to the current configuration. Unless the files
30008 and actions are specified as TAGs, all are instantiated by default.
30010 Usage: $0 [OPTION]... [TAG]...
30012 -h, --help print this help, then exit
30013 -V, --version print version number and configuration settings, then exit
30014 -q, --quiet, --silent
30015 do not print progress messages
30016 -d, --debug don't remove temporary files
30017 --recheck update $as_me by reconfiguring in the same conditions
30018 --file=FILE[:TEMPLATE]
30019 instantiate the configuration file FILE
30020 --header=FILE[:TEMPLATE]
30021 instantiate the configuration header FILE
30023 Configuration files:
30026 Configuration headers:
30029 Configuration links:
30032 Configuration commands:
30035 Report bugs to the package provider."
30038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30041 configured by $0, generated by GNU Autoconf 2.64,
30042 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30044 Copyright (C) 2009 Free Software Foundation, Inc.
30045 This config.status script is free software; the Free Software Foundation
30046 gives unlimited permission to copy, distribute and modify it."
30051 test -n "\$AWK" || AWK=awk
30054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30055 # The default lists apply if the user does not specify any file.
30061 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30062 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30073 # Handling of the options.
30074 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30076 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30077 $as_echo "$ac_cs_version"; exit ;;
30078 --debug |
--debu |
--deb |
--de |
--d |
-d )
30080 --file |
--fil |
--fi |
--f )
30083 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30085 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30086 ac_need_defaults
=false
;;
30087 --header |
--heade |
--head |
--hea )
30090 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30092 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30093 ac_need_defaults
=false
;;
30095 # Conflict between --help and --header
30096 as_fn_error
"ambiguous option: \`$1'
30097 Try \`$0 --help' for more information.";;
30098 --help |
--hel |
-h )
30099 $as_echo "$ac_cs_usage"; exit ;;
30100 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30101 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30104 # This is an error.
30105 -*) as_fn_error
"unrecognized option: \`$1'
30106 Try \`$0 --help' for more information." ;;
30108 *) as_fn_append ac_config_targets
" $1"
30109 ac_need_defaults
=false
;;
30115 ac_configure_extra_args
=
30117 if $ac_cs_silent; then
30119 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30124 if \$ac_cs_recheck; then
30125 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30127 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30128 CONFIG_SHELL='$SHELL'
30129 export CONFIG_SHELL
30134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30138 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30139 ## Running $as_me. ##
30145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30149 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30150 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30157 # Handling of arguments.
30158 for ac_config_target
in $ac_config_targets
30160 case $ac_config_target in
30161 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30162 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30163 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30164 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30165 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30166 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30167 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30168 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30169 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30171 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30176 # If the user did not use the arguments to specify the items to instantiate,
30177 # then the envvar interface is used. Set only those that are not.
30178 # We use the long form for the default assignment because of an extremely
30179 # bizarre bug on SunOS 4.1.3.
30180 if $ac_need_defaults; then
30181 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30182 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30183 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30184 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30187 # Have a temporary directory for convenience. Make it in the build tree
30188 # simply because there is no reason against having it here, and in addition,
30189 # creating and moving files from /tmp can sometimes cause problems.
30190 # Hook for its removal unless debugging.
30191 # Note that there is a small window in which the directory will not be cleaned:
30192 # after its creation but before its name has been assigned to `$tmp'.
30196 trap 'exit_status=$?
30197 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30199 trap 'as_fn_exit 1' 1 2 13 15
30201 # Create a (secure) tmp directory for tmp files.
30204 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30205 test -n "$tmp" && test -d "$tmp"
30208 tmp
=.
/conf$$
-$RANDOM
30209 (umask 077 && mkdir
"$tmp")
30210 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30212 # Set up the scripts for CONFIG_FILES section.
30213 # No need to generate them if there are no CONFIG_FILES.
30214 # This happens for instance with `./config.status config.h'.
30215 if test -n "$CONFIG_FILES"; then
30217 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30218 ac_cs_awk_getline
=:
30219 ac_cs_awk_pipe_init
=
30220 ac_cs_awk_read_file
='
30221 while ((getline aline < (F[key])) > 0)
30224 ac_cs_awk_pipe_fini
=
30226 ac_cs_awk_getline
=false
30227 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30228 ac_cs_awk_read_file
='
30230 print "cat " F[key] " &&"
30231 '$ac_cs_awk_pipe_init
30232 # The final `:' finishes the AND list.
30233 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30235 ac_cr
=`echo X | tr X '\015'`
30236 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30237 # But we know of no other shell where ac_cr would be empty at this
30238 # point, so we can use a bashism as a fallback.
30239 if test "x$ac_cr" = x
; then
30240 eval ac_cr
=\$
\'\\r
\'
30242 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30243 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30246 ac_cs_awk_cr
=$ac_cr
30249 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30252 # Create commands to substitute file output variables.
30254 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30255 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30256 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30259 } >conf$
$files.sh
&&
30260 . .
/conf$
$files.sh ||
30261 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30262 rm -f conf$
$files.sh
30265 echo "cat >conf$$subs.awk <<_ACEOF" &&
30266 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30268 } >conf$$subs.sh ||
30269 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30270 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30272 for ac_last_try in false false false false false :; do
30273 . ./conf$$subs.sh ||
30274 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30276 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30277 if test $ac_delim_n = $ac_delim_num; then
30279 elif $ac_last_try; then
30280 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30282 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30285 rm -f conf$$subs.sh
30287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30288 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30292 s/^/S["/; s
/!.
*/"]=/
30302 s/\(.\{148\}\).*/\1/
30304 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30309 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30316 s/\(.\{148\}\).*/\1/
30318 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30322 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30327 ' <conf$$subs.awk | sed '
30332 ' >>$CONFIG_STATUS || ac_write_fail=1
30333 rm -f conf$$subs.awk
30334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30336 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30337 for (key in S) S_is_set[key] = 1
30339 \$ac_cs_awk_pipe_init
30343 nfields = split(line, field, "@
")
30345 len = length(field[1])
30346 for (i = 2; i < nfields; i++) {
30348 keylen = length(key)
30349 if (S_is_set[key]) {
30351 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30352 len += length(value) + length(field[++i])
30357 if (nfields == 3 && !substed) {
30359 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30360 \$ac_cs_awk_read_file
30366 \$ac_cs_awk_pipe_fini
30369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30370 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30371 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30374 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30375 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30378 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30379 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30380 # trailing colons and then remove the whole line if VPATH becomes empty
30381 # (actually we leave an empty line to preserve line numbers).
30382 if test "x
$srcdir" = x.; then
30383 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30384 s/:*\$(srcdir):*/:/
30385 s/:*\${srcdir}:*/:/
30387 s/^\([^=]*=[ ]*\):*/\1/
30393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30394 fi # test -n "$CONFIG_FILES"
30396 # Set up the scripts for CONFIG_HEADERS section.
30397 # No need to generate them if there are no CONFIG_HEADERS.
30398 # This happens for instance with `./config.status Makefile'.
30399 if test -n "$CONFIG_HEADERS"; then
30400 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30404 # Transform confdefs.h into an awk script `defines.awk', embedded as
30405 # here-document in config.status, that substitutes the proper values into
30406 # config.h.in to produce config.h.
30408 # Create a delimiter string that does not exist in confdefs.h, to ease
30409 # handling of long lines.
30411 for ac_last_try in false false :; do
30412 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30413 if test -z "$ac_t"; then
30415 elif $ac_last_try; then
30416 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30418 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30422 # For the awk script, D is an array of macro values keyed by name,
30423 # likewise P contains macro parameters if any. Preserve backslash
30424 # newline sequences.
30426 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30428 s/.\{148\}/&'"$ac_delim"'/g
30431 s/^[ ]*#[ ]*define[ ][ ]*/ /
30438 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30440 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30444 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30445 D["\
1"]=" \
3\\\\\\n
"\\/p
30447 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30452 s/.\{148\}/&'"$ac_delim"'/g
30457 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30460 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30462 ' <confdefs.h | sed '
30463 s/'"$ac_delim"'/"\\\
30464 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30467 for (key in D) D_is_set[key] = 1
30470 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30472 split(line, arg, " ")
30473 if (arg[1] == "#") {
30477 defundef
= substr
(arg
[1], 2)
30480 split(mac1
, mac2
, "(") #)
30482 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30483 if (D_is_set
[macro
]) {
30484 # Preserve the white space surrounding the "#".
30485 print prefix
"define", macro P
[macro
] D
[macro
]
30488 # Replace #undef with comments. This is necessary, for example,
30489 # in the case of _POSIX_SOURCE, which is predefined and required
30490 # on some systems where configure will not decide to define it.
30491 if (defundef
== "undef") {
30492 print
"/*", prefix defundef
, macro
, "*/"
30500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30501 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30502 fi # test -n "$CONFIG_HEADERS"
30505 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30510 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30512 case $ac_mode$ac_tag in
30514 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30515 :[FH
]-) ac_tag
=-:-;;
30516 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30533 -) ac_f
="$tmp/stdin";;
30534 *) # Look for the file first in the build tree, then in the source tree
30535 # (if the path is not absolute). The absolute path cannot be DOS-style,
30536 # because $ac_f cannot contain `:'.
30540 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30542 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30544 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30545 as_fn_append ac_file_inputs
" '$ac_f'"
30548 # Let's still pretend it is `configure' which instantiates (i.e., don't
30549 # use $as_me), people would be surprised to read:
30550 # /* config.h. Generated by config.status. */
30551 configure_input
='Generated from '`
30552 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30554 if test x
"$ac_file" != x-
; then
30555 configure_input
="$ac_file. $configure_input"
30556 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30557 $as_echo "$as_me: creating $ac_file" >&6;}
30559 # Neutralize special characters interpreted by sed in replacement strings.
30560 case $configure_input in #(
30561 *\
&* |
*\|
* |
*\\* )
30562 ac_sed_conf_input
=`$as_echo "$configure_input" |
30563 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30564 *) ac_sed_conf_input
=$configure_input;;
30568 *:-:* |
*:-) cat >"$tmp/stdin" \
30569 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30574 ac_dir
=`$as_dirname -- "$ac_file" ||
30575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30576 X"$ac_file" : 'X\(//\)[^/]' \| \
30577 X"$ac_file" : 'X\(//\)$' \| \
30578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30579 $as_echo X"$ac_file" |
30580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30584 /^X\(\/\/\)[^/].*/{
30597 as_dir
="$ac_dir"; as_fn_mkdir_p
30601 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30603 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30604 # A ".." for each directory in $ac_dir_suffix.
30605 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30606 case $ac_top_builddir_sub in
30607 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30608 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30611 ac_abs_top_builddir
=$ac_pwd
30612 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30613 # for backward compatibility:
30614 ac_top_builddir
=$ac_top_build_prefix
30617 .
) # We are building in place.
30619 ac_top_srcdir
=$ac_top_builddir_sub
30620 ac_abs_top_srcdir
=$ac_pwd ;;
30621 [\\/]* | ?
:[\\/]* ) # Absolute name.
30622 ac_srcdir
=$srcdir$ac_dir_suffix;
30623 ac_top_srcdir
=$srcdir
30624 ac_abs_top_srcdir
=$srcdir ;;
30625 *) # Relative name.
30626 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30627 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30628 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30630 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30642 # If the template does not know about datarootdir, expand it.
30643 # FIXME: This hack should be removed a few years after 2.60.
30644 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30655 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30656 *datarootdir
*) ac_datarootdir_seen
=yes;;
30657 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30659 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30662 ac_datarootdir_hack='
30663 s&@datadir@&$datadir&g
30664 s&@docdir@&$docdir&g
30665 s&@infodir@&$infodir&g
30666 s&@localedir@&$localedir&g
30667 s&@mandir@&$mandir&g
30668 s&\\\${datarootdir}&$datarootdir&g' ;;
30672 # Neutralize VPATH when `$srcdir' = `.'.
30673 # Shell code in configure.ac might set extrasub.
30674 # FIXME: do we really want to maintain this feature?
30675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30676 ac_sed_extra="$ac_vpsub
30679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30681 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30682 s|@configure_input@|
$ac_sed_conf_input|
;t t
30683 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30684 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30685 s
&@srcdir@
&$ac_srcdir&;t t
30686 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30687 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30688 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30689 s
&@builddir@
&$ac_builddir&;t t
30690 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30691 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30692 $ac_datarootdir_hack
30694 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30695 if $ac_cs_awk_getline; then
30696 $AWK -f "$tmp/subs.
awk"
30698 $AWK -f "$tmp/subs.
awk" | $SHELL
30700 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30702 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30703 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30704 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30706 which seems to be undefined. Please make sure it is defined." >&5
30707 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30708 which seems to be undefined. Please make sure it is defined." >&2;}
30712 -) cat "$tmp/out" && rm -f "$tmp/out";;
30713 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30715 || as_fn_error "could not create $ac_file" "$LINENO" 5
30721 if test x"$ac_file" != x-; then
30723 $as_echo "/* $configure_input */" \
30724 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30725 } >"$tmp/config.h" \
30726 || as_fn_error "could not create $ac_file" "$LINENO" 5
30727 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30728 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30729 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30732 mv "$tmp/config.h" "$ac_file" \
30733 || as_fn_error "could not create $ac_file" "$LINENO" 5
30736 $as_echo "/* $configure_input */" \
30737 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30738 || as_fn_error "could not create -" "$LINENO" 5
30746 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
30749 # Prefer the file from the source tree if names are identical.
30750 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30751 ac_source=$srcdir/$ac_source
30754 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30755 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30757 if test ! -r "$ac_source"; then
30758 as_fn_error "$ac_source: file not found" "$LINENO" 5
30762 # Try a relative symlink, then a hard link, then a copy.
30764 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30765 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30767 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30768 ln "$ac_source" "$ac_file" 2>/dev/null ||
30769 cp -p "$ac_source" "$ac_file" ||
30770 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30773 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30774 $as_echo "$as_me: executing $ac_file commands" >&6;}
30779 case $ac_file$ac_mode in
30780 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30782 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30783 for lang in $subdirs c-family common
30785 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30787 "as":F) chmod +x as ;;
30788 "collect-ld":F) chmod +x collect-ld ;;
30789 "nm":F) chmod +x nm ;;
30791 case ${CONFIG_HEADERS} in
30792 *auto-host.h:config.in*)
30795 # Make sure all the subdirs exist.
30796 for d in $subdirs doc build common c-family
30798 test -d $d || mkdir $d
30808 ac_clean_files=$ac_clean_files_save
30810 test $ac_write_fail = 0 ||
30811 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30814 # configure is writing to config.log, and then calls config.status.
30815 # config.status does its own redirection, appending to config.log.
30816 # Unfortunately, on DOS this fails, as config.log is still kept open
30817 # by configure, so config.status won't be able to
write to it
; its
30818 # output is simply discarded. So we exec the FD to /dev/null,
30819 # effectively closing config.log, so it can be properly (re)opened and
30820 # appended to by config.status. When coming back to configure, we
30821 # need to make the FD available again.
30822 if test "$no_create" != yes; then
30824 ac_config_status_args
=
30825 test "$silent" = yes &&
30826 ac_config_status_args
="$ac_config_status_args --quiet"
30828 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30830 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30831 # would make configure fail if this is the last instruction.
30832 $ac_cs_success || as_fn_exit $?
30834 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30836 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}